diff --git a/.gitignore b/.gitignore index 68bc17f9..9f9b5eb9 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +.envrc diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..7ee7c25f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,51 @@ +# Contributing + +## Contributor License Agreement + +We are grateful to the contributors who help evolve LangServe and dedicate their time to the project. As the primary sponsor of LangServe, LangChain, Inc. aims to build products in the open that benefit thousands of developers while allowing us to build a sustainable business. For all code contributions to LangServe, we ask that contributors complete and sign a Contributor License Agreement (“CLA”). The agreement between contributors and the project is explicit, so LangServe users can be confident in the legal status of the source code and their right to use it.The CLA does not change the terms of the underlying license, LangServe License, used by our software. + +Before you can contribute to LangServe, a bot will comment on the PR asking you to agree to the CLA if you haven't already. Agreeing to the CLA is required before code can be merged and only needs to happen on the first contribution to the project. All subsequent contributions will fall under the same CLA. + +## 🗺️ Guidelines + +### Dependency Management: Poetry and other env/dependency managers + +This project uses [Poetry](https://python-poetry.org/) v1.6.1+ as a dependency manager. + +### Local Development Dependencies + +Install langserve development requirements (for running langchain, running examples, linting, formatting, tests, and coverage): + +```sh +poetry install --with test,dev +``` + +Then verify that tests pass: + +```sh +make test +``` + +### Formatting and Linting + +Run these locally before submitting a PR; the CI system will check also. + +#### Code Formatting + +Formatting for this project is done via a combination of [Black](https://black.readthedocs.io/en/stable/) and [ruff](https://docs.astral.sh/ruff/rules/). + +To run formatting for this project: + +```sh +make format +``` + +#### Linting + +Linting for this project is done via a combination of [Black](https://black.readthedocs.io/en/stable/), [ruff](https://docs.astral.sh/ruff/rules/), and [mypy](http://mypy-lang.org/). + +To run linting for this project: + +```sh +make lint +``` diff --git a/Makefile b/Makefile index a9fdd330..8c0f44a4 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,12 @@ # Default target executed when no arguments are given to make. all: help +build-playground: + cd ./langserve/playground && yarn build + +build: build-playground + poetry build + ###################### # TESTING AND COVERAGE ###################### diff --git a/examples/chain/server.py b/examples/chain/server.py index d4b71fbf..3092e4f6 100755 --- a/examples/chain/server.py +++ b/examples/chain/server.py @@ -1,15 +1,40 @@ #!/usr/bin/env python """Example LangChain server exposes a chain composed of a prompt and an LLM.""" +from typing import Any, Dict, List, Optional, Tuple + from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware from langchain.chat_models import ChatOpenAI -from langchain.prompts import ChatPromptTemplate -from typing_extensions import TypedDict +from langchain.prompts import PromptTemplate + +# from typing_extensions import TypedDict +from langchain.pydantic_v1 import BaseModel +from langchain.schema.output_parser import StrOutputParser +from langchain.schema.runnable import ConfigurableField, RunnablePassthrough from langserve import add_routes -model = ChatOpenAI() -prompt = ChatPromptTemplate.from_template("tell me a joke about {topic}") -chain = prompt | model +model = ChatOpenAI(temperature=0.5).configurable_alternatives( + ConfigurableField(id="llm", name="LLM"), + high_temp=ChatOpenAI(temperature=0.9), + low_temp=ChatOpenAI(temperature=0.1, max_tokens=1), + default_key="medium_temp", +) +prompt = PromptTemplate.from_template( + "tell me a joke about {topic}.\nChat history: {chat_history}" +).configurable_fields( + template=ConfigurableField( + id="prompt", + name="Prompt", + description="The prompt to use. Must contain {topic}", + ) +) +chain = ( + RunnablePassthrough.assign(chat_history=(lambda x: "\n".join(x))) + | prompt + | model + | StrOutputParser() +) app = FastAPI( title="LangChain Server", @@ -17,18 +42,32 @@ description="Spin up a simple api server using Langchain's Runnable interfaces", ) +# Set all CORS enabled origins +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], + expose_headers=["*"], +) + # The input type is automatically inferred from the runnable # interface; however, if you want to override it, you can do so # by passing in the input_type argument to add_routes. -class ChainInput(TypedDict): +class ChainInput(BaseModel): """The input to the chain.""" topic: str """The topic of the joke.""" + chat_history: List[str] + chat_history_tuples: List[Tuple[str, str]] + chat_history_object_list: List[Dict[str, str]] + tester: Optional[Dict[str, Any]] = None -add_routes(app, chain, input_type=ChainInput) +add_routes(app, chain, input_type=ChainInput, config_keys=["configurable"]) # Alternatively, you can rely on langchain's type inference # to infer the input type from the runnable interface. diff --git a/langserve/client.py b/langserve/client.py index df8c0b19..a7a3c0c1 100644 --- a/langserve/client.py +++ b/langserve/client.py @@ -17,7 +17,7 @@ import httpx from httpx._types import AuthTypes, CertTypes, CookieTypes, HeaderTypes, VerifyTypes -from langchain.callbacks.tracers.log_stream import RunLog, RunLogPatch +from langchain.callbacks.tracers.log_stream import RunLogPatch from langchain.load.dump import dumpd from langchain.schema.runnable import Runnable from langchain.schema.runnable.config import ( @@ -401,7 +401,6 @@ async def astream_log( input: Input, config: Optional[RunnableConfig] = None, *, - diff: bool = False, include_names: Optional[Sequence[str]] = None, include_types: Optional[Sequence[str]] = None, include_tags: Optional[Sequence[str]] = None, @@ -409,7 +408,7 @@ async def astream_log( exclude_types: Optional[Sequence[str]] = None, exclude_tags: Optional[Sequence[str]] = None, **kwargs: Optional[Any], - ) -> Union[AsyncIterator[RunLogPatch], AsyncIterator[RunLog]]: + ) -> AsyncIterator[RunLogPatch]: """Stream all output from a runnable, as reported to the callback system. This includes all inner runs of LLMs, Retrievers, Tools, etc. @@ -436,7 +435,7 @@ async def astream_log( "input": simple_dumpd(input), "config": _without_callbacks(config), "kwargs": kwargs, - "diff": diff, + "diff": True, "include_names": include_names, "include_types": include_types, "include_tags": include_tags, @@ -458,18 +457,12 @@ async def astream_log( async for sse in event_source.aiter_sse(): if sse.event == "data": data = simple_loads(sse.data) - if diff: - chunk = RunLogPatch(*data["ops"]) - else: - chunk = RunLog(*data["ops"], state=data["state"]) + chunk = RunLogPatch(*data["ops"]) yield chunk - if diff: - if final_output: - final_output += chunk - else: - final_output = chunk + if final_output: + final_output += chunk else: final_output = chunk elif sse.event == "end": diff --git a/langserve/playground.py b/langserve/playground.py new file mode 100644 index 00000000..f897081f --- /dev/null +++ b/langserve/playground.py @@ -0,0 +1,47 @@ +import json +import mimetypes +import os +from string import Template +from typing import List, Type + +from fastapi.responses import Response +from langchain.schema.runnable import Runnable + +try: + from pydantic.v1 import BaseModel +except ImportError: + from pydantic import BaseModel + + +class PlaygroundTemplate(Template): + delimiter = "____" + + +async def serve_playground( + runnable: Runnable, + input_schema: Type[BaseModel], + config_keys: List[str], + base_url: str, + file_path: str, +) -> Response: + local_file_path = os.path.join( + os.path.dirname(__file__), + "./playground/dist", + file_path or "index.html", + ) + with open(local_file_path) as f: + mime_type = mimetypes.guess_type(local_file_path)[0] + if mime_type in ("text/html", "text/css", "application/javascript"): + res = PlaygroundTemplate(f.read()).substitute( + LANGSERVE_BASE_URL=base_url[1:] + if base_url.startswith("/") + else base_url, + LANGSERVE_CONFIG_SCHEMA=json.dumps( + runnable.config_schema(include=config_keys).schema() + ), + LANGSERVE_INPUT_SCHEMA=json.dumps(input_schema.schema()), + ) + else: + res = f.buffer.read() + + return Response(res, media_type=mime_type) diff --git a/langserve/playground/.eslintrc.cjs b/langserve/playground/.eslintrc.cjs new file mode 100644 index 00000000..d6c95379 --- /dev/null +++ b/langserve/playground/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, +} diff --git a/langserve/playground/.gitignore b/langserve/playground/.gitignore new file mode 100644 index 00000000..33d989f9 --- /dev/null +++ b/langserve/playground/.gitignore @@ -0,0 +1,26 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +.yarn \ No newline at end of file diff --git a/langserve/playground/README.md b/langserve/playground/README.md new file mode 100644 index 00000000..1ebe379f --- /dev/null +++ b/langserve/playground/README.md @@ -0,0 +1,27 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: + +- Configure the top-level `parserOptions` property like this: + +```js + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + project: ['./tsconfig.json', './tsconfig.node.json'], + tsconfigRootDir: __dirname, + }, +``` + +- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` +- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list diff --git a/langserve/playground/dist/assets/index-a37fd830.js b/langserve/playground/dist/assets/index-a37fd830.js new file mode 100644 index 00000000..2fd9a4ba --- /dev/null +++ b/langserve/playground/dist/assets/index-a37fd830.js @@ -0,0 +1,247 @@ +var i8=Object.defineProperty;var s8=(e,t,n)=>t in e?i8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _T=(e,t,n)=>(s8(e,typeof t!="symbol"?t+"":t,n),n);function l8(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 Qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c8(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 dM={exports:{}},Eg={},fM={exports:{}},on={};/** + * @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 _p=Symbol.for("react.element"),u8=Symbol.for("react.portal"),d8=Symbol.for("react.fragment"),f8=Symbol.for("react.strict_mode"),p8=Symbol.for("react.profiler"),h8=Symbol.for("react.provider"),m8=Symbol.for("react.context"),v8=Symbol.for("react.forward_ref"),g8=Symbol.for("react.suspense"),y8=Symbol.for("react.memo"),b8=Symbol.for("react.lazy"),ET=Symbol.iterator;function x8(e){return e===null||typeof e!="object"?null:(e=ET&&e[ET]||e["@@iterator"],typeof e=="function"?e:null)}var pM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hM=Object.assign,mM={};function Uu(e,t,n){this.props=e,this.context=t,this.refs=mM,this.updater=n||pM}Uu.prototype.isReactComponent={};Uu.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")};Uu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vM(){}vM.prototype=Uu.prototype;function iC(e,t,n){this.props=e,this.context=t,this.refs=mM,this.updater=n||pM}var sC=iC.prototype=new vM;sC.constructor=iC;hM(sC,Uu.prototype);sC.isPureReactComponent=!0;var PT=Array.isArray,gM=Object.prototype.hasOwnProperty,lC={current:null},yM={key:!0,ref:!0,__self:!0,__source:!0};function bM(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)gM.call(t,r)&&!yM.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Y=W[L];if(0>>1;Lo(N,Z))Vo(X,N)?(W[L]=X,W[V]=Z,L=V):(W[L]=N,W[R]=Z,L=R);else if(Vo(X,Z))W[L]=X,W[V]=Z,L=V;else break e}}return J}function o(W,J){var Z=W.sortIndex-J.sortIndex;return Z!==0?Z: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,G(_);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 Z=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||W&&!F());){var L=f.callback;if(typeof L=="function"){f.callback=null,p=f.priorityLevel;var Y=L(f.expirationTime<=J);J=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var K=!0;else{var R=n(c);R!==null&&Q(C,R.startTime-J),K=!1}return K}finally{f=null,p=Z,m=!1}}var $=!1,P=null,k=-1,A=5,D=-1;function F(){return!(e.unstable_now()-DW||125L?(W.sortIndex=Z,t(c,W),n(l)===null&&W===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,Z-L))):(W.sortIndex=Y,t(l,W),b||m||(b=!0,G(_))),W},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(W){var J=p;return function(){var Z=p;p=J;try{return W.apply(this,arguments)}finally{p=Z}}}})($M);CM.exports=$M;var R8=CM.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 SM=S,zo=R8;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"),gx=Object.prototype.hasOwnProperty,D8=/^[: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]*$/,kT={},OT={};function M8(e){return gx.call(OT,e)?!0:gx.call(kT,e)?!1:D8.test(e)?OT[e]=!0:(kT[e]=!0,!1)}function I8(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 A8(e,t,n,r){if(t===null||typeof t>"u"||I8(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 no(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 Mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mr[e]=new no(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mr[t]=new no(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mr[e]=new no(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mr[e]=new no(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){Mr[e]=new no(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mr[e]=new no(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mr[e]=new no(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mr[e]=new no(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mr[e]=new no(e,5,!1,e.toLowerCase(),null,!1,!1)});var uC=/[\-:]([a-z])/g;function dC(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,dC);Mr[t]=new no(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,dC);Mr[t]=new no(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,dC);Mr[t]=new no(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mr[e]=new no(e,1,!1,e.toLowerCase(),null,!1,!1)});Mr.xlinkHref=new no("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mr[e]=new no(e,1,!1,e.toLowerCase(),null,!0,!0)});function fC(e,t,n,r){var o=Mr.hasOwnProperty(t)?Mr[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{R1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?af(e):""}function N8(e){switch(e.tag){case 5:return af(e.type);case 16:return af("Lazy");case 13:return af("Suspense");case 19:return af("SuspenseList");case 0:case 2:case 15:return e=D1(e.type,!1),e;case 11:return e=D1(e.type.render,!1),e;case 1:return e=D1(e.type,!0),e;default:return""}}function wx(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 Kc:return"Fragment";case Yc:return"Portal";case yx:return"Profiler";case pC:return"StrictMode";case bx:return"Suspense";case xx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case PM:return(e.displayName||"Context")+".Consumer";case EM:return(e._context.displayName||"Context")+".Provider";case hC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mC:return t=e.displayName||null,t!==null?t:wx(e.type)||"Memo";case bs:t=e._payload,e=e._init;try{return wx(e(t))}catch{}}return null}function j8(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 wx(t);case 8:return t===pC?"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 Bs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function L8(e){var t=kM(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 nm(e){e._valueTracker||(e._valueTracker=L8(e))}function OM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $v(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 Cx(e,t){var n=t.checked;return qn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function DT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bs(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 RM(e,t){t=t.checked,t!=null&&fC(e,"checked",t,!1)}function $x(e,t){RM(e,t);var n=Bs(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")?Sx(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sx(e,t.type,Bs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MT(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 Sx(e,t,n){(t!=="number"||$v(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sf=Array.isArray;function uu(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 Wf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gf={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},F8=["Webkit","ms","Moz","O"];Object.keys(gf).forEach(function(e){F8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gf[t]=gf[e]})});function AM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gf.hasOwnProperty(e)&&gf[e]?(""+t).trim():t+"px"}function NM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=AM(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var z8=qn({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 Px(e,t){if(t){if(z8[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 Tx(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 kx=null;function vC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ox=null,du=null,fu=null;function NT(e){if(e=Tp(e)){if(typeof Ox!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Rg(t),Ox(e.stateNode,e.type,t))}}function jM(e){du?fu?fu.push(e):fu=[e]:du=e}function LM(){if(du){var e=du,t=fu;if(fu=du=null,NT(e),t)for(e=0;e>>=0,e===0?32:31-(J8(e)/Z8|0)|0}var om=64,am=4194304;function lf(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 Pv(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=lf(s):(a&=i,a!==0&&(r=lf(a)))}else i=n&~o,i!==0?r=lf(i):a!==0&&(r=lf(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 Ep(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Na(t),e[t]=n}function nz(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=bf),HT=String.fromCharCode(32),qT=!1;function oI(e,t){switch(e){case"keyup":return Oz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xc=!1;function Dz(e,t){switch(e){case"compositionend":return aI(t);case"keypress":return t.which!==32?null:(qT=!0,HT);case"textInput":return e=t.data,e===HT&&qT?null:e;default:return null}}function Mz(e,t){if(Xc)return e==="compositionend"||!SC&&oI(e,t)?(e=nI(),Jm=wC=Ss=null,Xc=!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=XT(n)}}function cI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uI(){for(var e=window,t=$v();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$v(e.document)}return t}function _C(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 Vz(e){var t=uI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cI(n.ownerDocument.documentElement,n)){if(r!==null&&_C(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=JT(n,a);var i=JT(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,Jc=null,Nx=null,wf=null,jx=!1;function ZT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jx||Jc==null||Jc!==$v(r)||(r=Jc,"selectionStart"in r&&_C(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}),wf&&Xf(wf,r)||(wf=r,r=Ov(Nx,"onSelect"),0eu||(e.current=Ux[eu],Ux[eu]=null,eu--)}function kn(e,t){eu++,Ux[eu]=e.current,e.current=t}var Vs={},Ur=Gs(Vs),ho=Gs(!1),Nl=Vs;function _u(e,t){var n=e.type.contextTypes;if(!n)return Vs;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 mo(e){return e=e.childContextTypes,e!=null}function Dv(){An(ho),An(Ur)}function a2(e,t,n){if(Ur.current!==Vs)throw Error(at(168));kn(Ur,t),kn(ho,n)}function bI(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,j8(e)||"Unknown",o));return qn({},n,r)}function Mv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vs,Nl=Ur.current,kn(Ur,e),kn(ho,ho.current),!0}function i2(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=bI(e,t,Nl),r.__reactInternalMemoizedMergedChildContext=e,An(ho),An(Ur),kn(Ur,e)):An(ho),kn(ho,n)}var Ai=null,Dg=!1,q1=!1;function xI(e){Ai===null?Ai=[e]:Ai.push(e)}function e7(e){Dg=!0,xI(e)}function Ys(){if(!q1&&Ai!==null){q1=!0;var e=0,t=bn;try{var n=Ai;for(bn=1;e>=i,o-=i,ji=1<<32-Na(t)+o|n<k?(A=P,P=null):A=P.sibling;var D=p(g,P,w[k],C);if(D===null){P===null&&(P=A);break}e&&P&&D.alternate===null&&t(g,P),y=a(D,y,k),$===null?_=D:$.sibling=D,$=D,P=A}if(k===w.length)return n(g,P),jn&&yl(g,k),_;if(P===null){for(;kk?(A=P,P=null):A=P.sibling;var F=p(g,P,D.value,C);if(F===null){P===null&&(P=A);break}e&&P&&F.alternate===null&&t(g,P),y=a(F,y,k),$===null?_=F:$.sibling=F,$=F,P=A}if(D.done)return n(g,P),jn&&yl(g,k),_;if(P===null){for(;!D.done;k++,D=w.next())D=f(g,D.value,C),D!==null&&(y=a(D,y,k),$===null?_=D:$.sibling=D,$=D);return jn&&yl(g,k),_}for(P=r(g,P);!D.done;k++,D=w.next())D=m(P,g,k,D.value,C),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?k:D.key),y=a(D,y,k),$===null?_=D:$.sibling=D,$=D);return e&&P.forEach(function(H){return t(g,H)}),jn&&yl(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===Kc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case tm:e:{for(var _=w.key,$=y;$!==null;){if($.key===_){if(_=w.type,_===Kc){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===bs&&p2(_)===$.type){n(g,$.sibling),y=o($,w.props),y.ref=Fd(g,$,w),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}w.type===Kc?(y=Dl(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=Fd(g,y,w),C.return=g,g=C)}return i(g);case Yc: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 bs:return $=w._init,x(g,y,$(w._payload),C)}if(sf(w))return b(g,y,w,C);if(Id(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=Q1(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Pu=TI(!0),kI=TI(!1),kp={},ci=Gs(kp),ep=Gs(kp),tp=Gs(kp);function kl(e){if(e===kp)throw Error(at(174));return e}function IC(e,t){switch(kn(tp,t),kn(ep,e),kn(ci,kp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ex(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ex(t,e)}An(ci),kn(ci,t)}function Tu(){An(ci),An(ep),An(tp)}function OI(e){kl(tp.current);var t=kl(ci.current),n=Ex(t,e.type);t!==n&&(kn(ep,e),kn(ci,n))}function AC(e){ep.current===e&&(An(ci),An(ep))}var Wn=Gs(0);function Fv(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 G1=[];function NC(){for(var e=0;en?n:4,e(!0);var r=Y1.transition;Y1.transition={};try{e(!1),t()}finally{bn=n,Y1.transition=r}}function qI(){return pa().memoizedState}function o7(e,t,n){var r=Ns(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},GI(e))YI(t,n);else if(n=SI(e,t,n,r),n!==null){var o=eo();ja(n,e,r,o),KI(n,t,r)}}function a7(e,t,n){var r=Ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(GI(e))YI(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,Fa(s,i)){var l=t.interleaved;l===null?(o.next=o,DC(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=SI(e,t,o,r),n!==null&&(o=eo(),ja(n,e,r,o),KI(n,t,r))}}function GI(e){var t=e.alternate;return e===Hn||t!==null&&t===Hn}function YI(e,t){Cf=zv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KI(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yC(e,n)}}var Bv={readContext:fa,useCallback:Nr,useContext:Nr,useEffect:Nr,useImperativeHandle:Nr,useInsertionEffect:Nr,useLayoutEffect:Nr,useMemo:Nr,useReducer:Nr,useRef:Nr,useState:Nr,useDebugValue:Nr,useDeferredValue:Nr,useTransition:Nr,useMutableSource:Nr,useSyncExternalStore:Nr,useId:Nr,unstable_isNewReconciler:!1},i7={readContext:fa,useCallback:function(e,t){return Za().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:m2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tv(4194308,4,BI.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=Za();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Za();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=o7.bind(null,Hn,e),[r.memoizedState,e]},useRef:function(e){var t=Za();return e={current:e},t.memoizedState=e},useState:h2,useDebugValue:BC,useDeferredValue:function(e){return Za().memoizedState=e},useTransition:function(){var e=h2(!1),t=e[0];return e=r7.bind(null,e[1]),Za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Hn,o=Za();if(jn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),_r===null)throw Error(at(349));Ll&30||MI(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,m2(AI.bind(null,r,a,e),[e]),r.flags|=2048,op(9,II.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Za(),t=_r.identifierPrefix;if(jn){var n=Li,r=ji;n=(r&~(1<<32-Na(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=np++,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[ni]=t,e[Qf]=r,oA(e,t,!1,!1),t.stateNode=e;e:{switch(i=Tx(n,r),n){case"dialog":Dn("cancel",e),Dn("close",e),o=r;break;case"iframe":case"object":case"embed":Dn("load",e),o=r;break;case"video":case"audio":for(o=0;oOu&&(t.flags|=128,r=!0,zd(a,!1),t.lanes=4194304)}else{if(!r)if(e=Fv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!jn)return jr(t),null}else 2*or()-a.renderingStartTime>Ou&&n!==1073741824&&(t.flags|=128,r=!0,zd(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=or(),t.sibling=null,n=Wn.current,kn(Wn,r?n&1|2:n&1),t):(jr(t),null);case 22:case 23:return GC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oo&1073741824&&(jr(t),t.subtreeFlags&6&&(t.flags|=8192)):jr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function h7(e,t){switch(PC(t),t.tag){case 1:return mo(t.type)&&Dv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tu(),An(ho),An(Ur),NC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return AC(t),null;case 13:if(An(Wn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return An(Wn),null;case 4:return Tu(),null;case 10:return RC(t.type._context),null;case 22:case 23:return GC(),null;case 24:return null;default:return null}}var hm=!1,Br=!1,m7=typeof WeakSet=="function"?WeakSet:Set,bt=null;function ou(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Zn(e,t,r)}else n.current=null}function tw(e,t,n){try{n()}catch(r){Zn(e,t,r)}}var S2=!1;function v7(e,t){if(Lx=Tv,e=uI(),_C(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(Fx={focusedElem:e,selectionRange:n},Tv=!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:Pa(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){Zn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=S2,S2=!1,b}function $f(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 Ag(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 nw(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 sA(e){var t=e.alternate;t!==null&&(e.alternate=null,sA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ni],delete t[Qf],delete t[Vx],delete t[Zz],delete t[Qz])),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 lA(e){return e.tag===5||e.tag===3||e.tag===4}function _2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lA(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 rw(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=Rv));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}function ow(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(ow(e,t,n),e=e.sibling;e!==null;)ow(e,t,n),e=e.sibling}var kr=null,Ta=!1;function fs(e,t,n){for(n=n.child;n!==null;)cA(e,t,n),n=n.sibling}function cA(e,t,n){if(li&&typeof li.onCommitFiberUnmount=="function")try{li.onCommitFiberUnmount(Pg,n)}catch{}switch(n.tag){case 5:Br||ou(n,t);case 6:var r=kr,o=Ta;kr=null,fs(e,t,n),kr=r,Ta=o,kr!==null&&(Ta?(e=kr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):kr.removeChild(n.stateNode));break;case 18:kr!==null&&(Ta?(e=kr,n=n.stateNode,e.nodeType===8?H1(e.parentNode,n):e.nodeType===1&&H1(e,n),Yf(e)):H1(kr,n.stateNode));break;case 4:r=kr,o=Ta,kr=n.stateNode.containerInfo,Ta=!0,fs(e,t,n),kr=r,Ta=o;break;case 0:case 11:case 14:case 15:if(!Br&&(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)}fs(e,t,n);break;case 1:if(!Br&&(ou(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Zn(n,t,s)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:n.mode&1?(Br=(r=Br)||n.memoizedState!==null,fs(e,t,n),Br=r):fs(e,t,n);break;default:fs(e,t,n)}}function E2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new m7),t.forEach(function(r){var o=_7.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Sa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=or()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y7(r/1960))-r,10e?16:e,_s===null)var r=!1;else{if(e=_s,_s=null,Wv=0,cn&6)throw Error(at(331));var o=cn;for(cn|=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;lor()-HC?Rl(e,0):WC|=n),vo(e,t)}function gA(e,t){t===0&&(e.mode&1?(t=am,am<<=1,!(am&130023424)&&(am=4194304)):t=1);var n=eo();e=Hi(e,t),e!==null&&(Ep(e,t,n),vo(e,n))}function S7(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gA(e,n)}function _7(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),gA(e,n)}var yA;yA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ho.current)po=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return po=!1,f7(e,t,n);po=!!(e.flags&131072)}else po=!1,jn&&t.flags&1048576&&wI(t,Av,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nv(e,t),e=t.pendingProps;var o=_u(t,Ur.current);hu(t,n),o=LC(null,t,r,e,o,n);var a=FC();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,mo(r)?(a=!0,Mv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,MC(t),o.updater=Mg,t.stateNode=o,o._reactInternals=t,Yx(t,r,e,n),t=Jx(null,t,r,!0,a,n)):(t.tag=0,jn&&a&&EC(t),Jr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=P7(r),e=Pa(r,e),o){case 0:t=Xx(null,t,r,e,n);break e;case 1:t=w2(null,t,r,e,n);break e;case 11:t=b2(null,t,r,e,n);break e;case 14:t=x2(null,t,r,Pa(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:Pa(r,o),Xx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pa(r,o),w2(e,t,r,o,n);case 3:e:{if(tA(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,_I(e,t),Lv(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=ku(Error(at(423)),t),t=C2(e,t,r,n,o);break e}else if(r!==o){o=ku(Error(at(424)),t),t=C2(e,t,r,n,o);break e}else for(Ao=Ms(t.stateNode.containerInfo.firstChild),Lo=t,jn=!0,ka=null,n=kI(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Eu(),r===o){t=qi(e,t,n);break e}Jr(e,t,r,n)}t=t.child}return t;case 5:return OI(t),e===null&&Hx(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,zx(r,o)?i=null:a!==null&&zx(r,a)&&(t.flags|=32),eA(e,t),Jr(e,t,i,n),t.child;case 6:return e===null&&Hx(t),null;case 13:return nA(e,t,n);case 4:return IC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pu(t,null,r,n):Jr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pa(r,o),b2(e,t,r,o,n);case 7:return Jr(e,t,t.pendingProps,n),t.child;case 8:return Jr(e,t,t.pendingProps.children,n),t.child;case 12:return Jr(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,kn(Nv,r._currentValue),r._currentValue=i,a!==null)if(Fa(a.value,i)){if(a.children===o.children&&!ho.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=Fi(-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),qx(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),qx(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}Jr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hu(t,n),o=fa(o),r=r(o),t.flags|=1,Jr(e,t,r,n),t.child;case 14:return r=t.type,o=Pa(r,t.pendingProps),o=Pa(r.type,o),x2(e,t,r,o,n);case 15:return ZI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pa(r,o),nv(e,t),t.tag=1,mo(r)?(e=!0,Mv(t)):e=!1,hu(t,n),PI(t,r,o),Yx(t,r,o,n),Jx(null,t,r,!0,e,n);case 19:return rA(e,t,n);case 22:return QI(e,t,n)}throw Error(at(156,t.tag))};function bA(e,t){return HM(e,t)}function E7(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 la(e,t,n,r){return new E7(e,t,n,r)}function KC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P7(e){if(typeof e=="function")return KC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hC)return 11;if(e===mC)return 14}return 2}function js(e,t){var n=e.alternate;return n===null?(n=la(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")KC(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Kc:return Dl(n.children,o,a,t);case pC:i=8,o|=8;break;case yx:return e=la(12,n,t,o|2),e.elementType=yx,e.lanes=a,e;case bx:return e=la(13,n,t,o),e.elementType=bx,e.lanes=a,e;case xx:return e=la(19,n,t,o),e.elementType=xx,e.lanes=a,e;case TM:return jg(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case EM:i=10;break e;case PM:i=9;break e;case hC:i=11;break e;case mC:i=14;break e;case bs:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=la(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Dl(e,t,n,r){return e=la(7,e,r,t),e.lanes=n,e}function jg(e,t,n,r){return e=la(22,e,r,t),e.elementType=TM,e.lanes=n,e.stateNode={isHidden:!1},e}function Q1(e,t,n){return e=la(6,e,null,t),e.lanes=n,e}function eb(e,t,n){return t=la(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T7(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=I1(0),this.expirationTimes=I1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=I1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function XC(e,t,n,r,o,a,i,s,l){return e=new T7(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=la(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},MC(a),e}function k7(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($A)}catch(e){console.error(e)}}$A(),wM.exports=Wo;var qu=wM.exports;const uf=zt(qu);var I2=qu;vx.createRoot=I2.createRoot,vx.hydrateRoot=I2.hydrateRoot;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>I7(n,t))}function Gu(...e){return S.useCallback(SA(...e),e)}function A7(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,N7(o,...t)]}function N7(...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 cw=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},j7=Vf["useId".toString()]||(()=>{});let L7=0;function tb(e){const[t,n]=S.useState(j7());return cw(()=>{e||n(r=>r??String(L7++))},[e]),e||(t?`radix-${t}`:"")}function Bl(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 F7({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=z7({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Bl(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 z7({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,o=S.useRef(r),a=Bl(t);return S.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const e$=S.forwardRef((e,t)=>{const{children:n,...r}=e,o=S.Children.toArray(n),a=o.find(V7);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(uw,T({},r,{ref:t}),S.isValidElement(i)?S.cloneElement(i,void 0,s):null)}return S.createElement(uw,T({},r,{ref:t}),n)});e$.displayName="Slot";const uw=S.forwardRef((e,t)=>{const{children:n,...r}=e;return S.isValidElement(n)?S.cloneElement(n,{...U7(r,n.props),ref:t?SA(t,n.ref):n.ref}):S.Children.count(n)>1?S.Children.only(null):null});uw.displayName="SlotClone";const B7=({children:e})=>S.createElement(S.Fragment,null,e);function V7(e){return S.isValidElement(e)&&e.type===B7}function U7(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 W7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ks=W7.reduce((e,t)=>{const n=S.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?e$: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 H7(e,t){e&&qu.flushSync(()=>e.dispatchEvent(t))}function q7(e,t=globalThis==null?void 0:globalThis.document){const n=Bl(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const dw="dismissableLayer.update",G7="dismissableLayer.pointerDownOutside",Y7="dismissableLayer.focusOutside";let A2;const K7=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),X7=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(K7),[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=Gu(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,$=J7(k=>{const A=k.target,D=[...u.branches].some(F=>F.contains(A));!_||D||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),P=Z7(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return q7(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&&(A2=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),N2(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=A2)}},[f,m,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),N2())},[f,u]),S.useEffect(()=>{const k=()=>b({});return document.addEventListener(dw,k),()=>document.removeEventListener(dw,k)},[]),S.createElement(Ks.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:Ls(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Ls(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Ls(e.onPointerDownCapture,$.onPointerDownCapture)}))});function J7(e,t=globalThis==null?void 0:globalThis.document){const n=Bl(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){_A(G7,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 Z7(e,t=globalThis==null?void 0:globalThis.document){const n=Bl(e),r=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!r.current&&_A(Y7,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 N2(){const e=new CustomEvent(dw);document.dispatchEvent(e)}function _A(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?H7(o,a):o.dispatchEvent(a)}const nb="focusScope.autoFocusOnMount",rb="focusScope.autoFocusOnUnmount",j2={bubbles:!1,cancelable:!0},Q7=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),c=Bl(o),u=Bl(a),f=S.useRef(null),p=Gu(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 P=$.target;s.contains(P)?f.current=P:gs(f.current,{select:!0})},w=function($){if(m.paused||!s)return;const P=$.relatedTarget;P!==null&&(s.contains(P)||gs(f.current,{select:!0}))},C=function($){if(document.activeElement===document.body)for(const k of $)k.removedNodes.length>0&&gs(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){F2.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(nb,j2);s.addEventListener(nb,c),s.dispatchEvent(g),g.defaultPrevented||(eB(aB(EA(s)),{select:!0}),document.activeElement===v&&gs(s))}return()=>{s.removeEventListener(nb,c),setTimeout(()=>{const g=new CustomEvent(rb,j2);s.addEventListener(rb,u),s.dispatchEvent(g),g.defaultPrevented||gs(v??document.body,{select:!0}),s.removeEventListener(rb,u),F2.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]=tB(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&gs(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&gs(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return S.createElement(Ks.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function eB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gs(r,{select:t}),document.activeElement!==n)return}function tB(e){const t=EA(e),n=L2(t,e),r=L2(t.reverse(),e);return[n,r]}function EA(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 L2(e,t){for(const n of e)if(!nB(n,{upTo:t}))return n}function nB(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 rB(e){return e instanceof HTMLInputElement&&"select"in e}function gs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rB(e)&&t&&e.select()}}const F2=oB();function oB(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=z2(e,t),e.unshift(t)},remove(t){var n;e=z2(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function z2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aB(e){return e.filter(t=>t.tagName!=="A")}const iB=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?uf.createPortal(S.createElement(Ks.div,T({},o,{ref:t})),r):null});function sB(e,t){return S.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Vg=e=>{const{present:t,children:n}=e,r=lB(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),a=Gu(r.ref,o.ref);return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:a}):null};Vg.displayName="Presence";function lB(e){const[t,n]=S.useState(),r=S.useRef({}),o=S.useRef(e),a=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=sB(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=gm(r.current);a.current=s==="mounted"?c:"none"},[s]),cw(()=>{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]),cw(()=>{if(t){const c=f=>{const m=gm(r.current).includes(f.animationName);f.target===t&&m&&qu.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:S.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function gm(e){return(e==null?void 0:e.animationName)||"none"}let ob=0;function cB(){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:B2()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:B2()),ob++,()=>{ob===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ob--}},[])}function B2(){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 ri=function(){return ri=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return EB;var t=PB(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])}},kB=OA(),OB=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(dB,` { + 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(sv,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(iv," .").concat(iv,` { + right: 0 `).concat(r,`; + } + + .`).concat(sv," .").concat(sv,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(fB,": ").concat(s,`px; + } +`)},RB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=S.useMemo(function(){return TB(o)},[o]);return S.createElement(kB,{styles:OB(a,!t,o,n?"":"!important")})},fw=!1;if(typeof window<"u")try{var ym=Object.defineProperty({},"passive",{get:function(){return fw=!0,!0}});window.addEventListener("test",ym,ym),window.removeEventListener("test",ym,ym)}catch{fw=!1}var kc=fw?{passive:!1}:!1,DB=function(e){return e.tagName==="TEXTAREA"},RA=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DB(e)&&n[t]==="visible")},MB=function(e){return RA(e,"overflowY")},IB=function(e){return RA(e,"overflowX")},U2=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=DA(e,n);if(r){var o=MA(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},AB=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},NB=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},DA=function(e,t){return e==="v"?MB(t):IB(t)},MA=function(e,t){return e==="v"?AB(t):NB(t)},jB=function(e,t){return e==="h"&&t==="rtl"?-1:1},LB=function(e,t,n,r,o){var a=jB(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=MA(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&DA(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},bm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W2=function(e){return[e.deltaX,e.deltaY]},H2=function(e){return e&&"current"in e?e.current:e},FB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zB=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},BB=0,Oc=[];function VB(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(BB++)[0],a=S.useState(function(){return OA()})[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=uB([e.lockRef.current],(e.shards||[]).map(H2),!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=bm(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,P=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&P==="h"&&$.type==="range")return!1;var k=U2(P,$);if(!k)return!0;if(k?_=P:(_=P==="v"?"h":"v",k=U2(P,$)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var A=r.current||_;return LB(A,x,v,A==="h"?w:C,!0)},[]),l=S.useCallback(function(v){var x=v;if(!(!Oc.length||Oc[Oc.length-1]!==a)){var g="deltaY"in x?W2(x):bm(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&FB(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(H2).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=bm(v),r.current=void 0},[]),f=S.useCallback(function(v){c(v.type,W2(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){c(v.type,bm(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return Oc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,kc),document.addEventListener("touchmove",l,kc),document.addEventListener("touchstart",u,kc),function(){Oc=Oc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,kc),document.removeEventListener("touchmove",l,kc),document.removeEventListener("touchstart",u,kc)}},[]);var m=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:zB(o)}):null,m?S.createElement(RB,{gapMode:"margin"}):null)}const UB=bB(kA,VB);var IA=S.forwardRef(function(e,t){return S.createElement(Ug,ri({},e,{ref:t,sideCar:UB}))});IA.classNames=Ug.classNames;const WB=IA;var HB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Rc=new WeakMap,xm=new WeakMap,wm={},sb=0,AA=function(e){return e&&(e.host||AA(e.parentNode))},qB=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=AA(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})},GB=function(e,t,n,r){var o=qB(t,Array.isArray(e)?e:[e]);wm[n]||(wm[n]=new WeakMap);var a=wm[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=(Rc.get(p)||0)+1,x=(a.get(p)||0)+1;Rc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&xm.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),sb++,function(){i.forEach(function(f){var p=Rc.get(f)-1,m=a.get(f)-1;Rc.set(f,p),a.set(f,m),p||(xm.has(f)||f.removeAttribute(r),xm.delete(f)),m||f.removeAttribute(n)}),sb--,sb||(Rc=new WeakMap,Rc=new WeakMap,xm=new WeakMap,wm={})}},YB=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||HB(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),GB(r,o,n,"aria-hidden")):function(){return null}};const NA="Dialog",[jA,qLe]=A7(NA),[KB,Ba]=jA(NA),XB=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]=F7({prop:r,defaultProp:o,onChange:a});return S.createElement(KB,{scope:t,triggerRef:s,contentRef:l,contentId:tb(),titleId:tb(),descriptionId:tb(),open:c,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),modal:i},n)},JB="DialogTrigger",ZB=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ba(JB,n),a=Gu(t,o.triggerRef);return S.createElement(Ks.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":t$(o.open)},r,{ref:a,onClick:Ls(e.onClick,o.onOpenToggle)}))}),LA="DialogPortal",[QB,FA]=jA(LA,{forceMount:void 0}),eV=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ba(LA,t);return S.createElement(QB,{scope:t,forceMount:n},S.Children.map(r,i=>S.createElement(Vg,{present:n||a.open},S.createElement(iB,{asChild:!0,container:o},i))))},pw="DialogOverlay",tV=S.forwardRef((e,t)=>{const n=FA(pw,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ba(pw,e.__scopeDialog);return a.modal?S.createElement(Vg,{present:r||a.open},S.createElement(nV,T({},o,{ref:t}))):null}),nV=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ba(pw,n);return S.createElement(WB,{as:e$,allowPinchZoom:!0,shards:[o.contentRef]},S.createElement(Ks.div,T({"data-state":t$(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),ip="DialogContent",rV=S.forwardRef((e,t)=>{const n=FA(ip,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ba(ip,e.__scopeDialog);return S.createElement(Vg,{present:r||a.open},a.modal?S.createElement(oV,T({},o,{ref:t})):S.createElement(aV,T({},o,{ref:t})))}),oV=S.forwardRef((e,t)=>{const n=Ba(ip,e.__scopeDialog),r=S.useRef(null),o=Gu(t,n.contentRef,r);return S.useEffect(()=>{const a=r.current;if(a)return YB(a)},[]),S.createElement(zA,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ls(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Ls(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:Ls(e.onFocusOutside,a=>a.preventDefault())}))}),aV=S.forwardRef((e,t)=>{const n=Ba(ip,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return S.createElement(zA,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()}}))}),zA=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ba(ip,n),l=S.useRef(null),c=Gu(t,l);return cB(),S.createElement(S.Fragment,null,S.createElement(Q7,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},S.createElement(X7,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":t$(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),iV="DialogTitle",sV=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ba(iV,n);return S.createElement(Ks.h2,T({id:o.titleId},r,{ref:t}))}),lV="DialogDescription",cV=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ba(lV,n);return S.createElement(Ks.p,T({id:o.descriptionId},r,{ref:t}))}),uV="DialogClose",dV=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ba(uV,n);return S.createElement(Ks.button,T({type:"button"},r,{ref:t,onClick:Ls(e.onClick,()=>o.onOpenChange(!1))}))});function t$(e){return e?"open":"closed"}const fV=XB,pV=ZB,hV=eV,mV=tV,vV=rV,gV=sV,yV=cV,bV=dV;var BA=I.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:()=>{}}),n$=()=>I.useContext(BA);function xV(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))}xV(`[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 wV=typeof window<"u"?S.useLayoutEffect:S.useEffect;function hw(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function CV(){return r$(/^Mac/)}function $V(){return r$(/^iPhone/)}function SV(){return r$(/^iPad/)||CV()&&navigator.maxTouchPoints>1}function VA(){return $V()||SV()}function r$(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var lb=typeof document<"u"&&window.visualViewport;function q2(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function UA(e){for(q2(e)&&(e=e.parentElement);e&&!q2(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var _V=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Cm=0,cb;function EV(e={}){let{isDisabled:t}=e;wV(()=>{if(!t)return Cm++,Cm===1&&(VA()?cb=TV():cb=PV()),()=>{Cm--,Cm===0&&cb()}},[t])}function PV(){return hw(Gv(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Gv(document.documentElement,"overflow","hidden"))}function TV(){let e,t=0,n=f=>{e=UA(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;Yv(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Yv(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",lb&&(lb.height{G2(p)}):lb.addEventListener("resize",()=>G2(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=hw(Gv(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Gv(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=hw(Vd(document,"touchstart",n,{passive:!1,capture:!0}),Vd(document,"touchmove",r,{passive:!1,capture:!0}),Vd(document,"touchend",o,{passive:!1,capture:!0}),Vd(document,"focus",a,!0),Vd(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Gv(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Vd(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function G2(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=UA(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 Yv(e){return e instanceof HTMLInputElement&&!_V.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function kV(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function OV(...e){return t=>e.forEach(n=>kV(n,t))}function WA(...e){return S.useCallback(OV(...e),e)}var ps=null;function RV({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=I.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 I.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),I.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var HA=new WeakMap;function Un(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&&HA.set(e,r)}function $m(e,t){if(!e||!(e instanceof HTMLElement))return;let n=HA.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function Sm(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 DV(e){return 8*(Math.log(e+1)-2)}var Tn={DURATION:.5,EASE:[.32,.72,0,1]},qA=.4;function GA(e){let t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function MV({defaultProp:e,onChange:t}){let n=I.useState(e),[r]=n,o=I.useRef(r),a=GA(t);return I.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function IV({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=MV({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=GA(n),l=I.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 AV({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=IV({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=I.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=I.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=I.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 P=_?$:C?w*window.innerHeight:0;return C?window.innerHeight-P:P}))!=null?y:[]},[n]),m=I.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=I.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Un(r.current,{transition:`transform ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Un(o.current,{transition:`opacity ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`,opacity:"0"}):Un(o.current,{transition:`opacity ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);I.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,P=f===0;if($&&Un(o.current,{transition:`opacity ${Tn.DURATION}s cubic-bezier(${Tn.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((A,D)=>typeof A!="number"||typeof D!="number"?A:Math.abs(D-_)qA&&Math.abs(y)0?1:-1;if(A>0&&c){b(p[n.length-1]);return}if(P&&A<0&&w(),f===null)return;b(p[f+A]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Un(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[_],P=y/Math.abs($);return C?1-P:P}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var NV=.25,jV=500,Y2=8,pl=16,K2=26;function YA({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=NV,scrollLockTimeout:c=jV,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]=I.useState(!1),[C,_]=I.useState(!1),[$,P]=I.useState(!1),[k,A]=I.useState(!1),[D,F]=I.useState(!1),[H,q]=I.useState(!1),z=I.useRef(null),B=I.useRef(null),G=I.useRef(null),Q=I.useRef(null),W=I.useRef(null),J=I.useRef(!1),Z=I.useRef(null),L=I.useRef(0),Y=I.useRef(!1),K=I.useRef(0),R=I.useRef(null),N=I.useRef(((g=R.current)==null?void 0:g.getBoundingClientRect().height)||0),V=I.useRef(0),X=I.useCallback(Pe=>{i&&Pe===ge.length-1&&(B.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:le,setActiveSnapPoint:xe,onRelease:fe,snapPointsOffset:ge,onDrag:he,shouldFade:_e,getPercentageDragged:ve}=AV({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:z,onSnapPointChange:X});EV({isDisabled:!y||D||!v||H||!C});let{restorePositionSetting:Be}=RV({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-K2)/window.innerWidth}function ze(Pe){var Te;!u&&!i||D||R.current&&!R.current.contains(Pe.target)||(N.current=((Te=R.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),G.current=new Date,VA()&&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=R.current?Sm(R.current):null;if(B.current&>.getTime()-B.current.getTime()<500)return!1;if(ne>0)return!0;if(Ne&&Ne.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 be(Pe){if(D){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,Un(R.current,{transition:"none"}),Un(z.current,{transition:"none"}),i&&he({draggedDistance:Te}),Te>0&&!i){let ie=DV(Te);Un(R.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),Un(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Ne*(1-Ue()),1),$e=8-Ne*8,Se=Math.max(0,14-Ne*14);Un(gt,{borderRadius:`${$e}px`,transform:`scale(${ie}) translate3d(0, ${Se}px, 0)`,transition:"none"},!0)}i||Un(R.current,{transform:`translate3d(0, ${ct}px, 0)`})}}I.useEffect(()=>()=>{rt(!1),Be()},[]),I.useEffect(()=>{var Pe;function Te(){var it;if(!R.current)return;let ct=document.activeElement;if(Yv(ct)||Y.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Ne=window.innerHeight-gt,ne=R.current.getBoundingClientRect().height||0;V.current||(V.current=ne);let te=R.current.getBoundingClientRect().top;if(Math.abs(K.current-Ne)>60&&(Y.current=!Y.current),i&&i.length>0&&ge&&le){let ie=ge[le]||0;Ne+=ie}if(K.current=Ne,ne>gt||Y.current){let ie=R.current.getBoundingClientRect().height,$e=ie;ie>gt&&($e=gt-K2),b?R.current.style.height=`${ie-Math.max(Ne,0)}px`:R.current.style.height=`${Math.max($e,gt-te)}px`}else R.current.style.height=`${V.current}px`;i&&i.length>0&&!Y.current?R.current.style.bottom="0px":R.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(){R.current&&(x==null||x(),R.current&&(Un(R.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`}),Un(z.current,{opacity:"0",transition:`opacity ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`}),rt(!1)),setTimeout(()=>{P(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}I.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{$m(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),I.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),I.useEffect(()=>{k&&(t==null||t(y))},[y]),I.useEffect(()=>{A(!0)},[]);function Ce(){if(!R.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=Sm(R.current);Un(R.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`}),Un(z.current,{transition:`opacity ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Un(Pe,{borderRadius:`${Y2}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Tn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Tn.EASE.join(",")})`},!0)}function Ge(Pe){if(!D||!R.current)return;J.current&&Yv(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=Sm(R.current);if(!He(Pe.target,!1)||!Te||Number.isNaN(Te)||G.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-G.current.getTime(),gt=L.current-it,Ne=Math.abs(gt)/ct;if(Ne>.05&&(q(!0),setTimeout(()=>{q(!1)},200)),i){fe({draggedDistance:gt,closeDrawer:we,velocity:Ne});return}if(gt>0){Ce(),a==null||a(Pe,!0);return}if(Ne>qA){we(),a==null||a(Pe,!1);return}let ne=Math.min(R.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),Ce()}I.useEffect(()=>{y&&(B.current=new Date,rt(!0))},[y]);function rt(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Un(document.body,{background:"black"},!0),Un(Te,{borderRadius:`${Y2}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${Tn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Tn.EASE.join(",")})`})):($m(Te,"overflow"),$m(Te,"transform"),$m(Te,"borderRadius"),Un(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${Tn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Tn.EASE.join(",")})`})))}function Ae(Pe){let Te=Pe?(window.innerWidth-pl)/window.innerWidth:1,it=Pe?-pl:0;Z.current&&window.clearTimeout(Z.current),Un(R.current,{transition:`transform ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&R.current&&(Z.current=setTimeout(()=>{Un(R.current,{transition:"none",transform:`translate3d(0, ${Sm(R.current)}px, 0)`})},500))}function Le(Pe,Te){if(Te<0)return;let it=(window.innerWidth-pl)/window.innerWidth,ct=it+Te*(1-it),gt=-pl+Te*pl;Un(R.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function Fe(Pe,Te){let it=Te?(window.innerWidth-pl)/window.innerWidth:1,ct=Te?-pl:0;Te&&Un(R.current,{transition:`transform ${Tn.DURATION}s cubic-bezier(${Tn.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return I.createElement(fV,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},I.createElement(BA.Provider,{value:{visible:$,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:R,overlayRef:z,scaleBackground:rt,onPress:ze,setVisible:P,onRelease:Ge,onDrag:be,dismissible:u,isOpen:y,shouldFade:_e,closeDrawer:we,onNestedDrag:Le,onNestedOpenChange:Ae,onNestedRelease:Fe,keyboardIsOpen:Y,modal:v,snapPointsOffset:ge}},n))}var KA=I.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=n$(),c=WA(n,r),u=o&&o.length>0;return I.createElement(mV,{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})});KA.displayName="Drawer.Overlay";var XA=I.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}=n$(),y=WA(i,s);return I.useEffect(()=>{g(!0)},[]),I.createElement(vV,{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)});XA.displayName="Drawer.Content";function LV({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=n$();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return I.createElement(YA,{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 Ud={Root:YA,NestedRoot:LV,Content:XA,Overlay:KA,Trigger:pV,Portal:hV,Close:bV,Title:gV,Description:yV};function FV(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var JA={exports:{}};(function(e,t){(function(n,r){if(typeof FV=="function")e.exports=r();else{var o=n.jsonSchemaDefaults;n.jsonSchemaDefaults=r(),n.jsonSchemaDefaults.noConflict=function(){var a=n.jsonSchemaDefaults;return n.jsonSchemaDefaults=o,a}}})(Qr,function(){var n=function(l){return typeof l=="object"&&l!==null&&l.toString()==={}.toString()},r=function(l){return JSON.parse(JSON.stringify(l))},o=function(l,c){l=r(l);for(var u in c)c.hasOwnProperty(u)&&(n(l[u])&&n(c[u])?l[u]=o(l[u],c[u]):l[u]=c[u]);return l},a=function(l,c){l=l.replace(/^#\/definitions\//,"").split("/");var u=function(p,m){var b=p.shift();return m[b]?p.length?u(p,m[b]):m[b]:{}},f=u(l,c);return n(f)?r(f):f},i=function(l,c){for(var u=l.length,f=-1,p={};++f"u"&&delete l.properties[p]);return l.properties}else if(l.type==="array"){if(!l.items)return[];var m=l.minItems||0;if(l.items.constructor===Array){for(var b=l.items.map(function(g){return s(g,c)}),v=b.length-1;v>=0&&!(typeof b[v]<"u");v--)v+1>m&&b.pop();return b}var x=s(l.items,c);if(typeof x>"u")return[];for(var b=[],v=0;v"u"?c=l.definitions||{}:n(l.definitions)&&(c=o(c,l.definitions)),s(r(l),c)}})})(JA);var zV=JA.exports,BV=zV;const VV=zt(BV);var UV=typeof Qr=="object"&&Qr&&Qr.Object===Object&&Qr,ZA=UV,WV=ZA,HV=typeof self=="object"&&self&&self.Object===Object&&self,qV=WV||HV||Function("return this")(),ro=qV,GV=ro,YV=GV.Symbol,Yu=YV,X2=Yu,QA=Object.prototype,KV=QA.hasOwnProperty,XV=QA.toString,Wd=X2?X2.toStringTag:void 0;function JV(e){var t=KV.call(e,Wd),n=e[Wd];try{e[Wd]=void 0;var r=!0}catch{}var o=XV.call(e);return r&&(t?e[Wd]=n:delete e[Wd]),o}var ZV=JV,QV=Object.prototype,eU=QV.toString;function tU(e){return eU.call(e)}var nU=tU,J2=Yu,rU=ZV,oU=nU,aU="[object Null]",iU="[object Undefined]",Z2=J2?J2.toStringTag:void 0;function sU(e){return e==null?e===void 0?iU:aU:Z2&&Z2 in Object(e)?rU(e):oU(e)}var Xs=sU;function lU(e){return e!=null&&typeof e=="object"}var qo=lU,cU=Xs,uU=qo,dU="[object Symbol]";function fU(e){return typeof e=="symbol"||uU(e)&&cU(e)==dU}var Ku=fU,pU=Ku;function hU(e,t,n){for(var r=-1,o=e.length;++rt}var gU=vU;function yU(){this.__data__=[],this.size=0}var bU=yU;function xU(e,t){return e===t||e!==e&&t!==t}var Op=xU,wU=Op;function CU(e,t){for(var n=e.length;n--;)if(wU(e[n][0],t))return n;return-1}var Wg=CU,$U=Wg,SU=Array.prototype,_U=SU.splice;function EU(e){var t=this.__data__,n=$U(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():_U.call(t,n,1),--this.size,!0}var PU=EU,TU=Wg;function kU(e){var t=this.__data__,n=TU(t,e);return n<0?void 0:t[n][1]}var OU=kU,RU=Wg;function DU(e){return RU(this.__data__,e)>-1}var MU=DU,IU=Wg;function AU(e,t){var n=this.__data__,r=IU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var NU=AU,jU=bU,LU=PU,FU=OU,zU=MU,BU=NU;function Xu(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&iq?new nq:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=oG}var c$=aG,iG=Xs,sG=c$,lG=qo,cG="[object Arguments]",uG="[object Array]",dG="[object Boolean]",fG="[object Date]",pG="[object Error]",hG="[object Function]",mG="[object Map]",vG="[object Number]",gG="[object Object]",yG="[object RegExp]",bG="[object Set]",xG="[object String]",wG="[object WeakMap]",CG="[object ArrayBuffer]",$G="[object DataView]",SG="[object Float32Array]",_G="[object Float64Array]",EG="[object Int8Array]",PG="[object Int16Array]",TG="[object Int32Array]",kG="[object Uint8Array]",OG="[object Uint8ClampedArray]",RG="[object Uint16Array]",DG="[object Uint32Array]",Mn={};Mn[SG]=Mn[_G]=Mn[EG]=Mn[PG]=Mn[TG]=Mn[kG]=Mn[OG]=Mn[RG]=Mn[DG]=!0;Mn[cG]=Mn[uG]=Mn[CG]=Mn[dG]=Mn[$G]=Mn[fG]=Mn[pG]=Mn[hG]=Mn[mG]=Mn[vG]=Mn[gG]=Mn[yG]=Mn[bG]=Mn[xG]=Mn[wG]=!1;function MG(e){return lG(e)&&sG(e.length)&&!!Mn[iG(e)]}var IG=MG;function AG(e){return function(t){return e(t)}}var u$=AG,Jv={exports:{}};Jv.exports;(function(e,t){var n=ZA,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})(Jv,Jv.exports);var d$=Jv.exports,NG=IG,jG=u$,lk=d$,ck=lk&&lk.isTypedArray,LG=ck?jG(ck):NG,Kg=LG,pb,uk;function dN(){if(uk)return pb;uk=1;var e=Uq(),t=Dp,n=ar,r=Mp,o=Ip,a=Kg,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 pb=l,pb}var FG=Object.prototype;function zG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||FG;return e===n}var Xg=zG;function BG(e,t){return function(n){return e(t(n))}}var fN=BG,VG=fN,UG=VG(Object.keys,Object),WG=UG,HG=Xg,qG=WG,GG=Object.prototype,YG=GG.hasOwnProperty;function KG(e){if(!HG(e))return qG(e);var t=[];for(var n in Object(e))YG.call(e,n)&&n!="constructor"&&t.push(n);return t}var f$=KG,XG=Rp,JG=c$;function ZG(e){return e!=null&&JG(e.length)&&!XG(e)}var Xi=ZG,hb,dk;function yi(){if(dk)return hb;dk=1;var e=dN(),t=f$,n=Xi;function r(o){return n(o)?e(o):t(o)}return hb=r,hb}var QG=sN,eY=l$,tY=yi();function nY(e){return QG(e,tY,eY)}var pN=nY,fk=pN,rY=1,oY=Object.prototype,aY=oY.hasOwnProperty;function iY(e,t,n,r,o,a){var i=n&rY,s=fk(e),l=s.length,c=fk(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:aY.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:JJ(e,t,n)}var QJ=ZJ,eZ="\\ud800-\\udfff",tZ="\\u0300-\\u036f",nZ="\\ufe20-\\ufe2f",rZ="\\u20d0-\\u20ff",oZ=tZ+nZ+rZ,aZ="\\ufe0e\\ufe0f",iZ="\\u200d",sZ=RegExp("["+iZ+eZ+oZ+aZ+"]");function lZ(e){return sZ.test(e)}var BN=lZ;function cZ(e){return e.split("")}var uZ=cZ,VN="\\ud800-\\udfff",dZ="\\u0300-\\u036f",fZ="\\ufe20-\\ufe2f",pZ="\\u20d0-\\u20ff",hZ=dZ+fZ+pZ,mZ="\\ufe0e\\ufe0f",vZ="["+VN+"]",xw="["+hZ+"]",ww="\\ud83c[\\udffb-\\udfff]",gZ="(?:"+xw+"|"+ww+")",UN="[^"+VN+"]",WN="(?:\\ud83c[\\udde6-\\uddff]){2}",HN="[\\ud800-\\udbff][\\udc00-\\udfff]",yZ="\\u200d",qN=gZ+"?",GN="["+mZ+"]?",bZ="(?:"+yZ+"(?:"+[UN,WN,HN].join("|")+")"+GN+qN+")*",xZ=GN+qN+bZ,wZ="(?:"+[UN+xw+"?",xw,WN,HN,vZ].join("|")+")",CZ=RegExp(ww+"(?="+ww+")|"+wZ+xZ,"g");function $Z(e){return e.match(CZ)||[]}var SZ=$Z,_Z=uZ,EZ=BN,PZ=SZ;function TZ(e){return EZ(e)?PZ(e):_Z(e)}var kZ=TZ,OZ=QJ,RZ=BN,DZ=kZ,MZ=nd;function IZ(e){return function(t){t=MZ(t);var n=RZ(t)?DZ(t):void 0,r=n?n[0]:t.charAt(0),o=n?OZ(n,1).join(""):t.slice(1);return r[e]()+o}}var AZ=IZ,NZ=AZ,jZ=NZ("toUpperCase"),LZ=jZ,FZ=KJ,zZ=LZ,BZ=FZ(function(e,t,n){return e+(n?" ":"")+zZ(t)}),YN=BZ;const Qg=zt(YN);var VZ=yi();const UZ=zt(VZ);var WZ=Ql,HZ=function(){try{var e=WZ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),KN=HZ,Dk=KN;function qZ(e,t,n){t=="__proto__"&&Dk?Dk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var g$=qZ,GZ=g$,YZ=Op;function KZ(e,t,n){(n!==void 0&&!YZ(e[t],n)||n===void 0&&!(t in e))&&GZ(e,t,n)}var XN=KZ;function XZ(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 JZ=XZ,ZZ=JZ,QZ=ZZ(),JN=QZ,Zv={exports:{}};Zv.exports;(function(e,t){var n=ro,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})(Zv,Zv.exports);var ZN=Zv.exports,Mk=oN;function eQ(e){var t=new e.constructor(e.byteLength);return new Mk(t).set(new Mk(e)),t}var y$=eQ,tQ=y$;function nQ(e,t){var n=t?tQ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var QN=nQ;function rQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=Eee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i3=kee,Oee=_ee,Ree=i3,Dee=Ree(Oee),$$=Dee,Mee=Jg,Iee=a3,Aee=$$;function Nee(e,t){return Aee(Iee(e,t,Mee),e+"")}var s3=Nee,jee=Op,Lee=Xi,Fee=Ip,zee=Go;function Bee(e,t,n){if(!zee(n))return!1;var r=typeof t;return(r=="number"?Lee(n)&&Fee(t,n.length):r=="string"&&t in n)?jee(n[t],e):!1}var l3=Bee,Vee=s3,Uee=l3;function Wee(e){return Vee(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&&Uee(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?X-2:1,le&&le<=X?re:gb(re,X)):re}},mixin:function(N){return function(V){var X=this;if(!C(X))return N(X,Object(V));var re=[];return g($(V),function(le){C(V[le])&&re.push([le,X.prototype[le]])}),N(X,Object(V)),g(re,function(le){var xe=le[1];C(xe)?X.prototype[le[0]]=xe:delete X.prototype[le[0]]}),X}},nthArg:function(N){return function(V){var X=V<0?1:k(V)+1;return x(N(V),X)}},rearg:function(N){return function(V,X){var re=X?X.length:0;return x(N(V,X),re)}},runInContext:function(N){return function(V){return Cw(e,N(V),r)}}};function H(N,V){if(i.cap){var X=mr.iterateeRearg[N];if(X)return Z(V,X);var re=!o&&mr.iterateeAry[N];if(re)return J(V,re)}return V}function q(N,V,X){return l||i.curry&&X>1?x(V,X):V}function z(N,V,X){if(i.fixed&&(c||!mr.skipFixed[N])){var re=mr.methodSpread[N],le=re&&re.start;return le===void 0?m(V,X):Ere(V,le)}return V}function B(N,V,X){return i.rearg&&X>1&&(u||!mr.skipRearg[N])?P(V,mr.methodRearg[N]||mr.aryRearg[X]):V}function G(N,V){V=A(V);for(var X=-1,re=V.length,le=re-1,xe=v(Object(N)),fe=xe;fe!=null&&++X1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(toe,`{ +/* [wrapped with `+t+`] */ +`)}var roe=noe;function ooe(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var E3=hoe,moe=S$,voe=E3,goe=1,yoe=2,boe=8,xoe=16,woe=32,Coe=64,$oe=128,Soe=256,_oe=512,Eoe=[["ary",$oe],["bind",goe],["bindKey",yoe],["curry",boe],["curryRight",xoe],["flip",_oe],["partial",woe],["partialRight",Coe],["rearg",Soe]];function Poe(e,t){return moe(Eoe,function(n){var r="_."+n[0];t&n[1]&&!voe(e,r)&&e.push(r)}),e.sort()}var Toe=Poe,koe=eoe,Ooe=roe,Roe=$$,Doe=Toe;function Moe(e,t,n){var r=t+"";return Roe(e,Ooe(r,Doe(koe(r),n)))}var P3=Moe,Ioe=C3(),Aoe=$3,Noe=P3,joe=1,Loe=2,Foe=4,zoe=8,cO=32,uO=64;function Boe(e,t,n,r,o,a,i,s,l,c){var u=t&zoe,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?cO:uO,t&=~(u?uO:cO),t&Foe||(t&=~(joe|Loe));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Ioe(e)&&Aoe(x,v),x.placeholder=r,Noe(x,e,t)}var T3=Boe;function Voe(e){var t=e;return t.placeholder}var k3=Voe,Uoe=Np,Woe=Ip,Hoe=Math.min;function qoe(e,t){for(var n=e.length,r=Hoe(t.length,n),o=Uoe(e);r--;){var a=t[r];e[r]=Woe(a,n)?o[a]:void 0}return e}var Goe=qoe,dO="__lodash_placeholder__";function Yoe(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?I3(s,t-1,n,r,o):zie(o,s):r||(o[o.length]=s)}return o}var A3=I3,Vie=A3;function Uie(e){var t=e==null?0:e.length;return t?Vie(e,1):[]}var Wie=Uie,Hie=Wie,qie=a3,Gie=$$;function Yie(e){return Gie(qie(e,void 0,Hie),e+"")}var D$=Yie,Kie=O$,Xie=D$,Jie=256,Zie=Xie(function(e,t){return Kie(e,Jie,void 0,void 0,void 0,t)}),Qie=Zie,ese=td,tse=Np,nse=ar,rse=Ku,ose=wN,ase=tc,ise=nd;function sse(e){return nse(e)?ese(e,ase):rse(e)?[e]:tse(ose(ise(e)))}var lse=sse,cse={ary:die,assign:c3,clone:mie,curry:yie,forEach:S$,isArray:ar,isError:_ie,isFunction:Rp,isWeakMap:Oie,iteratee:Aie,keys:f$,rearg:Qie,toInteger:Lp,toPath:lse},use=Pre,dse=cse;function fse(e,t,n){return use(dse,e,t,n)}var od=fse,Mb,EO;function pse(){if(EO)return Mb;EO=1;var e=w$,t=Ap,n=Ip,r=Go,o=tc;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 Zse=Jse,Qse=Zse,ele=$N,tle=Lp,nle=nd;function rle(e,t,n){e=nle(e),t=ele(t);var r=e.length;n=n===void 0?r:Qse(tle(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var ole=rle;const ale=zt(ole);function ile(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var sle=ile,lle=EN,cle=M$,ule=nc,dle=sle,fle=ar;function ple(e,t,n){var r=fle(e)?lle:dle,o=arguments.length<3;return r(e,ule(t),n,o,cle)}var hle=ple;const $w=zt(hle);var mle=td;function vle(e,t){return mle(t,function(n){return[n,e[n]]})}var gle=vle;function yle(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var ble=yle,xle=gle,wle=ec,Cle=aN,$le=ble,Sle="[object Map]",_le="[object Set]";function Ele(e){return function(t){var n=wle(t);return n==Sle?Cle(t):n==_le?$le(t):xle(t,e(t))}}var Ple=Ele,Tle=Ple,kle=yi(),Ole=Tle(kle),Rle=Ole;const Dle=zt(Rle);var Mle=Xs,Ile=ar,Ale=qo,Nle="[object String]";function jle(e){return typeof e=="string"||!Ile(e)&&Ale(e)&&Mle(e)==Nle}var Lle=jle,Fle=td;function zle(e,t){return Fle(t,function(n){return e[n]})}var Ble=zle,Vle=Ble,Ule=yi();function Wle(e){return e==null?[]:Vle(e,Ule(e))}var Hle=Wle,qle=_3,Gle=Xi,Yle=Lle,Kle=Lp,Xle=Hle,Jle=Math.max;function Zle(e,t,n,r){e=Gle(e)?e:Xle(e),n=n&&!r?Kle(n):0;var o=e.length;return n<0&&(n=Jle(o+n,0)),Yle(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qle(e,t,n)>-1}var Qle=Zle;const z3=zt(Qle);var ece=nc,tce=Xi,nce=yi();function rce(e){return function(t,n,r){var o=Object(t);if(!tce(t)){var a=ece(n);t=nce(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 oce=rce,ace=S3,ice=nc,sce=Lp,lce=Math.max;function cce(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:sce(n);return o<0&&(o=lce(r+o,0)),ace(e,ice(t),o)}var uce=cce,dce=oce,fce=uce,pce=dce(fce),hce=pce;const I$=zt(hce);var mce=Math.ceil,vce=Math.max;function gce(e,t,n,r){for(var o=-1,a=vce(mce((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var yce=gce,bce=yce,xce=l3,Ab=M3;function wce(e){return function(t,n,r){return r&&typeof r!="number"&&xce(t,n,r)&&(n=r=void 0),t=Ab(t),n===void 0?(n=t,t=0):n=Ab(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})(_w);(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=sp,n=_w;var r=sp;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=_w;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(R,N){return this}}class i extends a{constructor(R,N,V){super(),this.varKind=R,this.name=N,this.rhs=V}render({es5:R,_n:N}){const V=R?n.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${X};`+N}optimizeNames(R,N){if(R[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,R,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(R,N,V){super(),this.lhs=R,this.rhs=N,this.sideEffects=V}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,N){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,R,N),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return q(R,this.rhs)}}class l extends s{constructor(R,N,V,X){super(R,V,X),this.op=N}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class c extends a{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class u extends a{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends a{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class p extends a{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,N){return this.code=z(this.code,R,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((N,V)=>N+V.render(R),"")}optimizeNodes(){const{nodes:R}=this;let N=R.length;for(;N--;){const V=R[N].optimizeNodes();Array.isArray(V)?R.splice(N,1,...V):V?R[N]=V:R.splice(N,1)}return R.length>0?this:void 0}optimizeNames(R,N){const{nodes:V}=this;let X=V.length;for(;X--;){const re=V[X];re.optimizeNames(R,N)||(B(R,re.names),V.splice(X,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((R,N)=>H(R,N.names),{})}}class b extends m{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(R,N){super(N),this.condition=R}render(R){let N=`if(${this.condition})`+super.render(R);return this.else&&(N+="else "+this.else.render(R)),N}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!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 R===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(G(R),N instanceof g?[N]:N.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,N){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(R,N),!!(super.optimizeNames(R,N)||this.else))return this.condition=z(this.condition,R,N),this}get names(){const R=super.names;return q(R,this.condition),this.else&&H(R,this.else.names),R}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,N){if(super.optimizeNames(R,N))return this.iteration=z(this.iteration,R,N),this}get names(){return H(super.names,this.iteration.names)}}class C extends y{constructor(R,N,V,X){super(),this.varKind=R,this.name=N,this.from=V,this.to=X}render(R){const N=R.es5?n.varKinds.var:this.varKind,{name:V,from:X,to:re}=this;return`for(${N} ${V}=${X}; ${V}<${re}; ${V}++)`+super.render(R)}get names(){const R=q(super.names,this.from);return q(R,this.to)}}class _ extends y{constructor(R,N,V,X){super(),this.loop=R,this.varKind=N,this.name=V,this.iterable=X}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,N){if(super.optimizeNames(R,N))return this.iterable=z(this.iterable,R,N),this}get names(){return H(super.names,this.iterable.names)}}class $ extends b{constructor(R,N,V){super(),this.name=R,this.args=N,this.async=V}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}$.kind="func";class P extends m{render(R){return"return "+super.render(R)}}P.kind="return";class k extends b{render(R){let N="try"+super.render(R);return this.catch&&(N+=this.catch.render(R)),this.finally&&(N+=this.finally.render(R)),N}optimizeNodes(){var R,N;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(R,N){var V,X;return super.optimizeNames(R,N),(V=this.catch)===null||V===void 0||V.optimizeNames(R,N),(X=this.finally)===null||X===void 0||X.optimizeNames(R,N),this}get names(){const R=super.names;return this.catch&&H(R,this.catch.names),this.finally&&H(R,this.finally.names),R}}class A extends b{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}A.kind="catch";class D extends b{render(R){return"finally"+super.render(R)}}D.kind="finally";class F{constructor(R,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=R,this._scope=new n.Scope({parent:R}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,N){const V=this._extScope.value(R,N);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(R,N){return this._extScope.getValue(R,N)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,N,V,X){const re=this._scope.toName(N);return V!==void 0&&X&&(this._constants[re.str]=V),this._leafNode(new i(R,re,V)),re}const(R,N,V){return this._def(n.varKinds.const,R,N,V)}let(R,N,V){return this._def(n.varKinds.let,R,N,V)}var(R,N,V){return this._def(n.varKinds.var,R,N,V)}assign(R,N,V){return this._leafNode(new s(R,N,V))}add(R,N){return this._leafNode(new l(R,e.operators.ADD,N))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new p(R)),this}object(...R){const N=["{"];for(const[V,X]of R)N.length>1&&N.push(","),N.push(V),(V!==X||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,X));return N.push("}"),new t._Code(N)}if(R,N,V){if(this._blockNode(new g(R)),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(R){return this._elseNode(new g(R))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(R,N){return this._blockNode(R),N&&this.code(N).endFor(),this}for(R,N){return this._for(new w(R),N)}forRange(R,N,V,X,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const le=this._scope.toName(R);return this._for(new C(re,le,N,V),()=>X(le))}forOf(R,N,V,X=n.varKinds.const){const re=this._scope.toName(R);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",X,re,N),()=>V(re))}forIn(R,N,V,X=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${N})`,V);const re=this._scope.toName(R);return this._for(new _("in",X,re,N),()=>V(re))}endFor(){return this._endBlockNode(y)}label(R){return this._leafNode(new c(R))}break(R){return this._leafNode(new u(R))}return(R){const N=new P;if(this._blockNode(N),this.code(R),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(P)}try(R,N,V){if(!N&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new k;if(this._blockNode(X),this.code(R),N){const re=this.name("e");this._currNode=X.catch=new A(re),N(re)}return V&&(this._currNode=X.finally=new D,this.code(V)),this._endBlockNode(A,D)}throw(R){return this._leafNode(new f(R))}block(R,N){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(N),this}endBlock(R){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||R!==void 0&&V!==R)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${R} expected`);return this._nodes.length=N,this}func(R,N=t.nil,V,X){return this._blockNode(new $(R,N,V)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,N){const V=this._currNode;if(V instanceof R||N&&V instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${R.kind}/${N.kind}`:R.kind}"`)}_elseNode(R){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const N=this._nodes;N[N.length-1]=R}}e.CodeGen=F;function H(K,R){for(const N in R)K[N]=(K[N]||0)+(R[N]||0);return K}function q(K,R){return R instanceof t._CodeOrName?H(K,R.names):K}function z(K,R,N){if(K instanceof t.Name)return V(K);if(!X(K))return K;return new t._Code(K._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||R[re.str]!==1?re:(delete R[re.str],le)}function X(re){return re instanceof t._Code&&re._items.some(le=>le instanceof t.Name&&R[le.str]===1&&N[le.str]!==void 0)}}function B(K,R){for(const N in R)K[N]=(K[N]||0)-(R[N]||0)}function G(K){return typeof K=="boolean"||typeof K=="number"||K===null?!K:(0,t._)`!${Y(K)}`}e.not=G;const Q=L(e.operators.AND);function W(...K){return K.reduce(Q)}e.and=W;const J=L(e.operators.OR);function Z(...K){return K.reduce(J)}e.or=Z;function L(K){return(R,N)=>R===t.nil?N:N===t.nil?R:(0,t._)`${Y(R)} ${K} ${Y(N)}`}function Y(K){return K instanceof t.Name?K:(0,t._)`(${K})`}})(Xt);var un={};(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=Xt,n=sp;function r($){const P={};for(const k of $)P[k]=!0;return P}e.toHash=r;function o($,P){return typeof P=="boolean"?P:Object.keys(P).length===0?!0:(a($,P),!i(P,$.self.RULES.all))}e.alwaysValidSchema=o;function a($,P=$.schema){const{opts:k,self:A}=$;if(!k.strictSchema||typeof P=="boolean")return;const D=A.RULES.keywords;for(const F in P)D[F]||_($,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i($,P){if(typeof $=="boolean")return!$;for(const k in $)if(P[k])return!0;return!1}e.schemaHasRules=i;function s($,P){if(typeof $=="boolean")return!$;for(const k in $)if(k!=="$ref"&&P.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:$,schemaPath:P},k,A,D){if(!D){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${$}${P}${(0,t.getProperty)(A)}`}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($,P){if(Array.isArray($))for(const k of $)P(k);else P($)}e.eachItem=m;function b({mergeNames:$,mergeToName:P,mergeValues:k,resultToName:A}){return(D,F,H,q)=>{const z=H===void 0?F:H instanceof t.Name?(F instanceof t.Name?$(D,F,H):P(D,F,H),H):F instanceof t.Name?(P(D,H,F),F):k(F,H);return q===t.Name&&!(z instanceof t.Name)?A(D,z):z}}e.mergeEvaluated={props:b({mergeNames:($,P,k)=>$.if((0,t._)`${k} !== true && ${P} !== undefined`,()=>{$.if((0,t._)`${P} === true`,()=>$.assign(k,!0),()=>$.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${P})`))}),mergeToName:($,P,k)=>$.if((0,t._)`${k} !== true`,()=>{P===!0?$.assign(k,!0):($.assign(k,(0,t._)`${k} || {}`),x($,k,P))}),mergeValues:($,P)=>$===!0?!0:{...$,...P},resultToName:v}),items:b({mergeNames:($,P,k)=>$.if((0,t._)`${k} !== true && ${P} !== undefined`,()=>$.assign(k,(0,t._)`${P} === true ? true : ${k} > ${P} ? ${k} : ${P}`)),mergeToName:($,P,k)=>$.if((0,t._)`${k} !== true`,()=>$.assign(k,P===!0?!0:(0,t._)`${k} > ${P} ? ${k} : ${P}`)),mergeValues:($,P)=>$===!0?!0:Math.max($,P),resultToName:($,P)=>$.var("items",P)})};function v($,P){if(P===!0)return $.var("props",!0);const k=$.var("props",(0,t._)`{}`);return P!==void 0&&x($,k,P),k}e.evaluatedPropsToName=v;function x($,P,k){Object.keys(k).forEach(A=>$.assign((0,t._)`${P}${(0,t.getProperty)(A)}`,!0))}e.setEvaluated=x;const g={};function y($,P){return $.scopeValue("func",{ref:P,code:g[P.code]||(g[P.code]=new n._Code(P.code))})}e.useFunc=y;var w;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(w=e.Type||(e.Type={}));function C($,P,k){if($ instanceof t.Name){const A=P===w.Num;return k?A?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:A?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)($).toString():"/"+f($)}e.getErrorPath=C;function _($,P,k=$.opts.strictSchema){if(k){if(P=`strict mode: ${P}`,k===!0)throw new Error(P);$.self.logger.warn(P)}}e.checkStrictMode=_})(un);var bi={};Object.defineProperty(bi,"__esModule",{value:!0});const Lr=Xt,Ace={data:new Lr.Name("data"),valCxt:new Lr.Name("valCxt"),instancePath:new Lr.Name("instancePath"),parentData:new Lr.Name("parentData"),parentDataProperty:new Lr.Name("parentDataProperty"),rootData:new Lr.Name("rootData"),dynamicAnchors:new Lr.Name("dynamicAnchors"),vErrors:new Lr.Name("vErrors"),errors:new Lr.Name("errors"),this:new Lr.Name("this"),self:new Lr.Name("self"),scope:new Lr.Name("scope"),json:new Lr.Name("json"),jsonPos:new Lr.Name("jsonPos"),jsonLen:new Lr.Name("jsonLen"),jsonPart:new Lr.Name("jsonPart")};bi.default=Ace;(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=Xt,n=un,r=bi;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:P}=C,k=f(x,g,y);w??($||P)?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,P=f(x,g,y);l(C,P),_||$||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,P=>{x.const($,(0,t._)`${r.default.vErrors}[${P}]`),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:P}=x,{opts:k,propertyName:A,topSchemaRef:D,schemaPath:F}=P;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._)`${D}${F}`],[r.default.data,_]),A&&w.push([u.propertyName,A])}})(Fp);Object.defineProperty(Ru,"__esModule",{value:!0});Ru.boolOrEmptySchema=Ru.topBoolOrEmptySchema=void 0;const Nce=Fp,jce=Xt,Lce=bi,Fce={message:"boolean schema is false"};function zce(e){const{gen:t,schema:n,validateName:r}=e;n===!1?V3(e,!1):typeof n=="object"&&n.$async===!0?t.return(Lce.default.data):(t.assign((0,jce._)`${r}.errors`,null),t.return(!0))}Ru.topBoolOrEmptySchema=zce;function Bce(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),V3(e)):n.var(t,!0)}Ru.boolOrEmptySchema=Bce;function V3(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,Nce.reportError)(o,Fce,void 0,t)}var zp={},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.getRules=Vl.isJSONType=void 0;const Vce=["string","number","integer","boolean","null","object","array"],Uce=new Set(Vce);function Wce(e){return typeof e=="string"&&Uce.has(e)}Vl.isJSONType=Wce;function Hce(){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:{}}}Vl.getRules=Hce;var zi={};Object.defineProperty(zi,"__esModule",{value:!0});zi.shouldUseRule=zi.shouldUseGroup=zi.schemaHasRulesForType=void 0;function qce({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&U3(e,r)}zi.schemaHasRulesForType=qce;function U3(e,t){return t.rules.some(n=>W3(e,n))}zi.shouldUseGroup=U3;function W3(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))}zi.shouldUseRule=W3;(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=Vl,n=zi,r=Fp,o=Xt,a=un;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:P}=w,k=f(C,P.coerceTypes),A=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(A){const D=v(C,$,P.strictNumbers,i.Wrong);_.if(D,()=>{k.length?p(w,C,k):g(w)})}return A}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:P,opts:k}=w,A=$.let("dataType",(0,o._)`typeof ${P}`),D=$.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&$.if((0,o._)`${A} == 'object' && Array.isArray(${P}) && ${P}.length == 1`,()=>$.assign(P,(0,o._)`${P}[0]`).assign(A,(0,o._)`typeof ${P}`).if(v(C,P,k.strictNumbers),()=>$.assign(D,P))),$.if((0,o._)`${D} !== undefined`);for(const H of _)(u.has(H)||H==="array"&&k.coerceTypes==="array")&&F(H);$.else(),g(w),$.endIf(),$.if((0,o._)`${D} !== undefined`,()=>{$.assign(P,D),m(w,D)});function F(H){switch(H){case"string":$.elseIf((0,o._)`${A} == "number" || ${A} == "boolean"`).assign(D,(0,o._)`"" + ${P}`).elseIf((0,o._)`${P} === null`).assign(D,(0,o._)`""`);return;case"number":$.elseIf((0,o._)`${A} == "boolean" || ${P} === null + || (${A} == "string" && ${P} && ${P} == +${P})`).assign(D,(0,o._)`+${P}`);return;case"integer":$.elseIf((0,o._)`${A} === "boolean" || ${P} === null + || (${A} === "string" && ${P} && ${P} == +${P} && !(${P} % 1))`).assign(D,(0,o._)`+${P}`);return;case"boolean":$.elseIf((0,o._)`${P} === "false" || ${P} === 0 || ${P} === null`).assign(D,!1).elseIf((0,o._)`${P} === "true" || ${P} === 1`).assign(D,!0);return;case"null":$.elseIf((0,o._)`${P} === "" || ${P} === 0 || ${P} === false`),$.assign(D,null);return;case"array":$.elseIf((0,o._)`${A} === "string" || ${A} === "number" + || ${A} === "boolean" || ${P} === null`).assign(D,(0,o._)`[${P}]`)}}}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 P=$===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${P} 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=A((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=A();break;default:return(0,o._)`typeof ${C} ${P} ${w}`}return $===i.Correct?k:(0,o.not)(k);function A(D=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,D,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,$){if(w.length===1)return b(w[0],C,_,$);let P;const k=(0,a.toHash)(w);if(k.array&&k.object){const A=(0,o._)`typeof ${C} != "object"`;P=k.null?A:(0,o._)`!${C} || ${A}`,delete k.null,delete k.array,delete k.object}else P=o.nil;k.number&&delete k.integer;for(const A in k)P=(0,o.and)(P,b(A,C,_,$));return P}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,P=(0,a.schemaRefOrVal)(w,$,"type");return{gen:C,keyword:"type",data:_,schema:$.type,schemaCode:P,schemaValue:P,parentSchema:$,params:{},it:w}}})(zp);var ry={};Object.defineProperty(ry,"__esModule",{value:!0});ry.assignDefaults=void 0;const Dc=Xt,Gce=un;function Yce(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)TO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>TO(e,a,o.default))}ry.assignDefaults=Yce;function TO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Dc._)`${a}${(0,Dc.getProperty)(t)}`;if(o){(0,Gce.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Dc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Dc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Dc._)`${s} = ${(0,Dc.stringify)(n)}`)}var si={},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 In=Xt,A$=un,hs=bi,Kce=un;function Xce(e,t){const{gen:n,data:r,it:o}=e;n.if(j$(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,In._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Xce;function Jce({gen:e,data:t,it:{opts:n}},r,o){return(0,In.or)(...r.map(a=>(0,In.and)(j$(e,t,a,n.ownProperties),(0,In._)`${o} = ${a}`)))}Qt.checkMissingProp=Jce;function Zce(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Zce;function H3(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,In._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=H3;function N$(e,t,n){return(0,In._)`${H3(e)}.call(${t}, ${n})`}Qt.isOwnProperty=N$;function Qce(e,t,n,r){const o=(0,In._)`${t}${(0,In.getProperty)(n)} !== undefined`;return r?(0,In._)`${o} && ${N$(e,t,n)}`:o}Qt.propertyInData=Qce;function j$(e,t,n,r){const o=(0,In._)`${t}${(0,In.getProperty)(n)} === undefined`;return r?(0,In.or)(o,(0,In.not)(N$(e,t,n))):o}Qt.noPropertyInData=j$;function q3(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=q3;function eue(e,t){return q3(t).filter(n=>!(0,A$.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=eue;function tue({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,In._)`${e}, ${t}, ${r}${o}`:t,f=[[hs.default.instancePath,(0,In.strConcat)(hs.default.instancePath,a)],[hs.default.parentData,i.parentData],[hs.default.parentDataProperty,i.parentDataProperty],[hs.default.rootData,hs.default.rootData]];i.opts.dynamicRef&&f.push([hs.default.dynamicAnchors,hs.default.dynamicAnchors]);const p=(0,In._)`${u}, ${n.object(...f)}`;return l!==In.nil?(0,In._)`${s}.call(${l}, ${p})`:(0,In._)`${s}(${p})`}Qt.callValidateCode=tue;const nue=(0,In._)`new RegExp`;function rue({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,In._)`${o.code==="new RegExp"?nue:(0,Kce.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=rue;function oue(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,In._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:A$.Type.Num},a),t.if((0,In.not)(a),s)})}}Qt.validateArray=oue;function aue(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,A$.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,In._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,In.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=aue;Object.defineProperty(si,"__esModule",{value:!0});si.validateKeywordUsage=si.validSchemaType=si.funcKeywordCode=si.macroKeywordCode=void 0;const Zr=Xt,Sl=bi,iue=Qt,sue=Fp;function lue(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=G3(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:Zr.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}si.macroKeywordCode=lue;function cue(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;due(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=G3(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&&kO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&kO(e),x(()=>uue(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,Zr._)`await `),y=>r.assign(f,!1).if((0,Zr._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,Zr._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,Zr._)`${u}.errors`;return r.assign(g,null),v(Zr.nil),g}function v(g=t.async?(0,Zr._)`await `:Zr.nil){const y=l.opts.passContext?Sl.default.this:Sl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,Zr._)`${g}${(0,iue.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,Zr.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}si.funcKeywordCode=cue;function kO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,Zr._)`${r.parentData}[${r.parentDataProperty}]`))}function uue(e,t){const{gen:n}=e;n.if((0,Zr._)`Array.isArray(${t})`,()=>{n.assign(Sl.default.vErrors,(0,Zr._)`${Sl.default.vErrors} === null ? ${t} : ${Sl.default.vErrors}.concat(${t})`).assign(Sl.default.errors,(0,Zr._)`${Sl.default.vErrors}.length`),(0,sue.extendErrors)(e)},()=>e.error())}function due({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function G3(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,Zr.stringify)(n)})}function fue(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")}si.validSchemaType=fue;function pue({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)}}si.validateKeywordUsage=pue;var Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.extendSubschemaMode=Fs.extendSubschemaData=Fs.getSubschema=void 0;const oi=Xt,Y3=un;function hue(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,oi._)`${e.schemaPath}${(0,oi.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,oi._)`${e.schemaPath}${(0,oi.getProperty)(t)}${(0,oi.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Y3.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')}Fs.getSubschema=hue;function mue(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,oi._)`${t.data}${(0,oi.getProperty)(n)}`,!0);l(p),e.errorPath=(0,oi.str)`${c}${(0,Y3.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,oi._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof oi.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]}}Fs.extendSubschemaData=mue;function vue(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}Fs.extendSubschemaMode=vue;var Rr={},K3=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},X3={exports:{}},Es=X3.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(){};cv(t,r,o,e,"",e)};Es.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Es.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Es.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Es.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 cv(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 Es.arrayKeywords)for(var p=0;pt+=J3(r)),t===1/0))return 1/0}return t}function Z3(e,t="",n){n!==!1&&(t=vu(t));const r=e.parse(t);return Q3(e,r)}Rr.getFullPath=Z3;function Q3(e,t){return e.serialize(t).split("#")[0]+"#"}Rr._getFullPath=Q3;const _ue=/#\/?$/;function vu(e){return e?e.replace(_ue,""):""}Rr.normalizeId=vu;function Eue(e,t,n){return n=vu(n),e.resolve(t,n)}Rr.resolveUrl=Eue;const Pue=/^[a-z_][-a-z0-9._]*$/i;function Tue(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=vu(e[n]||t),a={"":o},i=Z3(r,o,!1),s={},l=new Set;return wue(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=vu(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!==vu(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!Pue.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!xue(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Rr.getSchemaRefs=Tue;Object.defineProperty(La,"__esModule",{value:!0});La.getData=La.KeywordCxt=La.validateFunctionCode=void 0;const ej=Ru,OO=zp,L$=zi,eg=zp,kue=ry,Ef=si,Nb=Fs,St=Xt,Lt=bi,Oue=Rr,Bi=un,qd=Fp;function Rue(e){if(rj(e)&&(oj(e),nj(e))){Iue(e);return}tj(e,()=>(0,ej.topBoolOrEmptySchema)(e))}La.validateFunctionCode=Rue;function tj({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"; ${RO(n,o)}`),Mue(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Due(o)}`,r.$async,()=>e.code(RO(n,o)).code(a))}function Due(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 Mue(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 Iue(e){const{schema:t,opts:n,gen:r}=e;tj(e,()=>{n.$comment&&t.$comment&&ij(e),Fue(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Aue(e),aj(e),Vue(e)})}function Aue(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 RO(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 Nue(e,t){if(rj(e)&&(oj(e),nj(e))){jue(e,t);return}(0,ej.boolOrEmptySchema)(e,t)}function nj({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 rj(e){return typeof e.schema!="boolean"}function jue(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&ij(e),zue(e),Bue(e);const a=r.const("_errs",Lt.default.errors);aj(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function oj(e){(0,Bi.checkUnknownRules)(e),Lue(e)}function aj(e,t){if(e.opts.jtd)return DO(e,[],!1,t);const n=(0,OO.getSchemaTypes)(e.schema),r=(0,OO.coerceAndCheckDataType)(e,n);DO(e,n,!r,t)}function Lue(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Bi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Fue(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Bi.checkStrictMode)(e,"default is ignored in the schema root")}function zue(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Oue.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Bue(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function ij({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 Vue(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&&Uue(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Uue({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 DO(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,Bi.schemaHasRulesButRef)(a,u))){o.block(()=>cj(e,"$ref",u.all.$ref.definition));return}l.jtd||Wue(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,L$.shouldUseGroup)(a,p)&&(p.type?(o.if((0,eg.checkDataType)(p.type,i,l.strictNumbers)),MO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,eg.reportTypeError)(e)),o.endIf()):MO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function MO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,kue.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,L$.shouldUseRule)(r,a)&&cj(e,a.keyword,a.definition,t.type)})}function Wue(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Hue(e,t),e.opts.allowUnionTypes||que(e,t),Gue(e,e.dataTypes))}function Hue(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{sj(e.dataTypes,n)||F$(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Kue(e,t)}}function que(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&F$(e,"use allowUnionTypes to allow union type keyword")}function Gue(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,L$.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Yue(t,i))&&F$(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Yue(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function sj(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Kue(e,t){const n=[];for(const r of e.dataTypes)sj(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function F$(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Bi.checkStrictMode)(e,t,e.opts.strictTypes)}class lj{constructor(t,n,r){if((0,Ef.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,Bi.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",uj(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ef.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?qd.reportExtraError:qd.reportError)(this,this.def.error,n)}$dataError(){(0,qd.reportError)(this,this.def.$dataError||qd.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,qd.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,eg.checkDataTypes)(l,n,a.opts.strictNumbers,eg.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,Nb.getSubschema)(this.it,t);(0,Nb.extendSubschemaData)(r,this.it,t),(0,Nb.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return Nue(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Bi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Bi.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}}La.KeywordCxt=lj;function cj(e,t,n,r){const o=new lj(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Ef.funcKeywordCode)(o,n):"macro"in n?(0,Ef.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Ef.funcKeywordCode)(o,n)}const Xue=/^\/(?:[^~]|~0|~1)*$/,Jue=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function uj(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Xue.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Jue.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,Bi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}La.getData=uj;var Bp={};Object.defineProperty(Bp,"__esModule",{value:!0});class Zue extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Bp.default=Zue;var Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});const jb=Rr;class Que extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,jb.resolveUrl)(t,n,r),this.missingSchema=(0,jb.normalizeId)((0,jb.getFullPath)(t,this.missingRef))}}Vp.default=Que;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});fo.resolveSchema=fo.getCompilingSchema=fo.resolveRef=fo.compileSchema=fo.SchemaEnv=void 0;const _a=Xt,ede=Bp,hl=bi,Ra=Rr,IO=un,tde=La;class oy{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,Ra.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={}}}fo.SchemaEnv=oy;function z$(e){const t=dj.call(this,e);if(t)return t;const n=(0,Ra.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new _a.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:ede.default,code:(0,_a._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:hl.default.data,parentData:hl.default.parentData,parentDataProperty:hl.default.parentDataProperty,dataNames:[hl.default.data],dataPathArr:[_a.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,_a.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:_a.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_a._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,tde.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(hl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${hl.default.self}`,`${hl.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 _a.Name?void 0:b,items:v instanceof _a.Name?void 0:v,dynamicProps:b instanceof _a.Name,dynamicItems:v instanceof _a.Name},m.source&&(m.source.evaluated=(0,_a.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)}}fo.compileSchema=z$;function nde(e,t,n){var r;n=(0,Ra.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=ade.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 oy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=rde.call(this,a)}fo.resolveRef=nde;function rde(e){return(0,Ra.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:z$.call(this,e)}function dj(e){for(const t of this._compilations)if(ode(t,e))return t}fo.getCompilingSchema=dj;function ode(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function ade(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||ay.call(this,e,t)}function ay(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Ra._getFullPath)(this.opts.uriResolver,n);let o=(0,Ra.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Lb.call(this,n,e);const a=(0,Ra.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=ay.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Lb.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||z$.call(this,i),a===(0,Ra.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Ra.resolveUrl)(this.opts.uriResolver,o,c)),new oy({schema:s,schemaId:l,root:e,baseId:o})}return Lb.call(this,n,i)}}fo.resolveSchema=ay;const ide=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Lb(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,IO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!ide.has(s)&&c&&(t=(0,Ra.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,IO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Ra.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=ay.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new oy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const sde="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",lde="Meta-schema for $data reference (JSON AnySchema extension proposal)",cde="object",ude=["$data"],dde={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},fde=!1,pde={$id:sde,description:lde,type:cde,required:ude,properties:dde,additionalProperties:fde};var B$={},Pw={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)})(Qr,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,H=Math.floor,q=String.fromCharCode;function z(se){throw new RangeError(D[se])}function B(se,oe){for(var ue=[],ke=se.length;ke--;)ue[ke]=oe(se[ke]);return ue}function G(se,oe){var ue=se.split("@"),ke="";ue.length>1&&(ke=ue[0]+"@",se=ue[1]),se=se.replace(A,".");var Ee=se.split("."),pt=B(Ee,oe).join(".");return ke+pt}function Q(se){for(var oe=[],ue=0,ke=se.length;ue=55296&&Ee<=56319&&ue>1,oe+=H(oe/ue);oe>F*g>>1;Ee+=v)oe=H(oe/F);return H(Ee+(F+1)*oe/(oe+y))},Y=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&&z("not-basic"),ue.push(oe.charCodeAt(De));for(var nt=pe>0?pe+1:0;nt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(nt++));(ut>=v||ut>H((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=me?x:Nt>=me+g?g:Nt-me;if(utH(b/Wt)&&z("overflow"),xt*=Wt}var Sn=ue.length+1;me=L(Ee-lt,Sn,lt==0),H(Ee/Sn)>b-pt&&z("overflow"),pt+=H(Ee/Sn),Ee%=Sn,ue.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,ue)},K=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(q(Nt))}}catch(oo){De=!0,nt=oo}finally{try{!pe&<.return&<.return()}finally{if(De)throw nt}}var ut=ue.length,yt=ut;for(ut&&ue.push($);yt=Ee&&WaH((b-pt)/Hr)&&z("overflow"),pt+=(Wt-Ee)*Hr,Ee=Wt;var _o=!0,Ha=!1,Bn=void 0;try{for(var ol=oe[Symbol.iterator](),qr;!(_o=(qr=ol.next()).done);_o=!0){var ch=qr.value;if(chb&&z("overflow"),ch==Ee){for(var al=pt,Eo=v;;Eo+=v){var $i=Eo<=me?x:Eo>=me+g?g:Eo-me;if(al<$i)break;var pc=al-$i,En=v-$i;ue.push(q(Z($i+pc%En,0))),al=H(pc/En)}ue.push(q(Z(al,0))),me=L(pt,Hr,yt==ut),pt=0,++yt}}}catch(oo){Ha=!0,Bn=oo}finally{try{!_o&&ol.return&&ol.return()}finally{if(Ha)throw Bn}}++pt,++Ee}return ue.join("")},R=function(oe){return G(oe,function(ue){return P.test(ue)?Y(ue.slice(4).toLowerCase()):ue})},N=function(oe){return G(oe,function(ue){return k.test(ue)?"xn--"+K(ue):ue})},V={version:"2.1.0",ucs2:{decode:Q,encode:W},decode:Y,encode:K,toASCII:N,toUnicode:R},X={};function re(se){var oe=se.charCodeAt(0),ue=void 0;return oe<16?ue="%0"+oe.toString(16).toUpperCase():oe<128?ue="%"+oe.toString(16).toUpperCase():oe<2048?ue="%"+(oe>>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),Sn=0;Sn1){var Ci=Wt.slice(0,zn.index),Wa=Wt.slice(zn.index+zn.length);So=Ci.join(":")+"::"+Wa.join(":")}else So=Wt.join(":");return pt&&(So+="%"+pt),So}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=X[(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 Ge(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=oe.iri?f:u,ke=[],Ee=X[(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(Ge(se,ue),ue),oe=Be(Ge(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 Ge(rt(Be(se,ke),Be(oe,ke),ke,!0),ke)}function Le(se,oe){return typeof se=="string"?se=Ge(Be(se,oe),oe):a(se)==="object"&&(se=Be(Ge(se,oe),oe)),se}function Fe(se,oe,ue){return typeof se=="string"?se=Ge(Be(se,ue),ue):a(se)==="object"&&(se=Ge(se,ue)),typeof oe=="string"?oe=Ge(Be(oe,ue),ue):a(oe)==="object"&&(oe=Ge(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)),Je="[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("[^]",Je,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function sn(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(Z,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(Z){var L,Y,K,R,N,V,X,re,le,xe,fe,ge,he,_e,ve,Be,Ue,ze,He,be,we,Ce,Ge,rt,Ae;const Le=Z.strict,Fe=(L=Z.code)===null||L===void 0?void 0:L.optimize,Pe=Fe===!0||Fe===void 0?1:Fe||0,Te=(K=(Y=Z.code)===null||Y===void 0?void 0:Y.regExp)!==null&&K!==void 0?K:m,it=(R=Z.uriResolver)!==null&&R!==void 0?R:p.default;return{strictSchema:(V=(N=Z.strictSchema)!==null&&N!==void 0?N:Le)!==null&&V!==void 0?V:!0,strictNumbers:(re=(X=Z.strictNumbers)!==null&&X!==void 0?X:Le)!==null&&re!==void 0?re:!0,strictTypes:(xe=(le=Z.strictTypes)!==null&&le!==void 0?le:Le)!==null&&xe!==void 0?xe:"log",strictTuples:(ge=(fe=Z.strictTuples)!==null&&fe!==void 0?fe:Le)!==null&&ge!==void 0?ge:"log",strictRequired:(_e=(he=Z.strictRequired)!==null&&he!==void 0?he:Le)!==null&&_e!==void 0?_e:!1,code:Z.code?{...Z.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(ve=Z.loopRequired)!==null&&ve!==void 0?ve:y,loopEnum:(Be=Z.loopEnum)!==null&&Be!==void 0?Be:y,meta:(Ue=Z.meta)!==null&&Ue!==void 0?Ue:!0,messages:(ze=Z.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(He=Z.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(be=Z.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(we=Z.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:(Ce=Z.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(Ge=Z.validateFormats)!==null&&Ge!==void 0?Ge:!0,unicodeRegExp:(rt=Z.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(Ae=Z.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:Y,lines:K}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:Y,lines:K}),this.logger=H(L.logger);const R=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,L,"NOT SUPPORTED"),_.call(this,g,L,"DEPRECATED","warn"),this._metaOpts=D.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&A.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),P.call(this),L.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:Y,schemaId:K}=this.opts;let R=f;K==="id"&&(R={...f},R.id=R.$id,delete R.$id),Y&&L&&this.addMetaSchema(R,R[K],!1)}defaultMeta(){const{meta:L,schemaId:Y}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[Y]||L:void 0}validate(L,Y){let K;if(typeof L=="string"){if(K=this.getSchema(L),!K)throw new Error(`no schema with key or ref "${L}"`)}else K=this.compile(L);const R=K(Y);return"$async"in K||(this.errors=K.errors),R}compile(L,Y){const K=this._addSchema(L,Y);return K.validate||this._compileSchemaEnv(K)}compileAsync(L,Y){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:K}=this.opts;return R.call(this,L,Y);async function R(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 R.call(this,{$ref:xe},!0)}async function V(xe){try{return this._compileSchemaEnv(xe)}catch(fe){if(!(fe instanceof o.default))throw fe;return X.call(this,fe),await re.call(this,fe.missingSchema),V.call(this,xe)}}function X({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,Y)}async function le(xe){const fe=this._loading[xe];if(fe)return fe;try{return await(this._loading[xe]=K(xe))}finally{delete this._loading[xe]}}}addSchema(L,Y,K,R=this.opts.validateSchema){if(Array.isArray(L)){for(const V of L)this.addSchema(V,void 0,K,R);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 Y=(0,l.normalizeId)(Y||N),this._checkUnique(Y),this.schemas[Y]=this._addSchema(L,K,Y,R,!0),this}addMetaSchema(L,Y,K=this.opts.validateSchema){return this.addSchema(L,Y,!0,K),this}validateSchema(L,Y){if(typeof L=="boolean")return!0;let K;if(K=L.$schema,K!==void 0&&typeof K!="string")throw new Error("$schema must be a string");if(K=K||this.opts.defaultMeta||this.defaultMeta(),!K)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const R=this.validate(K,L);if(!R&&Y){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return R}getSchema(L){let Y;for(;typeof(Y=$.call(this,L))=="string";)L=Y;if(Y===void 0){const{schemaId:K}=this.opts,R=new i.SchemaEnv({schema:{},schemaId:K});if(Y=i.resolveSchema.call(this,R,L),!Y)return;this.refs[L]=Y}return Y.validate||this._compileSchemaEnv(Y)}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 Y=$.call(this,L);return typeof Y=="object"&&this._cache.delete(Y.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const Y=L;this._cache.delete(Y);let K=L[this.opts.schemaId];return K&&(K=(0,l.normalizeId)(K),delete this.schemas[K],delete this.refs[K]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const Y of L)this.addKeyword(Y);return this}addKeyword(L,Y){let K;if(typeof L=="string")K=L,typeof Y=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Y.keyword=K);else if(typeof L=="object"&&Y===void 0){if(Y=L,K=Y.keyword,Array.isArray(K)&&!K.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,K,Y),!Y)return(0,u.eachItem)(K,N=>B.call(this,N)),this;Q.call(this,Y);const R={...Y,type:(0,c.getJSONTypes)(Y.type),schemaType:(0,c.getJSONTypes)(Y.schemaType)};return(0,u.eachItem)(K,R.type.length===0?N=>B.call(this,N,R):N=>R.type.forEach(V=>B.call(this,N,R,V))),this}getKeyword(L){const Y=this.RULES.all[L];return typeof Y=="object"?Y.definition:!!Y}removeKeyword(L){const{RULES:Y}=this;delete Y.keywords[L],delete Y.all[L];for(const K of Y.rules){const R=K.rules.findIndex(N=>N.keyword===L);R>=0&&K.rules.splice(R,1)}return this}addFormat(L,Y){return typeof Y=="string"&&(Y=new RegExp(Y)),this.formats[L]=Y,this}errorsText(L=this.errors,{separator:Y=", ",dataVar:K="data"}={}){return!L||L.length===0?"No errors":L.map(R=>`${K}${R.instancePath} ${R.message}`).reduce((R,N)=>R+Y+N)}$dataMetaSchema(L,Y){const K=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const R of Y){const N=R.split("/").slice(1);let V=L;for(const X of N)V=V[X];for(const X in K){const re=K[X];if(typeof re!="object")continue;const{$data:le}=re.definition,xe=V[X];le&&xe&&(V[X]=J(xe))}}return L}_removeAllSchemas(L,Y){for(const K in L){const R=L[K];(!Y||Y.test(K))&&(typeof R=="string"?delete L[K]:R&&!R.meta&&(this._cache.delete(R.schema),delete L[K]))}}_addSchema(L,Y,K,R=this.opts.validateSchema,N=this.opts.addUsedSchema){let V;const{schemaId:X}=this.opts;if(typeof L=="object")V=L[X];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;K=(0,l.normalizeId)(V||K);const le=l.getSchemaRefs.call(this,L,K);return re=new i.SchemaEnv({schema:L,schemaId:X,meta:Y,baseId:K,localRefs:le}),this._cache.set(re.schema,re),N&&!K.startsWith("#")&&(K&&this._checkUnique(K),this.refs[K]=re),R&&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 Y=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,L)}finally{this.opts=Y}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(Z,L,Y,K="error"){for(const R in Z){const N=R;N in L&&this.logger[K](`${Y}: option ${R}. ${Z[N]}`)}}function $(Z){return Z=(0,l.normalizeId)(Z),this.schemas[Z]||this.refs[Z]}function P(){const Z=this.opts.schemas;if(Z)if(Array.isArray(Z))this.addSchema(Z);else for(const L in Z)this.addSchema(Z[L],L)}function k(){for(const Z in this.opts.formats){const L=this.opts.formats[Z];L&&this.addFormat(Z,L)}}function A(Z){if(Array.isArray(Z)){this.addVocabulary(Z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in Z){const Y=Z[L];Y.keyword||(Y.keyword=L),this.addKeyword(Y)}}function D(){const Z={...this.opts};for(const L of b)delete Z[L];return Z}const F={log(){},warn(){},error(){}};function H(Z){if(Z===!1)return F;if(Z===void 0)return console;if(Z.log&&Z.warn&&Z.error)return Z;throw new Error("logger must implement log, warn and error methods")}const q=/^[a-z_$][a-z0-9_$:-]*$/i;function z(Z,L){const{RULES:Y}=this;if((0,u.eachItem)(Z,K=>{if(Y.keywords[K])throw new Error(`Keyword ${K} is already defined`);if(!q.test(K))throw new Error(`Keyword ${K} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function B(Z,L,Y){var K;const R=L==null?void 0:L.post;if(Y&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let V=R?N.post:N.rules.find(({type:re})=>re===Y);if(V||(V={type:Y,rules:[]},N.rules.push(V)),N.keywords[Z]=!0,!L)return;const X={keyword:Z,definition:{...L,type:(0,c.getJSONTypes)(L.type),schemaType:(0,c.getJSONTypes)(L.schemaType)}};L.before?G.call(this,V,X,L.before):V.rules.push(X),N.all[Z]=X,(K=L.implements)===null||K===void 0||K.forEach(re=>this.addKeyword(re))}function G(Z,L,Y){const K=Z.rules.findIndex(R=>R.keyword===Y);K>=0?Z.rules.splice(K,0,L):(Z.rules.push(L),this.logger.warn(`rule ${Y} is not defined`))}function Q(Z){let{metaSchema:L}=Z;L!==void 0&&(Z.$data&&this.opts.$data&&(L=J(L)),Z.validateSchema=this.compile(L,!0))}const W={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(Z){return{anyOf:[Z,W]}}})(B3);var V$={},U$={},W$={};Object.defineProperty(W$,"__esModule",{value:!0});const mde={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};W$.default=mde;var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.callRef=Ul.getValidate=void 0;const vde=Vp,AO=Qt,co=Xt,Mc=bi,NO=fo,Em=un,gde={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=NO.resolveRef.call(l,c,o,n);if(u===void 0)throw new vde.default(r.opts.uriResolver,o,n);if(u instanceof NO.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,co._)`${b}.validate`,c,c.$async)}function p(b){const v=pj(e,b);uv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,co.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:co.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function pj(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,co._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Ul.getValidate=pj;function uv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Mc.default.this:co.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,co._)`await ${(0,AO.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,co._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,AO.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,co._)`${b}.errors`;o.assign(Mc.default.vErrors,(0,co._)`${Mc.default.vErrors} === null ? ${v} : ${Mc.default.vErrors}.concat(${v})`),o.assign(Mc.default.errors,(0,co._)`${Mc.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=Em.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,co._)`${b}.evaluated.props`);a.props=Em.mergeEvaluated.props(o,g,a.props,co.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Em.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,co._)`${b}.evaluated.items`);a.items=Em.mergeEvaluated.items(o,g,a.items,co.Name)}}}Ul.callRef=uv;Ul.default=gde;Object.defineProperty(U$,"__esModule",{value:!0});const yde=W$,bde=Ul,xde=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",yde.default,bde.default];U$.default=xde;var H$={},q$={};Object.defineProperty(q$,"__esModule",{value:!0});const tg=Xt,ms=tg.operators,ng={maximum:{okStr:"<=",ok:ms.LTE,fail:ms.GT},minimum:{okStr:">=",ok:ms.GTE,fail:ms.LT},exclusiveMaximum:{okStr:"<",ok:ms.LT,fail:ms.GTE},exclusiveMinimum:{okStr:">",ok:ms.GT,fail:ms.LTE}},wde={message:({keyword:e,schemaCode:t})=>(0,tg.str)`must be ${ng[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,tg._)`{comparison: ${ng[e].okStr}, limit: ${t}}`},Cde={keyword:Object.keys(ng),type:"number",schemaType:"number",$data:!0,error:wde,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,tg._)`${n} ${ng[t].fail} ${r} || isNaN(${n})`)}};q$.default=Cde;var G$={};Object.defineProperty(G$,"__esModule",{value:!0});const Pf=Xt,$de={message:({schemaCode:e})=>(0,Pf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Pf._)`{multipleOf: ${e}}`},Sde={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:$de,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Pf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Pf._)`${i} !== parseInt(${i})`;e.fail$data((0,Pf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};G$.default=Sde;var Y$={},K$={};Object.defineProperty(K$,"__esModule",{value:!0});function hj(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,_l._)`{limit: ${e}}`},Tde={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Pde,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?_l.operators.GT:_l.operators.LT,i=o.opts.unicode===!1?(0,_l._)`${n}.length`:(0,_l._)`${(0,_de.useFunc)(e.gen,Ede.default)}(${n})`;e.fail$data((0,_l._)`${i} ${a} ${r}`)}};Y$.default=Tde;var X$={};Object.defineProperty(X$,"__esModule",{value:!0});const kde=Qt,rg=Xt,Ode={message:({schemaCode:e})=>(0,rg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,rg._)`{pattern: ${e}}`},Rde={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ode,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,rg._)`(new RegExp(${o}, ${i}))`:(0,kde.usePattern)(e,r);e.fail$data((0,rg._)`!${s}.test(${t})`)}};X$.default=Rde;var J$={};Object.defineProperty(J$,"__esModule",{value:!0});const Tf=Xt,Dde={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Tf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Tf._)`{limit: ${e}}`},Mde={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Dde,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Tf.operators.GT:Tf.operators.LT;e.fail$data((0,Tf._)`Object.keys(${n}).length ${o} ${r}`)}};J$.default=Mde;var Z$={};Object.defineProperty(Z$,"__esModule",{value:!0});const Gd=Qt,kf=Xt,Ide=un,Ade={message:({params:{missingProperty:e}})=>(0,kf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,kf._)`{missingProperty: ${e}}`},Nde={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Ade,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,Ide.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(kf.nil,f);else for(const m of n)(0,Gd.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,Gd.checkMissingProp)(e,n,m)),(0,Gd.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,Gd.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,Gd.propertyInData)(t,o,m,s.ownProperties)),t.if((0,kf.not)(b),()=>{e.error(),t.break()})},kf.nil)}}};Z$.default=Nde;var Q$={};Object.defineProperty(Q$,"__esModule",{value:!0});const Of=Xt,jde={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Of.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Of._)`{limit: ${e}}`},Lde={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jde,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Of.operators.GT:Of.operators.LT;e.fail$data((0,Of._)`${n}.length ${o} ${r}`)}};Q$.default=Lde;var eS={},Up={};Object.defineProperty(Up,"__esModule",{value:!0});const mj=K3;mj.code='require("ajv/dist/runtime/equal").default';Up.default=mj;Object.defineProperty(eS,"__esModule",{value:!0});const Fb=zp,Tr=Xt,Fde=un,zde=Up,Bde={message:({params:{i:e,j:t}})=>(0,Tr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Tr._)`{i: ${e}, j: ${t}}`},Vde={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Bde,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,Fb.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Tr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Tr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Tr._)`${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,Fb.checkDataTypes)(c,x,s.opts.strictNumbers,Fb.DataType.Wrong),y=t.const("indices",(0,Tr._)`{}`);t.for((0,Tr._)`;${b}--;`,()=>{t.let(x,(0,Tr._)`${n}[${b}]`),t.if(g,(0,Tr._)`continue`),c.length>1&&t.if((0,Tr._)`typeof ${x} == "string"`,(0,Tr._)`${x} += "_"`),t.if((0,Tr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Tr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Tr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,Fde.useFunc)(t,zde.default),g=t.name("outer");t.label(g).for((0,Tr._)`;${b}--;`,()=>t.for((0,Tr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Tr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};eS.default=Vde;var tS={};Object.defineProperty(tS,"__esModule",{value:!0});const Tw=Xt,Ude=un,Wde=Up,Hde={message:"must be equal to constant",params:({schemaCode:e})=>(0,Tw._)`{allowedValue: ${e}}`},qde={keyword:"const",$data:!0,error:Hde,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Tw._)`!${(0,Ude.useFunc)(t,Wde.default)}(${n}, ${o})`):e.fail((0,Tw._)`${a} !== ${n}`)}};tS.default=qde;var nS={};Object.defineProperty(nS,"__esModule",{value:!0});const df=Xt,Gde=un,Yde=Up,Kde={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,df._)`{allowedValues: ${e}}`},Xde={keyword:"enum",schemaType:"array",$data:!0,error:Kde,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,Gde.useFunc)(t,Yde.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}`}}};nS.default=Xde;Object.defineProperty(H$,"__esModule",{value:!0});const Jde=q$,Zde=G$,Qde=Y$,efe=X$,tfe=J$,nfe=Z$,rfe=Q$,ofe=eS,afe=tS,ife=nS,sfe=[Jde.default,Zde.default,Qde.default,efe.default,tfe.default,nfe.default,rfe.default,ofe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},afe.default,ife.default];H$.default=sfe;var rS={},id={};Object.defineProperty(id,"__esModule",{value:!0});id.validateAdditionalItems=void 0;const El=Xt,kw=un,lfe={message:({params:{len:e}})=>(0,El.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,El._)`{limit: ${e}}`},cfe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:lfe,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,kw.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}vj(e,r)}};function vj(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,El._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,El._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,kw.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,El._)`${s} <= ${t.length}`);n.if((0,El.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:kw.Type.Num},c),i.allErrors||n.if((0,El.not)(c),()=>n.break())})}}id.validateAdditionalItems=vj;id.default=cfe;var oS={},sd={};Object.defineProperty(sd,"__esModule",{value:!0});sd.validateTuple=void 0;const jO=Xt,dv=un,ufe=Qt,dfe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return gj(e,"additionalItems",t);n.items=!0,!(0,dv.alwaysValidSchema)(n,t)&&e.ok((0,ufe.validateArray)(e))}};function gj(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=dv.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,dv.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,dv.checkStrictMode)(s,x,p.strictTuples)}}}sd.validateTuple=gj;sd.default=dfe;Object.defineProperty(oS,"__esModule",{value:!0});const ffe=sd,pfe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ffe.validateTuple)(e,"items")};oS.default=pfe;var aS={};Object.defineProperty(aS,"__esModule",{value:!0});const LO=Xt,hfe=un,mfe=Qt,vfe=id,gfe={message:({params:{len:e}})=>(0,LO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,LO._)`{limit: ${e}}`},yfe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:gfe,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,hfe.alwaysValidSchema)(r,t)&&(o?(0,vfe.validateAdditionalItems)(e,o):e.ok((0,mfe.validateArray)(e)))}};aS.default=yfe;var iS={};Object.defineProperty(iS,"__esModule",{value:!0});const oa=Xt,Pm=un,bfe={message:({params:{min:e,max:t}})=>t===void 0?(0,oa.str)`must contain at least ${e} valid item(s)`:(0,oa.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,oa._)`{minContains: ${e}}`:(0,oa._)`{minContains: ${e}, maxContains: ${t}}`},xfe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:bfe,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,oa._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,Pm.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,Pm.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Pm.alwaysValidSchema)(a,n)){let v=(0,oa._)`${u} >= ${i}`;s!==void 0&&(v=(0,oa._)`${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,oa._)`${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:Pm.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,oa._)`${v}++`),s===void 0?t.if((0,oa._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,oa._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,oa._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};iS.default=xfe;var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Xt,n=un,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})(yj);var sS={};Object.defineProperty(sS,"__esModule",{value:!0});const bj=Xt,wfe=un,Cfe={message:"property name must be valid",params:({params:e})=>(0,bj._)`{propertyName: ${e.propertyName}}`},$fe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Cfe,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,wfe.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,bj.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};sS.default=$fe;var iy={};Object.defineProperty(iy,"__esModule",{value:!0});const Tm=Qt,Ea=Xt,Sfe=bi,km=un,_fe={message:"must NOT have additional properties",params:({params:e})=>(0,Ea._)`{additionalProperty: ${e.additionalProperty}}`},Efe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:_fe,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,km.alwaysValidSchema)(i,n))return;const c=(0,Tm.allSchemaProperties)(r.properties),u=(0,Tm.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Ea._)`${a} === ${Sfe.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,km.schemaRefOrVal)(i,r.properties,"properties");g=(0,Tm.isOwnProperty)(t,y,x)}else c.length?g=(0,Ea.or)(...c.map(y=>(0,Ea._)`${x} === ${y}`)):g=Ea.nil;return u.length&&(g=(0,Ea.or)(g,...u.map(y=>(0,Ea._)`${(0,Tm.usePattern)(e,y)}.test(${x})`))),(0,Ea.not)(g)}function m(x){t.code((0,Ea._)`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,km.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Ea.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Ea.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:km.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};iy.default=Efe;var lS={};Object.defineProperty(lS,"__esModule",{value:!0});const Pfe=La,FO=Qt,zb=un,zO=iy,Tfe={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&&zO.default.code(new Pfe.KeywordCxt(a,zO.default,"additionalProperties"));const i=(0,FO.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=zb.mergeEvaluated.props(t,(0,zb.toHash)(i),a.props));const s=i.filter(f=>!(0,zb.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,FO.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=Tfe;var cS={};Object.defineProperty(cS,"__esModule",{value:!0});const BO=Qt,Om=Xt,VO=un,UO=un,kfe={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,BO.allSchemaProperties)(n),l=s.filter(v=>(0,VO.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 Om.Name)&&(a.props=(0,UO.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,VO.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,Om._)`${(0,BO.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:UO.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,Om._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,Om.not)(u),()=>t.break())})})}}};cS.default=kfe;var uS={};Object.defineProperty(uS,"__esModule",{value:!0});const Ofe=un,Rfe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Ofe.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"}};uS.default=Rfe;var dS={};Object.defineProperty(dS,"__esModule",{value:!0});const Dfe=Qt,Mfe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dfe.validateUnion,error:{message:"must match a schema in anyOf"}};dS.default=Mfe;var fS={};Object.defineProperty(fS,"__esModule",{value:!0});const fv=Xt,Ife=un,Afe={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,fv._)`{passingSchemas: ${e.passing}}`},Nfe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Afe,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,Ife.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,fv._)`${l} && ${i}`).assign(i,!1).assign(s,(0,fv._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,fv.Name)})})}}};fS.default=Nfe;var pS={};Object.defineProperty(pS,"__esModule",{value:!0});const jfe=un,Lfe={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,jfe.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};pS.default=Lfe;var hS={};Object.defineProperty(hS,"__esModule",{value:!0});const og=Xt,xj=un,Ffe={message:({params:e})=>(0,og.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,og._)`{failingKeyword: ${e.ifClause}}`},zfe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Ffe,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,xj.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=WO(r,"then"),a=WO(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,og.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,og._)`${u}`):e.setParams({ifClause:u})}}}};function WO(e,t){const n=e.schema[t];return n!==void 0&&!(0,xj.alwaysValidSchema)(e,n)}hS.default=zfe;var mS={};Object.defineProperty(mS,"__esModule",{value:!0});const Bfe=un,Vfe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Bfe.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};mS.default=Vfe;Object.defineProperty(rS,"__esModule",{value:!0});const Ufe=id,Wfe=oS,Hfe=sd,qfe=aS,Gfe=iS,Yfe=yj,Kfe=sS,Xfe=iy,Jfe=lS,Zfe=cS,Qfe=uS,epe=dS,tpe=fS,npe=pS,rpe=hS,ope=mS;function ape(e=!1){const t=[Qfe.default,epe.default,tpe.default,npe.default,rpe.default,ope.default,Kfe.default,Xfe.default,Yfe.default,Jfe.default,Zfe.default];return e?t.push(Wfe.default,qfe.default):t.push(Ufe.default,Hfe.default),t.push(Gfe.default),t}rS.default=ape;var vS={},gS={};Object.defineProperty(gS,"__esModule",{value:!0});const rr=Xt,ipe={message:({schemaCode:e})=>(0,rr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,rr._)`{format: ${e}}`},spe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ipe,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,rr._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,rr._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,rr._)`${v}.type || "string"`).assign(g,(0,rr._)`${v}.validate`),()=>n.assign(x,(0,rr._)`"string"`).assign(g,v)),e.fail$data((0,rr.or)(y(),w()));function y(){return l.strictSchema===!1?rr.nil:(0,rr._)`${i} && !${g}`}function w(){const C=u.$async?(0,rr._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,rr._)`${g}(${r})`,_=(0,rr._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,rr._)`${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,rr.regexpCode)(_):l.code.formats?(0,rr._)`${l.code.formats}${(0,rr.getProperty)(a)}`:void 0,P=n.scopeValue("formats",{key:a,ref:_,code:$});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,rr._)`${P}.validate`]:["string",_,P]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,rr._)`await ${g}(${r})`}return typeof x=="function"?(0,rr._)`${g}(${r})`:(0,rr._)`${g}.test(${r})`}}}};gS.default=spe;Object.defineProperty(vS,"__esModule",{value:!0});const lpe=gS,cpe=[lpe.default];vS.default=cpe;var Du={};Object.defineProperty(Du,"__esModule",{value:!0});Du.contentVocabulary=Du.metadataVocabulary=void 0;Du.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Du.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(V$,"__esModule",{value:!0});const upe=U$,dpe=H$,fpe=rS,ppe=vS,HO=Du,hpe=[upe.default,dpe.default,(0,fpe.default)(),ppe.default,HO.metadataVocabulary,HO.contentVocabulary];V$.default=hpe;var yS={},wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(wj);Object.defineProperty(yS,"__esModule",{value:!0});const Wc=Xt,Ow=wj,qO=fo,mpe=un,vpe={message:({params:{discrError:e,tagName:t}})=>e===Ow.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Wc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},gpe={keyword:"discriminator",type:"object",schemaType:"object",error:vpe,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,Wc._)`${n}${(0,Wc.getProperty)(s)}`);t.if((0,Wc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Ow.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,Wc._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:Ow.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,Wc.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=La;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Xt;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=Bp;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Vp;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Sw,Sw.exports);var Cj=Sw.exports;const _pe=zt(Cj);var Rw={exports:{}},$j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(A,D){return{validate:A,compare:D}}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(A){return A%4===0&&(A%100!==0||A%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(A){const D=r.exec(A);if(!D)return!1;const F=+D[1],H=+D[2],q=+D[3];return H>=1&&H<=12&&q>=1&&q<=(H===2&&n(F)?29:o[H])}function i(A,D){if(A&&D)return A>D?1:AD?1:A=y}function _(A){return Number.isInteger(A)}function $(){return!0}const P=/[^\\]\\Z/;function k(A){if(P.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})($j);var Sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Cj,n=Xt,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})(Sj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=$j,r=Sj,o=Xt,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})(Rw,Rw.exports);var Epe=Rw.exports;const Ppe=zt(Epe),pv="additionalProperties",hv="required",Tpe=(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 kpe{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)(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=Tpe(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 _j=(e,t={})=>{const n=o=>a=>{switch(a){case pv:return Object.prototype.hasOwnProperty.call(t,pv)?t[pv]:!0;case hv:return Object.prototype.hasOwnProperty.call(t,hv)?t[hv](o):Object.keys(o);default:return}};return new kpe(n).schemaObject(e)};var hi;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(hi||(hi={}));const Ej=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Ope=e=>e.type==="Group",Pj=e=>e.elements!==void 0,Rpe=e=>!!e&&typeof e=="object",Dpe=e=>Rpe(e)&&typeof e.scope=="string",Mpe=e=>!!e&&typeof e=="object",Tj=(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]])},kj=(e,t)=>{Tj(e,t,-1)},Oj=(e,t)=>{Tj(e,t,1)},Ipe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},GO=(e={})=>tn({},Ipe,e),YO=(e=GO(),t)=>{switch(t.type){case HS:return GO(t.config);default:return e}},Mi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Ape={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Dw=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),KO=(e,t)=>{if(t){if(Npe(t.options))return t.options.ajv;if(t.options!==void 0&&aW(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?Dw(e.ajv,t.schema):e.ajv:Vhe()},Npe=e=>e?e.ajv!==void 0:!1,XO=(e,t)=>t&&jpe(t.options)?t.options.validationMode:e.validationMode,jpe=e=>e?e.validationMode!==void 0:!1,Lpe=e=>e?e.additionalErrors!==void 0:!1,JO=(e,t)=>t&&Lpe(t.options)?t.options.additionalErrors:e.additionalErrors,ZO=(e=Ape,t)=>{switch(t.type){case zS:{const n=KO(e,t),r=XO(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Mi(o,t.data),i=JO(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case BS:{const n=KO(e,t),r=XO(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=Mi(o,t.data)):e.data!==t.data&&(a=Mi(o,t.data));const i=JO(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:L3(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case VS:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Mi(r,e.data);return{...e,validator:r,errors:o}}case qS:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?Dw(e.ajv,t.schema).compile(t.schema):e.validator,o=Mi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case GS:return{...e,uischema:t.uischema};case US:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(Yk(e.data)),r=Mi(e.validator,n);return{...e,data:n,errors:r}}else{const n=lr(e.data,t.path),r=t.updater(Yk(n)),o=gse(t.path,r,e.data===void 0?{}:e.data),a=Mi(e.validator,o);return{...e,data:o,errors:a}}}case WS:return{...e,errors:t.errors};case YS:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Mi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=Dw(e.ajv,e.schema).compile(e.schema),r=Mi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},Fpe=e=>lr(e,"data"),zpe=e=>lr(e,"schema"),Bpe=e=>lr(e,"uischema"),Vpe=e=>lr(e,"ajv"),Upe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},ag=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Upe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=cy(t),t},bS=(e,t,n)=>r=>{const o=Qv(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>ag(a));return Qv(r,a=>{if(Hpe.indexOf(a.keyword)!==-1&&!lg(a.parentSchema))return!1;const i=ag(a);let s=n(i);const l=a.parentSchema;return s&&!Wpe(l)&&!lg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&L3(l,t)),s})},Wpe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Hpe=["additionalProperties","allOf","anyOf","oneOf"],Rj=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return bS(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},qpe=(e,t)=>Rj(e,t,n=>n===e),Gpe=(e,t)=>Rj(e,t,n=>n.startsWith(e+".")),xS=(e,t)=>Ej(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Ype=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",mi=(e,t,n)=>xS(e,t)??Ype(n),ig=(e,t,n,r)=>`${mi(e,t,n)}.${r}`,Kpe=(e,t)=>`${e}.${t}`,wS=(e,t)=>t,CS=(e,t,n)=>{var s;const r=ig(e.parentSchema,n,ag(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},$S=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=ig(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 IS(e.map(i=>t(i,n,o)))},sy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!Ej(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=xS(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},Dj=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Kpe(n,a.key);o[a.key]=e(i,a.default(r))}),o};var zr;(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"})(zr||(zr={}));const Mj=[{key:zr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:zr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:zr.removeTooltip,default:()=>"Delete"},{key:zr.removeAriaLabel,default:()=>"Delete button"},{key:zr.upAriaLabel,default:()=>"Move item up"},{key:zr.up,default:()=>"Up"},{key:zr.down,default:()=>"Down"},{key:zr.downAriaLabel,default:()=>"Move item down"},{key:zr.noDataMessage,default:()=>"No data"},{key:zr.noSelection,default:()=>"No selection"},{key:zr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:zr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:zr.deleteDialogAccept,default:()=>"Yes"},{key:zr.deleteDialogDecline,default:()=>"No"}],iu={locale:"en",translate:wS,translateError:CS},QO=(e=iu,t)=>{switch(t.type){case JS:{const n=t.locale??iu.locale,r=t.translator??iu.translate,o=t.errorTranslator??iu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case XS:return{...e,translate:t.translator??wS,translateError:t.errorTranslator??CS};case KS:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Xpe=e=>e===void 0?wS:e.translate,Jpe=e=>e===void 0?CS:e.translateError,Mu=-1,Us=e=>!Mt(e)&&e.scope!==void 0,Bo=e=>(t,n,r)=>{if(Mt(t)||!Us(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return Ws(n,"object")&&(a=ma(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},SS=(e,t)=>(n,r,o)=>{if(Mt(n)||!Us(n))return!1;const a=n.scope;let i=r;return Ws(r,"object")&&(i=ma(r,a,o==null?void 0:o.rootSchema)),i=lr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},za=e=>Bo(t=>!Mt(t)&&Ws(t,e)),ly=e=>Bo(t=>!Mt(t)&&t.format===e&&Ws(t,"string")),wn=e=>t=>!Mt(t)&&t.type===e,Ji=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Zpe=e=>t=>Mt(e)||!Us(t)?!1:ale(t.scope,e),Qpe=e=>t=>{if(Mt(e)||!Us(t))return!1;const n=t.scope;return!Mt(n)&&zse(n.split("/"))===e},On=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),oc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),Cn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Mu,ehe=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Mu?Mu:a+e},Ij=On(wn("Control"),za("boolean")),the=On(wn("Control"),za("object")),Aj=On(wn("Control"),Bo(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),Nj=On(wn("Control"),Bo(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),jj=On(wn("Control"),Bo(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),_S=On(wn("Control"),oc(Bo(e=>Object.prototype.hasOwnProperty.call(e,"enum")),Bo(e=>Object.prototype.hasOwnProperty.call(e,"const")))),Lj=On(wn("Control"),Bo(e=>lg(e))),Fj=On(wn("Control"),za("integer")),zj=On(wn("Control"),za("number")),Bj=On(wn("Control"),za("string")),Vj=On(wn("Control"),Ji("multi",!0)),Uj=On(wn("Control"),oc(ly("date"),Ji("format","date"))),Wj=On(wn("Control"),oc(ly("time"),Ji("format","time"))),Hj=On(wn("Control"),oc(ly("date-time"),Ji("format","date-time"))),qj=On(Bo((e,t)=>Ws(e,"array")&&!Array.isArray(ma(e,"items",t))),SS("items",(e,t)=>{const n=e.$ref?ma(t,e.$ref,t):e;return Ws(n,"object")})),ES=On(wn("Control"),qj),ff=(e,t,n)=>{if(iN(e))return $w(e,(r,o)=>r||ff(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=ma(n,e.$ref,n);if(r&&!r.$ref)return ff(r,t,n)}return e.items?ff(e.items,t,n):e.properties?$w(Dle(e.properties),(r,[o,a])=>r||ff(a,t,n),!1):!1},PS=(e,t,n)=>{if(!wn("Control")(e,t,n))return!1;const r=e.scope,o=ma(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(ff(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!lg(i)||Ws(i,"object")&&(a++,a===2)||Ws(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},nhe=ES,Gj=On(wn("Control"),Bo((e,t)=>Iu(e).length!==0&&!Array.isArray(ma(e,"items",t))),SS("items",(e,t)=>{const n=e.$ref?ma(t,e.$ref,t):e,r=Iu(n);return r.length===1&&z3(["integer","number","boolean","string"],r[0])})),Yj=On(wn("Control"),oc(za("number"),za("integer")),Bo(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),Ji("slider",!0)),rhe=On(wn("Control"),za("integer"),Ji("format",!0)),Kj=e=>e.type==="Categorization",Xj=e=>e.type==="Category",TS=e=>Mt(e.elements)?!1:e.elements.map(t=>Kj(t)?TS(t):Xj(t)).reduce((t,n)=>t&&n,!0),ohe=e=>TS(e),ahe=e=>(t,n,r)=>!e(t,n,r);var ihe=Object.freeze({__proto__:null,NOT_APPLICABLE:Mu,isControl:Us,schemaMatches:Bo,schemaSubPathMatches:SS,schemaTypeIs:za,formatIs:ly,uiTypeIs:wn,optionIs:Ji,scopeEndsWith:Zpe,scopeEndIs:Qpe,and:On,or:oc,rankWith:Cn,withIncreasedRank:ehe,isBooleanControl:Ij,isObjectControl:the,isAllOfControl:Aj,isAnyOfControl:Nj,isOneOfControl:jj,isEnumControl:_S,isOneOfEnumControl:Lj,isIntegerControl:Fj,isNumberControl:zj,isStringControl:Bj,isMultiLineControl:Vj,isDateControl:Uj,isTimeControl:Wj,isDateTimeControl:Hj,isObjectArray:qj,isObjectArrayControl:ES,isObjectArrayWithNesting:PS,isArrayObjectControl:nhe,isPrimitiveArrayControl:Gj,isRangeControl:Yj,isNumberFormatControl:rhe,isCategorization:Kj,isCategory:Xj,hasCategory:TS,categorizationHasCategory:ohe,not:ahe});const Jj=e=>(t,n,r)=>{const o=Zg(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Mu)return o.uischema},Wp=(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=Jj(e)(t,n,r);return s===void 0?typeof o=="function"?o():ql.uiSchema(t,o,"#",i):s},Zj=(e,t)=>n=>qpe(e,t)(n.jsonforms.core),Qj=(e,t)=>n=>Gpe(e,t)(n.jsonforms.core),Wl=e=>e.jsonforms.config,ha=()=>e=>Xpe(lr(e,"jsonforms.i18n")),kS=()=>e=>Jpe(lr(e,"jsonforms.i18n")),Hp=e=>Fpe(lr(e,"jsonforms.core")),sg=e=>zpe(lr(e,"jsonforms.core")),she=e=>Bpe(lr(e,"jsonforms.core")),ld=e=>Vpe(lr(e,"jsonforms.core")),OS=e=>lr(e,"jsonforms.renderers"),RS=e=>lr(e,"jsonforms.cells"),lhe=e=>lr(e,"jsonforms.uischemas"),ac=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},e4=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(cy),a=r[0]==="#"||r[0]===""?2:1;return ad(a,r.length,2).map(i=>r[i])},t4=(e,t)=>{if(!Dpe(e))return t??"";const n=e4(e.scope);return Mt(n)?t??"":ac(t,n.join("."))},Hl=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),cy=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),Mw=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),che=e=>e==="#"||e===void 0||e==="",ma=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(cy);return mv(e,r,n)},mv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=ma(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(che(r))return mv(e,o,n);const a=lr(e,r),i=mv(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=mv(c,[r,...o],n),s)break;return s}},uhe=e=>e.type==="OR",dhe=e=>e.type==="AND",fhe=e=>e.type==="LEAF",phe=e=>Ice(e,"schema"),eR=(e,t)=>t4(e,t),Iw=(e,t,n,r)=>{if(dhe(t))return t.conditions.reduce((o,a)=>o&&Iw(e,a,n,r),!0);if(uhe(t))return t.conditions.reduce((o,a)=>o||Iw(e,a,n,r),!1);if(fhe(t))return Mw(e,eR(t,n))===t.expectedValue;if(phe(t)){const o=Mw(e,eR(t,n));return r.validate(t.schema,o)}else return!0},n4=(e,t,n,r)=>{const o=e.rule.condition;return Iw(t,o,n,r)},hhe=(e,t,n=void 0,r)=>{const o=n4(e,t,n,r);switch(e.rule.effect){case hi.HIDE:return!o;case hi.SHOW:return o;default:return!0}},mhe=(e,t,n=void 0,r)=>{const o=n4(e,t,n,r);switch(e.rule.effect){case hi.DISABLE:return!o;case hi.ENABLE:return o;default:return!0}},DS=e=>!!(e.rule&&(e.rule.effect===hi.SHOW||e.rule.effect===hi.HIDE)),vhe=e=>!!(e.rule&&(e.rule.effect===hi.ENABLE||e.rule.effect===hi.DISABLE)),cd=(e,t,n=void 0,r)=>e.rule?hhe(e,t,n,r):!0,ghe=(e,t,n=void 0,r)=>e.rule?mhe(e,t,n,r):!0,MS=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&vhe(n)?ghe(n,o,t==null?void 0:t.path,ld(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},r4=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),IS=e=>e==null?"":e.join(` +`),Ws=(e,t)=>z3(Iu(e),t),Iu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(iN(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=I$(e.allOf,n=>Iu(n).length!==0);if(t)return Iu(t)}return[]},bo={schema:ma,data:Mw},yhe=e=>e4(e.scope).join("."),zs={compose:ac,fromScoped:yhe},Bb=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=cy(n.substr(n.lastIndexOf("/")+1));return Qg(r)}return""},o4=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Rm(Bb(e,t),n);if(typeof n=="string")return Rm(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Bb(e,t),o=typeof n.show=="boolean"?n.show:!0;return Rm(r,o)}return Rm(Bb(e,t),!0)},Rm=(e,t)=>({text:e,show:t}),bhe=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=bo.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},uy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,dy=(e,t)=>e&&!t,Gi=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{}}},xo=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,lp=(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}},AS=(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}},ud=(e,t)=>{const{uischema:n}=t,r=Hp(e),o=t4(n,t.path),a=t.visible===void 0||DS(n)?cd(n,r,t.path,ld(e)):t.visible,i=n,s=t.id,l=sg(e),c=i.scope!==void 0&&bhe(t.schema,i.scope,l),u=bo.schema(t.schema||l,i.scope,l),f=Zj(o,u)(e),p=u!==void 0?u.description:"",m=bo.data(r,o),b=o4(n,u),v=b.show?b.text:"",x=Wl(e),g=MS(e,t,n,u||l,r,x),y=u??l,w=ha()(e),C=kS()(e),_=mi(y,n,o),$=w(ig(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),P=w(ig(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=$S(f,C,w,y,n,o);return{data:m,description:P,errors:k,label:$,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:Wl(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},xhe=e=>({handleChange(t,n){e(Ma(t,()=>n))}}),whe=(e,t)=>{var o;const n=ud(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>lp(a,ha()(e),mi(n.schema,n.uischema,n.path))))||n.schema.const&&[lp(n.schema.const,ha()(e),mi(n.schema,n.uischema,n.path))];return{...n,options:r}},Che=(e,t)=>{var o;const n=ud(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>AS(a,ha()(e),mi(n.schema,n.uischema,n.path))));return{...n,options:r}},$he=(e,t)=>{var a;const n=ud(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return AS(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,mi(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return lp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,mi(n.schema,n.uischema,n.path))}));return{...n,options:o}},She=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?I$(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=ac(r,`${o}`),s=bo.data(Hp(e),i),l=a?s[a]:"";return{...t,childLabel:l}},NS=(e,t)=>{const{...n}=ud(e,t);return{...n,uischemas:e.jsonforms.uischemas}},_he=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=NS(e,t),l=bo.schema(r,"items",s.rootSchema),c=Qj(n,l)(e),u=ha()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||OS(e),cells:t.cells||RS(e),translations:Dj(u,Mj,a,i)}},Ehe=e=>({addItem:(t,n)=>()=>{e(Ma(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Ma(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Ma(t,r=>(kj(r,n),r)))},moveDown:(t,n)=>()=>{e(Ma(t,r=>(Oj(r,n),r)))}}),Phe=e=>({addItem:(t,n)=>{e(Ma(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Ma(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),a4={visible:!0,enabled:!0,path:"",direction:"column"},The=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":a4.direction,khe=(e,t)=>{const n=Hp(e),{uischema:r}=t,o=t.visible===void 0||DS(r)?cd(t.uischema,n,t.path,ld(e)):t.visible,a=bo.data(n,t.path),i=Wl(e),s=MS(e,t,r,void 0,n,i),l=ha()(e),c=Mpe(r)?sy(r,l):void 0;return{...a4,renderers:t.renderers||OS(e),cells:t.cells||RS(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??The(r),config:i,label:c}},Ohe=(e,t)=>({renderers:t.renderers||lr(e.jsonforms,"renderers"),cells:t.cells||lr(e.jsonforms,"cells"),schema:t.schema||sg(e),rootSchema:sg(e),uischema:t.uischema||she(e),path:t.path,enabled:t.enabled,config:Wl(e)}),jS=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=ud(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=bo.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:lhe(e)}},Rhe=(e,t)=>jS(e,t,"allOf"),Dhe=(e,t)=>jS(e,t,"anyOf"),Mhe=(e,t)=>jS(e,t,"oneOf"),Ihe=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=NS(e,t),c=bo.schema(r,"items",l.rootSchema),u=ha()(e),f=$S(Qj(n,c)(e),kS()(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:Dj(u,Mj,i,s)}},Ahe=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||DS(n)?cd(t.uischema,Hp(e),t.path,ld(e)):t.visible,o=n.text,a=ha()(e),i=xS(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:Wl(e),renderers:t.renderers||OS(e),cells:t.cells||RS(e)}},fy=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=Hp(e),c=t.visible!==void 0?t.visible:cd(a,l,void 0,ld(e)),u=sg(e),f=Wl(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=MS(e,t,a,r||u,l,f);const m=ha()(e),b=kS()(e),v=$S(Zj(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:bo.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:Wl(e),rootSchema:u,renderers:i,cells:s}},Nhe=(e,t)=>{const n=fy(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},jhe=(e,t)=>{var o;const n=fy(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>lp(a,ha()(e),mi(n.schema,n.uischema,n.path))))||n.schema.const&&[lp(n.schema.const,ha()(e),mi(n.schema,n.uischema,n.path))];return{...n,options:r}},Lhe=(e,t)=>{var o;const n=fy(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>AS(a,ha()(e),mi(n.schema,n.uischema,n.path))));return{...n,options:r}},Fhe=(e,t,n)=>e.title?e.title:n+"-"+t,LS=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?bo.schema(t,i.$ref,t):i;return{schema:l,uischema:Wp(a,l,r.scope,o,void 0,r,t),label:Fhe(i,s,n)}}),FS=new Set,i4=(e,t)=>t<=1?e:e+t.toString(),zhe=(e,t)=>{const n=i4(e,t);return!FS.has(n)},s4=e=>{e===void 0&&(e="undefined");let t=0;for(;!zhe(e,t);)t++;const n=i4(e,t);return FS.add(n),n},l4=e=>FS.delete(e),Bhe=e=>{if(e.properties)return I$(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},lg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Vhe=e=>{const t=new _pe({allErrors:!0,verbose:!0,strict:!1,...e});return Ppe(t),t},c4=e=>({type:e,elements:[]}),vv=e=>({type:"Control",scope:e}),Uhe=(e,t)=>{if(!Mt(e)&&!Pj(e)){const n=c4(t);return n.elements.push(e),n}return e},Whe=(e,t)=>{if(!Mt(t)){const n=Qg(t);if(Ope(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Hhe=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),Aw=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return Aw(ma(a,e.$ref,a),t,n,r,o,a);if(Hhe(e)){const s=vv(n);return t.push(s),s}const i=Iu(e);if(i.length===0)return null;if(i.length>1){const s=vv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=c4(o);if(t.push(s),e.properties&&UZ(e.properties).length>1&&Whe(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${Hl(c)}`;u.$ref!==void 0&&(u=ma(a,u.$ref,a)),Aw(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=vv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},u4=(e,t="VerticalLayout",n="#",r=e)=>Uhe(Aw(e,[],n,"",t,r),t),ql={jsonSchema:_j,uiSchema:u4,controlElement:vv},zS="jsonforms/INIT",BS="jsonforms/UPDATE_CORE",VS="jsonforms/SET_AJV",US="jsonforms/UPDATE",WS="jsonforms/UPDATE_ERRORS",qhe="jsonforms/VALIDATE",d4="jsonforms/ADD_RENDERER",f4="jsonforms/REMOVE_RENDERER",p4="jsonforms/ADD_CELL",h4="jsonforms/REMOVE_CELL",HS="jsonforms/SET_CONFIG",m4="jsonforms/ADD_UI_SCHEMA",v4="jsonforms/REMOVE_UI_SCHEMA",qS="jsonforms/SET_SCHEMA",GS="jsonforms/SET_UISCHEMA",YS="jsonforms/SET_VALIDATION_MODE",KS="jsonforms/SET_LOCALE",XS="jsonforms/SET_TRANSLATOR",JS="jsonforms/UPDATE_I18N",g4="jsonforms/ADD_DEFAULT_DATA",y4="jsonforms/REMOVE_DEFAULT_DATA",Ghe=(e,t=_j(e),n,r)=>({type:zS,data:e,schema:t,uischema:typeof n=="object"?n:u4(t),options:r}),Yhe=(e,t,n,r)=>({type:BS,data:e,schema:t,uischema:n,options:r}),Khe=(e,t)=>({type:g4,schemaPath:e,data:t}),Xhe=e=>({type:y4,schemaPath:e}),Jhe=e=>({type:VS,ajv:e}),Ma=(e,t)=>({type:US,path:e,updater:t}),Zhe=e=>({type:WS,errors:e}),Qhe=(e,t)=>({type:d4,tester:e,renderer:t}),eme=(e,t)=>({type:p4,tester:e,cell:t}),tme=(e,t)=>({type:h4,tester:e,cell:t}),nme=(e,t)=>({type:f4,tester:e,renderer:t}),rme=e=>({type:HS,config:e}),ome=e=>({type:YS,validationMode:e}),ame=(e,t)=>({type:m4,tester:e,uischema:t}),ime=e=>({type:v4,tester:e}),sme=e=>({type:KS,locale:e}),lme=e=>({type:qS,schema:e}),cme=(e,t)=>({type:XS,translator:e,errorTranslator:t}),ume=(e,t,n)=>({type:JS,locale:e,translator:t,errorTranslator:n}),dme=e=>({type:GS,uischema:e});var Ic=Object.freeze({__proto__:null,INIT:zS,UPDATE_CORE:BS,SET_AJV:VS,UPDATE_DATA:US,UPDATE_ERRORS:WS,VALIDATE:qhe,ADD_RENDERER:d4,REMOVE_RENDERER:f4,ADD_CELL:p4,REMOVE_CELL:h4,SET_CONFIG:HS,ADD_UI_SCHEMA:m4,REMOVE_UI_SCHEMA:v4,SET_SCHEMA:qS,SET_UISCHEMA:GS,SET_VALIDATION_MODE:YS,SET_LOCALE:KS,SET_TRANSLATOR:XS,UPDATE_I18N:JS,ADD_DEFAULT_DATA:g4,REMOVE_DEFAULT_DATA:y4,init:Ghe,updateCore:Yhe,registerDefaultData:Khe,unregisterDefaultData:Xhe,setAjv:Jhe,update:Ma,updateErrors:Zhe,registerRenderer:Qhe,registerCell:eme,unregisterCell:tme,unregisterRenderer:nme,setConfig:rme,setValidationMode:ome,registerUISchema:ame,unregisterUISchema:ime,setLocale:sme,setSchema:lme,setTranslator:cme,updateI18n:ume,setUISchema:dme});const cg={createLabelDescriptionFrom:o4,convertToValidClassName:r4};var fme=ro,pme=function(){return fme.Date.now()},hme=pme,mme=Go,Vb=hme,tR=D3,vme="Expected a function",gme=Math.max,yme=Math.min;function bme(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(vme);t=tR(t)||0,mme(n)&&(u=!!n.leading,f="maxWait"in n,a=f?gme(tR(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m($){var P=r,k=o;return r=o=void 0,c=$,i=e.apply(k,P),i}function b($){return c=$,s=setTimeout(g,t),u?m($):i}function v($){var P=$-l,k=$-c,A=t-P;return f?yme(A,a-k):A}function x($){var P=$-l,k=$-c;return l===void 0||P>=t||P<0||f&&k>=a}function g(){var $=Vb();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(Vb())}function _(){var $=Vb(),P=x($);if(r=arguments,o=this,l=$,P){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 xme=bme;const b4=zt(xme);class x4 extends I.Component{constructor(t){super(t)}}class w4 extends x4{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 C4 extends S.Component{render(){return I.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const wme={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},$4=I.createContext({core:wme,renderers:[]}),Cme=(e,t)=>{const n=S.useRef(!0);S.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},$me=({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(ZO,void 0,()=>ZO(t.core,Ic.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));S.useEffect(()=>{u(Ic.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=S.useReducer(YO,void 0,()=>YO(void 0,Ic.setConfig(t.config)));Cme(()=>{p(Ic.setConfig(t.config))},[t.config]);const[m,b]=S.useReducer(QO,void 0,()=>{var _,$,P;return QO(t.i18n,Ic.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(P=t.i18n)==null?void 0:P.translateError))});S.useEffect(()=>{var _,$,P;b(Ic.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(P=t.i18n)==null?void 0:P.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(b4((..._)=>{var $;return($=x.current)==null?void 0:$.call(x,..._)},10),[]);return S.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),I.createElement($4.Provider,{value:v},e)},ic=()=>S.useContext($4),Sme=(e,t)=>Ihe({jsonforms:{...e}},t),_me=(e,t)=>_he({jsonforms:{...e}},t),Eme=(e,t)=>khe({jsonforms:{...e}},t),Pme=(e,t)=>ud({jsonforms:{...e}},t),Tme=(e,t)=>{var o;const n=whe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},kme=(e,t)=>{var o;const n=Che({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Ome=(e,t)=>{var o;const n=$he({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Rme=(e,t)=>NS({jsonforms:{...e}},t),Dme=(e,t)=>({...Rhe({jsonforms:{...e}},t)}),$o=e=>S.useMemo(()=>xhe(e),[e]),Mme=(e,t)=>{const n=Dhe({jsonforms:{...e}},t),r=$o(e.dispatch);return{...n,...r}},Ime=(e,t)=>{const n=Mhe({jsonforms:{...e}},t),r=$o(e.dispatch);return{...n,...r}},Ame=(e,t)=>Ohe({jsonforms:{...e}},t),S4=e=>({...$o(e),...S.useMemo(()=>Ehe(e),[e])}),Nme=(e,t)=>She({jsonforms:{...e}},t),jme=(e,t)=>fy({jsonforms:{...e}},t),Lme=(e,t)=>{var o;const n=jhe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Fme=(e,t)=>{var o;const n=Lhe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},zme=(e,t)=>Nhe({jsonforms:{...e}},t),Bme=e=>({...$o(e),...S.useMemo(()=>Phe(e),[e])}),Vme=(e,t)=>Ahe({jsonforms:{...e}},t),wr=e=>function(n){const r=ic();return I.createElement(e,{ctx:r,props:n})},Ume=e=>function({ctx:n,props:r}){const o=Ame(n,r);return I.createElement(e,Object.assign({},r,o))},Wme=e=>function({ctx:n,props:r}){const o=Pme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,o,a))},Hme=e=>function({ctx:n,props:r}){const o=Eme(n,r);return I.createElement(e,Object.assign({},r,o))},qme=e=>function({ctx:n,props:r}){const o=Ime(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,o,a))},Gme=e=>function({ctx:n,props:r}){const o=Mme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,o,a))},Yme=e=>function({ctx:n,props:r}){const o=Dme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,o,a))},Kme=e=>function({ctx:n,props:r}){const o=Rme(n,r);return I.createElement(e,Object.assign({},r,o))},Xme=e=>function({ctx:n,props:r}){const o=Sme(n,r),a=S4(n.dispatch);return I.createElement(e,Object.assign({},r,o,a))},Jme=e=>function({ctx:n,props:r}){const o=_me(n,r),a=S4(n.dispatch);return I.createElement(e,Object.assign({},r,o,a))},Zme=e=>function({ctx:n,props:r}){const o=Nme(n,r);return I.createElement(e,Object.assign({},r,o))},Qme=e=>function({ctx:n,props:r}){const o=jme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},eve=e=>function({ctx:n,props:r}){const o=zme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},tve=e=>function({ctx:n,props:r}){const o=Lme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},nve=e=>function({ctx:n,props:r}){const o=Tme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},rve=e=>function({ctx:n,props:r}){const o=Fme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},ove=e=>function({ctx:n,props:r}){const o=kme(n,r),a=$o(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},ave=e=>function({ctx:n,props:r}){const o=Ome(n,r),a=Bme(n.dispatch);return I.createElement(e,Object.assign({},r,a,o))},ive=e=>function({ctx:n,props:r}){const o=Vme(n,r);return I.createElement(e,Object.assign({},r,o))},_4=(e,t=!0)=>wr(Ume(t?I.memo(e):e)),ba=(e,t=!0)=>wr(Wme(t?I.memo(e):e)),Zi=(e,t=!0)=>wr(Hme(t?I.memo(e):e)),sve=(e,t=!0)=>wr(qme(t?I.memo(e):e)),lve=(e,t=!0)=>wr(Gme(t?I.memo(e):e)),cve=(e,t=!0)=>wr(Yme(t?I.memo(e):e)),uve=(e,t=!0)=>wr(Kme(t?I.memo(e):e)),py=(e,t=!0)=>wr(Xme(t?I.memo(e):e)),E4=(e,t=!0)=>wr(Jme(t?I.memo(e):e)),dve=(e,t=!0)=>wr(Zme(t?I.memo(e):e)),ur=(e,t=!0)=>wr(Qme(t?I.memo(e):e)),fve=(e,t=!0)=>wr(eve(t?I.memo(e):e)),P4=(e,t=!0)=>wr(tve(t?I.memo(e):e)),ZS=(e,t=!0)=>wr(nve(t?I.memo(e):e)),pve=(e,t=!0)=>wr(rve(t?I.memo(e):e)),QS=(e,t=!0)=>wr(ove(t?I.memo(e):e)),hve=(e,t=!0)=>wr(ave(t?I.memo(e):e)),T4=(e,t=!0)=>wr(ive(t?I.memo(e):e)),Js=e=>function(n){var i,s;const r=ic(),o=((i=r.i18n)==null?void 0:i.locale)??iu.locale,a=((s=r.i18n)==null?void 0:s.translate)??iu.translate;return I.createElement(e,Object.assign({},n,{locale:o,t:a}))};class k4 extends I.Component{constructor(t){super(t),this.state={id:Us(t.uischema)?s4(t.uischema.scope):void 0}}componentWillUnmount(){Us(this.props.uischema)&&l4(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return I.createElement(mve,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const mve=I.memo(function(t){const n=S.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=S.useMemo(()=>Zg(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 I.createElement(C4,{type:"renderer"});{const o=r.renderer;return I.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class vve extends k4{constructor(t){super(t)}}const Vo=_4(k4);_4(vve);const nR=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 I.createElement($me,{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},I.createElement(Vo,null))},gve=({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(()=>Zg(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return I.createElement(C4,{type:"cell"});{const f=u.cell;return I.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},Gl=fve(gve),yve={black:"#000",white:"#fff"},cp=yve,bve={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"},Ac=bve,xve={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"},Nc=xve,wve={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=wve,Cve={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"},Lc=Cve,$ve={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"},Fc=$ve,Sve={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"},Yd=Sve,_ve={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"},Eve=_ve;function Ni(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function O4(e){if(!Ni(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=O4(e[n])}),t}function Vr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Ni(e)&&Ni(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ni(t[o])&&o in e&&Ni(e[o])?r[o]=Vr(e[o],t[o],n):n.clone?r[o]=Ni(t[o])?O4(t[o]):t[o]:r[o]=t[o])}),r}var R4={exports:{}},Pve="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Tve=Pve,kve=Tve;function D4(){}function M4(){}M4.resetWarningCache=D4;var Ove=function(){function e(r,o,a,i,s,l){if(l!==kve){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:M4,resetWarningCache:D4};return n.PropTypes=n,n};R4.exports=Ove();var Rve=R4.exports;const j=zt(Rve);function Hs(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 qp(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 Mve(e,t){return()=>null}function gu(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 Ln(e){return e&&e.ownerDocument||document}function vi(e){return Ln(e).defaultView||window}function Ive(e,t){return()=>null}function up(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ave=typeof window<"u"?S.useLayoutEffect:S.useEffect,Gn=Ave;let rR=0;function Nve(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(rR+=1,n(`mui-${rR}`))},[t]),r}const oR=Vf["useId".toString()];function Va(e){if(oR!==void 0){const t=oR();return e??t}return Nve(e)}function jve(e,t,n,r,o){return null}function br({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 Gn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function an(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{up(n,t)})},e)}let hy=!0,Nw=!1,aR;const Lve={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 Fve(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Lve[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function zve(e){e.metaKey||e.altKey||e.ctrlKey||(hy=!0)}function Ub(){hy=!1}function Bve(){this.visibilityState==="hidden"&&Nw&&(hy=!0)}function Vve(e){e.addEventListener("keydown",zve,!0),e.addEventListener("mousedown",Ub,!0),e.addEventListener("pointerdown",Ub,!0),e.addEventListener("touchstart",Ub,!0),e.addEventListener("visibilitychange",Bve,!0)}function Uve(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return hy||Fve(t)}function my(){const e=S.useCallback(o=>{o!=null&&Vve(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(Nw=!0,window.clearTimeout(aR),aR=window.setTimeout(()=>{Nw=!1},100),t.current=!1,!0):!1}function r(o){return Uve(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function I4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zc;function A4(){if(zc)return zc;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),zc="reverse",e.scrollLeft>0?zc="default":(e.scrollLeft=1,e.scrollLeft===0&&(zc="negative")),document.body.removeChild(e),zc}function Wve(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(A4()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Hve=e=>{const t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current},e_=Hve,qve={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Gve=qve;function t_(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]=t_(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ze(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 iR=e=>e,Yve=()=>{let e=iR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=iR}}},Kve=Yve(),N4=Kve,Xve={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=Xve[t];return r?`${n}-${r}`:`${N4.generate(e)}-${t}`}function Qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=et(e,o,n)}),r}const vy="$$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 j4(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Jve=/^((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)-.*))$/,Zve=j4(function(e){return Jve.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Qve(e){if(e.sheet)return e.sheet;for(var t=0;t0?Or(fd,--wo):0,Au--,ir===10&&(Au=1,yy--),ir}function Fo(){return ir=wo2||fp(ir)>3?"":" "}function fge(e,t){for(;--t&&Fo()&&!(ir<48||ir>102||ir>57&&ir<65||ir>70&&ir<97););return Gp(e,gv()+(t<6&&ui()==32&&Fo()==32))}function Lw(e){for(;Fo();)switch(ir){case e:return wo;case 34:case 39:e!==34&&e!==39&&Lw(ir);break;case 40:e===41&&Lw(e);break;case 92:Fo();break}return wo}function pge(e,t){for(;Fo()&&e+ir!==47+10;)if(e+ir===42+42&&ui()===47)break;return"/*"+Gp(t,wo-1)+"*"+gy(e===47?e:Fo())}function hge(e){for(;!fp(ui());)Fo();return Gp(e,wo)}function mge(e){return U4(bv("",null,null,null,[""],e=V4(e),0,[0],e))}function bv(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,P=w;x;)switch(b=y,y=Fo()){case 40:if(b!=108&&Or(P,f-1)==58){jw(P+=pn(yv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:P+=yv(y);break;case 9:case 10:case 13:case 32:P+=dge(b);break;case 92:P+=fge(gv()-1,7);continue;case 47:switch(ui()){case 42:case 47:Dm(vge(pge(Fo(),gv()),t,n),l);break;default:P+="/"}break;case 123*v:s[c++]=ei(P)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(P=pn(P,/\f/g,"")),m>0&&ei(P)-f&&Dm(m>32?lR(P+";",r,n,f-1):lR(pn(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(Dm($=sR(P,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)bv(P,t,$,$,C,a,f,s,_);else switch(p===99&&Or(P,3)===110?100:p){case 100:case 108:case 109:case 115:bv(e,$,$,r&&Dm(sR(e,$,$,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:bv(P,$,$,$,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=P="",f=i;break;case 58:f=1+ei(P),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&uge()==125)continue}switch(P+=gy(y),y*v){case 38:g=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(ei(P)-1)*g,g=1;break;case 64:ui()===45&&(P+=yv(Fo())),p=ui(),u=f=ei(w=P+=hge(gv())),y++;break;case 45:b===45&&ei(P)==2&&(v=0)}}return a}function sR(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=o_(p),b=0,v=0,x=0;b0?p[g]+" "+y:pn(y,/&\f/g,p[g])))&&(l[x++]=w);return by(e,t,n,o===0?n_:s,l,c,u)}function vge(e,t,n){return by(e,t,n,L4,gy(cge()),dp(e,2,-2),0)}function lR(e,t,n,r){return by(e,t,n,r_,dp(e,0,r),dp(e,r+1,-1),r)}function yu(e,t){for(var n="",r=o_(e),o=0;o6)switch(Or(e,t+1)){case 109:if(Or(e,t+4)!==45)break;case 102:return pn(e,/(.+:)(.+)-([^]+)/,"$1"+fn+"$2-$3$1"+dg+(Or(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~jw(e,"stretch")?W4(pn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Or(e,t+1)!==115)break;case 6444:switch(Or(e,ei(e)-3-(~jw(e,"!important")&&10))){case 107:return pn(e,":",":"+fn)+e;case 101:return pn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fn+(Or(e,14)===45?"inline-":"")+"box$3$1"+fn+"$2$3$1"+Fr+"$2box$3")+e}break;case 5936:switch(Or(e,t+11)){case 114:return fn+e+Fr+pn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fn+e+Fr+pn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fn+e+Fr+pn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fn+e+Fr+e+e}return e}var _ge=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case r_:t.return=W4(t.value,t.length);break;case F4:return yu([Kd(t,{value:pn(t.value,"@","@"+fn)})],o);case n_:if(t.length)return lge(t.props,function(a){switch(sge(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yu([Kd(t,{props:[pn(a,/:(read-\w+)/,":"+dg+"$1")]})],o);case"::placeholder":return yu([Kd(t,{props:[pn(a,/:(plac\w+)/,":"+fn+"input-$1")]}),Kd(t,{props:[pn(a,/:(plac\w+)/,":"+dg+"$1")]}),Kd(t,{props:[pn(a,/:(plac\w+)/,Fr+"input-$1")]})],o)}return""})}},Ege=[_ge],Pge=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||Ege,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 Fge={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},zge=/[A-Z]|^ms/g,Bge=/_EMO_([^_]+?)_([^]*?)_EMO_/g,J4=function(t){return t.charCodeAt(1)===45},uR=function(t){return t!=null&&typeof t!="boolean"},Wb=j4(function(e){return J4(e)?e:e.replace(zge,"-$&").toLowerCase()}),dR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bge,function(r,o,a){return ti={name:o,styles:a,next:ti},o})}return Fge[t]!==1&&!J4(t)&&typeof n=="number"&&n!==0?n+"px":n};function pp(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 ti={name:n.name,styles:n.styles,next:ti},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ti={name:r.name,styles:r.styles,next:ti},r=r.next;var o=n.styles+";";return o}return Vge(e,t,n)}case"function":{if(e!==void 0){var a=ti,i=n(e);return ti=a,pp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Vge(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Gge:Yge},mR=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},Kge=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return K4(n,r,o),Wge(function(){return X4(n,r,o)}),null},Xge=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=mR(t,n,r),l=s||hR(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(Zge(o)?n:o):t;return O.jsx(Hge,{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 eye(e,t){return Fw(e,t)}const tye=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nye=["values","unit","step"],rye=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 oye(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,nye),a=rye(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:${d_[e]}px)`};function Co(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||vR;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||vR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||d_).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 t5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function n5(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function sye(e,...t){const n=t5(e),r=[n,...t].reduce((o,a)=>Vr(o,a),{});return n5(Object.keys(n),r)}function lye(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 Ml({values:e,breakpoints:t,base:n}){const r=n||lye(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 Oy(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 fg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Oy(e,n)||r,t&&(o=t(o,r,e)),o}function vn(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=Oy(l,r)||{};return Co(i,s,f=>{let p=fg(c,o,f);return f===p&&typeof f=="string"&&(p=fg(c,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function cye(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const uye={m:"margin",p:"padding"},dye={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fye=cye(e=>{if(e.length>2)if(gR[e])e=gR[e];else return[e];const[t,n]=e.split(""),r=uye[t],o=dye[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),f_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...f_,...p_];function Yp(e,t,n,r){var o;const a=(o=Oy(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 h_(e){return Yp(e,"spacing",8)}function Yl(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 pye(e,t){return n=>e.reduce((r,o)=>(r[o]=Yl(t,n),r),{})}function hye(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fye(n),a=pye(o,r),i=e[n];return Co(e,i,a)}function r5(e,t){const n=h_(e.theme);return Object.keys(e).map(r=>hye(e,t,r,n)).reduce(Rf,{})}function Kn(e){return r5(e,f_)}Kn.propTypes={};Kn.filterProps=f_;function Xn(e){return r5(e,p_)}Xn.propTypes={};Xn.filterProps=p_;function mye(e=8){if(e.mui)return e;const t=h_({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 Ry(...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]?Rf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ai(e){return typeof e!="number"?e:`${e}px solid`}const vye=vn({prop:"border",themeKey:"borders",transform:ai}),gye=vn({prop:"borderTop",themeKey:"borders",transform:ai}),yye=vn({prop:"borderRight",themeKey:"borders",transform:ai}),bye=vn({prop:"borderBottom",themeKey:"borders",transform:ai}),xye=vn({prop:"borderLeft",themeKey:"borders",transform:ai}),wye=vn({prop:"borderColor",themeKey:"palette"}),Cye=vn({prop:"borderTopColor",themeKey:"palette"}),$ye=vn({prop:"borderRightColor",themeKey:"palette"}),Sye=vn({prop:"borderBottomColor",themeKey:"palette"}),_ye=vn({prop:"borderLeftColor",themeKey:"palette"}),Dy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Yl(t,r)});return Co(e,e.borderRadius,n)}return null};Dy.propTypes={};Dy.filterProps=["borderRadius"];Ry(vye,gye,yye,bye,xye,wye,Cye,$ye,Sye,_ye,Dy);const My=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yp(e.theme,"spacing",8),n=r=>({gap:Yl(t,r)});return Co(e,e.gap,n)}return null};My.propTypes={};My.filterProps=["gap"];const Iy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yp(e.theme,"spacing",8),n=r=>({columnGap:Yl(t,r)});return Co(e,e.columnGap,n)}return null};Iy.propTypes={};Iy.filterProps=["columnGap"];const Ay=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yp(e.theme,"spacing",8),n=r=>({rowGap:Yl(t,r)});return Co(e,e.rowGap,n)}return null};Ay.propTypes={};Ay.filterProps=["rowGap"];const Eye=vn({prop:"gridColumn"}),Pye=vn({prop:"gridRow"}),Tye=vn({prop:"gridAutoFlow"}),kye=vn({prop:"gridAutoColumns"}),Oye=vn({prop:"gridAutoRows"}),Rye=vn({prop:"gridTemplateColumns"}),Dye=vn({prop:"gridTemplateRows"}),Mye=vn({prop:"gridTemplateAreas"}),Iye=vn({prop:"gridArea"});Ry(My,Iy,Ay,Eye,Pye,Tye,kye,Oye,Rye,Dye,Mye,Iye);function bu(e,t){return t==="grey"?t:e}const Aye=vn({prop:"color",themeKey:"palette",transform:bu}),Nye=vn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bu}),jye=vn({prop:"backgroundColor",themeKey:"palette",transform:bu});Ry(Aye,Nye,jye);function Io(e){return e<=1&&e!==0?`${e*100}%`:e}const Lye=vn({prop:"width",transform:Io}),m_=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])||d_[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:Io(n)}};return Co(e,e.maxWidth,t)}return null};m_.filterProps=["maxWidth"];const Fye=vn({prop:"minWidth",transform:Io}),zye=vn({prop:"height",transform:Io}),Bye=vn({prop:"maxHeight",transform:Io}),Vye=vn({prop:"minHeight",transform:Io});vn({prop:"size",cssProperty:"width",transform:Io});vn({prop:"size",cssProperty:"height",transform:Io});const Uye=vn({prop:"boxSizing"});Ry(Lye,m_,Fye,zye,Bye,Vye,Uye);const Wye={border:{themeKey:"borders",transform:ai},borderTop:{themeKey:"borders",transform:ai},borderRight:{themeKey:"borders",transform:ai},borderBottom:{themeKey:"borders",transform:ai},borderLeft:{themeKey:"borders",transform:ai},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dy},color:{themeKey:"palette",transform:bu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bu},backgroundColor:{themeKey:"palette",transform:bu},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:Kn},mt:{style:Kn},mr:{style:Kn},mb:{style:Kn},ml:{style:Kn},mx:{style:Kn},my:{style:Kn},margin:{style:Kn},marginTop:{style:Kn},marginRight:{style:Kn},marginBottom:{style:Kn},marginLeft:{style:Kn},marginX:{style:Kn},marginY:{style:Kn},marginInline:{style:Kn},marginInlineStart:{style:Kn},marginInlineEnd:{style:Kn},marginBlock:{style:Kn},marginBlockStart:{style:Kn},marginBlockEnd:{style:Kn},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:My},rowGap:{style:Ay},columnGap:{style:Iy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Io},maxWidth:{style:m_},minWidth:{transform:Io},height:{transform:Io},maxHeight:{transform:Io},minHeight:{transform:Io},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ny=Wye;function Hye(...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 qye(e,t){return typeof e=="function"?e(t):e}function Gye(){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=Oy(o,c)||{};return f?f(i):Co(i,r,b=>{let v=fg(p,u,b);return b===v&&typeof b=="string"&&(v=fg(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:Ny;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=t5(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=qye(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Rf(p,e(m,b,a,i));else{const v=Co({theme:a},b,x=>({[m]:x}));Hye(v,b)?p[m]=t({sx:b,theme:a}):p=Rf(p,v)}else p=Rf(p,e(m,b,a,i))}),n5(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const o5=Gye();o5.filterProps=["sx"];const v_=o5,Yye=["breakpoints","palette","spacing","shape"];function jy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,Yye),s=oye(n),l=mye(o);let c=Vr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},iye,a)},i);return c=t.reduce((u,f)=>Vr(u,f),c),c.unstable_sxConfig=T({},Ny,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return v_({sx:f,theme:this})},c}function Kye(e){return Object.keys(e).length===0}function g_(e=null){const t=S.useContext(c_);return!t||Kye(t)?e:t}const Xye=jy();function Kp(e=Xye){return g_(e)}function Jye({styles:e,themeId:t,defaultTheme:n={}}){const r=Kp(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Qge,{styles:o})}const Zye=["sx"],Qye=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ny;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function y_(e){const{sx:t}=e,n=Oe(e,Zye),{systemProps:r,otherProps:o}=Qye(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Ni(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}function a5(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+=yR(r)?e[o]:je(e[o]):r+=`${yR(r)?o:je(o)}${je(e[o].toString())}`}),r}const t0e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function n0e(e){return Object.keys(e).length===0}function r0e(e){return typeof e=="string"&&e.charCodeAt(0)>96}const o0e=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,pg=e=>{const t={};return e&&e.forEach(n=>{const r=i5(n.props);t[r]=n.style}),t},a0e=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),pg(n)},hg=(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[i5(a.props)])}),o},i0e=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return hg(e,t,a)};function Df(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const s0e=jy(),l0e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xv({defaultTheme:e,theme:t,themeId:n}){return n0e(t)?e:t[n]||t}function c0e(e){return e?(t,n)=>n[e]:null}const bR=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:xv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=hg(t,pg(a),a);return[o,...i]}return o};function s5(e={}){const{themeId:t,defaultTheme:n=s0e,rootShouldForwardProp:r=Df,slotShouldForwardProp:o=Df}=e,a=i=>v_(T({},i,{theme:xv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{tye(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=c0e(l0e(c))}=s,m=Oe(s,t0e),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Df;c==="Root"||c==="root"?g=r:c?g=o:r0e(i)&&(g=void 0);const y=eye(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const $=_?_.map(D=>{if(typeof D=="function"&&D.__emotion_real!==D)return F=>bR({styledArg:D,props:F,defaultTheme:n,themeId:t});if(Ni(D)){let F=D,H;return D&&D.variants&&(H=D.variants,delete F.variants,F=q=>{let z=D;return hg(q,pg(H),H).forEach(G=>{z=Vr(z,G)}),z}),F}return D}):[];let P=C;if(Ni(C)){let D;C&&C.variants&&(D=C.variants,delete P.variants,P=F=>{let H=C;return hg(F,pg(D),D).forEach(z=>{H=Vr(H,z)}),H})}else typeof C=="function"&&C.__emotion_real!==C&&(P=D=>bR({styledArg:C,props:D,defaultTheme:n,themeId:t}));l&&p&&$.push(D=>{const F=xv(T({},D,{defaultTheme:n,themeId:t})),H=o0e(l,F);if(H){const q={};return Object.entries(H).forEach(([z,B])=>{q[z]=typeof B=="function"?B(T({},D,{theme:F})):B}),p(D,q)}return null}),l&&!b&&$.push(D=>{const F=xv(T({},D,{defaultTheme:n,themeId:t}));return i0e(D,a0e(l,F),F,l)}),v||$.push(a);const k=$.length-_.length;if(Array.isArray(C)&&k>0){const D=new Array(k).fill("");P=[...C,...D],P.raw=[...C.raw,...D]}const A=y(P,...$);return i.muiName&&(A.muiName=i.muiName),A};return y.withConfig&&(w.withConfig=y.withConfig),w}}const u0e=s5(),d0e=u0e;function b_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:t_(t.components[n].defaultProps,r)}function l5({props:e,name:t,defaultTheme:n,themeId:r}){let o=Kp(n);return r&&(o=o[r]||o),b_({theme:o,name:t,props:e})}function x_(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function f0e(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 Kl(e){if(e.type)return e;if(e.charAt(0)==="#")return Kl(f0e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Hs(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(Hs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function Ly(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 p0e(e){e=Kl(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])),Ly({type:s,values:l})}function xR(e){e=Kl(e);let t=e.type==="hsl"||e.type==="hsla"?Kl(p0e(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 h0e(e,t){const n=xR(e),r=xR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=Kl(e),t=x_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ly(e)}function Fy(e,t){if(e=Kl(e),t=x_(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 Ly(e)}function zy(e,t){if(e=Kl(e),t=x_(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 Ly(e)}const m0e=["component","direction","spacing","divider","children","className","useFlexGap"],v0e=jy(),g0e=d0e("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function y0e(e){return l5({props:e,name:"MuiStack",defaultTheme:v0e})}function b0e(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],w0e=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},Co({theme:t},Ml({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=h_(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=Ml({values:e.direction,base:o}),i=Ml({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=Vr(n,Co({theme:t},i,(l,c)=>e.useFlexGap?{gap:Yl(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${x0e(c?a[c]:e.direction)}`]:Yl(r,l)}}))}return n=sye(t.breakpoints,n),n};function C0e(e={}){const{createStyledComponent:t=g0e,useThemeProps:n=y0e,componentName:r="MuiStack"}=e,o=()=>Ze({root:["root"]},l=>et(r,l),{}),a=t(w0e);return S.forwardRef(function(l,c){const u=n(l),f=y_(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,m0e),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?b0e(x,v):x}))})}function $0e(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const S0e=["mode","contrastThreshold","tonalOffset"],wR={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:cp.white,default:cp.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}},Hb={text:{primary:cp.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:cp.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 CR(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=zy(e.main,o):t==="dark"&&(e.dark=Fy(e.main,a)))}function _0e(e="light"){return e==="dark"?{main:jc[200],light:jc[50],dark:jc[400]}:{main:jc[700],light:jc[400],dark:jc[800]}}function E0e(e="light"){return e==="dark"?{main:Nc[200],light:Nc[50],dark:Nc[400]}:{main:Nc[500],light:Nc[300],dark:Nc[700]}}function P0e(e="light"){return e==="dark"?{main:Ac[500],light:Ac[300],dark:Ac[700]}:{main:Ac[700],light:Ac[400],dark:Ac[800]}}function T0e(e="light"){return e==="dark"?{main:Lc[400],light:Lc[300],dark:Lc[700]}:{main:Lc[700],light:Lc[500],dark:Lc[900]}}function k0e(e="light"){return e==="dark"?{main:Fc[400],light:Fc[300],dark:Fc[700]}:{main:Fc[800],light:Fc[500],dark:Fc[900]}}function O0e(e="light"){return e==="dark"?{main:Yd[400],light:Yd[300],dark:Yd[700]}:{main:"#ed6c02",light:Yd[500],dark:Yd[900]}}function R0e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,S0e),a=e.primary||_0e(t),i=e.secondary||E0e(t),s=e.error||P0e(t),l=e.info||T0e(t),c=e.success||k0e(t),u=e.warning||O0e(t);function f(v){return h0e(v,Hb.text.primary)>=n?Hb.text.primary:wR.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(Hs(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(Hs(12,x?` (${x})`:"",JSON.stringify(v.main)));return CR(v,"light",y,r),CR(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:Hb,light:wR};return Vr(T({common:T({},cp),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:Eve,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const D0e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function M0e(e){return Math.round(e*1e5)/1e5}const $R={textTransform:"uppercase"},SR='"Roboto", "Helvetica", "Arial", sans-serif';function I0e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=SR,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,D0e),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===SR?{letterSpacing:`${M0e(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,$R),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,$R),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const A0e=.2,N0e=.14,j0e=.12;function Nn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${A0e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${N0e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${j0e})`].join(",")}const L0e=["none",Nn(0,2,1,-1,0,1,1,0,0,1,3,0),Nn(0,3,1,-2,0,2,2,0,0,1,5,0),Nn(0,3,3,-2,0,3,4,0,0,1,8,0),Nn(0,2,4,-1,0,4,5,0,0,1,10,0),Nn(0,3,5,-1,0,5,8,0,0,1,14,0),Nn(0,3,5,-1,0,6,10,0,0,1,18,0),Nn(0,4,5,-2,0,7,10,1,0,2,16,1),Nn(0,5,5,-3,0,8,10,1,0,3,14,2),Nn(0,5,6,-3,0,9,12,1,0,3,16,2),Nn(0,6,6,-3,0,10,14,1,0,4,18,3),Nn(0,6,7,-4,0,11,15,1,0,4,20,3),Nn(0,7,8,-4,0,12,17,2,0,5,22,4),Nn(0,7,8,-4,0,13,19,2,0,5,24,4),Nn(0,7,9,-4,0,14,21,2,0,5,26,4),Nn(0,8,9,-5,0,15,22,2,0,6,28,5),Nn(0,8,10,-5,0,16,24,2,0,6,30,5),Nn(0,8,11,-5,0,17,26,2,0,6,32,5),Nn(0,9,11,-5,0,18,28,2,0,7,34,6),Nn(0,9,12,-6,0,19,29,2,0,7,36,6),Nn(0,10,13,-6,0,20,31,3,0,8,38,7),Nn(0,10,13,-6,0,21,33,3,0,8,40,7),Nn(0,10,14,-6,0,22,35,3,0,8,42,7),Nn(0,11,14,-7,0,23,36,3,0,9,44,8),Nn(0,11,15,-7,0,24,38,3,0,9,46,8)],F0e=L0e,z0e=["duration","easing","delay"],B0e={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)"},c5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _R(e){return`${Math.round(e)}ms`}function V0e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function U0e(e){const t=T({},B0e,e.easing),n=T({},c5,e.duration);return T({getAutoHeightDuration:V0e,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,z0e),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:_R(i)} ${s} ${typeof l=="string"?l:_R(l)}`).join(",")}},e,{easing:t,duration:n})}const W0e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H0e=W0e,q0e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function G0e(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,q0e);if(e.vars)throw new Error(Hs(18));const s=R0e(r),l=jy(e);let c=Vr(l,{mixins:$0e(l.breakpoints,n),palette:s,shadows:F0e.slice(),typography:I0e(s,a),transitions:U0e(o),zIndex:T({},H0e)});return c=Vr(c,i),c=t.reduce((u,f)=>Vr(u,f),c),c.unstable_sxConfig=T({},Ny,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return v_({sx:f,theme:this})},c}const Y0e=G0e(),By=Y0e;function er(){const e=Kp(By);return e[vy]||e}function Ke({props:e,name:t}){return l5({props:e,name:t,defaultTheme:By,themeId:vy})}const Ko=e=>Df(e)&&e!=="classes",w_=Df,K0e=s5({themeId:vy,defaultTheme:By,rootShouldForwardProp:Ko}),de=K0e,X0e=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ER=X0e;function J0e(e){return et("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Z0e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Q0e=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Ze(o,J0e,r)},e1e=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]}}),u5=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,Z0e),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=Q0e(v);return O.jsxs(e1e,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]}))});u5.muiName="SvgIcon";const zw=u5;function tr(e,t){function n(r,o){return O.jsx(zw,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=zw.muiName,S.memo(S.forwardRef(n))}const t1e={configure:e=>{N4.configure(e)}},n1e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:ug,createSvgIcon:tr,debounce:qp,deprecatedPropType:Mve,isMuiElement:gu,ownerDocument:Ln,ownerWindow:vi,requirePropFactory:Ive,setRef:up,unstable_ClassNameGenerator:t1e,unstable_useEnhancedEffect:Gn,unstable_useId:Va,unsupportedProp:jve,useControlled:br,useEventCallback:mt,useForkRef:an,useIsFocusVisible:my},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 C_=Symbol.for("react.element"),$_=Symbol.for("react.portal"),Vy=Symbol.for("react.fragment"),Uy=Symbol.for("react.strict_mode"),Wy=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),qy=Symbol.for("react.context"),r1e=Symbol.for("react.server_context"),Gy=Symbol.for("react.forward_ref"),Yy=Symbol.for("react.suspense"),Ky=Symbol.for("react.suspense_list"),Xy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),o1e=Symbol.for("react.offscreen"),d5;d5=Symbol.for("react.module.reference");function xa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case C_:switch(e=e.type,e){case Vy:case Wy:case Uy:case Yy:case Ky:return e;default:switch(e=e&&e.$$typeof,e){case r1e:case qy:case Gy:case Jy:case Xy:case Hy:return e;default:return t}}case $_:return t}}}$n.ContextConsumer=qy;$n.ContextProvider=Hy;$n.Element=C_;$n.ForwardRef=Gy;$n.Fragment=Vy;$n.Lazy=Jy;$n.Memo=Xy;$n.Portal=$_;$n.Profiler=Wy;$n.StrictMode=Uy;$n.Suspense=Yy;$n.SuspenseList=Ky;$n.isAsyncMode=function(){return!1};$n.isConcurrentMode=function(){return!1};$n.isContextConsumer=function(e){return xa(e)===qy};$n.isContextProvider=function(e){return xa(e)===Hy};$n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===C_};$n.isForwardRef=function(e){return xa(e)===Gy};$n.isFragment=function(e){return xa(e)===Vy};$n.isLazy=function(e){return xa(e)===Jy};$n.isMemo=function(e){return xa(e)===Xy};$n.isPortal=function(e){return xa(e)===$_};$n.isProfiler=function(e){return xa(e)===Wy};$n.isStrictMode=function(e){return xa(e)===Uy};$n.isSuspense=function(e){return xa(e)===Yy};$n.isSuspenseList=function(e){return xa(e)===Ky};$n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vy||e===Wy||e===Uy||e===Yy||e===Ky||e===o1e||typeof e=="object"&&e!==null&&(e.$$typeof===Jy||e.$$typeof===Xy||e.$$typeof===Hy||e.$$typeof===qy||e.$$typeof===Gy||e.$$typeof===d5||e.getModuleId!==void 0)};$n.typeOf=xa;function Bw(e,t){return Bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Bw(e,t)}function S_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bw(e,t)}function a1e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function i1e(e,t){e.classList?e.classList.add(t):a1e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function PR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function s1e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=PR(e.className,t):e.setAttribute("class",PR(e.className&&e.className.baseVal||"",t))}const TR={disabled:!1},mg=I.createContext(null);var f5=function(t){return t.scrollTop},pf="unmounted",wl="exited",Cl="entering",Hc="entered",Vw="exiting",Qi=function(e){S_(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=wl,a.appearStatus=Cl):l=Hc:r.unmountOnExit||r.mountOnEnter?l=pf:l=wl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===pf?{status:wl}: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!==Cl&&i!==Hc&&(a=Cl):(i===Cl||i===Hc)&&(a=Vw)}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===Cl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:uf.findDOMNode(this);i&&f5(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wl&&this.setState({status:pf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[uf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||TR.disabled){this.safeSetState({status:Hc},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Cl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:Hc},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:uf.findDOMNode(this);if(!a||TR.disabled){this.safeSetState({status:wl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Vw},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:wl},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:uf.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===pf)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 I.createElement(mg.Provider,{value:null},typeof i=="function"?i(o,s):I.cloneElement(I.Children.only(i),s))},t}(I.Component);Qi.contextType=mg;Qi.propTypes={};function Bc(){}Qi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bc,onEntering:Bc,onEntered:Bc,onExit:Bc,onExiting:Bc,onExited:Bc};Qi.UNMOUNTED=pf;Qi.EXITED=wl;Qi.ENTERING=Cl;Qi.ENTERED=Hc;Qi.EXITING=Vw;const Zy=Qi;var l1e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return i1e(t,r)})},qb=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return s1e(t,r)})},__=function(e){S_(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Nu(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 v1e(e){return et("MuiCollapse",e)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const g1e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],y1e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(r,v1e,n)},b1e=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"})),x1e=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%"})),w1e=de("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),h5=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=c5.standard,TransitionComponent:C=Zy}=r,_=Oe(r,g1e),$=T({},r,{orientation:g,collapsedSize:s}),P=y1e($),k=er(),A=S.useRef(),D=S.useRef(null),F=S.useRef(),H=typeof s=="number"?`${s}px`:s,q=g==="horizontal",z=q?"width":"height";S.useEffect(()=>()=>{clearTimeout(A.current)},[]);const B=S.useRef(null),G=an(n,B),Q=V=>X=>{if(V){const re=B.current;X===void 0?V(re):V(re,X)}},W=()=>D.current?D.current[q?"clientWidth":"clientHeight"]:0,J=Q((V,X)=>{D.current&&q&&(D.current.style.position="absolute"),V.style[z]=H,f&&f(V,X)}),Z=Q((V,X)=>{const re=W();D.current&&q&&(D.current.style.position="");const{duration:le,easing:xe}=Nu({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[z]=`${re}px`,V.style.transitionTimingFunction=xe,m&&m(V,X)}),L=Q((V,X)=>{V.style[z]="auto",p&&p(V,X)}),Y=Q(V=>{V.style[z]=`${W()}px`,b&&b(V)}),K=Q(v),R=Q(V=>{const X=W(),{duration:re,easing:le}=Nu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(X);V.style.transitionDuration=`${xe}ms`,F.current=xe}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[z]=H,V.style.transitionTimingFunction=le,x&&x(V)}),N=V=>{w==="auto"&&(A.current=setTimeout(V,F.current||0)),o&&o(B.current,V)};return O.jsx(C,T({in:u,onEnter:J,onEntered:L,onEntering:Z,onExit:Y,onExited:K,onExiting:R,addEndListener:N,nodeRef:B,timeout:w==="auto"?null:w},_,{children:(V,X)=>O.jsx(b1e,T({as:l,className:Ie(P.root,i,{entered:P.entered,exited:!u&&H==="0px"&&P.hidden}[V]),style:T({[q?"minWidth":"minHeight"]:H},y),ownerState:T({},$,{state:V}),ref:G},X,{children:O.jsx(x1e,{ownerState:T({},$,{state:V}),className:P.wrapper,ref:D,children:O.jsx(w1e,{ownerState:T({},$,{state:V}),className:P.wrapperInner,children:a})})}))}))});h5.muiSupportAuto=!0;const C1e=h5;function $1e(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 S1e=["className","component","elevation","square","variant"],_1e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ze(a,$1e,o)},E1e=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",ER(t.elevation))}, ${Tt("#fff",ER(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),P1e=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,S1e),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=_1e(u);return O.jsx(E1e,T({as:a,ownerState:u,className:Ie(f.root,o),ref:n},c))}),es=P1e,T1e=S.createContext({}),m5=T1e;function k1e(e){return et("MuiAccordion",e)}const O1e=Qe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Mm=O1e,R1e=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],D1e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Ze({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},k1e,t)},M1e=de(es,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mm.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"}},[`&.${Mm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Mm.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&&{[`&.${Mm.expanded}`]:{margin:"16px 0"}})),I1e=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=C1e,TransitionProps:m}=r,b=Oe(r,R1e),[v,x]=br({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=S.useCallback(P=>{x(!v),u&&u(P,!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}),$=D1e(_);return O.jsxs(M1e,T({className:Ie($.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(m5.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})}))]}))}),A1e=I1e;function N1e(e){return et("MuiAccordionDetails",e)}Qe("MuiAccordionDetails",["root"]);const j1e=["className"],L1e=e=>{const{classes:t}=e;return Ze({root:["root"]},N1e,t)},F1e=de("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),z1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,j1e),i=r,s=L1e(i);return O.jsx(F1e,T({className:Ie(s.root,o),ref:n,ownerState:i},a))}),B1e=z1e;function V1e(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 U1e=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),aa=U1e,W1e=["center","classes","className"];let Qy=e=>e,kR,OR,RR,DR;const Uw=550,H1e=80,q1e=u_(kR||(kR=Qy` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),G1e=u_(OR||(OR=Qy` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Y1e=u_(RR||(RR=Qy` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),K1e=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),X1e=de(V1e,{name:"MuiTouchRipple",slot:"Ripple"})(DR||(DR=Qy` + 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; + } +`),aa.rippleVisible,q1e,Uw,({theme:e})=>e.transitions.easing.easeInOut,aa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,aa.child,aa.childLeaving,G1e,Uw,({theme:e})=>e.transitions.easing.easeInOut,aa.childPulsate,Y1e,({theme:e})=>e.transitions.easing.easeInOut),J1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,W1e),[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:P,rippleSize:k,cb:A}=C;c(D=>[...D,O.jsx(X1e,{classes:{ripple:Ie(a.ripple,aa.ripple),rippleVisible:Ie(a.rippleVisible,aa.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,aa.ripplePulsate),child:Ie(a.child,aa.child),childLeaving:Ie(a.childLeaving,aa.childLeaving),childPulsate:Ie(a.childPulsate,aa.childPulsate)},timeout:Uw,pulsate:_,rippleX:$,rippleY:P,rippleSize:k},u.current)]),u.current+=1,f.current=A},[a]),g=S.useCallback((C={},_={},$=()=>{})=>{const{pulsate:P=!1,center:k=o||_.pulsate,fakeElement:A=!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 D=A?null:v.current,F=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,q,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)H=Math.round(F.width/2),q=Math.round(F.height/2);else{const{clientX:B,clientY:G}=C.touches&&C.touches.length>0?C.touches[0]:C;H=Math.round(B-F.left),q=Math.round(G-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const B=Math.max(Math.abs((D?D.clientWidth:0)-H),H)*2+2,G=Math.max(Math.abs((D?D.clientHeight:0)-q),q)*2+2;z=Math.sqrt(B**2+G**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:P,rippleX:H,rippleY:q,rippleSize:z,cb:$})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},H1e)):x({pulsate:P,rippleX:H,rippleY:q,rippleSize:z,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(K1e,T({className:Ie(aa.root,a.root,i),ref:v},s,{children:O.jsx(T_,{component:null,exit:!0,children:l})}))}),Z1e=J1e;function Q1e(e){return et("MuiButtonBase",e)}const ebe=Qe("MuiButtonBase",["root","disabled","focusVisible"]),tbe=ebe,nbe=["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"],rbe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ze({root:["root",t&&"disabled",n&&"focusVisible"]},Q1e,o);return n&&r&&(i.root+=` ${r}`),i},obe=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"},[`&.${tbe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),abe=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:P,onMouseUp:k,onTouchEnd:A,onTouchMove:D,onTouchStart:F,tabIndex:H=0,TouchRippleProps:q,touchRippleRef:z,type:B}=r,G=Oe(r,nbe),Q=S.useRef(null),W=S.useRef(null),J=an(W,z),{isFocusVisibleRef:Z,onFocus:L,onBlur:Y,ref:K}=my(),[R,N]=S.useState(!1);c&&R&&N(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[V,X]=S.useState(!1);S.useEffect(()=>{X(!0)},[]);const re=V&&!u&&!c;S.useEffect(()=>{R&&p&&!u&&V&&W.current.pulsate()},[u,p,R,V]);function le(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&W.current&&W.current[Te](gt),!0))}const xe=le("start",$),fe=le("stop",x),ge=le("stop",g),he=le("stop",k),_e=le("stop",Te=>{R&&Te.preventDefault(),P&&P(Te)}),ve=le("start",F),Be=le("stop",A),Ue=le("stop",D),ze=le("stop",Te=>{Y(Te),Z.current===!1&&N(!1),b&&b(Te)},!1),He=mt(Te=>{Q.current||(Q.current=Te.currentTarget),L(Te),Z.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&&R&&W.current&&Te.key===" "&&(we.current=!0,W.current.stop(Te,()=>{W.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))}),Ge=mt(Te=>{p&&Te.key===" "&&W.current&&R&&!Te.defaultPrevented&&(we.current=!1,W.current.stop(Te,()=>{W.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&be()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let rt=l;rt==="button"&&(G.href||G.to)&&(rt=m);const Ae={};rt==="button"?(Ae.type=B===void 0?"button":B,Ae.disabled=c):(!G.href&&!G.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Le=an(n,K,Q),Fe=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:H,focusVisible:R}),Pe=rbe(Fe);return O.jsxs(obe,T({as:rt,className:Ie(Pe.root,s),ownerState:Fe,onBlur:ze,onClick:v,onContextMenu:fe,onFocus:He,onKeyDown:Ce,onKeyUp:Ge,onMouseDown:xe,onMouseLeave:_e,onMouseUp:he,onDragLeave:ge,onTouchEnd:Be,onTouchMove:Ue,onTouchStart:ve,ref:Le,tabIndex:c?-1:H,type:B},Ae,G,{children:[i,re?O.jsx(Z1e,T({ref:J,center:a},q)):null]}))}),va=abe;function ibe(e){return et("MuiAccordionSummary",e)}const sbe=Qe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),su=sbe,lbe=["children","className","expandIcon","focusVisibleClassName","onClick"],cbe=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Ze({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},ibe,t)},ube=de(va,{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),[`&.${su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${su.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${su.expanded}`]:{minHeight:64}})}),dbe=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}),[`&.${su.expanded}`]:{margin:"20px 0"}})),fbe=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}),[`&.${su.expanded}`]:{transform:"rotate(180deg)"}})),pbe=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,lbe),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=S.useContext(m5),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=cbe(v);return O.jsxs(ube,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(dbe,{className:x.content,ownerState:v,children:o}),i&&O.jsx(fbe,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),hbe=pbe;function mbe(e){return et("MuiIconButton",e)}const vbe=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),gbe=vbe,ybe=["edge","children","className","color","disabled","disableFocusRipple","size"],bbe=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 Ze(i,mbe,t)},xbe=de(va,{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)},{[`&.${gbe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),wbe=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,ybe),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=bbe(p);return O.jsx(xbe,T({className:Ie(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),Qn=wbe,Cbe=tr(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 $be(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 Sbe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_be=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 Ze(s,$be,i)},Ebe=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})),MR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pbe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tbe=e=>Pbe[e]||e,kbe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=Tbe(r.color),a=y_(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=MR}=a,b=Oe(a,Sbe),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]||MR[p])||"span",g=_be(v);return O.jsx(Ebe,T({as:x,ref:n,ownerState:v,className:Ie(g.root,s)},b))}),mn=kbe;function Obe(e){return et("MuiAppBar",e)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Rbe=["className","color","enableColorOnDark","position"],Dbe=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Ze(o,Obe,r)},Im=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Mbe=de(es,{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:Im(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Im(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:Im(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Im(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"}))}),Ibe=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,Rbe),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=Dbe(c);return O.jsx(Mbe,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ie(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),Abe=Ibe;function di(e){return typeof e=="string"}function hf(e,t,n){return e===void 0||di(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function Nbe(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const jbe={disableDefaultClasses:!1},Lbe=S.createContext(jbe);function Fbe(e){const{disableDefaultClasses:t}=S.useContext(Lbe);return n=>t?"":e(n)}function Mf(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 Zs(e,t,n){return typeof e=="function"?e(t,n):e}function IR(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 zbe(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=Mf(T({},o,r)),s=IR(r),l=IR(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 Bbe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Bt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,Bbe),s=a?{}:Zs(r,o),{props:l,internalRef:c}=zbe(T({},i,{externalSlotProps:s})),u=an(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return hf(n,T({},l,{ref:u}),o)}function Vbe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=e_({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 Ube=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Wbe(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 Hbe(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 qbe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Hbe(e))}function Gbe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ube)).forEach((r,o)=>{const a=Wbe(r);a===-1||!qbe(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 Ybe(){return!0}function v5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Gbe,isEnabled:i=Ybe,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=an(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=Ln(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=Ln(b.current),C=P=>{x.current=P,!(r||!i()||P.key!=="Tab")&&w.activeElement===b.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const P=b.current;if(P===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(P.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 A,D;const F=!!((A=x.current)!=null&&A.shiftKey&&((D=x.current)==null?void 0:D.key)==="Tab"),H=k[0],q=k[k.length-1];typeof H!="string"&&typeof q!="string"&&(F?q.focus():H.focus())}else P.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 go="top",ga="bottom",ya="right",yo="left",k_="auto",Xp=[go,ga,ya,yo],ju="start",hp="end",Kbe="clippingParents",g5="viewport",Xd="popper",Xbe="reference",AR=Xp.reduce(function(e,t){return e.concat([t+"-"+ju,t+"-"+hp])},[]),y5=[].concat(Xp,[k_]).reduce(function(e,t){return e.concat([t,t+"-"+ju,t+"-"+hp])},[]),Jbe="beforeRead",Zbe="read",Qbe="afterRead",exe="beforeMain",txe="main",nxe="afterMain",rxe="beforeWrite",oxe="write",axe="afterWrite",ixe=[Jbe,Zbe,Qbe,exe,txe,nxe,rxe,oxe,axe];function gi(e){return e?(e.nodeName||"").toLowerCase():null}function Uo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xl(e){var t=Uo(e).Element;return e instanceof t||e instanceof Element}function ua(e){var t=Uo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O_(e){if(typeof ShadowRoot>"u")return!1;var t=Uo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sxe(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];!ua(a)||!gi(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 lxe(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},{});!ua(o)||!gi(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const cxe={name:"applyStyles",enabled:!0,phase:"write",fn:sxe,effect:lxe,requires:["computeStyles"]};function fi(e){return e.split("-")[0]}var Il=Math.max,vg=Math.min,Lu=Math.round;function Ww(){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 b5(){return!/^((?!chrome|android).)*safari/i.test(Ww())}function Fu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ua(e)&&(o=e.offsetWidth>0&&Lu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Lu(r.height)/e.offsetHeight||1);var i=Xl(e)?Uo(e):window,s=i.visualViewport,l=!b5()&&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 R_(e){var t=Fu(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 x5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O_(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yi(e){return Uo(e).getComputedStyle(e)}function uxe(e){return["table","td","th"].indexOf(gi(e))>=0}function Qs(e){return((Xl(e)?e.ownerDocument:e.document)||window.document).documentElement}function e0(e){return gi(e)==="html"?e:e.assignedSlot||e.parentNode||(O_(e)?e.host:null)||Qs(e)}function NR(e){return!ua(e)||Yi(e).position==="fixed"?null:e.offsetParent}function dxe(e){var t=/firefox/i.test(Ww()),n=/Trident/i.test(Ww());if(n&&ua(e)){var r=Yi(e);if(r.position==="fixed")return null}var o=e0(e);for(O_(o)&&(o=o.host);ua(o)&&["html","body"].indexOf(gi(o))<0;){var a=Yi(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 Jp(e){for(var t=Uo(e),n=NR(e);n&&uxe(n)&&Yi(n).position==="static";)n=NR(n);return n&&(gi(n)==="html"||gi(n)==="body"&&Yi(n).position==="static")?t:n||dxe(e)||t}function D_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function If(e,t,n){return Il(e,vg(t,n))}function fxe(e,t,n){var r=If(e,t,n);return r>n?n:r}function w5(){return{top:0,right:0,bottom:0,left:0}}function C5(e){return Object.assign({},w5(),e)}function $5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pxe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,C5(typeof t!="number"?t:$5(t,Xp))};function hxe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=fi(n.placement),l=D_(s),c=[yo,ya].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=pxe(o.padding,n),p=R_(a),m=l==="y"?go:yo,b=l==="y"?ga:ya,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=Jp(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,P=If(C,$,_),k=l;n.modifiersData[r]=(t={},t[k]=P,t.centerOffset=P-$,t)}}function mxe(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)||x5(t.elements.popper,o)&&(t.elements.arrow=o))}const vxe={name:"arrow",enabled:!0,phase:"main",fn:hxe,effect:mxe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zu(e){return e.split("-")[1]}var gxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yxe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Lu(n*o)/o||0,y:Lu(r*o)/o||0}}function jR(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=yo,C=go,_=window;if(c){var $=Jp(n),P="clientHeight",k="clientWidth";if($===Uo(n)&&($=Qs(n),Yi($).position!=="static"&&s==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,o===go||(o===yo||o===ya)&&a===hp){C=ga;var A=f&&$===_&&_.visualViewport?_.visualViewport.height:$[P];v-=A-r.height,v*=l?1:-1}if(o===yo||(o===go||o===ga)&&a===hp){w=ya;var D=f&&$===_&&_.visualViewport?_.visualViewport.width:$[k];m-=D-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&gxe),H=u===!0?yxe({x:m,y:v},Uo(n)):{x:m,y:v};if(m=H.x,v=H.y,l){var q;return Object.assign({},F,(q={},q[C]=y?"0":"",q[w]=g?"0":"",q.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",q))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function bxe(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:fi(t.placement),variation:zu(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,jR(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,jR(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 xxe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bxe,data:{}};var Am={passive:!0};function wxe(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=Uo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Am)}),s&&l.addEventListener("resize",n.update,Am),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Am)}),s&&l.removeEventListener("resize",n.update,Am)}}const Cxe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wxe,data:{}};var $xe={left:"right",right:"left",bottom:"top",top:"bottom"};function wv(e){return e.replace(/left|right|bottom|top/g,function(t){return $xe[t]})}var Sxe={start:"end",end:"start"};function LR(e){return e.replace(/start|end/g,function(t){return Sxe[t]})}function M_(e){var t=Uo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function I_(e){return Fu(Qs(e)).left+M_(e).scrollLeft}function _xe(e,t){var n=Uo(e),r=Qs(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=b5();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+I_(e),y:l}}function Exe(e){var t,n=Qs(e),r=M_(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Il(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Il(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+I_(e),l=-r.scrollTop;return Yi(o||n).direction==="rtl"&&(s+=Il(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function A_(e){var t=Yi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function S5(e){return["html","body","#document"].indexOf(gi(e))>=0?e.ownerDocument.body:ua(e)&&A_(e)?e:S5(e0(e))}function Af(e,t){var n;t===void 0&&(t=[]);var r=S5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Uo(r),i=o?[a].concat(a.visualViewport||[],A_(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Af(e0(i)))}function Hw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pxe(e,t){var n=Fu(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 FR(e,t,n){return t===g5?Hw(_xe(e,n)):Xl(t)?Pxe(t,n):Hw(Exe(Qs(e)))}function Txe(e){var t=Af(e0(e)),n=["absolute","fixed"].indexOf(Yi(e).position)>=0,r=n&&ua(e)?Jp(e):e;return Xl(r)?t.filter(function(o){return Xl(o)&&x5(o,r)&&gi(o)!=="body"}):[]}function kxe(e,t,n,r){var o=t==="clippingParents"?Txe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=FR(e,c,r);return l.top=Il(u.top,l.top),l.right=vg(u.right,l.right),l.bottom=vg(u.bottom,l.bottom),l.left=Il(u.left,l.left),l},FR(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 _5(e){var t=e.reference,n=e.element,r=e.placement,o=r?fi(r):null,a=r?zu(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case go:l={x:i,y:t.y-n.height};break;case ga:l={x:i,y:t.y+t.height};break;case ya:l={x:t.x+t.width,y:s};break;case yo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?D_(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case ju:l[c]=l[c]-(t[u]/2-n[u]/2);break;case hp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function mp(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?Kbe:s,c=n.rootBoundary,u=c===void 0?g5:c,f=n.elementContext,p=f===void 0?Xd:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=C5(typeof x!="number"?x:$5(x,Xp)),y=p===Xd?Xbe:Xd,w=e.rects.popper,C=e.elements[b?y:p],_=kxe(Xl(C)?C:C.contextElement||Qs(e.elements.popper),l,u,i),$=Fu(e.elements.reference),P=_5({reference:$,element:w,strategy:"absolute",placement:o}),k=Hw(Object.assign({},w,P)),A=p===Xd?k:$,D={top:_.top-A.top+g.top,bottom:A.bottom-_.bottom+g.bottom,left:_.left-A.left+g.left,right:A.right-_.right+g.right},F=e.modifiersData.offset;if(p===Xd&&F){var H=F[o];Object.keys(D).forEach(function(q){var z=[ya,ga].indexOf(q)>=0?1:-1,B=[go,ga].indexOf(q)>=0?"y":"x";D[q]+=H[B]*z})}return D}function Oxe(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?y5:l,u=zu(r),f=u?s?AR:AR.filter(function(b){return zu(b)===u}):Xp,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]=mp(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[fi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Rxe(e){if(fi(e)===k_)return[];var t=wv(e);return[LR(e),t,LR(t)]}function Dxe(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=fi(x),y=g===x,w=l||(y||!b?[wv(x)]:Rxe(x)),C=[x].concat(w).reduce(function(R,N){return R.concat(fi(N)===k_?Oxe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,$=t.rects.popper,P=new Map,k=!0,A=C[0],D=0;D=0,B=z?"width":"height",G=mp(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?q?ya:yo:q?ga:go;_[B]>$[B]&&(Q=wv(Q));var W=wv(Q),J=[];if(a&&J.push(G[H]<=0),s&&J.push(G[Q]<=0,G[W]<=0),J.every(function(R){return R})){A=F,k=!1;break}P.set(F,J)}if(k)for(var Z=b?3:1,L=function(N){var V=C.find(function(X){var re=P.get(X);if(re)return re.slice(0,N).every(function(le){return le})});if(V)return A=V,"break"},Y=Z;Y>0;Y--){var K=L(Y);if(K==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const Mxe={name:"flip",enabled:!0,phase:"main",fn:Dxe,requiresIfExists:["offset"],data:{_skip:!1}};function zR(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 BR(e){return[go,ya,ga,yo].some(function(t){return e[t]>=0})}function Ixe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=mp(t,{elementContext:"reference"}),s=mp(t,{altBoundary:!0}),l=zR(i,r),c=zR(s,o,a),u=BR(l),f=BR(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 Axe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ixe};function Nxe(e,t,n){var r=fi(e),o=[yo,go].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,[yo,ya].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function jxe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=y5.reduce(function(u,f){return u[f]=Nxe(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 Lxe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jxe};function Fxe(e){var t=e.state,n=e.name;t.modifiersData[n]=_5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zxe={name:"popperOffsets",enabled:!0,phase:"read",fn:Fxe,data:{}};function Bxe(e){return e==="x"?"y":"x"}function Vxe(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=mp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=fi(t.placement),y=zu(t.placement),w=!y,C=D_(g),_=Bxe(C),$=t.modifiersData.popperOffsets,P=t.rects.reference,k=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if($){if(a){var q,z=C==="y"?go:yo,B=C==="y"?ga:ya,G=C==="y"?"height":"width",Q=$[C],W=Q+x[z],J=Q-x[B],Z=m?-k[G]/2:0,L=y===ju?P[G]:k[G],Y=y===ju?-k[G]:-P[G],K=t.elements.arrow,R=m&&K?R_(K):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:w5(),V=N[z],X=N[B],re=If(0,P[G],R[G]),le=w?P[G]/2-Z-re-V-D.mainAxis:L-re-V-D.mainAxis,xe=w?-P[G]/2+Z+re+X+D.mainAxis:Y+re+X+D.mainAxis,fe=t.elements.arrow&&Jp(t.elements.arrow),ge=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,he=(q=F==null?void 0:F[C])!=null?q:0,_e=Q+le-he-ge,ve=Q+xe-he,Be=If(m?vg(W,_e):W,Q,m?Il(J,ve):J);$[C]=Be,H[C]=Be-Q}if(s){var Ue,ze=C==="x"?go:yo,He=C==="x"?ga:ya,be=$[_],we=_==="y"?"height":"width",Ce=be+x[ze],Ge=be-x[He],rt=[go,yo].indexOf(g)!==-1,Ae=(Ue=F==null?void 0:F[_])!=null?Ue:0,Le=rt?Ce:be-P[we]-k[we]-Ae+D.altAxis,Fe=rt?be+P[we]+k[we]-Ae-D.altAxis:Ge,Pe=m&&rt?fxe(Le,be,Fe):If(m?Le:Ce,be,m?Fe:Ge);$[_]=Pe,H[_]=Pe-be}t.modifiersData[r]=H}}const Uxe={name:"preventOverflow",enabled:!0,phase:"main",fn:Vxe,requiresIfExists:["offset"]};function Wxe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hxe(e){return e===Uo(e)||!ua(e)?M_(e):Wxe(e)}function qxe(e){var t=e.getBoundingClientRect(),n=Lu(t.width)/e.offsetWidth||1,r=Lu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gxe(e,t,n){n===void 0&&(n=!1);var r=ua(t),o=ua(t)&&qxe(t),a=Qs(t),i=Fu(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((gi(t)!=="body"||A_(a))&&(s=Hxe(t)),ua(t)?(l=Fu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=I_(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Yxe(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 Kxe(e){var t=Yxe(e);return ixe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Xxe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Jxe(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 VR={placement:"bottom",modifiers:[],strategy:"absolute"};function UR(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(twe(o)||document.body)},[o,a]),Gn(()=>{if(i&&!a)return up(n,i),()=>{up(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&&qu.createPortal(r,i)})});function nwe(e){return et("MuiPopper",e)}Qe("MuiPopper",["root"]);const rwe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],owe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function awe(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 qw(e){return typeof e=="function"?e():e}function iwe(e){return e.nodeType!==void 0}const swe=()=>Ze({root:["root"]},Fbe(nwe)),lwe={},cwe=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,rwe),g=S.useRef(null),y=an(g,n),w=S.useRef(null),C=an(w,p),_=S.useRef(C);Gn(()=>{_.current=C},[C]),S.useImperativeHandle(p,()=>w.current,[]);const $=awe(u,i),[P,k]=S.useState($),[A,D]=S.useState(qw(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&D(qw(o))},[o]),Gn(()=>{if(!A||!c)return;const B=W=>{k(W.placement)};let G=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{B(W)}}];l!=null&&(G=G.concat(l)),f&&f.modifiers!=null&&(G=G.concat(f.modifiers));const Q=ewe(A,g.current,T({placement:$},f,{modifiers:G}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[A,s,l,c,f,$]);const F={placement:P};v!==null&&(F.TransitionProps=v);const H=swe(),q=(r=b.root)!=null?r:"div",z=Bt({elementType:q,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:H.root});return O.jsx(q,T({},z,{children:typeof a=="function"?a(F):a}))}),uwe=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=lwe,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,owe),[w,C]=S.useState(!0),_=()=>{C(!1)},$=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let P;if(a)P=a;else if(r){const D=qw(r);P=D&&iwe(D)?Ln(D).body:Ln(null).body}const k=!u&&l&&(!v||w)?"none":void 0,A=v?{in:u,onEnter:_,onExited:$}:void 0;return O.jsx(E5,{disablePortal:s,container:P,children:O.jsx(cwe,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:A,children:o}))})});function dwe(e){const t=Ln(e);return t.body===e?vi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function WR(e){return parseInt(vi(e).getComputedStyle(e).paddingRight,10)||0}function fwe(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 HR(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!fwe(i);s&&l&&Nf(i,o)})}function Gb(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function pwe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(dwe(r)){const i=I4(Ln(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${WR(r)+i}px`;const s=Ln(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${WR(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ln(r).body;else{const i=r.parentElement,s=vi(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 hwe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class mwe{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&&Nf(t.modalRef,!1);const o=hwe(n);HR(n,t.mount,t.modalRef,o,!0);const a=Gb(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=Gb(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=pwe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Gb(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&&Nf(t.modalRef,n),HR(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&&Nf(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function vwe(e){return typeof e=="function"?e():e}function gwe(e){return e?e.props.hasOwnProperty("in"):!1}const ywe=new mwe;function bwe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ywe,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=an(b,f),[x,g]=S.useState(!u),y=gwe(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>Ln(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),$=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=mt(()=>{const G=vwe(t)||C().body;o.add(_(),G),b.current&&$()}),k=S.useCallback(()=>o.isTopModal(_()),[o]),A=mt(G=>{m.current=G,G&&(u&&k()?$():b.current&&Nf(b.current,w))}),D=S.useCallback(()=>{o.remove(_(),w)},[w,o]);S.useEffect(()=>()=>{D()},[D]),S.useEffect(()=>{u?P():(!y||!a)&&D()},[u,D,y,a,P]);const F=G=>Q=>{var W;(W=G.onKeyDown)==null||W.call(G,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},H=G=>Q=>{var W;(W=G.onClick)==null||W.call(G,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(G={})=>{const Q=Mf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const W=T({},Q,G);return T({role:"presentation"},W,{onKeyDown:F(W),ref:v})},getBackdropProps:(G={})=>{const Q=G;return T({"aria-hidden":!0},Q,{onClick:H(Q),open:u})},getTransitionProps:()=>{const G=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&D()};return{onEnter:ug(G,l==null?void 0:l.props.onEnter),onExited:ug(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:k,exited:x,hasTransition:y}}const xwe=2;function P5(e,t){return e-t}function Jd(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function qR(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}%`})}},_we=e=>e;let Fm;function Yb(){return Fm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Fm=CSS.supports("touch-action","none"):Fm=!0),Fm}function Ewe(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=_we,step:v=1,tabIndex:x,value:g}=e,y=S.useRef(),[w,C]=S.useState(-1),[_,$]=S.useState(-1),[P,k]=S.useState(!1),A=S.useRef(0),[D,F]=br({controlled:g,default:n??l,name:"Slider"}),H=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)}),q=Array.isArray(D);let z=q?D.slice().sort(P5):[D];z=z.map(Ae=>Jd(Ae,l,s));const B=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Ae,Le)=>({value:l+v*Le})):i||[],G=B.map(Ae=>Ae.value),{isFocusVisibleRef:Q,onBlur:W,onFocus:J,ref:Z}=my(),[L,Y]=S.useState(-1),K=S.useRef(),R=an(Z,K),N=an(m,R),V=Ae=>Le=>{var Fe;const Pe=Number(Le.currentTarget.getAttribute("data-index"));J(Le),Q.current===!0&&Y(Pe),$(Pe),Ae==null||(Fe=Ae.onFocus)==null||Fe.call(Ae,Le)},X=Ae=>Le=>{var Fe;W(Le),Q.current===!1&&Y(-1),$(-1),Ae==null||(Fe=Ae.onBlur)==null||Fe.call(Ae,Le)};Gn(()=>{if(r&&K.current.contains(document.activeElement)){var Ae;(Ae=document.activeElement)==null||Ae.blur()}},[r]),r&&w!==-1&&C(-1),r&&L!==-1&&Y(-1);const re=Ae=>Le=>{var Fe;(Fe=Ae.onChange)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index")),Te=z[Pe],it=G.indexOf(Te);let ct=Le.target.valueAsNumber;if(B&&v==null){const gt=G[G.length-1];ct>gt?ct=gt:ct{const{current:Fe}=K,{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=wwe(gt,l,s),v)Ne=$we(Ne,v,l);else{const te=qR(G,Ne);Ne=G[te]}Ne=Jd(Ne,l,s);let ne=0;if(q){Le?ne=le.current:ne=qR(z,Ne),o&&(Ne=Jd(Ne,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Ne;Ne=GR({values:z,newValue:Ne,index:ne}),o&&Le||(ne=Ne.indexOf(te),le.current=ne)}return{newValue:Ne,activeIndex:ne}},ge=mt(Ae=>{const Le=Nm(Ae,y);if(!Le)return;if(A.current+=1,Ae.type==="mousemove"&&Ae.buttons===0){he(Ae);return}const{newValue:Fe,activeIndex:Pe}=fe({finger:Le,move:!0});jm({sliderRef:K,activeIndex:Pe,setActive:C}),F(Fe),!P&&A.current>xwe&&k(!0),H&&!Lm(Fe,D)&&H(Ae,Fe,Pe)}),he=mt(Ae=>{const Le=Nm(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;Yb()||Ae.preventDefault();const Le=Ae.changedTouches[0];Le!=null&&(y.current=Le.identifier);const Fe=Nm(Ae,y);if(Fe!==!1){const{newValue:Te,activeIndex:it}=fe({finger:Fe});jm({sliderRef:K,activeIndex:it,setActive:C}),F(Te),H&&!Lm(Te,D)&&H(Ae,Te,it)}A.current=0;const Pe=Ln(K.current);Pe.addEventListener("touchmove",ge),Pe.addEventListener("touchend",he)}),ve=S.useCallback(()=>{const Ae=Ln(K.current);Ae.removeEventListener("mousemove",ge),Ae.removeEventListener("mouseup",he),Ae.removeEventListener("touchmove",ge),Ae.removeEventListener("touchend",he)},[he,ge]);S.useEffect(()=>{const{current:Ae}=K;return Ae.addEventListener("touchstart",_e,{passive:Yb()}),()=>{Ae.removeEventListener("touchstart",_e,{passive:Yb()}),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=Nm(Le,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=fe({finger:Pe});jm({sliderRef:K,activeIndex:ct,setActive:C}),F(it),H&&!Lm(it,D)&&H(Le,it,ct)}A.current=0;const Te=Ln(K.current);Te.addEventListener("mousemove",ge),Te.addEventListener("mouseup",he)},Ue=gg(q?z[0]:l,l,s),ze=gg(z[z.length-1],l,s)-Ue,He=(Ae={})=>{const Le=Mf(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:Swe,dragging:P,focusedThumbIndex:L,getHiddenInputProps:(Ae={})=>{var Le;const Fe=Mf(Ae),Pe={onChange:re(Fe||{}),onFocus:V(Fe||{}),onBlur:X(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({},Gve,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:He,getThumbProps:(Ae={})=>{const Le=Mf(Ae),Fe={onMouseOver:be(Le||{}),onMouseLeave:we(Le||{})};return T({},Ae,Le,Fe)},marks:B,open:_,range:q,rootRef:N,trackLeap:ze,trackOffset:Ue,values:z,getThumbStyle:Ae=>({pointerEvents:w!==-1&&w!==Ae?"none":void 0})}}const Pwe=["onChange","maxRows","minRows","style","value"];function zm(e){return parseInt(e,10)||0}const Twe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function YR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const kwe=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,Pwe),{current:c}=S.useRef(s!=null),u=S.useRef(null),f=an(n,u),p=S.useRef(null),m=S.useRef(0),[b,v]=S.useState({outerHeightStyle:0}),x=S.useCallback(()=>{const C=u.current,$=vi(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const P=p.current;P.style.width=$.width,P.value=C.value||t.placeholder||"x",P.value.slice(-1)===` +`&&(P.value+=" ");const k=$.boxSizing,A=zm($.paddingBottom)+zm($.paddingTop),D=zm($.borderBottomWidth)+zm($.borderTopWidth),F=P.scrollHeight;P.value="x";const H=P.scrollHeight;let q=F;a&&(q=Math.max(Number(a)*H,q)),o&&(q=Math.min(Number(o)*H,q)),q=Math.max(q,H);const z=q+(k==="border-box"?A+D:0),B=Math.abs(q-F)<=1;return{outerHeightStyle:z,overflow:B}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:$,overflow:P}=_;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==P)?(m.current+=1,{overflow:P,outerHeightStyle:$}):C},y=S.useCallback(()=>{const C=x();YR(C)||v(_=>g(_,C))},[x]);Gn(()=>{const C=()=>{const F=x();YR(F)||qu.flushSync(()=>{v(H=>g(H,F))})},_=()=>{m.current=0,C()};let $;const P=qp(_),k=u.current,A=vi(k);A.addEventListener("resize",P);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(_),D.observe(k)),()=>{P.clear(),cancelAnimationFrame($),A.removeEventListener("resize",P),D&&D.disconnect()}},[x]),Gn(()=>{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({},Twe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function KR(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Owe(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=KR(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=KR(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function Kb(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 Mwe(e){const{unstable_isActiveElementInListbox:t=Dwe,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=Rwe,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:P,includeInputInList:k=!1,inputValue:A,isOptionEqualToValue:D=(me,pe)=>me===pe,multiple:F=!1,onChange:H,onClose:q,onHighlightChange:z,onInputChange:B,onOpen:G,open:Q,openOnFocus:W=!1,options:J,readOnly:Z=!1,selectOnFocus:L=!e.freeSolo,value:Y}=e,K=Va(P);let R=C;R=me=>{const pe=C(me);return typeof pe!="string"?String(pe):pe};const N=S.useRef(!1),V=S.useRef(!0),X=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]=br({controlled:Y,default:u,name:c}),[Ue,ze]=br({controlled:A,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&&D(me,pe)))),{inputValue:Le&&rt?"":Ue,getOptionLabel:R}):[],Te=e_({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&&!Z,ct=mt(me=>{me===-1?X.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?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${K}-option-${pe}`),z&&z(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)X.current.value=Ue;else{const Nt=R(Pe[xt]);X.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&X.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const me=(pe,De)=>{const nt=pe?R(pe):"",lt=De?R(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)=>R(ve[De])===R(pe)):me(Te.value,ve))){const pe=Te.filteredOptions[_e.current];if(pe&&Pe.some(nt=>R(nt)===R(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&&Kb(ve,nt=>D(pe,nt))!==-1)return;const De=Kb(Pe,nt=>D(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=>{up(re,me),me&&ie()});S.useEffect(()=>{ie()},[ie]);const Se=me=>{Ce||(Ge(!0),Ae(!0),G&&G(me))},Je=(me,pe)=>{Ce&&(Ge(!1),q&&q(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;H&&H(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=Kb(xt,ut=>D(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)&&Je(me,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&X.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===""&&Je(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(""),B&&B(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:-XR,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"PageDown":pe.preventDefault(),ne({diff:XR,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&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else y&&Ue!==""&&Le===!1&&(F&&pe.preventDefault(),_t(pe,Ue,"createOption","freeSolo"));break;case"Escape":Fe?(pe.preventDefault(),pe.stopPropagation(),Je(pe,"escape")):l&&(Ue!==""||F&&ve.length>0)&&(pe.preventDefault(),pe.stopPropagation(),Et(pe));break;case"Backspace":if(F&&!Z&&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&&!Z&&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),W&&!N.current&&Se(me)},sn=me=>{if(t(re)){X.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),Je(me,"blur")},Vt=me=>{const pe=me.target.value;Ue!==pe&&(ze(pe),Ae(!1),B&&B(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},gn=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_t(me,Pe[pe],"selectOption"),ft.current=!1},Fn=me=>pe=>{const De=ve.slice();De.splice(me,1),tt(pe,De,"removeOption",{option:ve[me]})},se=me=>{Ce?Je(me,"toggleInput"):Se(me)},oe=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==K&&me.preventDefault()},ue=me=>{me.currentTarget.contains(me.target)&&(X.current.focus(),L&&V.current&&X.current.selectionEnd-X.current.selectionStart===0&&X.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&&sn(),{getRootProps:(me={})=>T({"aria-owns":it?`${K}-listbox`:null},me,{onKeyDown:Yt(me),onMouseDown:oe,onClick:ue}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:Ue,onBlur:sn,onFocus:kt,onChange:Vt,onMouseDown:ke,"aria-activedescendant":Fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${K}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:X,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},!Z&&{onDelete:Fn(me)}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:$e,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:pe})=>{const De=(F?ve:[ve]).some(lt=>lt!=null&&D(pe,lt)),nt=w?w(pe):!1;return{key:R(pe),tabIndex:-1,role:"option",id:`${K}-option-${me}`,onMouseMove:Ut,onClick:gn,onTouchStart:Kt,"data-option-index":me,"aria-disabled":nt,"aria-selected":De}},id:K,inputValue:Ue,value:ve,dirty:Ee,expanded:Fe&&le,popupOpen:Fe,focused:He||fe!==-1,anchorEl:le,setAnchorEl:xe,focusedTag:fe,groupedOptions:pt}}const Iwe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Awe=de(uwe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nwe=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,Iwe),$=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,P=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(Awe,T({as:s,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:C??c},P,{ref:n}))}),Zp=Nwe;function jwe(e){return et("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Lwe=["className","color","component","disableGutters","disableSticky","inset"],Fwe=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 Ze(i,jwe,t)},zwe=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})),T5=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,Lwe),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=Fwe(f);return O.jsx(zwe,T({as:i,className:Ie(p.root,o),ref:n,ownerState:f},u))});T5.muiSkipListHighlight=!0;const Bwe=T5,Vwe=tr(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 Uwe(e){return et("MuiChip",e)}const Wwe=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"]),dn=Wwe,Hwe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qwe=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 Ze(c,Uwe,t)},Gwe=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[{[`& .${dn.avatar}`]:t.avatar},{[`& .${dn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${dn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${dn.icon}`]:t.icon},{[`& .${dn.icon}`]:t[`icon${je(s)}`]},{[`& .${dn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${dn.deleteIcon}`]:t.deleteIcon},{[`& .${dn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${dn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${dn.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",[`&.${dn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${dn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${dn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${dn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${dn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${dn.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"})),[`& .${dn.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&&{[`&.${dn.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"&&{[`&.${dn.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)},[`&.${dn.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, &.${dn.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]}`,[`&.${dn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${dn.avatar}`]:{marginLeft:4},[`& .${dn.avatarSmall}`]:{marginLeft:2},[`& .${dn.icon}`]:{marginLeft:4},[`& .${dn.iconSmall}`]:{marginLeft:2},[`& .${dn.deleteIcon}`]:{marginRight:5},[`& .${dn.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)}`,[`&.${dn.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)},[`&.${dn.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)},[`& .${dn.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}}})),Ywe=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 JR(e){return e.key==="Backspace"||e.key==="Delete"}const Kwe=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,Hwe),$=S.useRef(null),P=an($,n),k=J=>{J.stopPropagation(),b&&b(J)},A=J=>{J.currentTarget===J.target&&JR(J)&&J.preventDefault(),v&&v(J)},D=J=>{J.currentTarget===J.target&&(b&&JR(J)?b(J):J.key==="Escape"&&$.current&&$.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,H=F||b?va:l||"div",q=T({},r,{component:H,disabled:u,size:g,color:s,iconColor:S.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=qwe(q),B=H===va?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let G=null;b&&(G=c&&S.isValidElement(c)?S.cloneElement(c,{className:Ie(c.props.className,z.deleteIcon),onClick:k}):O.jsx(Vwe,{className:Ie(z.deleteIcon),onClick:k}));let Q=null;o&&S.isValidElement(o)&&(Q=S.cloneElement(o,{className:Ie(z.avatar,o.props.className)}));let W=null;return f&&S.isValidElement(f)&&(W=S.cloneElement(f,{className:Ie(z.icon,f.props.className)})),O.jsxs(Gwe,T({as:H,className:Ie(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:A,onKeyUp:D,ref:P,tabIndex:C&&u?-1:w,ownerState:q},B,_,{children:[Q||W,O.jsx(Ywe,{className:Ie(z.label),ownerState:q,children:p}),G]}))}),k5=Kwe;function el({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 Xwe=S.createContext(void 0),t0=Xwe;function xi(){return S.useContext(t0)}function Jwe(e){return O.jsx(Jye,T({},e,{defaultTheme:By,themeId:vy}))}function ZR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yg(e,t=!1){return e&&(ZR(e.value)&&e.value!==""||t&&ZR(e.defaultValue)&&e.defaultValue!=="")}function Zwe(e){return e.startAdornment}function Qwe(e){return et("MuiInputBase",e)}const eCe=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Do=eCe,tCe=["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"],n0=(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]},r0=(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]},nCe=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 Ze(v,Qwe,t)},o0=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:n0})(({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",[`&.${Do.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%"})),a0=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:r0})(({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] + .${Do.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},[`&.${Do.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"})}),rCe=O.jsx(Jwe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),oCe=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:P,onBlur:k,onChange:A,onClick:D,onFocus:F,onKeyDown:H,onKeyUp:q,placeholder:z,readOnly:B,renderSuffix:G,rows:Q,slotProps:W={},slots:J={},startAdornment:Z,type:L="text",value:Y}=o,K=Oe(o,tCe),R=y.value!=null?y.value:Y,{current:N}=S.useRef(R!=null),V=S.useRef(),X=S.useCallback(Pe=>{},[]),re=an(V,w,y.ref,X),[le,xe]=S.useState(!1),fe=xi(),ge=el({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=>{yg(Pe)?he&&he():_e&&_e()},[he,_e]);Gn(()=>{N&&ve({value:R})},[R,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(Hs(1));ve({value:it.value})}y.onChange&&y.onChange(Pe,...Te),A&&A(Pe,...Te)};S.useEffect(()=>{ve(V.current)},[]);const He=Pe=>{V.current&&Pe.currentTarget===Pe.target&&V.current.focus(),D&&D(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=kwe);const Ce=Pe=>{ve(Pe.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!Z)},[fe,Z]);const Ge=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:Z,type:L}),rt=nCe(Ge),Ae=J.root||c.Root||o0,Le=W.root||u.root||{},Fe=J.input||c.Input||a0;return we=T({},we,(r=W.input)!=null?r:u.input),O.jsxs(S.Fragment,{children:[!m&&rCe,O.jsxs(Ae,T({},Le,!di(Ae)&&{ownerState:T({},Ge,Le.ownerState)},{ref:n,onClick:He},K,{className:Ie(rt.root,Le.className,l,B&&"MuiInputBase-readOnly"),children:[Z,O.jsx(t0.Provider,{value:null,children:O.jsx(Fe,T({ownerState:Ge,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:x,onAnimationStart:Ce,name:P,placeholder:z,readOnly:B,required:ge.required,rows:Q,value:R,onKeyDown:H,onKeyUp:q,type:L},we,!di(Fe)&&{as:be,ownerState:T({},Ge,we.ownerState)},{ref:re,className:Ie(rt.input,we.className,B&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ze,onFocus:Be}))}),b,G?G(T({},ge,{startAdornment:Z})):null]}))]})}),N_=oCe;function aCe(e){return et("MuiInput",e)}const iCe=T({},Do,Qe("MuiInput",["root","underline","input"])),$s=iCe;function sCe(e){return et("MuiOutlinedInput",e)}const lCe=T({},Do,Qe("MuiOutlinedInput",["root","notchedOutline","input"])),Qa=lCe;function cCe(e){return et("MuiFilledInput",e)}const uCe=T({},Do,Qe("MuiFilledInput",["root","underline","input"])),Mo=uCe,O5=tr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function dCe(e){return et("MuiAutocomplete",e)}const fCe=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=fCe;var QR,eD;const pCe=["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"],hCe=["ref"],mCe=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 Ze(f,dCe,t)},vCe=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}},[`& .${$s.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$s.root}.${Do.sizeSmall}`]:{[`& .${$s.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Qa.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}},[`& .${Qa.root}.${Do.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Mo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Mo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Mo.root}.${Do.sizeSmall}`]:{paddingBottom:1,[`& .${Mo.input}`]:{padding:"2.5px 4px"}},[`& .${Do.hiddenLabel}`]:{paddingTop:8},[`& .${Mo.root}.${Do.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Mo.root}.${Do.hiddenLabel}.${Do.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),gCe=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),yCe=de(Qn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),bCe=de(Qn,{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)"})),xCe=de(Zp,{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"})),wCe=de(es,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),CCe=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),$Ce=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),SCe=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)}}}})),_Ce=de(Bwe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),ECe=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),PCe=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=QR||(QR=O.jsx(Cbe,{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:P=!1,disabledItemsFocusable:k=!1,disableListWrap:A=!1,disablePortal:D=!1,filterSelectedOptions:F=!1,forcePopupIcon:H="auto",freeSolo:q=!1,fullWidth:z=!1,getLimitTagsText:B=De=>`+${De}`,getOptionLabel:G,groupBy:Q,handleHomeEndKeys:W=!s.freeSolo,includeInputInList:J=!1,limitTags:Z=-1,ListboxComponent:L="ul",ListboxProps:Y,loading:K=!1,loadingText:R="Loading…",multiple:N=!1,noOptionsText:V="No options",openOnFocus:X=!1,openText:re="Open",PaperComponent:le=es,PopperComponent:xe=Zp,popupIcon:fe=eD||(eD=O.jsx(O5,{})),readOnly:ge=!1,renderGroup:he,renderInput:_e,renderOption:ve,renderTags:Be,selectOnFocus:Ue=!s.freeSolo,size:ze="medium",slotProps:He={}}=s,be=Oe(s,pCe),{getRootProps:we,getInputProps:Ce,getInputLabelProps:Ge,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:Je}=Mwe(T({},s,{componentName:"Autocomplete"})),tt=!_&&!P&&it&&!ge,ft=(!q||H===!0)&&H!==!1,{onMouseDown:_t}=Ce(),{ref:vt}=Y??{},dt=Fe(),{ref:Et}=dt,Yt=Oe(dt,hCe),kt=an(Et,vt),Vt=G||(De=>{var nt;return(nt=De.label)!=null?nt:De}),Ut=T({},s,{disablePortal:D,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Vt,hasClearIcon:tt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Ne,size:ze}),Kt=mCe(Ut);let gn;if(N&&Te.length>0){const De=nt=>T({className:Kt.tag,disabled:P},Le(nt));Be?gn=Be(Te,De,Ut):gn=Te.map((nt,lt)=>O.jsx(k5,T({label:Vt(nt),size:ze},De({index:lt}),p)))}if(Z>-1&&Array.isArray(gn)){const De=gn.length-Z;!ne&&De>0&&(gn=gn.splice(0,Z),gn.push(O.jsx("span",{className:Kt.tag,children:B(De)},gn.length)))}const se=he||(De=>O.jsxs("li",{children:[O.jsx(_Ce,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:De.group}),O.jsx(ECe,{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(vCe,T({ref:n,className:Ie(Kt.root,m),ownerState:Ut},we(be),{children:_e({id:gt,disabled:P,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:Ge(),InputProps:T({ref:$e,className:Kt.inputRoot,startAdornment:gn,onClick:De=>{De.target===De.currentTarget&&_t(De)}},(tt||ft)&&{endAdornment:O.jsxs(gCe,{className:Kt.endAdornment,ownerState:Ut,children:[tt?O.jsx(yCe,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(bCe,T({},rt(),{disabled:P,"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:P,readOnly:ge},Ce())})})),ie?O.jsx(xCe,T({as:xe,disablePortal:D,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(wCe,T({ownerState:Ut,as:le},pt,{className:Ie(Kt.paper,pt==null?void 0:pt.className),children:[K&&Je.length===0?O.jsx(CCe,{className:Kt.loading,ownerState:Ut,children:R}):null,Je.length===0&&!q&&!K?O.jsx($Ce,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:De=>{De.preventDefault()},children:V}):null,Je.length>0?O.jsx(SCe,T({as:L,className:Kt.listbox,ownerState:Ut},Yt,Y,{ref:kt,children:Je.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]})}),TCe=PCe,kCe=tr(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 OCe(e){return et("MuiAvatar",e)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const RCe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],DCe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ze({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},OCe,t)},MCe=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]}))),ICe=de("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ACe=de(kCe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function NCe({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 jCe=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,RCe);let b=null;const v=NCe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=DCe(y);return g?b=O.jsx(ICe,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(ACe,{ownerState:y,className:w.fallback}),O.jsx(MCe,T({as:s,ownerState:y,className:Ie(w.root,i),ref:n},m,{children:b}))}),R5=jCe,LCe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],FCe={entering:{opacity:1},entered:{opacity:1}},zCe=S.forwardRef(function(t,n){const r=er(),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=Zy}=t,w=Oe(t,LCe),C=S.useRef(null),_=an(C,s.ref,n),$=z=>B=>{if(z){const G=C.current;B===void 0?z(G):z(G,B)}},P=$(p),k=$((z,B)=>{p5(z);const G=Nu({style:x,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",G),z.style.transition=r.transitions.create("opacity",G),u&&u(z,B)}),A=$(f),D=$(v),F=$(z=>{const B=Nu({style:x,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",B),z.style.transition=r.transitions.create("opacity",B),m&&m(z)}),H=$(b),q=z=>{a&&a(C.current,z)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:A,onEntering:P,onExit:F,onExited:H,onExiting:D,addEndListener:q,timeout:g},w,{children:(z,B)=>S.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},FCe[z],x,s.props.style),ref:_},B))}))}),pd=zCe;function BCe(e){return et("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const VCe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],UCe=e=>{const{classes:t,invisible:n}=e;return Ze({root:["root",n&&"invisible"]},BCe,t)},WCe=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"})),HCe=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=pd,transitionDuration:g}=i,y=Oe(i,VCe),w=T({},i,{component:c,invisible:p}),C=UCe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(WCe,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}))}))}),D5=HCe;function qCe(e){return et("MuiBadge",e)}const GCe=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"]),vs=GCe,YCe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Xb=10,Jb=4,KCe=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 Ze(s,qCe,i)},XCe=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),JCe=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:Xb*2,lineHeight:1,padding:"0 6px",height:Xb*2,borderRadius:Xb,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:Jb,height:Jb*2,minWidth:Jb*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%",[`&.${vs.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%",[`&.${vs.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%",[`&.${vs.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%",[`&.${vs.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%",[`&.${vs.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%",[`&.${vs.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%",[`&.${vs.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%",[`&.${vs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),ZCe=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:P=!1,variant:k="standard"}=c,A=Oe(c,YCe),{badgeContent:D,invisible:F,max:H,displayValue:q}=Vbe({max:w,invisible:y,badgeContent:C,showZero:P}),z=e_({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),B=F||D==null&&k!=="dot",{color:G=g,overlap:Q=x,anchorOrigin:W=u,variant:J=k}=B?z:c,Z=J!=="dot"?q:void 0,L=T({},c,{badgeContent:D,invisible:B,max:H,displayValue:Z,showZero:P,anchorOrigin:W,color:G,overlap:Q,variant:J}),Y=KCe(L),K=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:XCe,R=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:JCe,N=(s=$==null?void 0:$.root)!=null?s:b.root,V=(l=$==null?void 0:$.badge)!=null?l:b.badge,X=Bt({elementType:K,externalSlotProps:N,externalForwardedProps:A,additionalProps:{ref:n,as:p},ownerState:L,className:Ie(N==null?void 0:N.className,Y.root,f)}),re=Bt({elementType:R,externalSlotProps:V,ownerState:L,className:Ie(Y.badge,V==null?void 0:V.className)});return O.jsxs(K,T({},X,{children:[v,O.jsx(R,T({},re,{children:Z}))]}))}),M5=ZCe;function QCe(e){return et("MuiButton",e)}const e$e=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"]),Bm=e$e,t$e=S.createContext({}),n$e=t$e,r$e=S.createContext(void 0),o$e=r$e,a$e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],i$e=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=Ze(s,QCe,i);return T({},i,l)},I5=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}}),s$e=de(va,{shouldForwardProp:e=>Ko(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]}),[`&.${Bm.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bm.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"},[`&.${Bm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bm.disabled}`]:{boxShadow:"none"}}),l$e=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},I5(e))),c$e=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},I5(e))),u$e=S.forwardRef(function(t,n){const r=S.useContext(n$e),o=S.useContext(o$e),a=t_(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,a$e),$=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),P=i$e($),k=y&&O.jsx(l$e,{className:P.startIcon,ownerState:$,children:y}),A=b&&O.jsx(c$e,{className:P.endIcon,ownerState:$,children:b}),D=o||"";return O.jsxs(s$e,T({ownerState:$,className:Ie(r.className,P.root,u,D),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ie(P.focusVisible,v),ref:n,type:w},_,{classes:P,children:[k,s,A]}))}),No=u$e;function d$e(e){return et("MuiCard",e)}Qe("MuiCard",["root"]);const f$e=["className","raised"],p$e=e=>{const{classes:t}=e;return Ze({root:["root"]},d$e,t)},h$e=de(es,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),m$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,f$e),s=T({},r,{raised:a}),l=p$e(s);return O.jsx(h$e,T({className:Ie(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),v$e=m$e;function g$e(e){return et("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const y$e=["className","component"],b$e=e=>{const{classes:t}=e;return Ze({root:["root"]},g$e,t)},x$e=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),w$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,y$e),s=T({},r,{component:a}),l=b$e(s);return O.jsx(x$e,T({as:a,className:Ie(l.root,o),ownerState:s,ref:n},i))}),C$e=w$e;function $$e(e){return et("MuiCardHeader",e)}const S$e=Qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),tD=S$e,_$e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],E$e=e=>{const{classes:t}=e;return Ze({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},$$e,t)},P$e=de("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${tD.title}`]:t.title,[`& .${tD.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),T$e=de("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),k$e=de("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),O$e=de("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),R$e=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,_$e),b=T({},r,{component:s,disableTypography:l}),v=E$e(b);let x=f;x!=null&&x.type!==mn&&!l&&(x=O.jsx(mn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==mn&&!l&&(g=O.jsx(mn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(P$e,T({className:Ie(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(T$e,{className:v.avatar,ownerState:b,children:a}),O.jsxs(O$e,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(k$e,{className:v.action,ownerState:b,children:o})]}))}),D$e=R$e;function M$e(e){return et("PrivateSwitchBase",e)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const I$e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],A$e=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 Ze(a,M$e,t)},N$e=de(va)(({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})),j$e=de("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),L$e=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:P}=t,k=Oe(t,I$e),[A,D]=br({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=xi(),H=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},q=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const Z=J.target.checked;D(Z),g&&g(J,Z)};let B=l;F&&typeof B>"u"&&(B=F.disabled);const G=$==="checkbox"||$==="radio",Q=T({},t,{checked:A,disabled:B,disableFocusRipple:c,edge:u}),W=A$e(Q);return O.jsxs(N$e,T({component:"span",className:Ie(W.root,i),centerRipple:!0,focusRipple:!c,disabled:B,tabIndex:null,role:void 0,onFocus:H,onBlur:q,ownerState:Q,ref:n},k,{children:[O.jsx(j$e,T({autoFocus:r,checked:o,defaultChecked:s,className:W.input,disabled:B,id:G?p:void 0,name:v,onChange:z,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:$},$==="checkbox"&&P===void 0?{}:{value:P},m)),A?a:f]}))}),j_=L$e,F$e=tr(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"),z$e=tr(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"),B$e=tr(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 V$e(e){return et("MuiCheckbox",e)}const U$e=Qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zb=U$e,W$e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],H$e=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},i=Ze(a,V$e,t);return T({},t,i)},q$e=de(j_,{shouldForwardProp:e=>Ko(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"&&{[`&.${Zb.checked}, &.${Zb.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zb.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),G$e=O.jsx(z$e,{}),Y$e=O.jsx(F$e,{}),K$e=O.jsx(B$e,{}),X$e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=G$e,color:s="primary",icon:l=Y$e,indeterminate:c=!1,indeterminateIcon:u=K$e,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,W$e),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=H$e(g);return O.jsx(q$e,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}))}),J$e=X$e;function Z$e(e){return et("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const Q$e=["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"],eSe=e=>{const{open:t,exited:n,classes:r}=e;return Ze({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Z$e,r)},tSe=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"})),nSe=de(D5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rSe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=nSe,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:P=!1,disableScrollLock:k=!1,hideBackdrop:A=!1,keepMounted:D=!1,onBackdropClick:F,open:H,slotProps:q,slots:z}=c,B=Oe(c,Q$e),G=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:$,disableRestoreFocus:P,disableScrollLock:k,hideBackdrop:A,keepMounted:D}),{getRootProps:Q,getBackdropProps:W,getTransitionProps:J,portalRef:Z,isTopModal:L,exited:Y,hasTransition:K}=bwe(T({},G,{rootRef:n})),R=T({},G,{exited:Y}),N=eSe(R),V={};if(b.props.tabIndex===void 0&&(V.tabIndex="-1"),K){const{onEnter:he,onExited:_e}=J();V.onEnter=he,V.onExited=_e}const X=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:tSe,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,le=(s=q==null?void 0:q.root)!=null?s:y.root,xe=(l=q==null?void 0:q.backdrop)!=null?l:y.backdrop,fe=Bt({elementType:X,externalSlotProps:le,externalForwardedProps:B,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:R,className:Ie(p,le==null?void 0:le.className,N==null?void 0:N.root,!R.open&&R.exited&&(N==null?void 0:N.hidden))}),ge=Bt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:he=>W(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:R});return!D&&!H&&(!K||Y)?null:O.jsx(E5,{ref:Z,container:v,disablePortal:$,children:O.jsxs(X,T({},fe,{children:[!A&&u?O.jsx(re,T({},ge)):null,O.jsx(v5,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:L,open:H,children:S.cloneElement(b,V)})]}))})}),A5=rSe;function oSe(e){return et("MuiDialog",e)}const aSe=Qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),jf=aSe,iSe=S.createContext({}),N5=iSe,sSe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],lSe=de(D5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),cSe=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 Ze(i,oSe,t)},uSe=de(A5,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),dSe=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"}})),fSe=de(es,{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)`,[`&.${jf.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}`,[`&.${jf.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,[`&.${jf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),pSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=er(),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=es,PaperProps:C={},scroll:_="paper",TransitionComponent:$=pd,transitionDuration:P=a,TransitionProps:k}=r,A=Oe(r,sSe),D=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=cSe(D),H=S.useRef(),q=Q=>{H.current=Q.target===Q.currentTarget},z=Q=>{H.current&&(H.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},B=Va(s),G=S.useMemo(()=>({titleId:B}),[B]);return O.jsx(uSe,T({className:Ie(F.root,f),closeAfterTransition:!0,components:{Backdrop:lSe},componentsProps:{backdrop:T({transitionDuration:P,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:D},A,{children:O.jsx($,T({appear:!0,in:y,timeout:P,role:"presentation"},k,{children:O.jsx(dSe,{className:Ie(F.container),onMouseDown:q,ownerState:D,children:O.jsx(fSe,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":B},C,{className:Ie(F.paper,C.className),ownerState:D,children:O.jsx(N5.Provider,{value:G,children:u})}))})}))}))}),i0=pSe;function hSe(e){return et("MuiDialogActions",e)}Qe("MuiDialogActions",["root","spacing"]);const mSe=["className","disableSpacing"],vSe=e=>{const{classes:t,disableSpacing:n}=e;return Ze({root:["root",!n&&"spacing"]},hSe,t)},gSe=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}})),ySe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,mSe),s=T({},r,{disableSpacing:a}),l=vSe(s);return O.jsx(gSe,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),s0=ySe;function bSe(e){return et("MuiDialogContent",e)}Qe("MuiDialogContent",["root","dividers"]);function xSe(e){return et("MuiDialogTitle",e)}const wSe=Qe("MuiDialogTitle",["root"]),CSe=wSe,$Se=["className","dividers"],SSe=e=>{const{classes:t,dividers:n}=e;return Ze({root:["root",n&&"dividers"]},bSe,t)},_Se=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}`}:{[`.${CSe.root} + &`]:{paddingTop:0}})),ESe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,$Se),s=T({},r,{dividers:a}),l=SSe(s);return O.jsx(_Se,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),l0=ESe;function PSe(e){return et("MuiDialogContentText",e)}Qe("MuiDialogContentText",["root"]);const TSe=["children","className"],kSe=e=>{const{classes:t}=e,r=Ze({root:["root"]},PSe,t);return T({},t,r)},OSe=de(mn,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,TSe),i=kSe(a);return O.jsx(OSe,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ie(i.root,o)},r,{classes:i}))}),L_=RSe,DSe=["className","id"],MSe=e=>{const{classes:t}=e;return Ze({root:["root"]},xSe,t)},ISe=de(mn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ASe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,DSe),s=r,l=MSe(s),{titleId:c=a}=S.useContext(N5);return O.jsx(ISe,T({component:"h2",className:Ie(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),F_=ASe;function NSe(e){return et("MuiDivider",e)}const jSe=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),nD=jSe,LSe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],FSe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Ze({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"]},NSe,r)},zSe=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%"}})),BSe=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)`})),j5=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,LSe),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=FSe(v);return O.jsx(zSe,T({as:s,className:Ie(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(BSe,{className:x.wrapper,ownerState:v,children:a}):null}))});j5.muiSkipListHighlight=!0;const rD=j5,VSe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],USe=e=>{const{classes:t,disableUnderline:n}=e,o=Ze({root:["root",!n&&"underline"],input:["input"]},cCe,t);return T({},t,o)},WSe=de(o0,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...n0(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}},[`&.${Mo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Mo.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"},[`&.${Mo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mo.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(.${Mo.disabled}, .${Mo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mo.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}))}),HSe=de(a0,{name:"MuiFilledInput",slot:"Input",overridesResolver:r0})(({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})),L5=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,VSe),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=USe(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Vr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:WSe,$=(a=(i=b.input)!=null?i:l.Input)!=null?a:HSe;return O.jsx(N_,T({slots:{root:_,input:$},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});L5.muiName="Input";const F5=L5;function qSe(e){return et("MuiFormControl",e)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GSe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],YSe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Ze(o,qSe,t)},KSe=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%"})),XSe=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,GSe),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=YSe(y),[C,_]=S.useState(()=>{let q=!1;return o&&S.Children.forEach(o,z=>{if(!gu(z,["Input","Select"]))return;const B=gu(z,["Select"])?z.props.input:z;B&&Zwe(B.props)&&(q=!0)}),q}),[$,P]=S.useState(()=>{let q=!1;return o&&S.Children.forEach(o,z=>{gu(z,["Input","Select"])&&(yg(z.props,!0)||yg(z.props.inputProps,!0))&&(q=!0)}),q}),[k,A]=S.useState(!1);l&&k&&A(!1);const D=u!==void 0&&!l?u:k;let F;const H=S.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:$,focused:D,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{A(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,$,D,f,p,F,b,v,x]);return O.jsx(t0.Provider,{value:H,children:O.jsx(KSe,T({as:s,ownerState:y,className:Ie(w.root,a),ref:n},g,{children:o}))})}),Qp=XSe,JSe=C0e({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),ZSe=JSe;function QSe(e){return et("MuiFormControlLabel",e)}const e_e=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mf=e_e,t_e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],n_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 Ze(i,QSe,t)},r_e=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mf.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,[`&.${mf.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},{[`& .${mf.label}`]:{[`&.${mf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),o_e=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${mf.error}`]:{color:(e.vars||e).palette.error.main}})),a_e=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,t_e),x=xi(),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(A=>{typeof l.props[A]>"u"&&typeof a[A]<"u"&&(w[A]=a[A])});const C=el({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),$=n_e(_),P=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==mn&&!u&&(k=O.jsx(mn,T({component:"span"},P,{className:Ie($.label,P==null?void 0:P.className),children:k}))),O.jsxs(r_e,T({className:Ie($.root,i),ownerState:_,ref:n},v,{children:[S.cloneElement(l,w),y?O.jsxs(ZSe,{direction:"row",alignItems:"center",children:[k,O.jsxs(o_e,{ownerState:_,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):k]}))}),c0=a_e;function i_e(e){return et("MuiFormGroup",e)}Qe("MuiFormGroup",["root","row","error"]);const s_e=["className","row"],l_e=e=>{const{classes:t,row:n,error:r}=e;return Ze({root:["root",n&&"row",r&&"error"]},i_e,t)},c_e=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"})),u_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,s_e),s=xi(),l=el({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=l_e(c);return O.jsx(c_e,T({className:Ie(u.root,o),ownerState:c,ref:n},i))}),z5=u_e;function d_e(e){return et("MuiFormHelperText",e)}const f_e=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),oD=f_e;var aD;const p_e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],h_e=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 Ze(c,d_e,t)},m_e=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,[`&.${oD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${oD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),v_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,p_e),l=xi(),c=el({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=h_e(u);return O.jsx(m_e,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:o===" "?aD||(aD=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),cr=v_e;function g_e(e){return et("MuiFormLabel",e)}const y_e=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Lf=y_e,b_e=["children","className","color","component","disabled","error","filled","focused","required"],x_e=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 Ze(l,g_e,t)},w_e=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",[`&.${Lf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Lf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}})),C_e=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}})),$_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,b_e),l=xi(),c=el({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=x_e(u);return O.jsxs(w_e,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(C_e,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),z_=$_e,S_e=S.createContext(),iD=S_e;function __e(e){return et("MuiGrid",e)}const E_e=[0,1,2,3,4,5,6,7,8,9,10],P_e=["column-reverse","column","row-reverse","row"],T_e=["nowrap","wrap-reverse","wrap"],Zd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],vp=Qe("MuiGrid",["root","container","item","zeroMinWidth",...E_e.map(e=>`spacing-xs-${e}`),...P_e.map(e=>`direction-xs-${e}`),...T_e.map(e=>`wrap-xs-${e}`),...Zd.map(e=>`grid-xs-${e}`),...Zd.map(e=>`grid-sm-${e}`),...Zd.map(e=>`grid-md-${e}`),...Zd.map(e=>`grid-lg-${e}`),...Zd.map(e=>`grid-xl-${e}`)]),k_e=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function O_e({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=Ml({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} + ${xu(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 R_e({theme:e,ownerState:t}){const n=Ml({values:t.direction,breakpoints:e.breakpoints.values});return Co({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${vp.item}`]={maxWidth:"none"}),o})}function B5({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 D_e({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Ml({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=B5({breakpoints:e.breakpoints.values,values:a})),o=Co({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${xu(u)}`,[`& > .${vp.item}`]:{paddingTop:xu(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${vp.item}`]:{paddingTop:0}}})}return o}function M_e({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Ml({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=B5({breakpoints:e.breakpoints.values,values:a})),o=Co({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${xu(u)})`,marginLeft:`-${xu(u)}`,[`& > .${vp.item}`]:{paddingLeft:xu(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${vp.item}`]:{paddingLeft:0}}})}return o}function I_e(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 A_e=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=I_e(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}),R_e,D_e,M_e,O_e);function N_e(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 j_e=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=N_e(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 Ze(f,__e,t)},L_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiGrid"}),{breakpoints:o}=er(),a=y_(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,k_e),y=m||b,w=l||b,C=S.useContext(iD),_=u?s||12:C,$={},P=T({},g);o.keys.forEach(D=>{g[D]!=null&&($[D]=g[D],delete P[D])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},$,{breakpoints:o.keys}),A=j_e(k);return O.jsx(iD.Provider,{value:_,children:O.jsx(A_e,T({ownerState:k,className:Ie(A.root,i),as:c,ref:n},P))})}),en=L_e,F_e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Gw(e){return`scale(${e}, ${e**2})`}const z_e={entering:{opacity:1,transform:Gw(1)},entered:{opacity:1,transform:"none"}},Qb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),V5=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=Zy}=t,g=Oe(t,F_e),y=S.useRef(),w=S.useRef(),C=er(),_=S.useRef(null),$=an(_,a.ref,n),P=B=>G=>{if(B){const Q=_.current;G===void 0?B(Q):B(Q,G)}},k=P(u),A=P((B,G)=>{p5(B);const{duration:Q,delay:W,easing:J}=Nu({style:b,timeout:v,easing:i},{mode:"enter"});let Z;v==="auto"?(Z=C.transitions.getAutoHeightDuration(B.clientHeight),w.current=Z):Z=Q,B.style.transition=[C.transitions.create("opacity",{duration:Z,delay:W}),C.transitions.create("transform",{duration:Qb?Z:Z*.666,delay:W,easing:J})].join(","),l&&l(B,G)}),D=P(c),F=P(m),H=P(B=>{const{duration:G,delay:Q,easing:W}=Nu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(B.clientHeight),w.current=J):J=G,B.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:Qb?J:J*.666,delay:Qb?Q:Q||J*.333,easing:W})].join(","),B.style.opacity=0,B.style.transform=Gw(.75),f&&f(B)}),q=P(p),z=B=>{v==="auto"&&(y.current=setTimeout(B,w.current||0)),r&&r(_.current,B)};return S.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:A,onEntered:D,onEntering:k,onExit:H,onExited:q,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(B,G)=>S.cloneElement(a,T({style:T({opacity:0,transform:Gw(.75),visibility:B==="exited"&&!s?"hidden":void 0},z_e[B],b,a.props.style),ref:$},G))}))});V5.muiSupportAuto=!0;const bg=V5;function B_e(e,t,n,r,o){const[a,i]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Gn(()=>{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 U5=Vf["useSyncExternalStore"];function V_e(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 U5(l,s,i)}function eh(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}=b_({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(U5!==void 0?V_e:B_e)(l,o,a,i,s)}const U_e=["initialWidth","width"],Ps=["xs","sm","md","lg","xl"],W_e=(e,t,n=!0)=>n?Ps.indexOf(e)<=Ps.indexOf(t):Ps.indexOf(e)n?Ps.indexOf(t)<=Ps.indexOf(e):Ps.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=er(),l=i.theme||s,c=b_({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,U_e),[m,b]=S.useState(!1);Gn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=eh(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},G_e=q_e;function Y_e(e){const{children:t,only:n,width:r}=e,o=er();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 Ze(r,X_e,t)},Q_e=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 eEe(e){const{children:t,className:n,only:r}=e,o=Oe(e,J_e),a=er(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=Z_e(s);return O.jsx(Q_e,{className:Ie(l.root,n),ownerState:s,children:t})}const tEe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function _n(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,tEe);return t==="js"?O.jsx(K_e,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(eEe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const nEe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rEe=e=>{const{classes:t,disableUnderline:n}=e,o=Ze({root:["root",!n&&"underline"],input:["input"]},aCe,t);return T({},t,o)},oEe=de(o0,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...n0(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"},[`&.${$s.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$s.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(.${$s.disabled}, .${$s.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${$s.disabled}:before`]:{borderBottomStyle:"dotted"}})}),aEe=de(a0,{name:"MuiInput",slot:"Input",overridesResolver:r0})({}),W5=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,nEe),y=rEe(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Vr(b??u,C):C,$=(r=(o=v.root)!=null?o:c.Root)!=null?r:oEe,P=(a=(i=v.input)!=null?i:c.Input)!=null?a:aEe;return O.jsx(N_,T({slots:{root:$,input:P},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});W5.muiName="Input";const ts=W5;function iEe(e){return et("MuiInputAdornment",e)}const sEe=Qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),sD=sEe;var lD;const lEe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],cEe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},uEe=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 Ze(s,iEe,t)},dEe=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:cEe})(({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"&&{[`&.${sD.positionStart}&:not(.${sD.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),fEe=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,lEe),p=xi()||{};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=uEe(b);return O.jsx(t0.Provider,{value:null,children:O.jsx(dEe,T({as:i,ownerState:b,className:Ie(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(mn,{color:"text.secondary",children:o}):O.jsxs(S.Fragment,{children:[c==="start"?lD||(lD=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),B_=fEe;function pEe(e){return et("MuiInputLabel",e)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const hEe=["disableAnimation","margin","shrink","variant","className"],mEe=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=Ze(l,pEe,t);return T({},t,c)},vEe=de(z_,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Lf.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)"}))),gEe=S.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,hEe),l=xi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=el({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=mEe(f);return O.jsx(vEe,T({"data-shrink":c,ownerState:f,ref:n,className:Ie(p.root,i)},s,{classes:p}))}),H5=gEe,yEe=S.createContext({}),Vi=yEe;function bEe(e){return et("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const xEe=["children","className","component","dense","disablePadding","subheader"],wEe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ze({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},bEe,t)},CEe=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})),$Ee=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,xEe),f=S.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=wEe(p);return O.jsx(Vi.Provider,{value:f,children:O.jsxs(CEe,T({as:i,className:Ie(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),V_=$Ee;function SEe(e){return et("MuiListItem",e)}const _Ee=Qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),qc=_Ee,EEe=Qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),PEe=EEe;function TEe(e){return et("MuiListItemSecondaryAction",e)}Qe("MuiListItemSecondaryAction",["root","disableGutters"]);const kEe=["className"],OEe=e=>{const{disableGutters:t,classes:n}=e;return Ze({root:["root",t&&"disableGutters"]},TEe,n)},REe=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})),q5=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,kEe),i=S.useContext(Vi),s=T({},r,{disableGutters:i.disableGutters}),l=OEe(s);return O.jsx(REe,T({className:Ie(l.root,o),ownerState:s,ref:n},a))});q5.muiName="ListItemSecondaryAction";const G5=q5,DEe=["className"],MEe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],IEe=(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]},AEe=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Ze({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},SEe,r)},NEe=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:IEe})(({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&&{[`& > .${PEe.root}`]:{paddingRight:48}},{[`&.${qc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qc.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)}},[`&.${qc.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"}},[`&.${qc.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})),jEe=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),LEe=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:P={}}=r,k=Oe(r.ContainerProps,DEe),A=Oe(r,MEe),D=S.useContext(Vi),F=S.useMemo(()=>({dense:b||D.dense||!1,alignItems:o,disableGutters:x}),[o,D.dense,b,x]),H=S.useRef(null);Gn(()=>{a&&H.current&&H.current.focus()},[a]);const q=S.Children.toArray(s),z=q.length&&gu(q[q.length-1],["ListItemSecondaryAction"]),B=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),G=AEe(B),Q=an(H,n),W=P.root||u.Root||NEe,J=$.root||f.root||{},Z=T({className:Ie(G.root,J.className,l),disabled:v},A);let L=c||"li";return i&&(Z.component=c||"div",Z.focusVisibleClassName=Ie(qc.focusVisible,w),L=va),z?(L=!Z.component&&!c?"div":L,p==="li"&&(L==="li"?L="div":Z.component==="li"&&(Z.component="div")),O.jsx(Vi.Provider,{value:F,children:O.jsxs(jEe,T({as:p,className:Ie(G.container,m),ref:Q,ownerState:B},k,{children:[O.jsx(W,T({},J,!di(W)&&{as:L,ownerState:T({},B,J.ownerState)},Z,{children:q})),q.pop()]}))})):O.jsx(Vi.Provider,{value:F,children:O.jsxs(W,T({},J,{as:L,ref:Q},!di(W)&&{ownerState:T({},B,J.ownerState)},Z,{children:[q,C&&O.jsx(G5,{children:C})]}))})}),Y5=LEe;function FEe(e){return et("MuiListItemAvatar",e)}Qe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const zEe=["className"],BEe=e=>{const{alignItems:t,classes:n}=e;return Ze({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},FEe,n)},VEe=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})),UEe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,zEe),i=S.useContext(Vi),s=T({},r,{alignItems:i.alignItems}),l=BEe(s);return O.jsx(VEe,T({className:Ie(l.root,o),ownerState:s,ref:n},a))}),WEe=UEe,HEe=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),cD=HEe;function qEe(e){return et("MuiListItemText",e)}const GEe=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xg=GEe,YEe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],KEe=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Ze({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},qEe,t)},XEe=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xg.primary}`]:t.primary},{[`& .${xg.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})),JEe=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,YEe),{dense:m}=S.useContext(Vi);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=KEe(x);return b!=null&&b.type!==mn&&!i&&(b=O.jsx(mn,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!==mn&&!i&&(v=O.jsx(mn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(XEe,T({className:Ie(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),ZEe=JEe,QEe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ex(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function uD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function K5(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 Qd(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")||!K5(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const ePe=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,QEe),m=S.useRef(null),b=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gn(()=>{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,$=Ln(C).activeElement;if(_==="ArrowDown")w.preventDefault(),Qd(C,$,c,l,ex);else if(_==="ArrowUp")w.preventDefault(),Qd(C,$,c,l,uD);else if(_==="Home")w.preventDefault(),Qd(C,null,c,l,ex);else if(_==="End")w.preventDefault(),Qd(C,null,c,l,uD);else if(_.length===1){const P=b.current,k=_.toLowerCase(),A=performance.now();P.keys.length>0&&(A-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=A,P.keys.push(k);const D=$&&!P.repeating&&K5($,P);P.previousKeyMatched&&(D||Qd(C,$,!1,l,ex,P))?w.preventDefault():P.previousKeyMatched=!1}u&&u(w)},x=an(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(V_,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),U_=ePe;function tPe(e){return et("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const nPe=["onEntering"],rPe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],oPe=["slotProps"];function dD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function fD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function pD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function tx(e){return typeof e=="function"?e():e}const aPe=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},tPe,t)},iPe=de(A5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X5=de(es,{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}),sPe=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:$=bg,transitionDuration:P="auto",TransitionProps:{onEntering:k}={},disableScrollLock:A=!1}=i,D=Oe(i.TransitionProps,nPe),F=Oe(i,rPe),H=(r=C==null?void 0:C.paper)!=null?r:y,q=S.useRef(),z=an(q,H.ref),B=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:H,transformOrigin:_,TransitionComponent:$,transitionDuration:P,TransitionProps:D}),G=aPe(B),Q=S.useCallback(()=>{if(f==="anchorPosition")return u;const he=tx(l),ve=(he&&he.nodeType===1?he:Ln(q.current).body).getBoundingClientRect();return{top:ve.top+dD(ve,c.vertical),left:ve.left+fD(ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),W=S.useCallback(he=>({vertical:dD(he,_.vertical),horizontal:fD(he,_.horizontal)}),[_.horizontal,_.vertical]),J=S.useCallback(he=>{const _e={width:he.offsetWidth,height:he.offsetHeight},ve=W(_e);if(f==="none")return{top:null,left:null,transformOrigin:pD(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=vi(tx(l)),Ce=we.innerHeight-x,Ge=we.innerWidth-x;if(x!==null&&UeCe){const rt=He-Ce;Ue-=rt,ve.vertical+=rt}if(x!==null&&zeGe){const rt=be-Ge;ze-=rt,ve.horizontal+=rt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ze)}px`,transformOrigin:pD(ve)}},[l,f,Q,W,x]),[Z,L]=S.useState(g),Y=S.useCallback(()=>{const he=q.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(()=>(A&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[l,A,Y]);const K=(he,_e)=>{k&&k(he,_e),Y()},R=()=>{L(!1)};S.useEffect(()=>{g&&Y()}),S.useImperativeHandle(s,()=>g?{updatePosition:()=>{Y()}}:null,[g,Y]),S.useEffect(()=>{if(!g)return;const he=qp(()=>{Y()}),_e=vi(l);return _e.addEventListener("resize",he),()=>{he.clear(),_e.removeEventListener("resize",he)}},[l,g,Y]);let N=P;P==="auto"&&!$.muiSupportAuto&&(N=void 0);const V=b||(l?Ln(tx(l)).body:void 0),X=(o=w==null?void 0:w.root)!=null?o:iPe,re=(a=w==null?void 0:w.paper)!=null?a:X5,le=Bt({elementType:re,externalSlotProps:T({},H,{style:Z?H.style:T({},H.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:B,className:Ie(G.paper,H==null?void 0:H.className)}),xe=Bt({elementType:X,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:g},ownerState:B,className:Ie(G.root,m)}),{slotProps:fe}=xe,ge=Oe(xe,oPe);return O.jsx(X,T({},ge,!di(X)&&{slotProps:fe,disableScrollLock:A},{children:O.jsx($,T({appear:!0,in:g,onEntering:K,onExited:R,timeout:N},D,{children:O.jsx(re,T({},le,{children:p}))}))}))}),lPe=sPe;function cPe(e){return et("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const uPe=["onEntering"],dPe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],fPe={vertical:"top",horizontal:"right"},pPe={vertical:"top",horizontal:"left"},hPe=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},cPe,t)},mPe=de(lPe,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vPe=de(X5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gPe=de(U_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yPe=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,uPe),_=Oe(a,dPe),$=er(),P=$.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),A=hPe(k),D=i&&!c&&p,F=S.useRef(null),H=(J,Z)=>{F.current&&F.current.adjustStyleForScrollbar(J,$),x&&x(J,Z)},q=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;S.Children.map(s,(J,Z)=>{S.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=Z))});const B=(r=y.paper)!=null?r:vPe,G=(o=w.paper)!=null?o:m,Q=Bt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[A.root,l]}),W=Bt({elementType:B,externalSlotProps:G,ownerState:k,className:A.paper});return O.jsx(mPe,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?fPe:pPe,slots:{paper:B,root:y.root},slotProps:{root:Q,paper:W},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:H},C),ownerState:k},_,{classes:b,children:O.jsx(gPe,T({onKeyDown:q,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:D,variant:g},u,{className:Ie(A.list,u.className),children:s}))}))}),bPe=yPe;function xPe(e){return et("MuiMenuItem",e)}const wPe=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ef=wPe,CPe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$Pe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},SPe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Ze({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},xPe,i);return T({},i,l)},_Pe=de(va,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$Pe})(({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"}},[`&.${ef.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ef.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)}},[`&.${ef.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)}},[`&.${ef.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ef.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nD.inset}`]:{marginLeft:52},[`& .${xg.root}`]:{marginTop:0,marginBottom:0},[`& .${xg.inset}`]:{paddingLeft:36},[`& .${cD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cD.root} svg`]:{fontSize:"1.25rem"}}))),EPe=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,CPe),b=S.useContext(Vi),v=S.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=S.useRef(null);Gn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=SPe(r),w=an(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(Vi.Provider,{value:v,children:O.jsx(_Pe,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ie(y.focusVisible,c),className:Ie(y.root,p)},m,{ownerState:g,classes:y}))})}),wg=EPe;function PPe(e){return et("MuiNativeSelect",e)}const TPe=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W_=TPe,kPe=["className","disabled","error","IconComponent","inputRef","variant"],OPe=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 Ze(s,PPe,t)},J5=({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"},[`&.${W_.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}}),RPe=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ko,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${W_.multiple}`]:t.multiple}]}})(J5),Z5=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${W_.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),DPe=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]}})(Z5),MPe=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,kPe),u=T({},t,{disabled:o,variant:l,error:a}),f=OPe(u);return O.jsxs(S.Fragment,{children:[O.jsx(RPe,T({ownerState:u,className:Ie(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(DPe,{as:i,ownerState:u,className:f.icon})]})}),IPe=MPe;var hD;const APe=["children","classes","className","label","notched"],NPe=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%"}),jPe=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 LPe(e){const{className:t,label:n,notched:r}=e,o=Oe(e,APe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(NPe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(jPe,{ownerState:i,children:a?O.jsx("span",{children:n}):hD||(hD=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const FPe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zPe=e=>{const{classes:t}=e,r=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sCe,t);return T({},t,r)},BPe=de(o0,{shouldForwardProp:e=>Ko(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:n0})(({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 .${Qa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Qa.focused} .${Qa.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Qa.error} .${Qa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Qa.disabled} .${Qa.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"}))}),VPe=de(LPe,{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}}),UPe=de(a0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:r0})(({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})),Q5=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,FPe),y=zPe(l),w=xi(),C=el({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:BPe,P=(a=(i=v.input)!=null?i:c.Input)!=null?a:UPe;return O.jsx(N_,T({slots:{root:$,input:P},renderSuffix:k=>O.jsx(VPe,{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})}))});Q5.muiName="Input";const eL=Q5,WPe=tr(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"),HPe=tr(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"),qPe=de("span")({position:"relative",display:"flex"}),GPe=de(WPe)({transform:"scale(1)"}),YPe=de(HPe)(({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 tL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(qPe,{className:n.root,ownerState:o,children:[O.jsx(GPe,{fontSize:r,className:n.background,ownerState:o}),O.jsx(YPe,{fontSize:r,className:n.dot,ownerState:o})]})}const KPe=S.createContext(void 0),nL=KPe;function XPe(){return S.useContext(nL)}function JPe(e){return et("MuiRadio",e)}const ZPe=Qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),mD=ZPe,QPe=["checked","checkedIcon","color","icon","name","onChange","size","className"],eTe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${je(n)}`,r!=="medium"&&`size${je(r)}`]};return T({},t,Ze(o,JPe,t))},tTe=de(j_,{shouldForwardProp:e=>Ko(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"&&{[`&.${mD.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${mD.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function nTe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const vD=O.jsx(tL,{checked:!0}),gD=O.jsx(tL,{}),rTe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=vD,color:l="primary",icon:c=gD,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,QPe),v=T({},a,{color:l,size:p}),x=eTe(v),g=XPe();let y=i;const w=ug(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=nTe(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(tTe,T({type:"radio",icon:S.cloneElement(c,{fontSize:(r=gD.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(s,{fontSize:(o=vD.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ie(x.root,m)},b))}),oTe=rTe,aTe=["actions","children","defaultValue","name","onChange","value"],iTe=S.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,aTe),u=S.useRef(null),[f,p]=br({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=an(n,u),b=Va(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(nL.Provider,{value:v,children:O.jsx(z5,T({role:"radiogroup",ref:m},c,{children:o}))})}),sTe=iTe;function lTe(e){return et("MuiSelect",e)}const cTe=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tf=cTe;var yD;const uTe=["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"],dTe=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${tf.select}`]:t.select},{[`&.${tf.select}`]:t[n.variant]},{[`&.${tf.error}`]:t.error},{[`&.${tf.multiple}`]:t.multiple}]}})(J5,{[`&.${tf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fTe=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]}})(Z5),pTe=de("input",{shouldForwardProp:e=>w_(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 bD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function hTe(e){return e==null||typeof e=="string"&&!e.trim()}const mTe=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 Ze(s,lTe,t)},vTe=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:P,onFocus:k,onOpen:A,open:D,readOnly:F,renderValue:H,SelectDisplayProps:q={},tabIndex:z,value:B,variant:G="standard"}=t,Q=Oe(t,uTe),[W,J]=br({controlled:B,default:f,name:"Select"}),[Z,L]=br({controlled:D,default:u,name:"Select"}),Y=S.useRef(null),K=S.useRef(null),[R,N]=S.useState(null),{current:V}=S.useRef(D!=null),[X,re]=S.useState(),le=an(n,x),xe=S.useCallback(Ne=>{K.current=Ne,Ne&&N(Ne)},[]),fe=R==null?void 0:R.parentNode;S.useImperativeHandle(le,()=>({focus:()=>{K.current.focus()},node:Y.current,value:W}),[W]),S.useEffect(()=>{u&&Z&&R&&!V&&(re(s?null:fe.clientWidth),K.current.focus())},[R,s]),S.useEffect(()=>{i&&K.current.focus()},[i]),S.useEffect(()=>{if(!g)return;const Ne=Ln(K.current).getElementById(g);if(Ne){const ne=()=>{getSelection().isCollapsed&&K.current.focus()};return Ne.addEventListener("click",ne),()=>{Ne.removeEventListener("click",ne)}}},[g]);const ge=(Ne,ne)=>{Ne?A&&A(ne):P&&P(ne),V||(re(s?null:fe.clientWidth),L(Ne))},he=Ne=>{Ne.button===0&&(Ne.preventDefault(),K.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(W)?W.slice():[];const ie=W.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),W!==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=R!==null&&Z,be=Ne=>{!He&&_&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:W,name:C}}),_(Ne))};delete Q["aria-invalid"];let we,Ce;const Ge=[];let rt=!1;(yg({value:W})||m)&&(H?we=H(W):rt=!0);const Ae=ve.map(Ne=>{if(!S.isValidElement(Ne))return null;let ne;if(w){if(!Array.isArray(W))throw new Error(Hs(2));ne=W.some(te=>bD(te,Ne.props.value)),ne&&rt&&Ge.push(Ne.props.children)}else ne=bD(W,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?Ge.length===0?we=null:we=Ge.reduce((Ne,ne,te)=>(Ne.push(ne),te{const{classes:t}=e;return t},H_={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ko(e)&&e!=="variant",slot:"Root"},wTe=de(ts,H_)(""),CTe=de(eL,H_)(""),$Te=de(F5,H_)(""),rL=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=O5,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:P,variant:k="outlined"}=r,A=Oe(r,yTe),D=y?IPe:gTe,F=xi(),H=el({props:r,muiFormControl:F,states:["variant","error"]}),q=H.variant||k,z=T({},r,{variant:q,classes:i}),B=xTe(z),G=Oe(B,bTe),Q=p||{standard:O.jsx(wTe,{ownerState:z}),outlined:O.jsx(CTe,{label:b,ownerState:z}),filled:O.jsx($Te,{ownerState:z})}[q],W=an(n,Q.ref);return O.jsx(S.Fragment,{children:S.cloneElement(Q,T({inputComponent:D,inputProps:T({children:a,error:H.error,IconComponent:u,variant:q,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},P)},m,{classes:m?Vr(G,m.classes):G},p?p.props.inputProps:{})},g&&y&&q==="outlined"?{notched:!0}:{},{ref:W,className:Ie(Q.props.className,s,B.root)},!p&&{variant:q},A))})});rL.muiName="Select";const oL=rL,STe=e=>!e||!di(e),_Te=STe;function ETe(e){return et("MuiSlider",e)}const PTe=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"]),Ia=PTe,TTe=e=>{const{open:t}=e;return{offset:Ie(t&&Ia.valueLabelOpen),circle:Ia.valueLabelCircle,label:Ia.valueLabelLabel}};function kTe(e){const{children:t,className:n,value:r}=e,o=TTe(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 OTe=["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 xD(e){return e}const RTe=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"},[`&.${Ia.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ia.dragging}`]:{[`& .${Ia.thumb}, & .${Ia.track}`]:{transition:"none"}}})),DTe=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})),MTe=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?zy(e.palette[t.color].main,.62):Fy(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})}),ITe=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, &.${Ia.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"}},[`&.${Ia.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${Ia.disabled}`]:{"&:hover":{boxShadow:"none"}}})),ATe=de(kTe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${Ia.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"})),NTe=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>w_(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})),jTe=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>w_(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})),LTe=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 Ze(c,ETe,i)},FTe=({children:e})=>e,zTe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,$,P,k,A,D;const F=Ke({props:t,name:"MuiSlider"}),q=er().direction==="rtl",{"aria-label":z,"aria-valuetext":B,"aria-labelledby":G,component:Q="span",components:W={},componentsProps:J={},color:Z="primary",classes:L,className:Y,disableSwap:K=!1,disabled:R=!1,getAriaLabel:N,getAriaValueText:V,marks:X=!1,max:re=100,min:le=0,orientation:xe="horizontal",size:fe="medium",step:ge=1,scale:he=xD,slotProps:_e,slots:ve,track:Be="normal",valueLabelDisplay:Ue="off",valueLabelFormat:ze=xD}=F,He=Oe(F,OTe),be=T({},F,{isRtl:q,max:re,min:le,classes:L,disabled:R,disableSwap:K,orientation:xe,marks:X,color:Z,size:fe,step:ge,scale:he,track:Be,valueLabelDisplay:Ue,valueLabelFormat:ze}),{axisProps:we,getRootProps:Ce,getHiddenInputProps:Ge,getThumbProps:rt,open:Ae,active:Le,axis:Fe,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Ne,trackLeap:ne,getThumbStyle:te}=Ewe(T({},be,{rootRef:n}));be.marked=ct.length>0&&ct.some(pe=>pe.label),be.dragging=it,be.focusedThumbIndex=Pe;const ie=LTe(be),$e=(r=(o=ve==null?void 0:ve.root)!=null?o:W.Root)!=null?r:RTe,Se=(a=(i=ve==null?void 0:ve.rail)!=null?i:W.Rail)!=null?a:DTe,Je=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:MTe,tt=(c=(u=ve==null?void 0:ve.thumb)!=null?u:W.Thumb)!=null?c:ITe,ft=(f=(p=ve==null?void 0:ve.valueLabel)!=null?p:W.ValueLabel)!=null?f:ATe,_t=(m=(b=ve==null?void 0:ve.mark)!=null?b:W.Mark)!=null?m:NTe,vt=(v=(x=ve==null?void 0:ve.markLabel)!=null?x:W.MarkLabel)!=null?v:jTe,dt=(g=(y=ve==null?void 0:ve.input)!=null?y:W.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,sn=($=_e==null?void 0:_e.thumb)!=null?$:J.thumb,Vt=(P=_e==null?void 0:_e.valueLabel)!=null?P:J.valueLabel,Ut=(k=_e==null?void 0:_e.mark)!=null?k:J.mark,Kt=(A=_e==null?void 0:_e.markLabel)!=null?A:J.markLabel,gn=(D=_e==null?void 0:_e.input)!=null?D:J.input,Fn=Bt({elementType:$e,getSlotProps:Ce,externalSlotProps:Et,externalForwardedProps:He,additionalProps:T({},_Te($e)&&{as:Q}),ownerState:T({},be,Et==null?void 0:Et.ownerState),className:[ie.root,Y]}),se=Bt({elementType:Se,externalSlotProps:Yt,ownerState:be,className:ie.rail}),oe=Bt({elementType:Je,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=Bt({elementType:tt,getSlotProps:rt,externalSlotProps:sn,ownerState:T({},be,sn==null?void 0:sn.ownerState),className:ie.thumb}),ke=Bt({elementType:ft,externalSlotProps:Vt,ownerState:T({},be,Vt==null?void 0:Vt.ownerState),className:ie.valueLabel}),Ee=Bt({elementType:_t,externalSlotProps:Ut,ownerState:be,className:ie.mark}),pt=Bt({elementType:vt,externalSlotProps:Kt,ownerState:be,className:ie.markLabel}),me=Bt({elementType:dt,getSlotProps:Ge,externalSlotProps:gn,ownerState:be});return O.jsxs($e,T({},Fn,{children:[O.jsx(Se,T({},se)),O.jsx(Je,T({},oe)),ct.filter(pe=>pe.value>=le&&pe.value<=re).map((pe,De)=>{const nt=gg(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,!di(_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,!di(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=gg(pe,le,re),lt=we[Fe].offset(nt),xt=Ue==="off"?FTe:ft;return O.jsx(xt,T({},!di(xt)&&{valueLabelFormat:ze,valueLabelDisplay:Ue,value:typeof ze=="function"?ze(he(pe),De):ze,index:De,open:Ae===De||Le===De||Ue==="on",disabled:R},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):z,"aria-valuenow":he(pe),"aria-labelledby":G,"aria-valuetext":V?V(he(pe),De):B,value:gt[De]},me))}))}),De)})]}))}),BTe=zTe;function VTe(e){return et("MuiTooltip",e)}const UTe=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ts=UTe,WTe=["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 HTe(e){return Math.round(e*1e5)/1e5}const qTe=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 Ze(i,VTe,t)},GTe=de(Zp,{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"] .${Ts.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ts.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ts.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"] .${Ts.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),YTe=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:`${HTe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ts.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"})),[`.${Ts.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"})),[`.${Ts.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ts.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),KTe=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 Vm=!1,nx=null,nf={x:0,y:0};function Um(e,t){return n=>{t&&t(n),e(n)}}const XTe=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:P=!1,children:k,components:A={},componentsProps:D={},describeChild:F=!1,disableFocusListener:H=!1,disableHoverListener:q=!1,disableInteractive:z=!1,disableTouchListener:B=!1,enterDelay:G=100,enterNextDelay:Q=0,enterTouchDelay:W=700,followCursor:J=!1,id:Z,leaveDelay:L=0,leaveTouchDelay:Y=1500,onClose:K,onOpen:R,open:N,placement:V="bottom",PopperComponent:X,PopperProps:re={},slotProps:le={},slots:xe={},title:fe,TransitionComponent:ge=bg,TransitionProps:he}=$,_e=Oe($,WTe),ve=S.isValidElement(k)?k:O.jsx("span",{children:k}),Be=er(),Ue=Be.direction==="rtl",[ze,He]=S.useState(),[be,we]=S.useState(null),Ce=S.useRef(!1),Ge=z||J,rt=S.useRef(),Ae=S.useRef(),Le=S.useRef(),Fe=S.useRef(),[Pe,Te]=br({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Va(Z),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(nx),Vm=!0,Te(!0),R&&!it&&R(yt)},te=mt(yt=>{clearTimeout(nx),nx=setTimeout(()=>{Vm=!1},800+L),Te(!1),K&&it&&K(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),G||Vm&&Q?Ae.current=setTimeout(()=>{ne(yt)},Vm?Q:G):ne(yt))},$e=yt=>{clearTimeout(Ae.current),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},L)},{isFocusVisibleRef:Se,onBlur:Je,onFocus:tt,ref:ft}=my(),[,_t]=S.useState(!1),vt=yt=>{Je(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,sn=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)},W)},Vt=yt=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(yt),Ne(),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},Y)};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=an(ve.ref,ft,He,n);!fe&&fe!==0&&(it=!1);const Kt=S.useRef(),gn=yt=>{const Wt=ve.props;Wt.onMouseMove&&Wt.onMouseMove(yt),nf={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Fn={},se=typeof fe=="string";F?(Fn.title=!it&&se&&!q?fe:null,Fn["aria-describedby"]=it?ct:null):(Fn["aria-label"]=se?fe:null,Fn["aria-labelledby"]=it&&!se?ct:null);const oe=T({},Fn,_e,ve.props,{className:Ie(_e.className,ve.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:gn}:{}),ue={};B||(oe.onTouchStart=sn,oe.onTouchEnd=Vt),q||(oe.onMouseOver=Um(Yt,oe.onMouseOver),oe.onMouseLeave=Um(kt,oe.onMouseLeave),Ge||(ue.onMouseOver=Yt,ue.onMouseLeave=kt)),H||(oe.onFocus=Um(dt,oe.onFocus),oe.onBlur=Um(vt,oe.onBlur),Ge||(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:P,disableInteractive:Ge,placement:V,PopperComponentProp:X,touch:Ce.current}),pt=qTe(Ee),me=(r=(o=xe.popper)!=null?o:A.Popper)!=null?r:GTe,pe=(a=(i=(s=xe.transition)!=null?s:A.Transition)!=null?i:ge)!=null?a:bg,De=(l=(c=xe.tooltip)!=null?c:A.Tooltip)!=null?l:YTe,nt=(u=(f=xe.arrow)!=null?f:A.Arrow)!=null?u:KTe,lt=hf(me,T({},re,(p=le.popper)!=null?p:D.popper,{className:Ie(pt.popper,re==null?void 0:re.className,(m=(b=le.popper)!=null?b:D.popper)==null?void 0:m.className)}),Ee),xt=hf(pe,T({},he,(v=le.transition)!=null?v:D.transition),Ee),Nt=hf(De,T({},(x=le.tooltip)!=null?x:D.tooltip,{className:Ie(pt.tooltip,(g=(y=le.tooltip)!=null?y:D.tooltip)==null?void 0:g.className)}),Ee),ut=hf(nt,T({},(w=le.arrow)!=null?w:D.arrow,{className:Ie(pt.arrow,(C=(_=le.arrow)!=null?_:D.arrow)==null?void 0:C.className)}),Ee);return O.jsxs(S.Fragment,{children:[S.cloneElement(ve,oe),O.jsx(me,T({as:X??Zp,placement:V,anchorEl:J?{getBoundingClientRect:()=>({top:nf.y,left:nf.x,right:nf.x,bottom:nf.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,P?O.jsx(nt,T({},ut,{ref:we})):null]}))}))}))]})}),sc=XTe,JTe=S.createContext({}),th=JTe,ZTe=S.createContext({}),u0=ZTe;function QTe(e){return et("MuiStep",e)}Qe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const e2e=["active","children","className","component","completed","disabled","expanded","index","last"],t2e=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Ze({root:["root",n,r&&"alternativeLabel",o&&"completed"]},QTe,t)},n2e=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"})),r2e=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,e2e),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=S.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,_]),P=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=t2e(P),A=O.jsxs(n2e,T({as:s,className:Ie(k.root,i),ref:n,ownerState:P},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(u0.Provider,{value:$,children:v&&!x&&f!==0?O.jsxs(S.Fragment,{children:[v,A]}):A})}),o2e=r2e,a2e=tr(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"),i2e=tr(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function s2e(e){return et("MuiStepIcon",e)}const l2e=Qe("MuiStepIcon",["root","active","completed","error","text"]),rx=l2e;var wD;const c2e=["active","className","completed","error","icon"],u2e=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Ze({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},s2e,t)},ox=de(zw,{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,[`&.${rx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${rx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${rx.error}`]:{color:(e.vars||e).palette.error.main}})),d2e=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})),f2e=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,c2e),u=T({},r,{active:o,completed:i,error:s}),f=u2e(u);if(typeof l=="number"||typeof l=="string"){const p=Ie(a,f.root);return s?O.jsx(ox,T({as:i2e,className:p,ref:n,ownerState:u},c)):i?O.jsx(ox,T({as:a2e,className:p,ref:n,ownerState:u},c)):O.jsxs(ox,T({className:p,ref:n,ownerState:u},c,{children:[wD||(wD=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(d2e,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),p2e=f2e;function h2e(e){return et("MuiStepLabel",e)}const m2e=Qe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ks=m2e,v2e=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],g2e=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Ze({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"]},h2e,t)},y2e=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",[`&.${ks.alternativeLabel}`]:{flexDirection:"column"},[`&.${ks.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),b2e=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}),[`&.${ks.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${ks.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${ks.alternativeLabel}`]:{marginTop:16},[`&.${ks.error}`]:{color:(e.vars||e).palette.error.main}})),x2e=de("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${ks.alternativeLabel}`]:{paddingRight:0}})),w2e=de("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${ks.alternativeLabel}`]:{textAlign:"center"}})),aL=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,v2e),{alternativeLabel:v,orientation:x}=S.useContext(th),{active:g,disabled:y,completed:w,icon:C}=S.useContext(u0),_=c||C;let $=p;_&&!$&&($=p2e);const P=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=g2e(P),A=(r=f.label)!=null?r:s.label;return O.jsxs(y2e,T({className:Ie(k.root,i),ref:n,ownerState:P},b,{children:[_||$?O.jsx(x2e,{className:k.iconContainer,ownerState:P,children:O.jsx($,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(w2e,{className:k.labelContainer,ownerState:P,children:[a?O.jsx(b2e,T({ownerState:P},A,{className:Ie(k.label,A==null?void 0:A.className),children:a})):null,u]})]}))});aL.muiName="StepLabel";const C2e=aL;function $2e(e){return et("MuiStepButton",e)}const S2e=Qe("MuiStepButton",["root","horizontal","vertical","touchRipple"]),CD=S2e,_2e=["children","className","icon","optional"],E2e=e=>{const{classes:t,orientation:n}=e;return Ze({root:["root",n],touchRipple:["touchRipple"]},$2e,t)},P2e=de(va,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${CD.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"},{[`& .${CD.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),T2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,_2e),{disabled:c,active:u}=S.useContext(u0),{orientation:f}=S.useContext(th),p=T({},r,{orientation:f}),m=E2e(p),b={icon:i,optional:s},v=gu(o,["StepLabel"])?S.cloneElement(o,b):O.jsx(C2e,T({},b,{children:o}));return O.jsx(P2e,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}))}),k2e=T2e;function O2e(e){return et("MuiStepConnector",e)}Qe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const R2e=["className"],D2e=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 Ze(s,O2e,t)},M2e=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)"})),I2e=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})}),A2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,R2e),{alternativeLabel:i,orientation:s="horizontal"}=S.useContext(th),{active:l,disabled:c,completed:u}=S.useContext(u0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=D2e(f);return O.jsx(M2e,T({className:Ie(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(I2e,{className:p.line,ownerState:f})}))}),N2e=A2e;function j2e(e){return et("MuiStepper",e)}Qe("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const L2e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],F2e=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Ze({root:["root",t,n&&"alternativeLabel"]},j2e,r)},z2e=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"})),B2e=O.jsx(N2e,{}),V2e=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=B2e,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,L2e),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=F2e(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(th.Provider,{value:g,children:O.jsx(z2e,T({as:l,ownerState:m,className:Ie(b.root,s),ref:n},p,{children:x}))})}),U2e=V2e;function W2e(e){return et("MuiSwitch",e)}const H2e=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xr=H2e,q2e=["className","color","edge","size","sx"],G2e=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=Ze(s,W2e,t);return T({},t,l)},Y2e=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,[`& .${Xr.thumb}`]:{width:16,height:16},[`& .${Xr.switchBase}`]:{padding:4,[`&.${Xr.checked}`]:{transform:"translateX(16px)"}}})),K2e=de(j_,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xr.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}),[`&.${Xr.checked}`]:{transform:"translateX(20px)"},[`&.${Xr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xr.checked} + .${Xr.track}`]:{opacity:.5},[`&.${Xr.disabled} + .${Xr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Xr.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"&&{[`&.${Xr.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"}},[`&.${Xr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?zy(e.palette[t.color].main,.62):Fy(e.palette[t.color].main,.55)}`}},[`&.${Xr.checked} + .${Xr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),X2e=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}`})),J2e=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%"})),Z2e=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,q2e),u=T({},r,{color:a,edge:i,size:s}),f=G2e(u),p=O.jsx(J2e,{className:f.thumb,ownerState:u});return O.jsxs(Y2e,{className:Ie(f.root,o),sx:l,ownerState:u,children:[O.jsx(K2e,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(X2e,{className:f.track,ownerState:u})]})}),Q2e=Z2e;function eke(e){return et("MuiTab",e)}const tke=Qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ml=tke,nke=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],rke=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 Ze(c,eke,t)},oke=de(va,{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,[`& > .${ml.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,[`&.${ml.selected}`]:{opacity:1},[`&.${ml.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ml.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ml.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ml.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)})),ake=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,nke),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),$=rke(_),P=l&&f&&S.isValidElement(l)?S.cloneElement(l,{className:Ie($.iconWrapper,l.props.className)}):l,k=D=>{!v&&p&&p(D,y),m&&m(D)},A=D=>{x&&!v&&p&&p(D,y),b&&b(D)};return O.jsxs(oke,T({focusRipple:!i,className:Ie($.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:A,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs(S.Fragment,{children:[P,f]}):O.jsxs(S.Fragment,{children:[f,P]}),u]}))}),gp=ake,ike=S.createContext(),iL=ike;function ske(e){return et("MuiTable",e)}Qe("MuiTable",["root","stickyHeader"]);const lke=["className","component","padding","size","stickyHeader"],cke=e=>{const{classes:t,stickyHeader:n}=e;return Ze({root:["root",n&&"stickyHeader"]},ske,t)},uke=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"})),$D="table",dke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:o,component:a=$D,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,lke),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=cke(u),p=S.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(iL.Provider,{value:p,children:O.jsx(uke,T({as:a,role:a===$D?null:"table",ref:n,className:Ie(f.root,o),ownerState:u},c))})}),sL=dke,fke=S.createContext(),d0=fke;function pke(e){return et("MuiTableBody",e)}Qe("MuiTableBody",["root"]);const hke=["className","component"],mke=e=>{const{classes:t}=e;return Ze({root:["root"]},pke,t)},vke=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),gke={variant:"body"},SD="tbody",yke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:o,component:a=SD}=r,i=Oe(r,hke),s=T({},r,{component:a}),l=mke(s);return O.jsx(d0.Provider,{value:gke,children:O.jsx(vke,T({className:Ie(l.root,o),as:a,ref:n,role:a===SD?null:"rowgroup",ownerState:s},i))})}),lL=yke;function bke(e){return et("MuiTableCell",e)}const xke=Qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wke=xke,Cke=["align","className","component","padding","scope","size","sortDirection","variant"],$ke=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 Ze(s,bke,t)},Ske=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"?zy(Tt(e.palette.divider,1),.88):Fy(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",[`&.${wke.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})),_ke=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,Cke),m=S.useContext(iL),b=S.useContext(d0),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=$ke(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(Ske,T({as:x,ref:n,className:Ie(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),hd=_ke;function Eke(e){return et("MuiTableHead",e)}Qe("MuiTableHead",["root"]);const Pke=["className","component"],Tke=e=>{const{classes:t}=e;return Ze({root:["root"]},Eke,t)},kke=de("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Oke={variant:"head"},_D="thead",Rke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:o,component:a=_D}=r,i=Oe(r,Pke),s=T({},r,{component:a}),l=Tke(s);return O.jsx(d0.Provider,{value:Oke,children:O.jsx(kke,T({as:a,className:Ie(l.root,o),ref:n,role:a===_D?null:"rowgroup",ownerState:s},i))})}),cL=Rke;function Dke(e){return et("MuiToolbar",e)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const Mke=["className","component","disableGutters","variant"],Ike=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ze({root:["root",!n&&"gutters",r]},Dke,t)},Ake=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),Nke=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,Mke),c=T({},r,{component:a,disableGutters:i,variant:s}),u=Ike(c);return O.jsx(Ake,T({as:a,className:Ie(u.root,o),ref:n,ownerState:c},l))}),jke=Nke,Lke=tr(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Fke=tr(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function zke(e){return et("MuiTableRow",e)}const Bke=Qe("MuiTableRow",["root","selected","hover","head","footer"]),ED=Bke,Vke=["className","component","hover","selected"],Uke=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Ze({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},zke,t)},Wke=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,[`&.${ED.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ED.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)}}})),PD="tr",Hke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:o,component:a=PD,hover:i=!1,selected:s=!1}=r,l=Oe(r,Vke),c=S.useContext(d0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=Uke(u);return O.jsx(Wke,T({as:a,ref:n,className:Ie(f.root,o),role:a===PD?null:"row",ownerState:u},l))}),tl=Hke;function qke(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Gke(e,t,n,r={},o=()=>{}){const{ease:a=qke,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 Yke=["onChange"],Kke={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Xke(e){const{onChange:t}=e,n=Oe(e,Yke),r=S.useRef(),o=S.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Gn(()=>{const i=qp(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=vi(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:Kke,ref:o},n))}function Jke(e){return et("MuiTabScrollButton",e)}const Zke=Qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qke=Zke,eOe=["className","slots","slotProps","direction","orientation","disabled"],tOe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ze({root:["root",n,r&&"disabled"]},Jke,t)},nOe=de(va,{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,[`&.${Qke.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),rOe=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,eOe),p=er().direction==="rtl",m=T({isRtl:p},a),b=tOe(m),v=(r=s.StartScrollButtonIcon)!=null?r:Lke,x=(o=s.EndScrollButtonIcon)!=null?o:Fke,g=Bt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=Bt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(nOe,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))}))}),oOe=rOe;function aOe(e){return et("MuiTabs",e)}const iOe=Qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Cv=iOe,sOe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],TD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Wm=(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}}},lOe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},aOe,l)},cOe=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cv.scrollButtons}`]:t.scrollButtons},{[`& .${Cv.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&&{[`& .${Cv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),uOe=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"})),dOe=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"})),fOe=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})),pOe=de(Xke)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),OD={},hOe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=er(),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=oOe,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:$={},TabScrollButtonProps:P={},textColor:k="primary",value:A,variant:D="standard",visibleScrollbar:F=!1}=r,H=Oe(r,sOe),q=D==="scrollable",z=x==="vertical",B=z?"scrollTop":"scrollLeft",G=z?"top":"left",Q=z?"bottom":"right",W=z?"clientHeight":"clientWidth",J=z?"height":"width",Z=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:z,scrollButtons:y,textColor:k,variant:D,visibleScrollbar:F,fixed:!q,hideScrollbar:q&&!F,scrollableX:q&&!z,scrollableY:q&&z,centered:c&&!q,scrollButtonsHideMobile:!m}),L=lOe(Z),Y=Bt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:Z}),K=Bt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:Z}),[R,N]=S.useState(!1),[V,X]=S.useState(OD),[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:Wve(te,o.direction),scrollWidth:te.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let $e;if(te&&A!==!1){const Se=ze.current.children;if(Se.length>0){const Je=Se[Be.get(A)];$e=Je?Je.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:$e}},be=mt(()=>{const{tabsMeta:te,tabMeta:ie}=He();let $e=0,Se;if(z)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 Je={[Se]:$e,[J]:ie?ie[J]:0};if(isNaN(V[Se])||isNaN(V[J]))X(Je);else{const tt=Math.abs(V[Se]-Je[Se]),ft=Math.abs(V[J]-Je[J]);(tt>=1||ft>=1)&&X(Je)}}),we=(te,{animation:ie=!0}={})=>{ie?Gke(B,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[B]=te},Ce=te=>{let ie=Ue.current[B];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&A4()==="reverse"?-1:1),we(ie)},Ge=()=>{const te=Ue.current[W];let ie=0;const $e=Array.from(ze.current.children);for(let Se=0;Se<$e.length;Se+=1){const Je=$e[Se];if(ie+Je[W]>te){Se===0&&(ie=te);break}ie+=Je[W]}return ie},rt=()=>{Ce(-1*Ge())},Ae=()=>{Ce(Ge())},Le=S.useCallback(te=>{ve({overflow:null,scrollbarWidth:te})},[]),Fe=()=>{const te={};te.scrollbarSizeListener=q?O.jsx(pOe,{onChange:Le,className:Ie(L.scrollableX,L.hideScrollbar)}):null;const $e=q&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=$e?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:x,direction:a?"right":"left",onClick:rt,disabled:!re},P,{className:Ie(L.scrollButtons,P.className)})):null,te.scrollButtonEnd=$e?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:K},orientation:x,direction:a?"left":"right",onClick:Ae,disabled:!xe},P,{className:Ie(L.scrollButtons,P.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:$e}=He();if(!(!$e||!ie)){if($e[G]ie[Q]){const Se=ie[B]+($e[Q]-ie[Q]);we(Se,{animation:te})}}}),Te=mt(()=>{q&&y!==!1&&he(!ge)});S.useEffect(()=>{const te=qp(()=>{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=vi(Ue.current);Se.addEventListener("resize",te);let Je;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(ze.current.children).forEach(tt=>{ie.observe(tt)})),typeof MutationObserver<"u"&&(Je=new MutationObserver($e),Je.observe(ze.current,{childList:!0})),()=>{var tt,ft;te.clear(),Se.removeEventListener("resize",te),(tt=Je)==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&&q&&y!==!1){const $e=te[0],Se=te[ie-1],Je={root:Ue.current,threshold:.99},tt=dt=>{le(!dt[0].isIntersecting)},ft=new IntersectionObserver(tt,Je);ft.observe($e);const _t=dt=>{fe(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Je);return vt.observe(Se),()=>{ft.disconnect(),vt.disconnect()}}},[q,y,ge,u==null?void 0:u.length]),S.useEffect(()=>{N(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Pe(OD!==V)},[Pe,V]),S.useImperativeHandle(l,()=>({updateIndicator:be,updateScrollButtons:Te}),[be,Te]);const it=O.jsx(fOe,T({},$,{className:Ie(L.indicator,$.className),ownerState:Z,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===A;return ct+=1,S.cloneElement(te,T({fullWidth:D==="fullWidth",indicator:$e&&!R&&it,selected:$e,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&A===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Ne=te=>{const ie=ze.current,$e=Ln(ie).activeElement;if($e.getAttribute("role")!=="tab")return;let Je=x==="horizontal"?"ArrowLeft":"ArrowUp",tt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Je="ArrowRight",tt="ArrowLeft"),te.key){case Je:te.preventDefault(),Wm(ie,$e,kD);break;case tt:te.preventDefault(),Wm(ie,$e,TD);break;case"Home":te.preventDefault(),Wm(ie,null,TD);break;case"End":te.preventDefault(),Wm(ie,null,kD);break}},ne=Fe();return O.jsxs(cOe,T({className:Ie(L.root,f),ownerState:Z,ref:n,as:p},H,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(uOe,{className:L.scroller,ownerState:Z,style:{overflow:_e.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-_e.scrollbarWidth},ref:Ue,children:[O.jsx(dOe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:L.flexContainer,ownerState:Z,onKeyDown:Ne,ref:ze,role:"tablist",children:gt}),R&&it]}),ne.scrollButtonEnd]}))}),f0=hOe;function mOe(e){return et("MuiTextField",e)}Qe("MuiTextField",["root"]);const vOe=["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"],gOe={standard:ts,filled:F5,outlined:eL},yOe=e=>{const{classes:t}=e;return Ze({root:["root"]},mOe,t)},bOe=de(Qp,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xOe=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:P=!1,name:k,onBlur:A,onChange:D,onFocus:F,placeholder:H,required:q=!1,rows:z,select:B=!1,SelectProps:G,type:Q,value:W,variant:J="outlined"}=r,Z=Oe(r,vOe),L=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:P,required:q,select:B,variant:J}),Y=yOe(L),K={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(K.notched=x.shrink),K.label=C),B&&((!G||!G.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const R=Va(v),N=b&&R?`${R}-helper-text`:void 0,V=C&&R?`${R}-label`:void 0,X=gOe[J],re=O.jsx(X,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:P,name:k,rows:z,maxRows:_,minRows:$,type:Q,value:W,id:R,inputRef:w,onBlur:A,onChange:D,onFocus:F,placeholder:H,inputProps:g},K,y));return O.jsxs(bOe,T({className:Ie(Y.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:q,color:l,variant:J,ownerState:L},Z,{children:[C!=null&&C!==""&&O.jsx(H5,T({htmlFor:R,id:V},x,{children:C})),B?O.jsx(oL,T({"aria-describedby":N,id:R,labelId:V,value:W,input:re},G,{children:i})):re,b&&O.jsx(cr,T({id:N},p,{children:b}))]}))}),nh=xOe;var wOe=x$;function COe(e){return wOe(e)?void 0:e}var $Oe=COe,SOe=td,_Oe=ty,EOe=Xse,POe=Ap,TOe=rd,kOe=$Oe,OOe=D$,ROe=d3,DOe=1,MOe=2,IOe=4,AOe=OOe(function(e,t){var n={};if(e==null)return n;var r=!1;t=SOe(t,function(a){return a=POe(a,e),r||(r=a.length>1),a}),TOe(e,ROe(e),n),r&&(n=_Oe(n,DOe|MOe|IOe,kOe));for(var o=t.length;o--;)EOe(n,t[o]);return n}),NOe=AOe;const jOe=zt(NOe);function LOe(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=JOe){var c=t?null:KOe(e);if(c)return XOe(c);i=!1,o=YOe,l=new HOe}else l=t?[]:s;e:for(;++r=z?q:""+Array(z+1-G.length).join(B)+q},C={s:w,z:function(q){var z=-q.utcOffset(),B=Math.abs(z),G=Math.floor(B/60),Q=B%60;return(z<=0?"+":"-")+w(G,2,"0")+":"+w(Q,2,"0")},m:function q(z,B){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(A,D,F){var H=F&&F.toUpperCase();return D||g[F]||n[F]||g[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,z,B){return z||B.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*G);var J=b(Q)(G),Z=J.year,L=J.month,Y=J.day,K=J.hours,R=J.minutes,N=J.seconds,V=J.milliseconds,X=J.zone,re=new Date,le=Y||(Z||L?1:re.getDate()),xe=Z||re.getFullYear(),fe=0;Z&&!L||(fe=L>0?L-1:re.getMonth());var ge=K||0,he=R||0,_e=N||0,ve=V||0;return X?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*X.offset*1e3)):W?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(),H&&H!==!0&&(this.$L=this.locale(H).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var q=k.length,z=1;z<=q;z+=1){P[1]=k[z-1];var B=g.apply(this,P);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}z===q&&(this.$d=new Date(""))}else w.call(this,C)}}})})(pL);var TRe=pL.exports;const kRe=zt(TRe);var eE={},ORe=lc;Object.defineProperty(eE,"__esModule",{value:!0});var hL=eE.default=void 0,RRe=ORe(cc()),DRe=O,MRe=(0,RRe.default)((0,DRe.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");hL=eE.default=MRe;var IRe=M$,ARe=Xi;function NRe(e,t){var n=-1,r=ARe(e)?Array(e.length):[];return IRe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var jRe=NRe,LRe=td,FRe=nc,zRe=jRe,BRe=ar;function VRe(e,t){var n=BRe(e)?LRe:zRe;return n(e,FRe(t))}var mL=VRe;const vL=zt(mL),URe=["localeText"],Yw=S.createContext(null),rh=function(t){var n;const{localeText:r}=t,o=Oe(t,URe),{utils:a,localeText:i}=(n=S.useContext(Yw))!=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(Yw.Provider,{value:g,children:l})},WRe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),gL={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"},HRe=gL;WRe(gL);const uc=()=>{const e=S.useContext(Yw);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({},HRe,e.localeText),[e.localeText]);return S.useMemo(()=>T({},e,{localeText:t}),[e,t])},Gt=()=>uc().utils,dc=()=>uc().defaultDates,Cr=()=>uc().localeText,nl=e=>{const t=Gt(),n=S.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},qRe=tr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),GRe=tr(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),YRe=tr(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),yL=tr(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"),KRe=tr(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"),XRe=tr(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"),JRe=tr(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"),ZRe=tr(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 QRe(e){return et("MuiPickersArrowSwitcher",e)}Qe("MuiPickersArrowSwitcher",["root","spacer","button"]);const eDe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],tDe=["ownerState"],nDe=["ownerState"],rDe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),oDe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),DD=de(Qn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),aDe=e=>{const{classes:t}=e;return Ze({root:["root"],spacer:["spacer"],button:["button"]},QRe,t)},bL=S.forwardRef(function(t,n){var r,o,a,i;const l=er().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,eDe),P=c,k=aDe(P),A={isDisabled:b,isHidden:v,goTo:x,label:g},D={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:DD,H=Bt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:T({},P,{hidden:D.isHidden}),className:k.button}),q=(o=p==null?void 0:p.nextIconButton)!=null?o:DD,z=Bt({elementType:q,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:T({},P,{hidden:A.isHidden}),className:k.button}),B=(a=p==null?void 0:p.leftArrowIcon)!=null?a:GRe,G=Bt({elementType:B,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(G,tDe),W=(i=p==null?void 0:p.rightArrowIcon)!=null?i:YRe,J=Bt({elementType:W,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=Oe(J,nDe);return O.jsxs(rDe,T({ref:n,className:Ie(k.root,f),ownerState:P},$,{children:[O.jsx(F,T({},H,{children:l?O.jsx(W,T({},Z)):O.jsx(B,T({},Q))})),u?O.jsx(mn,{variant:"subtitle1",component:"span",children:u}):O.jsx(oDe,{className:k.spacer,ownerState:P}),O.jsx(q,T({},z,{children:l?O.jsx(B,T({},Q)):O.jsx(W,T({},Z))}))]}))}),ii=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),tE=({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}},xL=["hours","minutes","seconds"],Bu=e=>xL.includes(e),ys=e=>xL.includes(e)||e==="meridiem",iDe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,yp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,sDe=(e,t,n,r)=>{const o=yp(r.getHours(e),t,n);return r.setHours(e,o)},MD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),oh=(e,t)=>(n,r)=>e?t.isAfter(n,r):MD(n,t)>MD(r,t),Cg=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return ii(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:ii(n,["minutes"])?o.minutes:ii(n,["seconds"])?o.seconds:ii(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:ii(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 ah({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]=br({name:"useViews",state:"view",controlled:r,default:p.current}),v=S.useRef(a?m:null),[x,g]=br({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(D=>!o.includes(D)))&&(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((D,F)=>{g(F?D:H=>D===H?null:H),s==null||s(D,F)}),$=mt(D=>{D!==m&&(b(D),_(D,!0),t&&t(D))}),P=mt(()=>{C&&$(C),_(C,!0)}),k=mt((D,F,H)=>{const q=F==="finish",z=H?o.indexOf(H){e(D,F?"partial":"finish",H),F&&($(F),_(F,!0))});return{view:m,setView:$,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:P,setValueAndGoToNextView:k,setValueAndGoToView:A}}function lDe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Gt();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 cDe(e,{disablePast:t,minDate:n,timezone:r}){const o=Gt();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 v0(e,t,n,r){const o=Gt(),a=iDe(e,o),i=S.useCallback(s=>{const l=e==null?null:sDe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const bp=36,g0=2,y0=320,uDe=280,b0=334,wL=232,vf=48,x0=de("div")({overflow:"hidden",width:y0,maxHeight:b0,display:"flex",flexDirection:"column",margin:"0 auto"});function dDe(e){return et("MuiTimeClock",e)}Qe("MuiTimeClock",["root","arrowSwitcher"]);const Vu=220,pi=36,xp={x:Vu/2,y:Vu/2},CL={x:xp.x,y:0},fDe=CL.x-xp.x,pDe=CL.y-xp.y,hDe=e=>e*(180/Math.PI),$L=(e,t,n)=>{const r=t-xp.x,o=n-xp.y,a=Math.atan2(fDe,pDe)-Math.atan2(r,o);let i=hDe(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}},mDe=(e,t,n=1)=>{const r=n*6;let{value:o}=$L(r,e,t);return o=o*n%60,o},vDe=(e,t,n)=>{const{value:r,distance:o}=$L(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Ze({root:["root"],thumb:["thumb"]},gDe,t)},xDe=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"])})),wDe=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% - ${pi/2}px)`,border:`${(pi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function CDe(e){const t=Ke({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,yDe),s=S.useRef(o);S.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=bDe(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*Vu),transform:`rotateZ(${p}deg)`}};return O.jsx(xDe,T({style:u(),className:Ie(n,c.root),ownerState:l},i,{children:O.jsx(wDe,{ownerState:l,className:c.thumb})}))}function $De(e){return et("MuiClock",e)}Qe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Ff=({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},SDe=(e,t)=>t==null||!e.isValid(t)?null:t,Wr=(e,t,n)=>t==null||!e.isValid(t)?n:t,_De=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),nE=(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},Kw=(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},rE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Aa=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},EDe=["year","month","day"],wu=e=>EDe.includes(e),wp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ii(n,["year"])?o.year:ii(n,["month"])?o.month:ii(n,["day"])?o.dayOfMonth:ii(n,["month","year"])?`${o.month} ${o.year}`:ii(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},PDe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},TDe=e=>{const{classes:t}=e;return Ze({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},$De,t)},kDe=de("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ODe=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"}),RDe=de("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),DDe=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"}})),MDe=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%)"})),IDe=de(Qn,{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:pi},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}})),ADe=de(Qn,{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:pi},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}})),ID=de(mn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function NDe(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=Gt(),C=Cr(),_=S.useRef(!1),$=TDe(y),P=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),A=(J,Z)=>{v||x||l(J,m)||f(J,Z)},D=(J,Z)=>{let{offsetX:L,offsetY:Y}=J;if(L===void 0){const R=J.target.getBoundingClientRect();L=J.changedTouches[0].clientX-R.left,Y=J.changedTouches[0].clientY-R.top}const K=m==="seconds"||m==="minutes"?mDe(L,Y,u):vDe(L,Y,!!n);A(K,Z)},F=J=>{_.current=!0,D(J,"shallow")},H=J=>{_.current&&(D(J,"finish"),_.current=!1)},q=J=>{J.buttons>0&&D(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),D(J.nativeEvent,"finish")},B=S.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),G=m==="minutes"?u:1,Q=S.useRef(null);Gn(()=>{o&&Q.current.focus()},[o]);const W=J=>{if(!_.current)switch(J.key){case"Home":A(0,"partial"),J.preventDefault();break;case"End":A(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":A(b+G,"partial"),J.preventDefault();break;case"ArrowDown":A(b-G,"partial"),J.preventDefault();break}};return O.jsxs(kDe,{className:Ie(g,$.root),children:[O.jsxs(ODe,{className:$.clock,children:[O.jsx(DDe,{onTouchMove:F,onTouchEnd:H,onMouseUp:z,onMouseMove:q,ownerState:{disabled:v},className:$.squareMask}),!P&&O.jsxs(S.Fragment,{children:[O.jsx(MDe,{className:$.pin}),i!=null&&O.jsx(CDe,{type:m,viewValue:b,isInner:k,hasSelected:B})]}),O.jsx(RDe,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:W,tabIndex:0,className:$.wrapper,children:a})]}),n&&r&&O.jsxs(S.Fragment,{children:[O.jsx(IDe,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:$.amButton,title:Aa(w,"am"),children:O.jsx(ID,{variant:"caption",className:$.meridiemText,children:Aa(w,"am")})}),O.jsx(ADe,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:$.pmButton,title:Aa(w,"pm"),children:O.jsx(ID,{variant:"caption",className:$.meridiemText,children:Aa(w,"pm")})})]})]})}function jDe(e){return et("MuiClockNumber",e)}const Hm=Qe("MuiClockNumber",["root","selected","disabled"]),LDe=["className","disabled","index","inner","label","selected"],FDe=e=>{const{classes:t,selected:n,disabled:r}=e;return Ze({root:["root",n&&"selected",r&&"disabled"]},jDe,t)},zDe=de("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Hm.disabled}`]:t.disabled},{[`&.${Hm.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:pi,width:pi,position:"absolute",left:`calc((100% - ${pi}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},[`&.${Hm.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Hm.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function SL(e){const t=Ke({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,LDe),c=t,u=FDe(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(Vu-pi-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(zDe,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+(Vu-pi)/2}px`},ownerState:c},l,{children:i}))}const BDe=({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(SL,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},AD=({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(SL,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},oE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=Gt(),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}},md=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=br({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return oE({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},Oa={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},VDe=e=>Math.max(...e.map(t=>{var n;return(n=Oa[t.type])!=null?n:1})),rf=(e,t,n)=>{if(t===Oa.year)return e.startOfYear(n);if(t===Oa.month)return e.startOfMonth(n);if(t===Oa.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():rf(t,n,rE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=rf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=rf(t,n,e.maxDate));const s=oh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=rf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Kw(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=rf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Kw(t,i,e.maxTime))),i},_L=(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}},WDe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},w0=(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))},EL=(e,t,n,r)=>{switch(n){case"month":return nE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return w0(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[]}},PL=(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?PL(e,a,o.maxLength):a},HDe=(e,t,n,r,o,a,i)=>{const s=WDe(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=>TL(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=EL(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()},aE=(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},lu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),kL=(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}},ND=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),OL=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,RL=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return OL(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")}},GDe=(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},jD=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=_L(e,w),_=RL(e,t,C.contentType,C.type,w),$=i?_:C.contentType==="digit",P=o!=null&&e.isValid(o);let k=P?e.formatByString(o,w):"",A=null;if($)if(_)A=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`);A=C.maxLength,P&&(k=PL(e,k,A))}return c.push(T({},C,{format:w,maxLength:A,value:k,placeholder:qDe(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=GDe(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wA.start<=w&&A.end>=w),_=v[w],$=C!=null,P=`${y}${v.slice(w)}`,k=g.test(P);!$&&_.match(/([A-Za-z]+)/)&&k?(y=P.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})},YDe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=aE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},XDe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=nE(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:OL(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=w0(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})}},JDe=(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=w0(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}},LD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},FD=(e,t,n,r,o,a)=>[...r].sort((i,s)=>LD[i.type]-LD[s.type]).reduce((i,s)=>!a||s.modified?JDe(e,t,s,n,i):i,o),ZDe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,QDe=(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]}},eMe=["value","referenceDate"],xr={emptyValue:null,getTodayValue:rE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,eMe);return t!=null&&r.utils.isValid(t)?t:n??UDe(r)},cleanValue:SDe,areValuesEqual:_De,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)},iE={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:kL(o(t),r),getValueStrFromSections:KDe,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)},ih=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},sE=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=S.useMemo(()=>xr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Oa.day,timezone:o,getTodayDate:()=>rE(n,o,"date")}),[]);return e??a},tMe=["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"],nMe=e=>{const{classes:t}=e;return Ze({root:["root"],arrowSwitcher:["arrowSwitcher"]},dDe,t)},rMe=de(x0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),oMe=de(bL,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),aMe=["hours","minutes"],iMe=S.forwardRef(function(t,n){const r=Gt(),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:P,onChange:k,view:A,views:D=aMe,openTo:F,onViewChange:H,focusedView:q,onFocusedViewChange:z,className:B,disabled:G,readOnly:Q,timezone:W}=o,J=Oe(o,tMe),Z=u??ih(l),L=f??c,{value:Y,handleValueChange:K,timezone:R}=md({name:"TimeClock",timezone:W,value:p,defaultValue:m,onChange:k,valueManager:xr}),N=sE({value:Y,referenceDate:b,utils:r,props:o,timezone:R}),V=Cr(),X=nl(R),{view:re,setView:le,previousView:xe,nextView:fe,setValueAndGoToNextView:ge}=ah({view:A,views:D,openTo:F,onViewChange:H,onChange:K,focusedView:q,onFocusedViewChange:z}),{meridiemMode:he,handleMeridiemChange:_e}=v0(N,a,ge),ve=S.useCallback((be,we)=>{const Ce=oh(v,r),Ge=we==="hours"||we==="minutes"&&D.includes("seconds"),rt=({start:Le,end:Fe})=>!(g&&Ce(g,Fe)||x&&Ce(Le,x)||y&&Ce(Le,X)||w&&Ce(X,Ge?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=yp(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,X,D]),Be=Va(),Ue=S.useMemo(()=>{switch(re){case"hours":{const be=(we,Ce)=>{const Ge=yp(we,he,a);ge(r.setHours(N,Ge),Ce)};return{onChange:be,viewValue:r.getHours(N),children:BDe({value:Y,utils:r,ampm:a,onChange:be,getClockNumberText:V.hoursClockNumberText,isDisabled:we=>G||ve(we,"hours"),selectedId:Be})}}case"minutes":{const be=r.getMinutes(N),we=(Ce,Ge)=>{ge(r.setMinutes(N,Ce),Ge)};return{viewValue:be,onChange:we,children:AD({utils:r,value:be,onChange:we,getClockNumberText:V.minutesClockNumberText,isDisabled:Ce=>G||ve(Ce,"minutes"),selectedId:Be})}}case"seconds":{const be=r.getSeconds(N),we=(Ce,Ge)=>{ge(r.setSeconds(N,Ce),Ge)};return{viewValue:be,onChange:we,children:AD({utils:r,value:be,onChange:we,getClockNumberText:V.secondsClockNumberText,isDisabled:Ce=>G||ve(Ce,"seconds"),selectedId:Be})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,Y,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,he,ge,N,ve,Be,G]),ze=o,He=nMe(ze);return O.jsxs(rMe,T({ref:n,className:Ie(He.root,B),ownerState:ze},J,{children:[O.jsx(NDe,T({autoFocus:s??!!q,ampmInClock:i&&D.includes("hours"),value:Y,type:re,ampm:a,minutesStep:C,isTimeDisabled:ve,meridiemMode:he,handleMeridiemChange:_e,selectedId:Be,disabled:G,readOnly:Q},Ue)),P&&O.jsx(oMe,{className:He.arrowSwitcher,slots:Z,slotProps:L,onGoToPrevious:()=>le(xe),isPreviousDisabled:!xe,previousLabel:V.openPreviousView,onGoToNext:()=>le(fe),isNextDisabled:!fe,nextLabel:V.openNextView,ownerState:ze})]}))});function sMe(e){return et("MuiDigitalClock",e)}const lMe=Qe("MuiDigitalClock",["root","list","item"]),cMe=["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"],uMe=e=>{const{classes:t}=e;return Ze({root:["root"],list:["list"],item:["item"]},sMe,t)},dMe=de(x0,{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:wL})),fMe=de(U_,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),pMe=de(wg,{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)}})),hMe=S.forwardRef(function(t,n){var r,o,a;const i=Gt(),s=S.useRef(null),l=an(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:P,disablePast:k,minutesStep:A=1,shouldDisableClock:D,shouldDisableTime:F,onChange:H,view:q,openTo:z,onViewChange:B,focusedView:G,onFocusedViewChange:Q,className:W,disabled:J,readOnly:Z,views:L=["hours"],skipDisabled:Y=!1,timezone:K}=c,R=Oe(c,cMe),{value:N,handleValueChange:V,timezone:X}=md({name:"DigitalClock",timezone:K,value:g,defaultValue:y,onChange:H,valueManager:xr}),re=Cr(),le=nl(X),xe=S.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),fe=uMe(xe),ge=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:pMe,he=Bt({elementType:ge,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:fe.item}),_e=sE({value:N,referenceDate:w,utils:i,props:c,timezone:X}),ve=mt(be=>V(be,"finish","hours")),{setValueAndGoToNextView:Be}=ah({view:q,views:L,openTo:z,onViewChange:B,onChange:ve,focusedView:G,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=oh(C,i),Ce=()=>!($&&we($,be)||_&&we(be,_)||P&&we(be,le)||k&&we(le,be)),Ge=()=>i.getMinutes(be)%A!==0||D!=null&&D(i.toJsDate(be).getTime(),"hours")?!1:F?!F(be,"hours"):!0;return!Ce()||!Ge()},[C,i,$,_,P,le,k,A,D,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(dMe,T({ref:l,className:Ie(fe.root,W),ownerState:xe},R,{children:O.jsx(fMe,{autoFocusItem:p||!!G,role:"listbox","aria-label":re.timePickerToolbarTitle,className:fe.list,children:He.map(be=>{if(Y&&ze(be))return null;const we=i.isEqual(be,N);return O.jsx(ge,T({onClick:()=>!Z&&Ue(be),selected:we,disabled:J||ze(be),disableRipple:Z,role:"option","aria-disabled":Z,"aria-selected":we},he,{children:i.format(be,u?"fullTime12h":"fullTime24h")}),i.toISO(be))})})}))});function mMe(e){return et("MuiMultiSectionDigitalClock",e)}Qe("MuiMultiSectionDigitalClock",["root"]);function vMe(e){return et("MuiMultiSectionDigitalClock",e)}const gMe=Qe("MuiMultiSectionDigitalClock",["root","item"]),yMe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],bMe=e=>{const{classes:t}=e;return Ze({root:["root"],item:["item"]},vMe,t)},xMe=de(U_,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:wL,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)"}})),wMe=de(wg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:vf,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)}})),CMe=S.forwardRef(function(t,n){var r;const o=S.useRef(null),a=an(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,yMe),w=S.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=bMe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:wMe;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 P=$.offsetTop;o.current.scrollTop=P-4}),O.jsx(xMe,T({ref:a,className:Ie(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map($=>{var P,k;if(g&&(P=$.isDisabled)!=null&&P.call($,$.value))return null;const A=$.isSelected($.value);return O.jsx(_,T({onClick:()=>!p&&c($.value),selected:A,disabled:f||((k=$.isDisabled)==null?void 0:k.call($,$.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":$.ariaLabel,"aria-selected":A},x==null?void 0:x.digitalClockSectionItem,{children:$.label}),$.label)})}))}),$Me=({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},zD=({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())}})]},SMe=["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"],_Me=e=>{const{classes:t}=e;return Ze({root:["root"]},mMe,t)},EMe=de(x0,{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}`})),PMe=S.forwardRef(function(t,n){const r=Gt(),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:P,view:k,views:A=["hours","minutes"],openTo:D,onViewChange:F,focusedView:H,onFocusedViewChange:q,className:z,disabled:B,readOnly:G,skipDisabled:Q=!1,timezone:W}=o,J=Oe(o,SMe),{value:Z,handleValueChange:L,timezone:Y}=md({name:"MultiSectionDigitalClock",timezone:W,value:p,defaultValue:m,onChange:P,valueManager:xr}),K=Cr(),R=nl(Y),N=S.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),V=sE({value:Z,referenceDate:b,utils:r,props:o,timezone:Y}),X=mt((we,Ce,Ge)=>L(we,Ce,Ge)),re=S.useMemo(()=>!a||!A.includes("hours")||A.includes("meridiem")?A:[...A,"meridiem"],[a,A]),{view:le,setValueAndGoToView:xe,focusedView:fe}=ah({view:k,views:re,openTo:D,onViewChange:F,onChange:X,focusedView:H,onFocusedViewChange:q}),ge=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:he,handleMeridiemChange:_e}=v0(V,a,ge,"finish"),ve=S.useCallback((we,Ce)=>{const Ge=oh(v,r),rt=Ce==="hours"||Ce==="minutes"&&re.includes("seconds"),Ae=({start:Fe,end:Pe})=>!(g&&Ge(g,Pe)||x&&Ge(Fe,x)||y&&Ge(Fe,R)||w&&Ge(R,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=yp(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,R,re]),Be=mt((we,Ce)=>{const Ge=re.indexOf(we),rt=re[Ge+1];xe(Ce,rt,we)}),Ue=S.useCallback(we=>{switch(we){case"hours":return{onChange:Ce=>{const Ge=yp(Ce,he,a);Be("hours",r.setHours(V,Ge))},items:$Me({now:R,value:Z,ampm:a,utils:r,isDisabled:Ce=>B||ve(Ce,"hours"),timeStep:N.hours,resolveAriaLabel:K.hoursClockNumberText})};case"minutes":return{onChange:Ce=>{Be("minutes",r.setMinutes(V,Ce))},items:zD({value:r.getMinutes(V),isDisabled:Ce=>B||ve(Ce,"minutes"),resolveLabel:Ce=>r.format(r.setMinutes(R,Ce),"minutes"),timeStep:N.minutes,hasValue:!!Z,resolveAriaLabel:K.minutesClockNumberText})};case"seconds":return{onChange:Ce=>{Be("seconds",r.setSeconds(V,Ce))},items:zD({value:r.getSeconds(V),isDisabled:Ce=>B||ve(Ce,"seconds"),resolveLabel:Ce=>r.format(r.setSeconds(R,Ce),"seconds"),timeStep:N.seconds,hasValue:!!Z,resolveAriaLabel:K.secondsClockNumberText})};case"meridiem":{const Ce=Aa(r,"am"),Ge=Aa(r,"pm");return{onChange:_e,items:[{value:"am",label:Ce,isSelected:()=>!!Z&&he==="am",ariaLabel:Ce},{value:"pm",label:Ge,isSelected:()=>!!Z&&he==="pm",ariaLabel:Ge}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[R,Z,a,r,N.hours,N.minutes,N.seconds,K.hoursClockNumberText,K.minutesClockNumberText,K.secondsClockNumberText,he,Be,V,B,ve,_e]),ze=S.useMemo(()=>re.reduce((we,Ce)=>T({},we,{[Ce]:Ue(Ce)}),{}),[re,Ue]),He=o,be=_Me(He);return O.jsx(EMe,T({ref:n,className:Ie(be.root,z),ownerState:He,role:"group"},J,{children:Object.entries(ze).map(([we,Ce])=>O.jsx(CMe,{items:Ce.items,onChange:Ce.onChange,active:le===we,autoFocus:s??fe===we,disabled:B,readOnly:G,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":K.selectViewText(we)},we))}))});function TMe(e){return et("MuiPickersDay",e)}const vl=Qe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),kMe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],OMe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Ze({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},TMe,l)},DL=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:bp,height:bp,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),[`&.${vl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${vl.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}},[`&.${vl.disabled}:not(.${vl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${vl.disabled}&.${vl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${g0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${vl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),ML=(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]},RMe=de(va,{name:"MuiPickersDay",slot:"Root",overridesResolver:ML})(DL),DMe=de("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ML})(({theme:e,ownerState:t})=>T({},DL({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),of=()=>{},MMe=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=of,onBlur:b=of,onKeyDown:v=of,onMouseDown:x=of,onMouseEnter:g=of,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:$=!1}=r,P=Oe(r,kMe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:$}),A=OMe(k),D=Gt(),F=S.useRef(null),H=an(F,n);Gn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const q=B=>{x(B),y&&B.preventDefault()},z=B=>{s||p(i),y&&B.currentTarget.focus(),f&&f(B)};return y&&!C?O.jsx(DMe,{className:Ie(A.root,A.hiddenDaySpacingFiller,a),ownerState:k,role:P.role}):O.jsx(RMe,T({className:Ie(A.root,a),ref:H,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:B=>v(B,i),onFocus:B=>m(B,i),onBlur:B=>b(B,i),onMouseEnter:B=>g(B,i),onClick:z,onMouseDown:q},P,{ownerState:k,children:_||D.format(i,"dayOfMonth")}))}),IMe=S.memo(MMe);function IL(e,t,n,r){const{value:o,onError:a}=e,i=uc(),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 AMe=e=>{const t=Gt(),n=Cr(),r=uc(),a=er().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:P}=oE({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=S.useMemo(()=>XDe(t,_),[t,_]),A=S.useCallback((R,N=null)=>s.getSectionsFromValue(t,R,N,a,V=>jD(t,_,n,v,V,x,w,a)),[s,v,n,a,w,t,x,_]),D=S.useMemo(()=>s.getValueStrFromSections(A(i.emptyValue),a),[s,A,i.emptyValue,a]),[F,H]=S.useState(()=>{const R=A($),N={sections:R,value:$,referenceValue:i.emptyValue,tempValueStrAndroid:null},V=VDe(R),X=i.getInitialReferenceValue({referenceDate:m,value:$,utils:t,props:u,granularity:V,timezone:_});return T({},N,{referenceValue:X})}),[q,z]=br({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),B=R=>{z(R),y==null||y(R),H(N=>T({},N,{selectedSectionQuery:null}))},G=S.useMemo(()=>{if(q==null)return null;if(q==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof q=="number")return{startIndex:q,endIndex:q};if(typeof q=="string"){const R=F.sections.findIndex(N=>N.type===q);return{startIndex:R,endIndex:R}}return q},[q,F.sections]),Q=({value:R,referenceValue:N,sections:V})=>{H(re=>T({},re,{sections:V,value:R,referenceValue:N,tempValueStrAndroid:null}));const X={validationError:c({adapter:r,value:R,props:T({},u,{value:R,timezone:_})})};P(R,X)},W=(R,N)=>{const V=[...F.sections];return V[R]=T({},V[R],{value:N,modified:!0}),kL(V,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:A(i.emptyValue)})},Z=()=>{if(G==null)return;const R=F.sections[G.startIndex];if(R.value==="")return;const N=s.getActiveDateManager(t,F,R),X=N.getSections(F.sections).filter(fe=>fe.value!=="").length===1,re=W(G.startIndex,""),le=X?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})):H(fe=>T({},fe,xe,{sections:re,tempValueStrAndroid:null}))},L=R=>{const N=(re,le)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const fe=jD(t,_,n,v,xe,x,w,a);return FD(t,_,xe,fe,le,!1)},V=s.parseValueStr(R,F.referenceValue,N),X=s.updateReferenceValue(t,V,F.referenceValue);Q({value:V,referenceValue:X,sections:A(V,F.sections)})},Y=({activeSection:R,newSectionValue:N,shouldGoToNextSection:V})=>{V&&G&&G.startIndexT({},he,fe,{sections:re,tempValueStrAndroid:null}))},K=R=>H(N=>T({},N,{tempValueStrAndroid:R}));return S.useEffect(()=>{const R=A(F.value);H(N=>T({},N,{sections:R}))},[v,t.locale]),S.useEffect(()=>{let R=!1;i.areValuesEqual(t,F.value,$)?R=i.getTimezone(t,F.value)!==i.getTimezone(t,$):R=!0,R&&H(N=>T({},N,{value:$,referenceValue:s.updateReferenceValue(t,$,N.referenceValue),sections:A($)}))},[$]),{state:F,selectedSectionIndexes:G,setSelectedSections:B,clearValue:J,clearActiveSection:Z,updateSectionValue:Y,updateValueFromValueStr:L,setTempAndroidValueStr:K,sectionsValueBoundaries:k,placeholder:D,timezone:_}},NMe=5e3,Vc=e=>e.saveQuery!=null,jMe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=Gt(),[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(),NMe);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(!Vc(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return Vc(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),Vc(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 _=$=>EL(a,o,y.type,$);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&_L(a,w).contentType==="letter"){const $=_(w),P=b(w,$,g);return Vc(P)?{saveQuery:!1}:T({},P,{sectionValue:C(P.sectionValue,$)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>ND(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:TL(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=RL(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Vc(w))return w;const C=ND(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(Vc(y))return y;const w=w0(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 Gc(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const LMe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},$g=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?$g(t.shadowRoot):t:null},lE="@media (pointer: fine)",FMe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],cE=e=>{const t=Gt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=AMe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:$,onPaste:P,error:k,clearable:A,onClear:D,disabled:F},fieldValueManager:H,valueManager:q,validator:z}=e,B=Oe(e.forwardedProps,FMe),{applyCharacterEditing:G,resetCharacterQuery:Q}=jMe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),W=S.useRef(null),J=an(m,W),Z=S.useRef(void 0),Y=er().direction==="rtl",K=S.useMemo(()=>QDe(n.sections,Y),[n.sections,Y]),R=()=>{var be;if(v){o(null);return}const we=(be=W.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 Ge=Ce===-1?n.sections.length-1:Ce-1;o(Ge)},N=mt((be,...we)=>{be.isDefaultPrevented()||(y==null||y(be,...we),R())}),V=mt(be=>{$==null||$(be),be.preventDefault()}),X=mt((...be)=>{C==null||C(...be);const we=W.current;window.clearTimeout(Z.current),Z.current=setTimeout(()=>{!we||we!==W.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):R())})}),re=mt((...be)=>{_==null||_(...be),o(null)}),le=mt(be=>{if(P==null||P(be),v){be.preventDefault();return}const we=be.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Ce=n.sections[r.startIndex],Ge=/^[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"&&Ge||Ce.contentType==="digit"&&rt||Ce.contentType==="digit-with-letter"&&Ae)return;if(Ge||rt){be.preventDefault();return}}be.preventDefault(),Q(),l(we)}),xe=mt(be=>{if(v)return;const we=be.target.value,Ce=be.nativeEvent.data,Ge=Ce&&Ce.length>1,rt=Ge?Ce:we,Ae=lu(rt);if(r==null||Ge){l(Ge?Ce:Ae);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ae.length===1)Le=Ae;else{const Fe=lu(H.getValueStrFromSections(n.sections,Y));let Pe=-1,Te=-1;for(let Ne=0;Neit.end)return;const gt=Ae.length-Fe.length+it.end-lu(it.endSeparator||"").length;Le=Ae.slice(it.start+lu(it.startSeparator||"").length,gt)}if(ZDe()&&Le.length===0){c(rt);return}G({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(K.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=K.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case be.key==="ArrowLeft":{if(be.preventDefault(),r==null)o(K.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=K.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=H.getActiveDateManager(t,n,we),Ge=HDe(t,p,we,be.key,u,Ce.date,{minutesStep:g});s({activeSection:we,newSectionValue:Ge,shouldGoToNextSection:!1});break}}});Gn(()=>{if(!W.current)return;if(r==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const be=n.sections[r.startIndex],we=n.sections[r.endIndex];let Ce=be.startInInput,Ge=we.endInInput;if(r.shouldSelectBoundarySelectors&&(Ce-=be.startSeparator.length,Ge+=we.endSeparator.length),Ce!==W.current.selectionStart||Ge!==W.current.selectionEnd){const rt=W.current.scrollTop;W.current===$g(document)&&W.current.setSelectionRange(Ce,Ge),W.current.scrollTop=rt}});const ge=IL(T({},b,{value:n.value,timezone:p}),z,q.isSameError,q.defaultErrorState),he=S.useMemo(()=>k!==void 0?k:q.hasError(ge),[q,ge,k]);S.useEffect(()=>{!he&&!r&&Q()},[n.referenceValue,r,he]),S.useEffect(()=>(W.current&&W.current===document.activeElement&&o("all"),()=>window.clearTimeout(Z.current)),[]),S.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const _e=S.useMemo(()=>{var be;return(be=n.tempValueStrAndroid)!=null?be:H.getValueStrFromSections(n.sections,Y)},[n.sections,H,n.tempValueStrAndroid,Y]),ve=S.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Be=W.current&&W.current===$g(document),Ue=q.areValuesEqual(t,n.value,q.emptyValue),ze=!Be&&Ue;S.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var be,we;const Ce=(be=W.current.selectionStart)!=null?be:0,Ge=(we=W.current.selectionEnd)!=null?we:0;if(Ce===0&&Ge===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(),D==null||D(be,...we),a(),W==null||(Ce=W.current)==null||Ce.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},B,{value:ze?"":_e,inputMode:ve,readOnly:v,onClick:N,onFocus:X,onBlur:re,onPaste:le,onChange:xe,onKeyDown:fe,onMouseUp:V,onClear:He,error:he,ref:J,clearable:!!(A&&!Ue&&!v&&!F)})},sh=({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=Wr(n.utils,e.minDate,n.defaultDates.minDate),f=Wr(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}},Xw=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Jw=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],AL=["minDateTime","maxDateTime"],zMe=[...Xw,...Jw,...AL],vd=e=>zMe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),BMe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],uE=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return BMe.forEach(o),t==="date"?Xw.forEach(o):t==="time"?Jw.forEach(o):t==="date-time"&&(Xw.forEach(o),Jw.forEach(o),AL.forEach(o)),{forwardedProps:n,internalProps:r}},VMe=e=>{var t,n,r;const o=Gt(),a=dc();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:Wr(o,e.minDate,a.minDate),maxDate:Wr(o,e.maxDate,a.maxDate)})},UMe=({props:e,inputRef:t})=>{const n=VMe(e),{forwardedProps:r,internalProps:o}=uE(n,"date");return cE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:xr,fieldValueManager:iE,validator:sh,valueType:"date"})},WMe=de(i0)({[`& .${jf.container}`]:{outline:0},[`& .${jf.paper}`]:{outline:0,minWidth:y0}}),HMe=de(l0)({"&:first-of-type":{padding:0}});function qMe(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:WMe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:pd;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(HMe,{children:r})}))}function GMe(e){return et("MuiPickersPopper",e)}Qe("MuiPickersPopper",["root","paper"]);const YMe="@media (prefers-reduced-motion: reduce)",Cu=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),BD=Cu&&Cu[1]?parseInt(Cu[1],10):null,VD=Cu&&Cu[2]?parseInt(Cu[2],10):null,KMe=BD&&BD<10||VD&&VD<13||!1,NL=()=>eh(YMe,{defaultMatches:!1})||KMe,XMe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],JMe=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},GMe,t)},ZMe=de(Zp,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),QMe=de(es,{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 eIe(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=Ln(o.current);if(!o.current||"clientX"in l&&eIe(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=Ln(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=Ln(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const nIe=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,XMe),f=T({},o,{placement:r}),p=Bt({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 rIe(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(Z){p&&(Z.key==="Escape"||Z.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=$g(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=tIe(p,u??f),$=S.useRef(null),P=an($,l),k=an(P,w),A=a,D=JMe(A),F=NL(),H=g??F,q=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:H)?pd:bg,B=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:v5,G=(r=v==null?void 0:v.desktopPaper)!=null?r:QMe,Q=(o=v==null?void 0:v.popper)!=null?o:ZMe,W=Bt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:q},className:D.root,ownerState:a});return O.jsx(Q,T({},W,{children:({TransitionProps:J,placement:Z})=>O.jsx(B,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(nIe,{PaperComponent:G,ownerState:A,popperPlacement:Z,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:D.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function jL(e){return et("MuiPickersToolbar",e)}Qe("MuiPickersToolbar",["root","content"]);const oIe=e=>{const{classes:t,isLandscape:n}=e;return Ze({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},jL,t)},aIe=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"})),iIe=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"}}),dE=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=oIe(c);return s?null:O.jsxs(aIe,{ref:n,className:Ie(u.root,a),ownerState:c,children:[O.jsx(mn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(iIe,{className:u.content,ownerState:c,children:o})]})});function sIe(e){return et("MuiPickersToolbarText",e)}const UD=Qe("MuiPickersToolbarText",["root","selected"]),lIe=["className","selected","value"],cIe=e=>{const{classes:t,selected:n}=e;return Ze({root:["root",n&&"selected"]},sIe,t)},uIe=de(mn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${UD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${UD.selected}`]:{color:(e.vars||e).palette.text.primary}})),fE=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,lIe),s=cIe(r);return O.jsx(uIe,T({ref:n,className:Ie(o,s.root),component:"span"},i,{children:a}))}),dIe=["align","className","selected","typographyClassName","value","variant","width"],fIe=e=>{const{classes:t}=e;return Ze({root:["root"]},jL,t)},pIe=de(No,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ro=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,dIe),p=fIe(r);return O.jsx(pIe,T({variant:"text",ref:n,className:Ie(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(fE,{align:o,className:s,variant:c,value:l,selected:i})}))}),hIe=({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}},mIe=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},vIe=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},gIe=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},yIe=({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=Gt(),x=uc(),[g,y]=br({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=hIe(e),[_,$]=S.useState(()=>{let X;return s!==void 0?X=s:m!==void 0?X=m:X=t.emptyValue,{draft:X,lastPublishedValue:X,lastCommittedValue:X,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:P,handleValueChange:k}=oE({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});IL(T({},e,{value:_.draft,timezone:P}),o,t.isSameError,t.defaultErrorState);const A=mt(X=>{const re={action:X,dateState:_,hasChanged:ge=>!t.areValuesEqual(v,X.value,ge),isControlled:b,closeOnSelect:c},le=mIe(re),xe=vIe(re),fe=gIe(re);if($(ge=>T({},ge,{draft:X.value,lastPublishedValue:le?X.value:ge.lastPublishedValue,lastCommittedValue:xe?X.value:ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),le){const he={validationError:X.name==="setValueFromField"?X.context.validationError:o({adapter:x,value:X.value,props:T({},e,{value:X.value,timezone:P})})};X.name==="setValueFromShortcut"&&X.shortcut!=null&&(he.shortcut=X.shortcut),k(X.value,he)}xe&&a&&a(X.value),fe&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const X=t.areValuesEqual(v,_.draft,s);$(re=>T({},re,{lastControlledValue:s},X?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const D=mt(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{A({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),H=mt(()=>{A({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),q=mt(()=>{A({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{A({value:t.getTodayValue(v,P,n),name:"setValueFromAction",pickerAction:"today"})}),B=mt(()=>C(!0)),G=mt(()=>C(!1)),Q=mt((X,re="partial")=>A({name:"setValueFromView",value:X,selectionState:re})),W=mt((X,re,le)=>A({name:"setValueFromShortcut",value:X,changeImportance:re??"accept",shortcut:le})),J=mt((X,re)=>A({name:"setValueFromField",value:X,context:re})),Z=mt(X=>{y(X),f==null||f(X)}),L={onClear:D,onAccept:F,onDismiss:H,onCancel:q,onSetToday:z,onOpen:B,onClose:G},Y={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:Z},K=S.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),R={value:K,onChange:Q,onClose:G,open:w,onSelectedSectionsChange:Z},V=T({},L,{value:K,onChange:Q,onSelectShortcut:W,isValid:X=>{const re=o({adapter:x,value:X,props:T({},e,{value:X,timezone:P})});return!t.hasError(re)}});return{open:w,fieldProps:Y,viewProps:R,layoutProps:V,actions:L}},bIe=["className","sx"],xIe=({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,bIe),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=ah({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:$,viewModeLookup:P}=S.useMemo(()=>c.reduce((z,B)=>{let G;return p?G="field":m[B]!=null?G="UI":G="field",z.viewModeLookup[B]=G,G==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=S.useMemo(()=>c.reduce((z,B)=>m[B]!=null&&Bu(B)?z+1:z,0),[m,c]),A=P[x],D=mt(()=>A==="UI"),[F,H]=S.useState(A==="UI"?x:null);return F!==x&&P[x]==="UI"&&H(x),Gn(()=>{A==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Gn(()=>{if(!i)return;let z=x;A==="field"&&F!=null&&(z=F),z!==y&&P[z]==="UI"&&P[y]==="UI"&&(z=y),z!==x&&g(z),C(z,!0)},[i]),{hasUIView:$,shouldRestoreFocus:D,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 WD(){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 wIe=(e,t)=>{const[n,r]=S.useState(WD);return Gn(()=>{const a=()=>{r(WD())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),Gc(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},CIe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=wIe(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},LL=(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))}};LL(["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 FL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=yIe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=xIe({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=CIe({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 zL(e){return et("MuiPickersLayout",e)}const sx=Qe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),$Ie=["onAccept","onClear","onCancel","onSetToday","actions"];function SIe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,$Ie),s=Cr();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(No,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(No,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(No,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(No,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(s0,T({},i,{children:l}))}const _Ie=["items","changeImportance","isLandscape","onChange","isValid"],EIe=["getValue"];function PIe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,_Ie);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,EIe);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(V_,T({dense:!0,sx:[{maxHeight:b0,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(Y5,{children:O.jsx(k5,T({},s))},s.label))}))}function TIe(e){return e.view!==null}const kIe=e=>{const{classes:t,isLandscape:n}=e;return Ze({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},zL,t)},OIe=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,P=_??ih(w),k=$??C,A=kIe(e),D=(t=P==null?void 0:P.actionBar)!=null?t:SIe,F=Bt({elementType:D,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:A.actionBar},ownerState:T({},e,{wrapperVariant:r})}),H=O.jsx(D,T({},F)),q=P==null?void 0:P.toolbar,z=Bt({elementType:q,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:A.toolbar},ownerState:T({},e,{wrapperVariant:r})}),B=TIe(z)&&q?O.jsx(q,T({},z)):null,G=y,Q=P==null?void 0:P.tabs,W=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=P==null?void 0:P.shortcuts)!=null?n:PIe,Z=Bt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:A.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:A.shortcuts,wrapperVariant:r}}),L=l&&J?O.jsx(J,T({},Z)):null;return{toolbar:B,content:G,tabs:W,actionBar:H,shortcuts:L}},RIe=OIe,DIe=e=>{const{isLandscape:t,classes:n}=e;return Ze({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},zL,n)},BL=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}}));BL.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 MIe=de("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),VL=function(t){const n=Ke({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=RIe(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=DIe(m);return O.jsxs(BL,{ref:f,sx:l,className:Ie(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(MIe,{className:b.contentWrapper,children:p==="desktop"?O.jsxs(S.Fragment,{children:[o,a]}):O.jsxs(S.Fragment,{children:[a,o]})}),i]})},C0=({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}},pE=({props:e,value:t,adapter:n})=>{const r=sh({adapter:n,value:t,props:e});return r!==null?r:C0({adapter:n,value:t,props:e})},IIe=e=>et("MuiPickersSlideTransition",e),ra=Qe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),AIe=["children","className","reduceAnimations","slideDirection","transKey","classes"],NIe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ze(r,IIe,t)},jIe=de(T_,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ra["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ra["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ra.slideEnterActive}`]:t.slideEnterActive},{[`.${ra.slideExit}`]:t.slideExit},{[`.${ra["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ra["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},[`& .${ra["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ra["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ra.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ra.slideExit}`]:{transform:"translate(0%)"},[`& .${ra["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ra["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function LIe(e){const t=Ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,AIe),s=NIe(t),l=er();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(jIe,{className:Ie(s.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(c1e,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const UL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=uc();return S.useCallback(c=>sh({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])},FIe=e=>et("MuiDayCalendar",e);Qe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const zIe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],BIe=["ownerState"],VIe=e=>{const{classes:t}=e;return Ze({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},FIe,t)},WL=(bp+g0*2)*6,UIe=de("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WIe=de("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),HIe=de(mn,{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})),qIe=de(mn,{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})),GIe=de(mn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:bp,height:bp,padding:0,margin:`0 ${g0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),YIe=de("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:WL}),KIe=de(LIe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:WL}),XIe=de("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),JIe=de("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${g0}px 0`,display:"flex",justifyContent:"center"});function ZIe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,zIe);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=Gt(),$=nl(C),P=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),A=_.isSameDay(a,$),D=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:IMe,F=Bt({elementType:D,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})}),H=Oe(F,BIe),q=S.useMemo(()=>p||l(a),[p,l,a]),z=S.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),B=S.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),G=S.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(D,T({},H,{day:a,disabled:q,autoFocus:u&&P,today:A,outsideCurrentMonth:z,isFirstVisibleCell:B,isLastVisibleCell:G,selected:k,tabIndex:P?0:-1,"aria-selected":k,"aria-current":A?"date":void 0}))}function QIe(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:P,onFocusedViewChange:k,gridLabelId:A,displayWeekNumber:D,fixedWeekNumber:F,autoFocus:H,timezone:q}=t,z=nl(q),B=Gt(),G=VIe(t),W=er().direction==="rtl",J=$||((ze,He)=>B.format(He,"weekdayShort").charAt(0).toUpperCase()),Z=UL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:q}),L=Cr(),[Y,K]=br({name:"DayCalendar",state:"hasFocus",controlled:P,default:H??!1}),[R,N]=S.useState(()=>i||z),V=mt(ze=>{u||l(ze)}),X=ze=>{Z(ze)||(n(ze),N(ze),k==null||k(!0),K(!0))},re=mt((ze,He)=>{switch(ze.key){case"ArrowUp":X(B.addDays(He,-7)),ze.preventDefault();break;case"ArrowDown":X(B.addDays(He,7)),ze.preventDefault();break;case"ArrowLeft":{const be=B.addDays(He,W?1:-1),we=B.addMonths(He,W?1:-1),Ce=Ff({utils:B,date:be,minDate:W?be:B.startOfMonth(we),maxDate:W?B.endOfMonth(we):be,isDateDisabled:Z,timezone:q});X(Ce||be),ze.preventDefault();break}case"ArrowRight":{const be=B.addDays(He,W?-1:1),we=B.addMonths(He,W?-1:1),Ce=Ff({utils:B,date:be,minDate:W?B.startOfMonth(we):be,maxDate:W?be:B.endOfMonth(we),isDateDisabled:Z,timezone:q});X(Ce||be),ze.preventDefault();break}case"Home":X(B.startOfWeek(He)),ze.preventDefault();break;case"End":X(B.endOfWeek(He)),ze.preventDefault();break;case"PageUp":X(B.addMonths(He,1)),ze.preventDefault();break;case"PageDown":X(B.addMonths(He,-1)),ze.preventDefault();break}}),le=mt((ze,He)=>X(He)),xe=mt((ze,He)=>{Y&&B.isSameDay(R,He)&&(k==null||k(!1))}),fe=B.getMonth(o),ge=S.useMemo(()=>a.filter(ze=>!!ze).map(ze=>B.startOfDay(ze)),[B,a]),he=fe,_e=S.useMemo(()=>S.createRef(),[he]),ve=B.startOfWeek(z),Be=S.useMemo(()=>{const ze=B.startOfMonth(o),He=B.endOfMonth(o);return Z(R)||B.isAfterDay(R,He)||B.isBeforeDay(R,ze)?Ff({utils:B,date:R,minDate:ze,maxDate:He,disablePast:v,disableFuture:x,isDateDisabled:Z,timezone:q}):R},[o,x,v,R,Z,B,q]),Ue=S.useMemo(()=>{const ze=B.setTimezone(o,q),He=B.getWeekArray(ze);let be=B.addMonths(ze,1);for(;F&&He.length{He.length{var be;const we=B.format(ze,"weekdayShort").slice(0,2);return O.jsx(HIe,{variant:"caption",role:"columnheader","aria-label":B.format(B.addDays(ve,He),"weekday"),className:G.weekDayLabel,children:(be=J==null?void 0:J(we,ze))!=null?be:we},we+He.toString())})]}),s?O.jsx(YIe,{className:G.loadingContainer,children:p()}):O.jsx(KIe,T({transKey:he,onExited:c,reduceAnimations:f,slideDirection:m,className:Ie(r,G.slideTransition)},b,{nodeRef:_e,children:O.jsx(XIe,{ref:_e,role:"rowgroup",className:G.monthContainer,children:Ue.map((ze,He)=>O.jsxs(JIe,{role:"row",className:G.weekContainer,"aria-rowindex":He+1,children:[D&&O.jsx(GIe,{className:G.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(B.getWeekNumber(ze[0])),children:L.calendarWeekNumberText(B.getWeekNumber(ze[0]))}),ze.map((be,we)=>O.jsx(ZIe,{parentProps:t,day:be,selectedDays:ge,focusableDay:Be,onKeyDown:re,onFocus:le,onBlur:xe,onDaySelect:V,isDateDisabled:Z,currentMonthNumber:fe,isViewFocused:Y,"aria-colindex":we+1},be.toString()))]},`week-${ze[0]}`))})}))]})}const eAe=(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")}},tAe=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=nl(p),b=Gt(),v=S.useRef(eAe(!!u,i,b)).current,x=S.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),xr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:Oa.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 A=k;b.isSameMonth(A,g.currentMonth)||w({newMonth:b.startOfMonth(A),direction:b.isAfterDay(A,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=UL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),$=S.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),P=mt((k,A)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:A})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:P,isDateDisabled:_,onMonthSwitchingAnimationEnd:$,handleChangeMonth:w}},nAe=["ownerState"],hE=({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=Cr(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:Qn,x=Bt({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,nAe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:ZRe,w=Bt({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(B_,{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:_}},rAe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],oAe=["inputRef"],aAe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],HL=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,rAe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:nh,x=Bt({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,oAe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=UMe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:P,readOnly:k,clearable:A,onClear:D}=w,F=Oe(w,aAe),{InputProps:H,fieldProps:q}=hE({onClear:D,clearable:A,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},q,{InputProps:T({},H,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:P,onPaste:_,onKeyDown:$,ref:C})}))}),iAe=e=>{var t,n,r,o;const a=Gt(),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})},sAe=({props:e,inputRef:t})=>{const n=iAe(e),{forwardedProps:r,internalProps:o}=uE(n,"time");return cE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:xr,fieldValueManager:iE,validator:C0,valueType:"time"})},lAe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],cAe=["inputRef"],uAe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],qL=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,lAe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:nh,x=Bt({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,cAe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=sAe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:P,readOnly:k,clearable:A,onClear:D}=w,F=Oe(w,uAe),{InputProps:H,fieldProps:q}=hE({onClear:D,clearable:A,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},q,{InputProps:T({},H,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:P,onPaste:_,onKeyDown:$,ref:C})}))}),dAe=e=>{var t,n,r,o,a,i,s,l;const c=Gt(),u=dc(),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:Wr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Wr(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})},fAe=({props:e,inputRef:t})=>{const n=dAe(e),{forwardedProps:r,internalProps:o}=uE(n,"date-time");return cE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:xr,fieldValueManager:iE,validator:pE,valueType:"date-time"})},pAe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],hAe=["inputRef"],mAe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],GL=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,pAe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:nh,x=Bt({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,hAe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=fAe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:P,readOnly:k,clearable:A,onClear:D}=w,F=Oe(w,mAe),{InputProps:H,fieldProps:q}=hE({onClear:D,clearable:A,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},q,{InputProps:T({},H,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:P,onPaste:_,onKeyDown:$,ref:C})}))}),vAe=e=>et("MuiPickersFadeTransitionGroup",e);Qe("MuiPickersFadeTransitionGroup",["root"]);const gAe=e=>{const{classes:t}=e;return Ze({root:["root"]},vAe,t)},yAe=de(T_,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function YL(e){const t=Ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=gAe(t),s=er();return o?n:O.jsx(yAe,{className:Ie(i.root,r),children:O.jsx(pd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function bAe(e){return et("MuiPickersMonth",e)}const qm=Qe("MuiPickersMonth",["root","monthButton","disabled","selected"]),xAe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],wAe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ze({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},bAe,r)},CAe=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"})),$Ae=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}}})),SAe=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,xAe),x=S.useRef(null),g=wAe(n);return Gn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(CAe,T({className:g.root,ownerState:n},v,{children:O.jsx($Ae,{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 _Ae(e){return et("MuiMonthCalendar",e)}Qe("MuiMonthCalendar",["root"]);const EAe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],PAe=e=>{const{classes:t}=e;return Ze({root:["root"]},_Ae,t)};function TAe(e,t){const n=Gt(),r=dc(),o=Ke({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Wr(n,o.minDate,r.minDate),maxDate:Wr(n,o.maxDate,r.maxDate)})}const kAe=de("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:y0,boxSizing:"border-box"}),OAe=S.forwardRef(function(t,n){const r=TAe(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:P}=r,k=Oe(r,EAe),{value:A,handleValueChange:D,timezone:F}=md({name:"MonthCalendar",timezone:$,value:a,defaultValue:i,onChange:m,valueManager:xr}),H=nl(F),q=Kp(),z=Gt(),B=S.useMemo(()=>xr.getInitialReferenceValue({value:A,utils:z,props:r,timezone:F,referenceDate:s,granularity:Oa.month}),[]),G=r,Q=PAe(G),W=S.useMemo(()=>z.getMonth(H),[z,H]),J=S.useMemo(()=>A!=null?z.getMonth(A):x?null:z.getMonth(B),[A,z,x,B]),[Z,L]=S.useState(()=>J||W),[Y,K]=br({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),R=mt(fe=>{K(fe),C&&C(fe)}),N=S.useCallback(fe=>{const ge=z.startOfMonth(u&&z.isAfter(H,p)?H:p),he=z.startOfMonth(c&&z.isBefore(H,f)?H:f),_e=z.startOfMonth(fe);return z.isBefore(_e,ge)||z.isAfter(_e,he)?!0:b?b(_e):!1},[c,u,f,p,H,b,z]),V=mt((fe,ge)=>{if(v)return;const he=z.setMonth(A??B,ge);D(he)}),X=mt(fe=>{N(z.setMonth(A??B,fe))||(L(fe),R(!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":X((12+ge-3)%12),fe.preventDefault();break;case"ArrowDown":X((12+ge+3)%12),fe.preventDefault();break;case"ArrowLeft":X((12+ge+(q.direction==="ltr"?-1:1))%12),fe.preventDefault();break;case"ArrowRight":X((12+ge+(q.direction==="ltr"?1:-1))%12),fe.preventDefault();break}}),le=mt((fe,ge)=>{X(ge)}),xe=mt((fe,ge)=>{Z===ge&&R(!1)});return O.jsx(kAe,T({ref:n,className:Ie(Q.root,o),ownerState:G,role:"radiogroup","aria-labelledby":P},k,{children:nE(z,A??B).map(fe=>{const ge=z.getMonth(fe),he=z.format(fe,"monthShort"),_e=z.format(fe,"month"),ve=ge===J,Be=l||N(fe);return O.jsx(SAe,{selected:ve,value:ge,onClick:V,onKeyDown:re,autoFocus:Y&&ge===Z,disabled:Be,tabIndex:ge===Z?0:-1,onFocus:le,onBlur:xe,"aria-current":W===ge?"date":void 0,"aria-label":_e,monthsPerRow:_,children:he},he)})}))});function RAe(e){return et("MuiPickersYear",e)}const Gm=Qe("MuiPickersYear",["root","yearButton","selected","disabled"]),DAe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],MAe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ze({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},RAe,r)},IAe=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"})),AAe=de("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Gm.disabled}`]:t.disabled},{[`&.${Gm.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"},[`&.${Gm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Gm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),NAe=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,DAe),x=S.useRef(null),g=MAe(n);return S.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(IAe,T({className:Ie(g.root,o),ownerState:n},v,{children:O.jsx(AAe,{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 jAe(e){return et("MuiYearCalendar",e)}Qe("MuiYearCalendar",["root"]);const LAe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],FAe=e=>{const{classes:t}=e;return Ze({root:["root"]},jAe,t)};function zAe(e,t){var n;const r=Gt(),o=dc(),a=Ke({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Wr(r,a.minDate,o.minDate),maxDate:Wr(r,a.maxDate,o.maxDate)})}const BAe=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:y0,maxHeight:uDe,boxSizing:"border-box",position:"relative"}),VAe=S.forwardRef(function(t,n){const r=zAe(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:P}=r,k=Oe(r,LAe),{value:A,handleValueChange:D,timezone:F}=md({name:"YearCalendar",timezone:$,value:i,defaultValue:s,onChange:b,valueManager:xr}),H=nl(F),q=Kp(),z=Gt(),B=S.useMemo(()=>xr.getInitialReferenceValue({value:A,utils:z,props:r,timezone:F,referenceDate:l,granularity:Oa.year}),[]),G=r,Q=FAe(G),W=S.useMemo(()=>z.getYear(H),[z,H]),J=S.useMemo(()=>A!=null?z.getYear(A):g?null:z.getYear(B),[A,z,g,B]),[Z,L]=S.useState(()=>J||W),[Y,K]=br({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),R=mt(he=>{K(he),C&&C(he)}),N=S.useCallback(he=>{if(f&&z.isBeforeYear(he,H)||u&&z.isAfterYear(he,H)||m&&z.isBeforeYear(he,m)||p&&z.isAfterYear(he,p))return!0;if(!x)return!1;const _e=z.startOfYear(he);return x(_e)},[u,f,p,m,H,x,z]),V=mt((he,_e)=>{if(v)return;const ve=z.setYear(A??B,_e);D(ve)}),X=mt(he=>{N(z.setYear(A??B,he))||(L(he),R(!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":X(_e-_),he.preventDefault();break;case"ArrowDown":X(_e+_),he.preventDefault();break;case"ArrowLeft":X(_e+(q.direction==="ltr"?-1:1)),he.preventDefault();break;case"ArrowRight":X(_e+(q.direction==="ltr"?1:-1)),he.preventDefault();break}}),le=mt((he,_e)=>{X(_e)}),xe=mt((he,_e)=>{Z===_e&&R(!1)}),fe=S.useRef(null),ge=an(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=z.getYear(he),ve=_e===J,Be=c||N(he);return O.jsx(NAe,{selected:ve,value:_e,onClick:V,onKeyDown:re,autoFocus:Y&&_e===Z,disabled:Be,tabIndex:_e===Z?0:-1,onFocus:le,onBlur:xe,"aria-current":W===_e?"date":void 0,yearsPerRow:_,children:z.format(he,"year")},z.format(he,"year"))})}))}),UAe=e=>et("MuiPickersCalendarHeader",e),WAe=Qe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),HAe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],qAe=["ownerState"],GAe=e=>{const{classes:t}=e;return Ze({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},UAe,t)},YAe=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}),KAe=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})),XAe=de("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),JAe=de(Qn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${WAe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),ZAe=de(qRe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),QAe=S.forwardRef(function(t,n){var r,o;const a=Cr(),i=Gt(),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:P}=s,k=Oe(s,HAe),A=s,D=GAe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:JAe,H=Bt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:A,className:D.switchViewButton}),q=(o=l==null?void 0:l.switchViewIcon)!=null?o:ZAe,z=Bt({elementType:q,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:D.switchViewIcon}),B=Oe(z,qAe),G=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),W=lDe(u,{disableFuture:p,maxDate:b,timezone:P}),J=cDe(u,{disablePast:m,minDate:v,timezone:P}),Z=()=>{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(YAe,T({},k,{ownerState:A,className:Ie($,D.root),ref:n,children:[O.jsxs(KAe,{role:"presentation",onClick:Z,ownerState:A,"aria-live":"polite",className:D.labelContainer,children:[O.jsx(YL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(XAe,{id:_,ownerState:A,className:D.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},H,{children:O.jsx(q,T({},B))}))]}),O.jsx(pd,{in:y==="day",children:O.jsx(bL,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:G,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),eNe=e=>et("MuiDateCalendar",e);Qe("MuiDateCalendar",["root","viewTransitionContainer"]);const tNe=["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"],nNe=e=>{const{classes:t}=e;return Ze({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},eNe,t)};function rNe(e,t){var n,r,o,a,i,s,l;const c=Gt(),u=dc(),f=NL(),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:Wr(c,p.minDate,u.minDate),maxDate:Wr(c,p.maxDate,u.maxDate)})}const oNe=de(x0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:b0}),aNe=de(YL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),KL=S.forwardRef(function(t,n){var r,o,a;const i=Gt(),s=Va(),l=rNe(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:P,view:k,views:A,openTo:D,className:F,disabled:H,readOnly:q,minDate:z,maxDate:B,disableHighlightToday:G,focusedView:Q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:J,fixedWeekNumber:Z,dayOfWeekFormatter:L,components:Y,componentsProps:K,slots:R,slotProps:N,loading:V,renderLoading:X,displayWeekNumber:re,yearsPerRow:le,monthsPerRow:xe,timezone:fe}=l,ge=Oe(l,tNe),{value:he,handleValueChange:_e,timezone:ve}=md({name:"DateCalendar",timezone:fe,value:f,defaultValue:p,onChange:g,valueManager:xr}),{view:Be,setView:Ue,focusedView:ze,setFocusedView:He,goToNextView:be,setValueAndGoToNextView:we}=ah({view:k,views:A,openTo:D,onChange:_e,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:W}),{referenceDate:Ce,calendarState:Ge,changeFocusedDay:rt,changeMonth:Ae,handleChangeMonth:Le,isDateDisabled:Fe,onMonthSwitchingAnimationEnd:Pe}=tAe({value:he,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:z,maxDate:B,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:ve}),Te=H&&he||z,it=H&&he||B,ct=`${s}-grid-label`,gt=ze!==null,Ne=(r=(o=R==null?void 0:R.calendarHeader)!=null?o:Y==null?void 0:Y.CalendarHeader)!=null?r:QAe,ne=Bt({elementType:Ne,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:K==null?void 0:K.calendarHeader,additionalProps:{views:A,view:Be,currentMonth:Ge.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>Le({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:H,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:ve,labelId:ct,slots:R,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=Fe(dt)?Ff({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(B,Yt)?Yt:B,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)?Ff({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(B,Yt)?Yt:B,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&&Kw(i,dt,he??Ce),"finish"));S.useEffect(()=>{he!=null&&i.isValid(he)&&Ae(he)},[he]);const Se=l,Je=nNe(Se),tt={disablePast:v,disableFuture:b,maxDate:B,minDate:z},ft={disableHighlightToday:G,readOnly:q,disabled:H,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(oNe,T({ref:n,className:Ie(Je.root,F),ownerState:Se},ge,{children:[O.jsx(Ne,T({},ne)),O.jsx(aNe,{reduceAnimations:C,className:Je.viewTransitionContainer,transKey:Be,ownerState:Se,children:O.jsxs("div",{children:[Be==="year"&&O.jsx(VAe,T({},tt,ft,{value:he,onChange:ie,shouldDisableYear:P,hasFocus:gt,onFocusedViewChange:dt=>He("year",dt),yearsPerRow:le,referenceDate:Ce})),Be==="month"&&O.jsx(OAe,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(QIe,T({},Ge,tt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:rt,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:$e,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:P,hasFocus:gt,onFocusedViewChange:dt=>He("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:Z,dayOfWeekFormatter:L,displayWeekNumber:re,components:Y,componentsProps:K,slots:R,slotProps:N,loading:V,renderLoading:X}))]})})]}))});function iNe(e){return et("MuiDatePickerToolbar",e)}Qe("MuiDatePickerToolbar",["root","title"]);const sNe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],lNe=e=>{const{classes:t}=e;return Ze({root:["root"],title:["title"]},iNe,t)},cNe=de(dE,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uNe=de(mn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),dNe=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,sNe),u=Gt(),f=Cr(),p=lNe(r),m=S.useMemo(()=>{if(!o)return s;const v=wp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(cNe,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(uNe,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function XL(e,t){var n,r,o,a;const i=Gt(),s=dc(),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:ih(l.components);return T({},l,{localeText:c},tE({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:Wr(i,l.minDate,s.minDate),maxDate:Wr(i,l.maxDate,s.maxDate),slots:T({toolbar:dNe},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const fNe=["props","getOpenDialogAriaText"],pNe=["ownerState"],hNe=["ownerState"],mE=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,fNe);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,P=Gt(),k=S.useRef(null),A=S.useRef(null),D=Va(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:H,actions:q,hasUIView:z,layoutProps:B,renderCurrentView:G,shouldRestoreFocus:Q,fieldProps:W}=FL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:B_,Z=Bt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),L=Oe(Z,pNe),Y=(o=c.openPickerButton)!=null?o:Qn,K=Bt({elementType:Y,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:H?q.onClose:q.onOpen,"aria-label":s(W.value,P),edge:L.position},ownerState:i}),R=Oe(K,hNe),N=c.openPickerIcon,V=c.field,X=Bt({elementType:V,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},W,F&&{id:D},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:H?!0:void 0}),ownerState:i});z&&(X.InputProps=T({},X.InputProps,{ref:A,[`${L.position}Adornment`]:O.jsx(J,T({},L,{children:O.jsx(Y,T({},R,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},X.slots),le=(a=c.layout)!=null?a:VL,xe=an(k,X.inputRef,g);let fe=D;F&&(x?fe=`${D}-label`:fe=void 0);const ge=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:D}),popper:T({"aria-labelledby":fe},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(rh,{localeText:_,children:[O.jsx(V,T({},X,{slots:re,slotProps:ge,inputRef:xe})),O.jsx(rIe,T({role:"dialog",placement:"bottom-start",anchorEl:A.current},q,{open:H,slots:c,slotProps:ge,shouldRestoreFocus:Q,reduceAnimations:$,children:O.jsx(le,T({},B,ge==null?void 0:ge.layout,{slots:c,slotProps:ge,children:G()}))}))]})}},da=({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:P,components:k,componentsProps:A,slots:D,slotProps:F,loading:H,renderLoading:q,disableHighlightToday:z,readOnly:B,disabled:G,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:Z,fixedWeekNumber:L,displayWeekNumber:Y,timezone:K})=>O.jsx(KL,{view:e,onViewChange:t,views:n.filter(wu),focusedView:r&&wu(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:P,components:k,componentsProps:A,slots:D,slotProps:F,loading:H,renderLoading:q,disableHighlightToday:z,readOnly:B,disabled:G,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:W,sx:J,autoFocus:Z,fixedWeekNumber:L,displayWeekNumber:Y,timezone:K}),JL=S.forwardRef(function(t,n){var r,o,a,i;const s=Cr(),l=Gt(),c=XL(t,"MuiDesktopDatePicker"),u=T({day:da,month:da,year:da},c.viewRenderers),f=T({},c,{viewRenderers:u,format:wp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:yL,field:HL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},Zs((b=c.slotProps)==null?void 0:b.field,m),vd(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=mE({props:f,valueManager:xr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:sh});return p()});JL.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:dd,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 mNe=["props","getOpenDialogAriaText"],vE=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,mNe);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=Gt(),C=S.useRef(null),_=Va(),$=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:P,actions:k,layoutProps:A,renderCurrentView:D,fieldProps:F}=FL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),H=s.field,q=Bt({elementType:H,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,$&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:LMe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});q.inputProps=T({},q.inputProps,{"aria-label":a(F.value,w)});const z=T({textField:s.textField},q.slots),B=(r=s.layout)!=null?r:VL,G=an(C,q.inputRef,v);let Q=_;$&&(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(rh,{localeText:y,children:[O.jsx(H,T({},q,{slots:z,slotProps:W,inputRef:G})),O.jsx(qMe,T({},k,{open:P,slots:s,slotProps:W,children:O.jsx(B,T({},A,W==null?void 0:W.layout,{slots:s,slotProps:W,children:D()}))}))]})}},ZL=S.forwardRef(function(t,n){var r,o,a;const i=Cr(),s=Gt(),l=XL(t,"MuiMobileDatePicker"),c=T({day:da,month:da,year:da},l.viewRenderers),u=T({},l,{viewRenderers:c,format:wp(s,l,!1),slots:T({field:HL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},Zs((m=l.slotProps)==null?void 0:m.field,p),vd(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=vE({props:u,valueManager:xr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:sh});return f()});ZL.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:dd,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 vNe=["desktopModeMediaQuery"],gNe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=lE}=r,a=Oe(r,vNe);return eh(o,{defaultMatches:!0})?O.jsx(JL,T({ref:n},a)):O.jsx(ZL,T({ref:n},a))});function yNe(e){return et("MuiTimePickerToolbar",e)}const zf=Qe("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),bNe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],xNe=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 Ze(o,yNe,r)},wNe=de(dE,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CNe=de(fE,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),QL=de("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${zf.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${zf.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"}));QL.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 e6=de("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${zf.ampmLabel}`]:t.ampmLabel},{[`&.${zf.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%"},{[`& .${zf.ampmLabel}`]:{fontSize:17}}));e6.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 $Ne(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,bNe),m=Gt(),b=Cr(),v=er(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=v0(o,n,i),w=P=>n?m.format(P,"hours12h"):m.format(P,"hours24h"),C=t,_=xNe(T({},C,{theme:v})),$=O.jsx(CNe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(wNe,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(QL,{className:_.hourMinuteLabel,ownerState:C,children:[Gc(c,"hours")&&O.jsx(Ro,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),Gc(c,["hours","minutes"])&&$,Gc(c,"minutes")&&O.jsx(Ro,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),Gc(c,["minutes","seconds"])&&$,Gc(c,"seconds")&&O.jsx(Ro,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(e6,{className:_.ampmSelection,ownerState:C,children:[O.jsx(Ro,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Aa(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(Ro,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Aa(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function t6(e,t){var n,r,o,a,i;const s=Gt(),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:ih(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},tE({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:$Ne},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const $u=({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:P,readOnly:k,disabled:A,sx:D,autoFocus:F,showViewSwitcher:H,disableIgnoringDatePartForTimeValidation:q,timezone:z})=>O.jsx(iMe,{view:e,onViewChange:t,focusedView:n&&Bu(n)?n:null,onFocusedViewChange:r,views:o.filter(Bu),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:P,readOnly:k,disabled:A,sx:D,autoFocus:F,showViewSwitcher:H,disableIgnoringDatePartForTimeValidation:q,timezone:z}),n6=({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:P,disabled:k,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeSteps:H,skipDisabled:q,timezone:z})=>O.jsx(hMe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Bu),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:P,disabled:k,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeStep:H==null?void 0:H.minutes,skipDisabled:q,timezone:z}),Zw=({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:P,disabled:k,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeSteps:H,skipDisabled:q,timezone:z})=>O.jsx(PMe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Bu),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:P,disabled:k,sx:A,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeSteps:H,skipDisabled:q,timezone:z}),SNe=["views","format"],r6=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,SNe);if(r)return r;const a=[],i=[];if(n.forEach(c=>{Bu(c)?i.push(c):a.push(c)}),i.length===0)return wp(e,T({views:a},o),!1);if(a.length===0)return Cg(e,T({views:i},o));const s=Cg(e,T({views:i},o));return`${wp(e,T({views:a},o),!1)} ${s}`},_Ne=(e,t,n)=>n?t.filter(r=>!ys(r)||r==="hours"):e?[...t,"meridiem"]:t,ENe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function o6({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=ENe(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:_Ne(t,r,i)}}const a6=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Cr(),u=Gt(),f=t6(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=o6(f),v=p?n6:Zw,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)===Zw.name?m:m.filter(P=>P!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:Cg(u,f),views:p?["hours"]:C,slots:T({field:qL,openPickerIcon:KRe},f.slots),slotProps:T({},f.slotProps,{field:P=>{var k;return T({},Zs((k=f.slotProps)==null?void 0:k.field,P),vd(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:$}=mE({props:_,valueManager:xr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:C0});return $()});a6.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:dd,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 i6=S.forwardRef(function(t,n){var r,o,a,i;const s=Cr(),l=Gt(),c=t6(t,"MuiMobileTimePicker"),u=T({hours:$u,minutes:$u,seconds:$u},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:Cg(l,c),slots:T({field:qL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},Zs((v=c.slotProps)==null?void 0:v.field,b),vd(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=vE({props:p,valueManager:xr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:C0});return m()});i6.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:dd,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 PNe=["desktopModeMediaQuery"],TNe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=lE}=r,a=Oe(r,PNe);return eh(o,{defaultMatches:!0})?O.jsx(a6,T({ref:n},a)):O.jsx(i6,T({ref:n},a))});function kNe(e){return et("MuiDateTimePickerTabs",e)}Qe("MuiDateTimePickerTabs",["root"]);const ONe=e=>wu(e)?"date":"time",RNe=e=>e==="date"?"day":"hours",DNe=e=>{const{classes:t}=e;return Ze({root:["root"]},kNe,t)},MNe=de(f0,{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}`,[`& .${Cv.indicator}`]:{bottom:"auto",top:0}}})),INe=function(t){const n=Ke({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(XRe,{}),onViewChange:o,timeIcon:a=O.jsx(JRe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Cr(),c=DNe(n),u=(f,p)=>{o(RNe(p))};return s?null:O.jsxs(MNe,{ownerState:n,variant:"fullWidth",value:ONe(i),onChange:u,className:c.root,children:[O.jsx(gp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx(S.Fragment,{children:r})}),O.jsx(gp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx(S.Fragment,{children:a})})]})};function ANe(e){return et("MuiDateTimePickerToolbar",e)}const lx=Qe("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),NNe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],jNe=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 Ze(o,ANe,t)},s6=de(dE,{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"}));s6.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 LNe=de("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),l6=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`})}),FNe=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"}));l6.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 HD=de(fE,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),zNe=de("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${lx.ampmLabel}`]:t.ampmLabel},{[`&.${lx.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%"},{[`& .${lx.ampmLabel}`]:{fontSize:17}}));function BNe(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,NNe),x=t,g=Gt(),{meridiemMode:y,handleMeridiemChange:w}=v0(o,n,a),C=!!(n&&!r),_=b==="desktop",$=Cr(),P=er(),k=jNe(T({},x,{theme:P})),A=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),D=S.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(s6,T({toolbarTitle:$.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(LNe,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(Ro,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(Ro,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:D})]}),O.jsxs(l6,{className:k.timeContainer,ownerState:x,children:[O.jsxs(FNe,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(Ro,{variant:_?"h5":"h3",width:_&&!s?vf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?A(o):"--"}),f.includes("minutes")&&O.jsxs(S.Fragment,{children:[O.jsx(HD,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Ro,{variant:_?"h5":"h3",width:_&&!s?vf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs(S.Fragment,{children:[O.jsx(HD,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Ro,{variant:_?"h5":"h3",width:_&&!s?vf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(zNe,{className:k.ampmSelection,ownerState:x,children:[O.jsx(Ro,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Aa(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(Ro,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Aa(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(Ro,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Aa(g,y):"--",width:vf})]})]}))}function c6(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=Gt(),b=dc(),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:ih(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,tE({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:Wr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Wr(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:BNe,tabs:INe},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const VNe=de("div")({display:"flex",margin:"0 auto"}),gl=({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:P,ampm:k,onMonthChange:A,monthsPerRow:D,onYearChange:F,yearsPerRow:H,defaultCalendarMonth:q,components:z,componentsProps:B,slots:G,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:Z,readOnly:L,disabled:Y,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:R,sx:N,autoFocus:V,fixedWeekNumber:X,displayWeekNumber:re,timezone:le,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timeViewsCount:he,shouldRenderTimeInASingleColumn:_e})=>{var ve,Be;const Ue=!!((ve=Zs((Be=Q==null?void 0:Q.actionBar)!=null?Be:B==null?void 0:B.actionBar,{}))!=null&&(ve=ve.actions)!=null&&ve.length),ze={view:ys(e)?e:"hours",onViewChange:t,focusedView:r&&ys(r)?r:null,onFocusedViewChange:o,views:n.filter(ys),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:P,ampm:k,components:z,componentsProps:B,slots:G,slotProps:Q,readOnly:L,disabled:Y,autoFocus:V,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timezone:le};return O.jsxs(S.Fragment,{children:[O.jsxs(VNe,{children:[O.jsx(KL,{view:wu(e)?e:"day",onViewChange:t,views:n.filter(wu),focusedView:r&&wu(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:A,monthsPerRow:D,onYearChange:F,yearsPerRow:H,defaultCalendarMonth:q,components:z,componentsProps:B,slots:G,slotProps:Q,loading:W,renderLoading:J,disableHighlightToday:Z,readOnly:L,disabled:Y,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:R,sx:N,autoFocus:V,fixedWeekNumber:X,displayWeekNumber:re,timezone:le}),he>0&&O.jsxs(S.Fragment,{children:[O.jsx(rD,{orientation:"vertical"}),_e?n6(T({},ze,{view:"hours",views:["hours"],focusedView:r&&ys(r)?"hours":null,sx:T({width:"auto",[`&.${lMe.root}`]:{maxHeight:b0}},Array.isArray(N)?N:[N])})):Zw(T({},ze,{view:ys(e)?e:"hours",views:n.filter(ys),focusedView:r&&ys(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${gMe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(rD,{})]})},u6=S.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Cr(),f=Gt(),p=c6(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=o6(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:gl,month:gl,year:gl,hours:gl,minutes:gl,seconds:gl,meridiem:gl}:T({day:da,month:da,year:da,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:r6(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:GL,openPickerIcon:yL},p.slots),slotProps:T({},p.slotProps,{field:P=>{var k;return T({},Zs((k=p.slotProps)==null?void 0:k.field,P),vd(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:$}=mE({props:_,valueManager:xr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:pE});return $()});u6.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:dd,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 d6=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Cr(),c=Gt(),u=c6(t,"MuiMobileDateTimePicker"),f=T({day:da,month:da,year:da,hours:$u,minutes:$u,seconds:$u},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:r6(c,u),ampmInClock:p,slots:T({field:GL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},Zs((x=u.slotProps)==null?void 0:x.field,v),vd(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}=vE({props:m,valueManager:xr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:pE});return b()});d6.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:dd,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 UNe=["desktopModeMediaQuery"],WNe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=lE}=r,a=Oe(r,UNe);return eh(o,{defaultMatches:!0})?O.jsx(u6,T({ref:n},a)):O.jsx(d6,T({ref:n},a))});var f6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qr,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(z){var B=["th","st","nd","rd"],G=z%100;return"["+z+(B[(G-20)%10]||B[G]||B[0])+"]"}},w=function(z,B,G){var Q=String(z);return!Q||Q.length>=B?z:""+Array(B+1-Q.length).join(G)+z},C={s:w,z:function(z){var B=-z.utcOffset(),G=Math.abs(B),Q=Math.floor(G/60),W=G%60;return(B<=0?"+":"-")+w(Q,2,"0")+":"+w(W,2,"0")},m:function z(B,G){if(B.date()1)return z(Z[0])}else{var L=B.name;$[L]=B,W=L}return!Q&&W&&(_=W),W||!Q&&_},D=function(z,B){if(k(z))return z.clone();var G=typeof B=="object"?B:{};return G.date=z,G.args=arguments,new H(G)},F=C;F.l=A,F.i=k,F.w=function(z,B){return D(z,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var H=function(){function z(G){this.$L=A(G.locale,null,!0),this.parse(G),this.$x=this.$x||G.x||{},this[P]=!0}var B=z.prototype;return B.parse=function(G){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 Z=W.match(x);if(Z){var L=Z[2]-1||0,Y=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],L,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,Y)):new Date(Z[1],L,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,Y)}}return new Date(W)}(G),this.init()},B.init=function(){var G=this.$d;this.$y=G.getFullYear(),this.$M=G.getMonth(),this.$D=G.getDate(),this.$W=G.getDay(),this.$H=G.getHours(),this.$m=G.getMinutes(),this.$s=G.getSeconds(),this.$ms=G.getMilliseconds()},B.$utils=function(){return F},B.isValid=function(){return this.$d.toString()!==v},B.isSame=function(G,Q){var W=D(G);return this.startOf(Q)<=W&&W<=this.endOf(Q)},B.isAfter=function(G,Q){return D(G)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)}}})})(p6);var qNe=p6.exports;const GNe=zt(qNe);var h6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qr,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(A,D,F){var H=F&&F.toUpperCase();return D||g[F]||n[F]||g[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,z,B){return z||B.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*G);var J=b(Q)(G),Z=J.year,L=J.month,Y=J.day,K=J.hours,R=J.minutes,N=J.seconds,V=J.milliseconds,X=J.zone,re=new Date,le=Y||(Z||L?1:re.getDate()),xe=Z||re.getFullYear(),fe=0;Z&&!L||(fe=L>0?L-1:re.getMonth());var ge=K||0,he=R||0,_e=N||0,ve=V||0;return X?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*X.offset*1e3)):W?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(),H&&H!==!0&&(this.$L=this.locale(H).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var q=k.length,z=1;z<=q;z+=1){P[1]=k[z-1];var B=g.apply(this,P);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}z===q&&(this.$d=new Date(""))}else w.call(this,C)}}})})(h6);var YNe=h6.exports;const KNe=zt(YNe);var m6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qr,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)}}})})(m6);var XNe=m6.exports;const JNe=zt(XNe);var v6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qr,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))}}})})(v6);var ZNe=v6.exports;const QNe=zt(ZNe);vr.extend(KNe);vr.extend(JNe);vr.extend(QNe);const e3e=LL(["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"]),t3e={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"},n3e={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"},cx=["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(` +`),qD=["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(` +`),r3e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class gE{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=t3e,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof vr.utc<"u",this.hasTimezonePlugin=()=>typeof vr.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 vr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=vr.tz.guess();return i!=="UTC"?vr.tz(a,i):vr(a)}return vr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(cx);return vr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(cx);if(!this.hasTimezonePlugin())throw new Error(qD);const s=a!==void 0&&!a.endsWith("Z");return vr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=vr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(e3e(),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(cx);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(qD)}return vr.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=r3e((o=this.rawDayJsInstance)!=null?o:vr,t),this.locale=t,this.formats=T({},n3e,n),vr.extend(GNe)}}var yE={},o3e=lc;Object.defineProperty(yE,"__esModule",{value:!0});var g6=yE.default=void 0,a3e=o3e(cc()),i3e=O,s3e=(0,a3e.default)((0,i3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");g6=yE.default=s3e;const l3e=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=Jj(i)(e,s.scope,a);if(l)return I.createElement(_n,{xsUp:!n},I.createElement(Vo,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=LS(e.allOf,t,"allOf",s,a,i);return I.createElement(_n,{xsUp:!n},c.map((u,f)=>I.createElement(Vo,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},c3e=Cn(3,Aj);var u3e=cve(l3e);class y6 extends I.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=jOe(t,n),a=ql.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&Pj(a)&&(i=a.elements.length>0),i?I.createElement(Vo,{schema:o,path:r,uischema:a}):null}}const d3e=({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=LS(e.anyOf,t,p,s,o,l);return I.createElement(_n,{xsUp:!r},I.createElement(y6,{schema:e,combinatorKeyword:p,path:o}),I.createElement(f0,{value:c,onChange:f},m.map(b=>I.createElement(gp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&I.createElement(Vo,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))},f3e=Cn(3,Nj);var p3e=lve(d3e);const h3e=de(hd)({borderBottom:"none"}),Cp=({children:e,...t})=>I.createElement(h3e,Object.assign({},t),e),m3e=de(M5)(({theme:e})=>({color:e.palette.error.main})),b6=({errorMessages:e,id:t})=>I.createElement(sc,{id:t,title:e},I.createElement(m3e,{badgeContent:e.split(` +`).length},I.createElement(Z_,{color:"inherit"}))),v3e={paddingLeft:0,paddingRight:0},g3e=I.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return I.createElement(tl,null,I.createElement(Cp,{colSpan:t},I.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},I.createElement(en,{item:!0},I.createElement(mn,{variant:"h6"},r)),I.createElement(en,{item:!0},n.length!==0&&I.createElement(en,{item:!0},I.createElement(b6,{id:"tooltip-validation",errorMessages:n}))))),s?I.createElement(Cp,{align:"right",style:v3e},I.createElement(sc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},I.createElement(Qn,{"aria-label":l.addAriaLabel,onClick:a(o,Gi(i)),size:"large"},I.createElement(X_,null)))):null)}),GD={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},x6=(e,t,n,r,o)=>{if(t.type==="object")return w6(t).map(a=>{var l,c;const i=zs.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Qg(a),rowPath:n,cellPath:i,enabled:r,cells:o};return I.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return I.createElement(e,Object.assign({key:n},a))}},w6=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],y3e=({numColumns:e,translations:t})=>I.createElement(tl,null,I.createElement(Cp,{colSpan:e},I.createElement(mn,{align:"center"},t.noDataMessage))),b3e=I.memo(function({title:t}){return I.createElement(hd,null,t)}),x3e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=IS(uL(bS(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}},YD=e=>({type:"Control",scope:e,label:!1}),w3e=I.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return I.createElement(Cp,null,r.properties?I.createElement(Gl,{schema:bo.schema(r,`#/properties/${Hl(n)}`,o),uischema:YD(`#/properties/${Hl(n)}`),path:t,enabled:i,renderers:s,cells:l}):I.createElement(Gl,{schema:r,uischema:YD("#"),path:t,enabled:i,renderers:s,cells:l}),I.createElement(cr,{error:!c},!c&&a))}),C3e=e=>{const t=ic(),n=x3e(t,e),r=Mt(n.errors);return I.createElement(w3e,Object.assign({},n,{isValid:r}))},$3e=({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 I.createElement(tl,{key:e,hover:!0},x6(C3e,t,e,c,u),c?I.createElement(Cp,{style:l?GD.fixedCell:GD.fixedCellSmall},I.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?I.createElement(S.Fragment,null,I.createElement(en,{item:!0},I.createElement(Qn,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},I.createElement(m0,null))),I.createElement(en,{item:!0},I.createElement(Qn,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},I.createElement(h0,null)))):null,I.createElement(en,{item:!0},I.createElement(Qn,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},I.createElement(p0,null))))):null)},S3e=I.memo($3e),_3e=({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 I.createElement(y3e,{numColumns:w6(n).length+1,translations:u});const p=tn({},s,i.options);return I.createElement(I.Fragment,null,ad(e).map(m=>{const b=zs.compose(t,`${m}`);return I.createElement(S3e,{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 E3e=class extends I.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?x6(b3e,r,n,c,u):void 0;return I.createElement(_n,{xsUp:!l},I.createElement(sL,null,I.createElement(cL,null,I.createElement(g3e,{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&&I.createElement(tl,null,b,c?I.createElement(hd,null):null)),I.createElement(lL,null,I.createElement(_3e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const P3e=I.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return I.createElement(i0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},I.createElement(F_,{id:"alert-dialog-confirmdelete-title"},a),I.createElement(l0,null,I.createElement(L_,{id:"alert-dialog-confirmdelete-description"},i)),I.createElement(s0,null,I.createElement(No,{onClick:o,color:"primary"},l),I.createElement(No,{onClick:r,color:"primary"},s)))}),T3e=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 I.createElement(_n,{xsUp:!l},I.createElement(E3e,Object.assign({},e,{openDeleteDialog:c})),I.createElement(P3e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};py(T3e);const rl=()=>{const[e,t]=S.useState(!1),n=S.useCallback(()=>t(!0),[]),r=S.useCallback(()=>t(!1),[]);return[e,n,r]},C6=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,_]=I.useState(i??""),[$,P,k]=rl(),A=m.find(q=>q.value===i)??null,D=!xo(r,t,$,w.showUnfocusedDescription),F=D?t:y?null:n,H=D&&!y?n:null;return I.createElement(_n,{xsUp:!r},I.createElement(TCe,{className:s,id:l,disabled:!c,value:A,onChange:(q,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(q,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(q=>q==null?void 0:q.label),freeSolo:!1,renderInput:q=>I.createElement(nh,Object.assign({label:a,variant:"standard",type:"text",inputProps:q.inputProps,inputRef:q.InputProps.ref,autoFocus:w.focus,disabled:!c},q,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:P,onBlur:k,focused:$})),renderOption:x,filterOptions:g}),I.createElement(cr,{error:!y&&!D},F),I.createElement(cr,{error:!y},H))},bE=I.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 I.createElement(J$e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});Q_.extend(kRe);const xE=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=Q_(r).format(n);t(e,o)},wE=(e,t)=>{if(!e)return null;const n=Q_(e,t);return n.toString()==="Invalid Date"?null:n},k3e=(e,t,n,r,o,a)=>e.map((i,s)=>I.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},I.createElement(Vo,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),O3e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:I.createElement(_n,{xsUp:!e},I.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},k3e(t,n,r,o,i,s))),lh=I.memo(O3e),$6=e=>function(n){const r=ic(),o=ld({jsonforms:{...r}});return I.createElement(e,Object.assign({},n,{ajv:o}))},R3e=e=>e.target.value,fc=(e,t,n,r,o=R3e,a=300)=>{const[i,s]=S.useState(n??t);S.useEffect(()=>{s(n??t)},[n]);const l=S.useCallback(b4(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]},D3e={"enum.none":"None"},M3e=e=>e===""?void 0:parseInt(e,10),I3e=e=>M3e(e.target.value),S6=I.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]=fc(l,"",n,s,I3e);return I.createElement(ts,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),A3e=e=>e===""?void 0:parseFloat(e),N3e=e=>A3e(e.target.value),_6=I.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]=fc(l,"",n,s,N3e);return I.createElement(ts,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),j3e=I.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]=fc(l,"",b,s,v);return I.createElement(ts,{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})}),L3e=e=>e.target.value===""?void 0:e.target.value,E6=I.memo(function(t){var D,F,H;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,_]=fc(p,"",o,f,L3e),$=()=>r(!0),P=()=>r(!1),k=er(),A={background:((H=(F=(D=k.jsonforms)==null?void 0:D.input)==null?void 0:F.delete)==null?void 0:H.background)||k.palette.background.default,borderRadius:"50%"};return I.createElement(ts,{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:P,endAdornment:I.createElement(B_,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},I.createElement(Qn,{"aria-label":"Clear input field",onClick:_,size:"large"},I.createElement(hL,{style:A}))),inputComponent:v})}),F3e=I.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]=fc(l,"",n,s);return I.createElement(ts,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),$0=I.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",D3e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return I.createElement(oL,{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"},[I.createElement(wg,{value:"",key:"jsonforms.enum.none"},I.createElement("em",null,b))].concat(u.map(v=>I.createElement(wg,{value:v.value,key:v.value},v.label))))}),P6=I.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 I.createElement(Q2e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),z3e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>I.createElement(_n,{xlUp:!t},I.createElement(Qp,{component:"fieldset"},I.createElement(z5,{row:!0},o.map((u,f)=>{const p=zs.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return I.createElement(c0,{id:u.value,key:u.value,control:I.createElement(bE,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})})),I.createElement(cr,{error:!0},n)));hve(z3e);const B3e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=S.useMemo(()=>Wp(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 I.createElement(_n,{xsUp:!i},I.createElement(Vo,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var V3e=uve(B3e);const U3e=({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=LS(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,Gi(C[k].schema)),v(k)},$=S.useCallback(()=>{_(x),m(!1)},[e,Gi,x]),P=S.useCallback((k,A)=>{g(A),Mt(f)?_(A):m(!0)},[m,v,f]);return I.createElement(_n,{xsUp:!s},I.createElement(y6,{schema:t,combinatorKeyword:"oneOf",path:n}),I.createElement(f0,{value:b,onChange:P},C.map(k=>I.createElement(gp,{key:k.label,label:k.label}))),C.map((k,A)=>b===A&&I.createElement(Vo,{key:A,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),I.createElement(i0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},I.createElement(F_,{id:"alert-dialog-title"},"Clear form?"),I.createElement(l0,null,I.createElement(L_,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),I.createElement(s0,null,I.createElement(No,{onClick:w,color:"primary"},"No"),I.createElement(No,{onClick:$,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},W3e=Cn(3,jj);var H3e=sve(U3e);const q3e=({text:e,visible:t})=>I.createElement(_n,{xsUp:!t},I.createElement(mn,{variant:"h6"},e));T4(q3e);const T6=I.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return I.createElement(jke,{disableGutters:!0},I.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},I.createElement(en,{item:!0},I.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},I.createElement(en,{item:!0},I.createElement(mn,{variant:"h6"},t)),I.createElement(en,{item:!0},n.length!==0&&I.createElement(en,{item:!0},I.createElement(b6,{id:"tooltip-validation",errorMessages:n}))))),a&&I.createElement(en,{item:!0},I.createElement(en,{container:!0},I.createElement(en,{item:!0},I.createElement(sc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},I.createElement(Qn,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},I.createElement(X_,null))))))))}),G3e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>I.createElement(Y5,{button:!0,selected:n,onClick:o(e)},I.createElement(WEe,null,I.createElement(R5,{"aria-label":"Index"},e+1)),I.createElement(ZEe,{primary:t}),r&&I.createElement(G5,null,I.createElement(Qn,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},I.createElement(p0,null))));var Y3e=dve(G3e);const K3e=({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,A)=>()=>{c(k,[A])(),g===A?y(void 0):g>A&&y(g-1)},[c,y]),C=S.useCallback(k=>()=>y(k),[y]),_=S.useCallback(()=>Gi(t),[Gi]),$=S.useMemo(()=>Wp(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),P=tn({},b,n.options);return I.useEffect(()=>{y(void 0)},[t]),I.createElement(_n,{xsUp:!i},I.createElement(T6,{translations:x,label:uy(s,l,P.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),I.createElement(en,{container:!0,direction:"row",spacing:2},I.createElement(en,{item:!0,xs:3},I.createElement(V_,null,f>0?vL(ad(f),k=>I.createElement(Y3e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):I.createElement("p",null,"No data"))),I.createElement(en,{item:!0,xs:!0},g!==void 0?I.createElement(Vo,{renderers:p,cells:m,visible:i,schema:t,uischema:$,path:ac(r,`${g}`)}):I.createElement(mn,{variant:"h6"},x.noSelection))))};py(K3e);const gd=e=>{const[t,n,r]=rl(),{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=!xo(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return I.createElement(_n,{xsUp:!c},I.createElement(Qp,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},I.createElement(H5,{htmlFor:o+"-input",error:!m,required:dy(u,b.hideRequiredAsterisk)},s),I.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),I.createElement(cr,{error:!m&&!v},x),I.createElement(cr,{error:!m},g)))},X3e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),J3e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),Z3e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=X3e(u.anyOf),m=J3e(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]=fc(c,"",t,l),y=I.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>I.createElement("option",{value:w,key:w})));return I.createElement(ts,{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 Q3e extends w4{render(){return I.createElement(gd,Object.assign({},this.props,{input:Z3e}))}}ba(Q3e);const eje=({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=!xo(t,p,!1,b.showUnfocusedDescription),x=!v&&!xo(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 P=w.join(" ");return I.createElement(_n,{xsUp:!t},I.createElement(sc,{id:C,title:x?p:""},I.createElement(c0,{label:n,id:r,control:I.createElement(bE,{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":P}})})),I.createElement(cr,{id:_,error:!m&&!v},g),I.createElement(cr,{id:$,error:!m},y))};ba(eje);const tje=({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=!xo(t,p,!1,b.showUnfocusedDescription),x=!v&&!xo(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 P=w.join(" ");return I.createElement(_n,{xsUp:!t},I.createElement(sc,{id:C,title:x?p:""},I.createElement(c0,{label:n,id:r,control:I.createElement(P6,{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":P}})})),I.createElement(cr,{id:_,error:!m&&!v},g),I.createElement(cr,{id:$,error:!m},y))};ba(tje);const nje=e=>{const[t,n,r]=rl(),{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=!xo(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,P=y&&!x?i:null,k=S.useMemo(()=>xE(p,m,C),[p,m,C]),A=wE(b,C);return I.createElement(_n,{xsUp:!c},I.createElement(rh,{dateAdapter:gE},I.createElement(gNe,{label:s,value:A,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:D})=>({actions:D==="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"}}}),I.createElement(cr,{error:!x&&!y},$),I.createElement(cr,{error:!x},P)))};ba(nje);const rje=e=>{const[t,n,r]=rl(),{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=!xo(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,P=y&&!g?i:null,k=S.useMemo(()=>xE(p,m,C),[p,m,C]),A=wE(b,C);return I.createElement(_n,{xsUp:!c},I.createElement(rh,{dateAdapter:gE},I.createElement(WNe,{label:s,value:A,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:D})=>({actions:D==="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"}}}),I.createElement(cr,{error:!g&&!y},$),I.createElement(cr,{error:!g},P)))};ba(rje);const oje=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?I.createElement(gd,Object.assign({},e,{input:$0})):I.createElement(C6,Object.assign({},e,{isValid:a}))};ZS(Js(I.memo(oje)),!1);const aje=e=>I.createElement(gd,Object.assign({},e,{input:S6}));ba(aje);const ije=e=>{const[t,n,r]=rl(),{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]=fc(m,"",b,p),C=g.format??s.format,_=!xo(u,l,t,g.showUnfocusedDescription);return I.createElement(_n,{xsUp:!u},I.createElement(nh,{required:dy(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}))};ba(ije);const sje=e=>I.createElement(gd,Object.assign({},e,{input:_6}));ba(sje);const lje=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?I.createElement(gd,Object.assign({},e,{input:$0})):I.createElement(C6,Object.assign({},e,{isValid:a}))};QS(Js(I.memo(lje)),!1);const k6=e=>{const[t,n,r]=rl(),{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=!xo(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return I.createElement(_n,{xsUp:!f},I.createElement(Qp,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},I.createElement(z_,{htmlFor:a,error:!x,component:"legend",required:dy(s,g.hideRequiredAsterisk)},i),I.createElement(sTe,{value:e.data??"",onChange:w,row:!0},p.map(C=>I.createElement(c0,{value:C.value,key:C.label,control:I.createElement(oTe,{checked:u===C.value}),label:C.label,disabled:!v}))),I.createElement(cr,{error:!x},x?y?l:null:c)))},cje=e=>I.createElement(k6,Object.assign({},e));QS(cje);const uje=e=>I.createElement(k6,Object.assign({},e));ZS(uje);const dje=e=>{const[t,n,r]=rl(),{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"},$=!xo(p,i,t,g.showUnfocusedDescription),P=S.useCallback((k,A)=>f(m,Number(A)),[m,f]);return I.createElement(_n,{xsUp:!p},I.createElement(Qp,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},I.createElement(z_,{htmlFor:o,error:!x,component:"legend",required:dy(b,g.hideRequiredAsterisk)},I.createElement(mn,{id:o+"-typo",style:y,variant:"caption"},c)),I.createElement("div",{style:w},I.createElement(mn,{style:C,variant:"caption",align:"left"},u.minimum),I.createElement(mn,{style:C,variant:"caption",align:"right"},u.maximum)),I.createElement(BTe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:P,id:o+"-input",disabled:!s,step:u.multipleOf||1}),I.createElement(cr,{error:!x},x?$?i:null:l)))};ba(dje);const fje=e=>I.createElement(gd,Object.assign({},e,{input:E6}));ba(fje);const pje=e=>{const[t,n,r]=rl(),{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=!xo(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,P=y&&!g?i:null,k=S.useMemo(()=>xE(p,m,C),[p,m,C]),A=wE(b,C);return I.createElement(_n,{xsUp:!c},I.createElement(rh,{dateAdapter:gE},I.createElement(TNe,{label:s,value:A,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:D})=>({actions:D==="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"}}}),I.createElement(cr,{error:!g&&!y},$),I.createElement(cr,{error:!g},P)))};ba(pje);const ux={float:"right"},hje=e=>{const[t]=S.useState(s4("expand-panel"));S.useEffect(()=>()=>{l4(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(()=>Wp(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),P=tn({},C,x.options),k=P.showSortButtons||P.showArrayLayoutSortButtons;return I.createElement(A1e,{"aria-labelledby":t,expanded:i,onChange:f(o)},I.createElement(hbe,{expandIcon:I.createElement(g6,null)},I.createElement(en,{container:!0,alignItems:"center"},I.createElement(en,{item:!0,xs:7,md:9},I.createElement(en,{container:!0,alignItems:"center"},I.createElement(en,{item:!0,xs:2,md:1},I.createElement(R5,{"aria-label":"Index"},a+1)),I.createElement(en,{item:!0,xs:10,md:11},I.createElement("span",{id:t},r)))),I.createElement(en,{item:!0,xs:5,md:3},I.createElement(en,{container:!0,justifyContent:"flex-end"},I.createElement(en,{item:!0},I.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?I.createElement(S.Fragment,null,I.createElement(en,{item:!0},I.createElement(Qn,{onClick:l(m,a),style:ux,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},I.createElement(m0,null))),I.createElement(en,{item:!0},I.createElement(Qn,{onClick:s(m,a),style:ux,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},I.createElement(h0,null)))):"",n&&I.createElement(en,{item:!0},I.createElement(Qn,{onClick:p(m,[a]),style:ux,"aria-label":_.removeAriaLabel,size:"large"},I.createElement(p0,null))))))))),I.createElement(B1e,null,I.createElement(Vo,{enabled:n,schema:v,uischema:$,path:o,key:o,renderers:y,cells:w})))},mje=I.memo(hje),vje=e=>({removeItems:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Ma(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Ma(t,o=>(kj(o,n),o)))},[e]),moveDown:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Ma(t,o=>(Oj(o,n),o)))},[e])}),gje=e=>function({ctx:n,props:r}){const o=vje(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=ac(s,`${l}`),f=bo.data(n.core.data,u),p=a?lr(f,a,""):lr(f,Bhe(i),"");return I.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},yje=e=>wr(gje(e));var bje=yje(mje);const xje={marginBottom:"10px"},wje=I.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return I.createElement(_n,{xsUp:!t},I.createElement(v$e,{style:xje},!Mt(o)&&I.createElement(D$e,{title:o}),I.createElement(C$e,null,I.createElement(lh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),Cje=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return I.createElement(wje,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};Zi(Cje);const $je=({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 I.createElement(lh,Object.assign({},l,{renderers:t,cells:n}))};Zi($je);const Sje=({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 I.createElement(lh,Object.assign({},l,{renderers:a,cells:i}))};Zi(Sje);const _je=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(P=>cd(P,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},_=(P,k)=>{u&&u(k,w),g(k)},$=S.useMemo(()=>y.map(P=>sy(P,p)),[y,p]);return I.createElement(_n,{xsUp:!s},I.createElement(Abe,{position:"static"},I.createElement(f0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((P,k)=>I.createElement(gp,{key:k,label:$[k]})))),I.createElement("div",{style:{marginTop:"0.5em"}},I.createElement(lh,Object.assign({},C,{key:w}))))};$6(Js(Zi(_je)));const Eje=e=>{const[t,n]=S.useState(!1),r=S.useCallback(()=>Gi(e.schema),[e.schema]),o=S.useCallback($=>(P,k)=>{n(k?$:!1)},[]),a=$=>t===ac(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 I.createElement("div",null,I.createElement(T6,{translations:C,label:uy(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),I.createElement("div",null,s>0?vL(ad(s),$=>I.createElement(bje,{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 I.createElement(_n,{xsUp:!e},I.createElement(Pje,Object.assign({visible:e,addItem:r},n)))};py(Tje);const kje=e=>I.createElement(bE,Object.assign({},e));ur(kje);const Oje=e=>I.createElement(P6,Object.assign({},e));ur(Oje);const Rje=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 I.createElement(ts,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};ur(Rje);const Dje=e=>I.createElement($0,Object.assign({},e));P4(Js(I.memo(Dje)),!1);const Mje=e=>I.createElement(S6,Object.assign({},e));ur(Mje);const Ije=e=>I.createElement(_6,Object.assign({},e));ur(Ije);const Aje=e=>I.createElement(j3e,Object.assign({},e));ur(Aje);const Nje=e=>I.createElement($0,Object.assign({},e));pve(Js(I.memo(Nje)),!1);const jje=e=>I.createElement(E6,Object.assign({},e));ur(jje);const Lje=e=>I.createElement(F3e,Object.assign({},e));ur(Lje);const Fje=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($=>cd($,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($=>sy($,m)),[w,m]);return I.createElement(_n,{xsUp:!c},I.createElement(U2e,{activeStep:t,nonLinear:!0},w.map(($,P)=>I.createElement(o2e,{key:_[P]},I.createElement(k2e,{onClick:()=>r(P)},_[P])))),I.createElement("div",null,I.createElement(lh,Object.assign({},C))),v.showNavButtons?I.createElement("div",{style:x},I.createElement(No,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),I.createElement(No,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):I.createElement(I.Fragment,null))};$6(Js(Zi(Fje)));var O6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qr,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 P=(""+$[0]).match(o)||["-",0,0],k=P[0],A=60*+P[1]+ +P[2];return A===0?0:k==="+"?A:-A}(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)}}})})(O6);var zje=O6.exports;const Bje=zt(zje);var R6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qr,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 P=g[_.l];m&&($=m(""+$)),v=typeof P=="string"?P.replace("%d",$):P($,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)}}})})(R6);var Vje=R6.exports;const Uje=zt(Vje),Wje=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"})),Hje=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"})),qje=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"})),Gje=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"})),Yje=e=>S.createElement("svg",{width:19,height:13,viewBox:"0 0 19 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75657 0.91107C7.08201 1.23651 7.08201 1.76414 6.75657 2.08958L2.34583 6.50033L6.75657 10.9111C7.08201 11.2365 7.08201 11.7641 6.75657 12.0896C6.43114 12.415 5.9035 12.415 5.57806 12.0896L0.578062 7.08958C0.252625 6.76414 0.252625 6.23651 0.578062 5.91107L5.57806 0.91107C5.9035 0.585633 6.43114 0.585633 6.75657 0.91107ZM12.2447 0.91107C12.5702 0.585633 13.0978 0.585633 13.4232 0.91107L18.4232 5.91107C18.7487 6.23651 18.7487 6.76414 18.4232 7.08958L13.4232 12.0896C13.0978 12.415 12.5702 12.415 12.2447 12.0896C11.9193 11.7641 11.9193 11.2365 12.2447 10.9111L16.6555 6.50033L12.2447 2.08958C11.9193 1.76414 11.9193 1.23651 12.2447 0.91107Z",fill:"currentColor",fillOpacity:.9})),Kje=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"}));var CE={exports:{}};CE.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,P==c-1){_.push(u($));break}else P++;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,_,$,P,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;P=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;P=n(w);break;case 2:return""}for(f[3]=P,y=P,x.push(P);;){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(P=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),P=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),P=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[P])v=f[P];else if(P===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})})(CE);var $E=CE.exports,Xje=Array.prototype,Jje=Xje.join;function Zje(e,t){return e==null?"":Jje.call(e,t)}var Qje=Zje;const D6=zt(Qje);var e4e=od,M6=e4e("filter",j3);M6.placeholder=rc();var t4e=M6;const KD=zt(t4e);var n4e=od,I6=n4e("map",mL);I6.placeholder=rc();var r4e=I6;const XD=zt(r4e);var dx,JD;function o4e(){if(JD)return dx;JD=1;var e=T$(),t=D$,n=P$(),r=w3(),o=ar,a=C3(),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=Qv(e,o=>o.name===t);return $w(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},Da=e=>(t,...n)=>D6(Bf(e)(t,n)," "),h4e=[{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"]}],m4e={styles:h4e},v4e=I.createContext(m4e),g4e=()=>S.useContext(v4e),SE=()=>{const{styles:e}=g4e();return e},wi=e=>function(n){const r=ic(),o=SE(),a=n.uischema,i=r.config,s=i&&i.trim,l=S.useMemo(()=>Bf(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${r4(a.scope)}`]);s&&(c=c.concat(Bf(o)("control.trim")));const u=Mt(n.errors),f=S.useMemo(()=>Da(o)("control.label"),[o]),p=S.useMemo(()=>Da(o)("input.description"),[o]),m=S.useMemo(()=>Da(o)("control.validation"),[o]),b=S.useMemo(()=>Da(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=S.useMemo(()=>Da(o),[o]),g=S.useMemo(()=>Bf(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 I.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},_E=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=SE(),i=Da(a)(e);return i&&o.push(i),I.createElement(t,Object.assign({},r,{getStyleAsClassName:Da(a),getStyle:Bf(a),className:o.join(" ")}))},Ua=_E("control.input"),y4e=_E("control.select"),b4e=_E("control.checkbox"),x4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return I.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})},w4e=Cn(2,Ij);var C4e=ur(b4e(x4e));const $4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return I.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})},S4e=Cn(2,Uj);var _4e=ur(Ua($4e));const E4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return I.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})},P4e=Cn(2,Hj);var T4e=ur(Ua(E4e));const k4e=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",p4e["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return I.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)},[I.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>I.createElement("option",{value:p.value,label:p.label,key:p.value}))))},O4e=Cn(2,_S);var R4e=P4(Js(y4e(k4e)));const D4e=e=>e===""?void 0:parseInt(e,10),M4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return I.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,D4e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},I4e=Cn(2,Fj);var A4e=ur(Ua(M4e));const N4e=e=>e===""?void 0:Number(e),j4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return I.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,N4e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},L4e=Cn(2,zj);var F4e=ur(Ua(j4e));const z4e=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 I.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})};ur(Ua(z4e));const B4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return I.createElement("div",{style:{display:"flex"}},I.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"}}),I.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},V4e=Cn(4,Yj);var U4e=ur(Ua(B4e));const W4e=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 I.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})},H4e=Cn(1,Bj);ur(Ua(W4e));const q4e=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 I.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})},G4e=Cn(2,Vj);ur(Ua(q4e));const Y4e=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},K4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return I.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,Y4e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},X4e=Cn(2,Wj);var J4e=ur(Ua(K4e));class Z4e extends w4{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=!xo(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=Zg(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Mu?(console.warn("No applicable cell found.",i,s),null):I.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},I.createElement("label",{htmlFor:r+"-input",className:t.label},uy(a,f,g.hideRequiredAsterisk)),I.createElement(Gl,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),I.createElement("div",{className:x},v?y?n:null:o))}}const Q4e=Cn(1,Us);var F6=wi(ba(Z4e));const z6=({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=SE(),[v,x]=S.useState(!1),g=S.useMemo(()=>Da(b)("control.radio"),[b]),y=S.useMemo(()=>Da(b)("control.radio.option"),[b]),w=S.useMemo(()=>Da(b)("control.radio.input"),[b]),C=S.useMemo(()=>Da(b)("control.radio.label"),[b]),_=i.length===0,$=[e.validation].concat(_?e.description:e.validationError).join(" "),P=tn({},u,l.options),k=!xo(c,a,v,P.showUnfocusedDescription),A=!g||g==="radio";let D={};return A&&(D={display:"flex",flexDirection:P.orientation==="vertical"?"column":"row"}),I.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},I.createElement("label",{htmlFor:t,className:e.label},uy(n,o,P.hideRequiredAsterisk)),I.createElement("div",{className:g,style:D},r.map(F=>I.createElement("div",{key:F.label,className:y},I.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:H=>m(p,H.currentTarget.value),disabled:!f,className:w}),I.createElement("label",{htmlFor:F.value,className:C},F.label)))),I.createElement("div",{className:$},_?k?a:null:i))},e5e=e=>I.createElement(z6,Object.assign({},e)),t5e=Cn(3,On(_S,Ji("format","radio")));var n5e=wi(ZS(e5e));const r5e=e=>I.createElement(z6,Object.assign({},e)),o5e=Cn(3,On(Lj,Ji("format","radio")));var a5e=wi(QS(r5e));const{convertToValidClassName:i5e}=cg,s5e=({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(()=>Wp(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"),P=p("array.child.controls"),k=p("array.child.controls.up"),A=p("array.child.controls.down"),D=p("array.child.controls.delete"),F=[p("array.control"),i5e(x.scope)].join(" ");return I.createElement("div",{className:F},I.createElement("header",null,I.createElement("label",{className:$},n),I.createElement("button",{className:_,onClick:i(r,Gi(o))},"Add to ",n)),I.createElement("div",{className:C},a),I.createElement("div",{className:e.children},t?ad(0,t.length).map(H=>{const q=ac(r,`${H}`);return I.createElement("div",{key:H},I.createElement(Vo,{schema:o,uischema:g||u,path:q,key:q,renderers:m}),I.createElement("div",{className:P},I.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,H)()}},v.up),I.createElement("button",{className:A,"aria-label":v.downAriaLabel,onClick:()=>{c(r,H)()}},v.down),I.createElement("button",{className:D,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[H])()}},v.removeTooltip)))}):I.createElement("p",null,v.noDataMessage)))},l5e=({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=cg.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${cg.convertToValidClassName(g.scope)}`,_=l("array.layout"),$=l("array.button"),P=l("array.children"),k={wrapper:C,fieldSet:_,button:$,children:P};return I.createElement(s5e,{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 c5e=wi(E4(l5e));const u5e=Cn(4,PS),EE=e=>e.type==="Categorization",d5e=Cn(1,On(wn("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)})),f5e=(e,t)=>t===e?"selected":"",B6=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=S.useMemo(()=>e.elements.map(l=>sy(l,i)),[e,i]);return I.createElement("ul",{className:o},e.elements.map((l,c)=>EE(l)?I.createElement("li",{key:s[c],className:a},I.createElement("span",null,s[c]),I.createElement(B6,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):I.createElement("li",{key:s[c],onClick:r(l),className:f5e(l,t)},I.createElement("span",null,s[c]))))},p5e=({category:e,schema:t,path:n})=>I.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>I.createElement(Vo,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class h5e extends x4{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 I.createElement("div",{className:i,hidden:n==null?!1:!n},I.createElement("div",{className:s},I.createElement(B6,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),I.createElement("div",{className:l},I.createElement(p5e,{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 m5e=wi(Js(Zi(h5e)));const v5e=Cn(1,wn("Label")),g5e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return I.createElement("label",{hidden:o,className:r},e)};var y5e=wi(T4(g5e));const{convertToValidClassName:b5e}=cg,{or:x5e,isObjectArrayControl:w5e,isPrimitiveArrayControl:C5e,rankWith:$5e}=ihe,S5e=$5e(3,x5e(w5e,C5e));class _5e extends I.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"),b5e(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 I.createElement("div",{className:y,hidden:!s},I.createElement("header",null,I.createElement("label",{className:v},c),I.createElement("button",{className:x,onClick:t(a,Gi(r))},p.addTooltip)),I.createElement("div",{className:_},C?"":l),I.createElement("table",{className:b},I.createElement("thead",null,I.createElement("tr",null,r.properties?QD(tM,KD($=>r.properties[$].type!=="array"),XD($=>I.createElement("th",{key:$},r.properties[$].title??f4e($))))(r.properties):I.createElement("th",null,"Items"),I.createElement("th",null,"Valid"),I.createElement("th",null," "))),I.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?I.createElement("tr",null,I.createElement("td",null,p.noDataMessage)):i.map(($,P)=>{const k=zs.compose(a,`${P}`),A=Qv(f,q=>ag(q).startsWith(k)),D=u("array.validation"),F=u("array.validation.error"),H=A?[D].concat(F).join(" "):D;return I.createElement("tr",{key:k},r.properties?QD(tM,KD(q=>r.properties[q].type!=="array"),XD(q=>{const z=zs.compose(k,q.toString());return I.createElement("td",{key:z},I.createElement(Gl,{schema:bo.schema(r,`#/properties/${Hl(q)}`,o),uischema:w(Hl(q)),path:k+"."+q}))}))(r.properties):I.createElement("td",{key:zs.compose(k,P.toString())},I.createElement(Gl,{schema:r,uischema:w(),path:k})),I.createElement("td",null,A?I.createElement("span",{className:H},D6(A.map(q=>q.message)," and ")):I.createElement("span",{className:H},"OK")),I.createElement("td",null,I.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,P)}},p.removeTooltip)))}))))}}var E5e=wi(E4(_5e));const PE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=ic();return e.elements.map((s,l)=>I.createElement("div",{className:n,key:`${r}-${l}`},I.createElement(Vo,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},P5e=Cn(1,wn("Group")),T5e=e=>{const{data:t,...n}=e;return I.createElement(k5e,Object.assign({},n))},k5e=I.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 I.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":I.createElement("legend",{className:l("group.label")},i),PE(c,t,p,r,o))});var O5e=wi(Zi(T5e));const V6=({className:e,children:t,visible:n})=>I.createElement("div",{className:e,hidden:n==null?!1:!n},t),R5e=Cn(1,wn("HorizontalLayout")),D5e=e=>{const{data:t,...n}=e;return I.createElement(M5e,Object.assign({},n))},M5e=I.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 I.createElement(V6,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},PE(l,t,f,s,a))});var I5e=wi(Zi(D5e,!1));const A5e=Cn(1,wn("VerticalLayout")),N5e=e=>{const{data:t,...n}=e;return I.createElement(j5e,Object.assign({},n))},j5e=I.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 I.createElement(V6,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},PE(l,t,f,r,a))});var L5e=wi(Zi(N5e,!1));const F5e=[{tester:Q4e,renderer:F6},{tester:t5e,renderer:n5e},{tester:o5e,renderer:a5e},{tester:u5e,renderer:c5e},{tester:v5e,renderer:y5e},{tester:d5e,renderer:m5e},{tester:S5e,renderer:E5e},{tester:P5e,renderer:O5e},{tester:A5e,renderer:L5e},{tester:R5e,renderer:I5e}];function z5e(e){const t=window.location.pathname.split("/playground")[0];return new URL(t+e,window.location.origin)}const B5e=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,H))}catch(q){C.call(new $(H),q)}}}function C(D){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=D,F.state=2,F.chain.length>0&&v(g,F))}function _(D,F,H,q){for(var z=0;z-1?R=N:(K=o.isUndefined(L)?void 0:D(L),o.isUndefined(K)?R=N:((R=K).path=c(i.join(K.path,N.path)),R.query=function(V,X){var re={};function le(xe){o.forOwn(xe,function(fe,ge){re[ge]=fe})}return le(l.parse(V||"")),le(l.parse(X||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(K.query,N.query))),R.fragment=void 0,(b.indexOf(R.reference)===-1&&R.path.indexOf("../")===0?"../":"")+u.serialize(R)}function g(L){return m.indexOf(_(L))>-1}function y(L){return o.isUndefined(L.error)&&L.type!=="invalid"}function w(L,Y){var K=L;return Y.forEach(function(R){if(!(R in K))throw Error("JSON Pointer points to missing location: "+J(Y));K=K[R]}),K}function C(L){return Object.keys(L).filter(function(Y){return Y!=="$ref"})}function _(L){var Y;switch(L.uriDetails.reference){case"absolute":case"uri":Y="remote";break;case"same-document":Y="local";break;default:Y=L.uriDetails.reference}return Y}function $(L,Y){var K=p[L],R=Promise.resolve(),N=o.cloneDeep(Y.loaderOptions||{});return o.isUndefined(K)?(o.isUndefined(N.processContent)&&(N.processContent=function(V,X){X(void 0,JSON.parse(V.text))}),R=(R=s.load(decodeURI(L),N)).then(function(V){return p[L]={value:V},V}).catch(function(V){throw p[L]={error:V},V})):R=R.then(function(){if(o.isError(K.error))throw K.error;return K.value}),R=R.then(function(V){return o.cloneDeep(V)})}function P(L,Y){var K=!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(R){if(Y)throw R;K=!1}return K}function k(L){return L.indexOf("://")!==-1||i.isAbsolute(L)?L:i.resolve(r.cwd(),L)}function A(L,Y){L.error=Y.message,L.missing=!0}function D(L){return u.parse(L)}function F(L,Y,K){w(L,Y.slice(0,Y.length-1))[Y[Y.length-1]]=K}function H(L,Y){var K,R;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,X;return o.isArray(N.filter)||o.isString(N.filter)?(X=o.isString(N.filter)?[N.filter]:N.filter,V=function(re){return X.indexOf(re.type)>-1||X.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")),(K=L.location.split("#")).length>1&&(L.subDocPath="#"+K[1]),R=decodeURI(L.location)===L.location,L.location=x(L.location,void 0),R&&(L.location=decodeURI(L.location)),L.subDocPath=function(N){var V;return o.isArray(N.subDocPath)?V=N.subDocPath:o.isString(N.subDocPath)?V=W(N.subDocPath):o.isUndefined(N.subDocPath)&&(V=[]),V}(L),!o.isUndefined(Y))try{w(Y,L.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return L}function q(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(Y){return o.isString(Y)||(Y=JSON.stringify(Y)),Y.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(Y){return o.isString(Y)||(Y=JSON.stringify(Y)),Y.replace(/~/g,"~0").replace(/\//g,"~1")})}function B(L,Y){var K={};if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");return function R(N,V,X,re){var le=!0;function xe(fe,ge){X.push(ge),R(N,fe,X,re),X.pop()}o.isFunction(re)&&(le=re(N,V,X)),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(R,N){var V,X=[];return N.length>0&&(V=R,N.slice(0,N.length-1).forEach(function(re){re in V&&(V=V[re],X.push(V))})),X}(L,(Y=H(Y,L)).subDocPath),w(L,Y.subDocPath),o.cloneDeep(Y.subDocPath),function(R,N,V){var X,re,le=!0;return P(N)&&(o.isUndefined(Y.refPreProcessor)||(N=Y.refPreProcessor(o.cloneDeep(N),V)),X=G(N),o.isUndefined(Y.refPostProcessor)||(X=Y.refPostProcessor(X,V)),Y.filter(X,V)&&(re=J(V),K[re]=X),C(N).length>0&&(le=!1)),le}),K}function G(L){var Y,K,R,N={def:L};try{if(P(L,!0),Y=L.$ref,R=v[Y],o.isUndefined(R)&&(R=v[Y]=D(Y)),N.uri=Y,N.uriDetails=R,o.isUndefined(R.error)){N.type=_(N);try{["#","/"].indexOf(Y[0])>-1?Q(Y,!0):Y.indexOf("#")>-1&&Q(R.fragment,!0)}catch(V){N.error=V.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(K=C(L)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+K.join(", "))}catch(V){N.error=V.message,N.type="invalid"}return N}function Q(L,Y){var K,R=!0;try{if(!o.isString(L))throw new Error("ptr is not a String");if(L!==""){if(K=L.charAt(0),["#","/"].indexOf(K)===-1)throw new Error("ptr must start with a / or #/");if(K==="#"&&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(Y===!0)throw N;R=!1}return R}function W(L){try{Q(L,!0)}catch(K){throw new Error("ptr must be a JSON Pointer: "+K.message)}var Y=L.split("/");return Y.shift(),q(Y)}function J(L,Y){if(!o.isArray(L))throw new Error("path must be an Array");return(Y!==!1?"#":"")+(L.length>0?"/":"")+z(L).join("/")}function Z(L,Y){var K=Promise.resolve();return K=K.then(function(){if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");Y=H(Y,L),L=o.cloneDeep(L)}).then(function(){var R={deps:{},docs:{},refs:{}};return function N(V,X,re){var le,xe,fe=Promise.resolve(),ge=J(X.subDocPath),he=k(X.location),_e=i.dirname(X.location),ve=he+ge;return o.isUndefined(re.docs[he])&&(re.docs[he]=V),o.isUndefined(re.deps[ve])&&(re.deps[ve]={},le=B(V,X),o.forOwn(le,function(Be,Ue){var ze,He,be=k(X.location)+Ue,we=Be.refdId=decodeURI(k(g(Be)?x(_e,Be.uri):X.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(X)).subDocPath=o.isUndefined(Be.uriDetails.fragment)?[]:W(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),Ge=ze.docs[Ce];return o.isUndefined(Ge)?$(Ce,He).catch(function(rt){return ze.docs[Ce]=rt,rt}):Promise.resolve().then(function(){return Ge})}))):fe=fe.then(function(){return V}),fe=fe.then(function(Ce,Ge,rt){return function(Ae){if(o.isError(Ae))A(rt,Ae);else try{return N(Ae,Ge,Ce).catch(function(Le){A(rt,Le)})}catch(Le){A(rt,Le)}}}(re,xe,Be))):Be.circular=!0)})),fe}(L,Y,R).then(function(){return R})}).then(function(R){var N={},V=[],X=[],re=new a.Graph,le=k(Y.location),xe=le+J(Y.subDocPath),fe=i.dirname(le);return Object.keys(R.deps).forEach(function(ge){re.setNode(ge)}),o.forOwn(R.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){X.indexOf(he)===-1&&X.push(he)})}),o.forOwn(R.deps,function(ge,he){o.forOwn(ge,function(_e,ve){var Be,Ue=!1,ze=he+ve.slice(1),He=R.refs[he+ve.slice(1)],be=g(He);X.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(R.deps).reverse(),function(ge){var he=R.deps[ge],_e=ge.split("#"),ve=R.docs[_e[0]],Be=W(_e[1]);o.forOwn(he,function(Ue,ze){var He=Ue.split("#"),be=R.docs[He[0]],we=Be.concat(W(ze)),Ce=R.refs[_e[0]+J(we)];if(o.isUndefined(Ce.error)&&o.isUndefined(Ce.missing))if(!Y.resolveCirculars&&Ce.circular)Ce.value=o.cloneDeep(Ce.def);else{try{Ce.value=w(be,W(He[1]))}catch(Ge){return void A(Ce,Ge)}_e[1]===""&&ze==="#"?R.docs[_e[0]]=Ce.value:F(ve,we,Ce.value)}})}),Object.keys(R.refs).forEach(function(ge){var he,_e,ve=R.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=R.refs[ze];N[we[0]===Y.location?"#"+we[1]:J(Y.subDocPath.concat(He))]=Ce,!Ce.circular&&y(Ce)?(be=R.deps[Ce.refdId],Ce.refdId.indexOf(Ue)!==0&&Object.keys(be).forEach(function(Ge){Be(Ce.refdId,Ce.refdId+Ge.substr(1),He.concat(W(Ge)))})):!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,W(ge.substr(xe.length)))}),o.forOwn(N,function(ge,he){delete ge.refdId,ge.circular&&ge.type==="local"&&(ge.value.$ref=ge.fqURI,F(R.docs[le],W(he),ge.value)),ge.missing&&(ge.error=ge.error.split(": ")[0]+": "+ge.def.$ref)}),{refs:N,resolved:R.docs[le]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(L){return q(L)},e.exports.encodePath=function(L){return z(L)},e.exports.findRefs=function(L,Y){return B(L,Y)},e.exports.findRefsAt=function(L,Y){return function(K,R){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(K))throw new TypeError("location must be a string");return o.isUndefined(R)&&(R={}),o.isObject(R)&&(R.location=K),$((R=H(R)).location,R)}).then(function(V){var X=o.cloneDeep(p[R.location]),re=o.cloneDeep(R);return o.isUndefined(X.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[R.location].refs=B(V,re)),o.isUndefined(R.filter)||(re.filter=R.filter),{refs:B(V,re),value:V}})}(L,Y)},e.exports.getRefDetails=function(L){return G(L)},e.exports.isPtr=function(L,Y){return Q(L,Y)},e.exports.isRef=function(L,Y){return function(K,R){return P(K,R)&&G(K).type!=="invalid"}(L,Y)},e.exports.pathFromPtr=function(L){return W(L)},e.exports.pathToPtr=function(L,Y){return J(L,Y)},e.exports.resolveRefs=function(L,Y){return Z(L,Y)},e.exports.resolveRefsAt=function(L,Y){return function(K,R){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(K))throw new TypeError("location must be a string");return o.isUndefined(R)&&(R={}),o.isObject(R)&&(R.location=K),$((R=H(R)).location,R)}).then(function(V){return Z(V,R).then(function(X){return{refs:X.refs,resolved:X.resolved,value:V}})})}(L,Y)}}).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]",P="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",H="[object Float64Array]",q="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",G="[object Uint8Array]",Q="[object Uint16Array]",W="[object Uint32Array]",J=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,R=RegExp(Y.source),N=RegExp(K.source),V=/<%-([\s\S]+?)%>/g,X=/<%([\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,Ge=/\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]",Je="[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="(?:"+Je+"|"+tt+")",kt="(?:"+Et+"|"+tt+")",sn="(?:"+ie+"|"+ft+")?",Vt="[\\ufe0e\\ufe0f]?"+sn+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+sn+")*"),Ut="(?:"+[Se,vt,dt].join("|")+")"+Vt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",gn=RegExp("['’]","g"),Fn=RegExp(ie,"g"),se=RegExp(ft+"(?="+ft+")|"+Kt+Vt,"g"),oe=RegExp([Et+"?"+Je+"+(?:['’](?: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[H]=me[q]=me[z]=me[B]=me[G]=me["[object Uint8ClampedArray]"]=me[Q]=me[W]=!0,me[u]=me[f]=me[A]=me[p]=me[D]=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[A]=pe[D]=pe[p]=pe[m]=pe[F]=pe[H]=pe[q]=pe[z]=pe[B]=pe[g]=pe[y]=pe[w]=pe[C]=pe[_]=pe[$]=pe[P]=pe[G]=pe["[object Uint8ClampedArray]"]=pe[Q]=pe[W]=!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,Sn=Wt&&Wt.exports===yt,Xo=Sn&&xt.process,zn=function(){try{var Me=Wt&&Wt.require&&Wt.require("util").types;return Me||Xo&&Xo.binding&&Xo.binding("util")}catch{}}(),So=zn&&zn.isArrayBuffer,Ci=zn&&zn.isDate,Wa=zn&&zn.isMap,Hr=zn&&zn.isRegExp,_o=zn&&zn.isSet,Ha=zn&&zn.isTypedArray;function Bn(Me,Ye,qe){switch(qe.length){case 0:return Me.call(Ye);case 1:return Me.call(Ye,qe[0]);case 2:return Me.call(Ye,qe[0],qe[1]);case 3:return Me.call(Ye,qe[0],qe[1],qe[2])}return Me.apply(Ye,qe)}function ol(Me,Ye,qe,ht){for(var Ft=-1,ln=Me==null?0:Me.length;++Ft-1}function pc(Me,Ye,qe){for(var ht=-1,Ft=Me==null?0:Me.length;++ht-1;);return qe}function AE(Me,Ye){for(var qe=Me.length;qe--&&hc(Ye,Me[qe],0)>-1;);return qe}function Q6(Me,Ye){for(var qe=Me.length,ht=0;qe--;)Me[qe]===Ye&&++ht;return ht}var eF=T0({À:"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"}),tF=T0({"&":"&","<":"<",">":">",'"':""","'":"'"});function nF(Me){return"\\"+De[Me]}function mc(Me){return ue.test(Me)}function D0(Me){var Ye=-1,qe=Array(Me.size);return Me.forEach(function(ht,Ft){qe[++Ye]=[Ft,ht]}),qe}function NE(Me,Ye){return function(qe){return Me(Ye(qe))}}function ns(Me,Ye){for(var qe=-1,ht=Me.length,Ft=0,ln=[];++qe",""":'"',"'":"'"}),rs=function Me(Ye){var qe,ht=(Ye=Ye==null?ut:rs.defaults(ut.Object(),Ye,rs.pick(ut,Ee))).Array,Ft=Ye.Date,ln=Ye.Error,dr=Ye.Function,qa=Ye.Math,Rn=Ye.Object,M0=Ye.RegExp,aF=Ye.String,Jo=Ye.TypeError,fh=ht.prototype,iF=dr.prototype,gc=Rn.prototype,ph=Ye["__core-js_shared__"],hh=iF.toString,yn=gc.hasOwnProperty,sF=0,jE=(qe=/[^.]+$/.exec(ph&&ph.keys&&ph.keys.IE_PROTO||""))?"Symbol(src)_1."+qe:"",mh=gc.toString,lF=hh.call(Rn),cF=ut._,uF=M0("^"+hh.call(yn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vh=Sn?Ye.Buffer:void 0,os=Ye.Symbol,gh=Ye.Uint8Array,LE=vh?vh.allocUnsafe:void 0,yh=NE(Rn.getPrototypeOf,Rn),FE=Rn.create,zE=gc.propertyIsEnumerable,bh=fh.splice,BE=os?os.isConcatSpreadable:void 0,bd=os?os.iterator:void 0,il=os?os.toStringTag:void 0,xh=function(){try{var d=ul(Rn,"defineProperty");return d({},"",{}),d}catch{}}(),dF=Ye.clearTimeout!==ut.clearTimeout&&Ye.clearTimeout,fF=Ft&&Ft.now!==ut.Date.now&&Ft.now,pF=Ye.setTimeout!==ut.setTimeout&&Ye.setTimeout,wh=qa.ceil,Ch=qa.floor,I0=Rn.getOwnPropertySymbols,hF=vh?vh.isBuffer:void 0,VE=Ye.isFinite,mF=fh.join,vF=NE(Rn.keys,Rn),fr=qa.max,Ir=qa.min,gF=Ft.now,yF=Ye.parseInt,UE=qa.random,bF=fh.reverse,A0=ul(Ye,"DataView"),xd=ul(Ye,"Map"),N0=ul(Ye,"Promise"),yc=ul(Ye,"Set"),wd=ul(Ye,"WeakMap"),Cd=ul(Rn,"create"),$h=wd&&new wd,bc={},xF=dl(A0),wF=dl(xd),CF=dl(N0),$F=dl(yc),SF=dl(wd),Sh=os?os.prototype:void 0,$d=Sh?Sh.valueOf:void 0,WE=Sh?Sh.toString:void 0;function ee(d){if(Yn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof Zo)return d;if(yn.call(d,"__wrapped__"))return HP(d)}return new Zo(d)}var xc=function(){function d(){}return function(h){if(!Vn(h))return{};if(FE)return FE(h);d.prototype=h;var E=new d;return d.prototype=void 0,E}}();function _h(){}function Zo(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 sl(d){var h=-1,E=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function Qo(d,h,E,M,U,ae){var ce,ye=1&h,Re=2&h,We=4&h;if(E&&(ce=U?E(d,M,U,ae):E(d)),ce!==void 0)return ce;if(!Vn(d))return d;var Ve=Ht(d);if(Ve){if(ce=function(Xe){var st=Xe.length,It=new Xe.constructor(st);return st&&typeof Xe[0]=="string"&&yn.call(Xe,"index")&&(It.index=Xe.index,It.input=Xe.input),It}(d),!ye)return ao(d,ce)}else{var ot=Ar(d),Ct=ot==v||ot==x;if(cs(d))return gP(d,ye);if(ot==w||ot==u||Ct&&!U){if(ce=Re||Ct?{}:NP(d),!ye)return Re?function(Xe,st){return Ya(Xe,IP(Xe),st)}(d,function(Xe,st){return Xe&&Ya(st,so(st),Xe)}(ce,d)):function(Xe,st){return Ya(Xe,s1(Xe),st)}(d,GE(ce,d))}else{if(!pe[ot])return U?d:{};ce=function(Xe,st,It){var wt=Xe.constructor;switch(st){case A:return e1(Xe);case p:case m:return new wt(+Xe);case D:return function(jt,Zt){var Pt=Zt?e1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Xe,It);case F:case H:case q:case z:case B:case G:case"[object Uint8ClampedArray]":case Q:case W:return yP(Xe,It);case g:return new wt;case y:case $:return new wt(Xe);case C:return function(jt){var Zt=new jt.constructor(jt.source,Ge.exec(jt));return Zt.lastIndex=jt.lastIndex,Zt}(Xe);case _:return new wt;case P:return At=Xe,$d?Rn($d.call(At)):{}}var At}(d,ot,ye)}}ae||(ae=new Ca);var $t=ae.get(d);if($t)return $t;ae.set(d,ce),cT(d)?d.forEach(function(Xe){ce.add(Qo(Xe,h,E,Xe,d,ae))}):sT(d)&&d.forEach(function(Xe,st){ce.set(st,Qo(Xe,h,E,st,d,ae))});var Rt=Ve?void 0:(We?Re?o1:r1:Re?so:$r)(d);return qr(Rt||d,function(Xe,st){Rt&&(Xe=d[st=Xe]),Sd(ce,st,Qo(Xe,h,E,st,d,ae))}),ce}function YE(d,h,E){var M=E.length;if(d==null)return!M;for(d=Rn(d);M--;){var U=E[M],ae=h[U],ce=d[U];if(ce===void 0&&!(U in d)||!ae(ce))return!1}return!0}function KE(d,h,E){if(typeof d!="function")throw new Jo(s);return Rd(function(){d.apply(void 0,E)},h)}function _d(d,h,E,M){var U=-1,ae=$i,ce=!0,ye=d.length,Re=[],We=h.length;if(!ye)return Re;E&&(h=En(h,Po(E))),M?(ae=pc,ce=!1):h.length>=200&&(ae=yd,ce=!1,h=new ll(h));e:for(;++U-1},Si.prototype.set=function(d,h){var E=this.__data__,M=Eh(E,d);return M<0?(++this.size,E.push([d,h])):E[M][1]=h,this},_i.prototype.clear=function(){this.size=0,this.__data__={hash:new sl,map:new(xd||Si),string:new sl}},_i.prototype.delete=function(d){var h=Lh(this,d).delete(d);return this.size-=h?1:0,h},_i.prototype.get=function(d){return Lh(this,d).get(d)},_i.prototype.has=function(d){return Lh(this,d).has(d)},_i.prototype.set=function(d,h){var E=Lh(this,d),M=E.size;return E.set(d,h),this.size+=E.size==M?0:1,this},ll.prototype.add=ll.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},ll.prototype.has=function(d){return this.__data__.has(d)},Ca.prototype.clear=function(){this.__data__=new Si,this.size=0},Ca.prototype.delete=function(d){var h=this.__data__,E=h.delete(d);return this.size=h.size,E},Ca.prototype.get=function(d){return this.__data__.get(d)},Ca.prototype.has=function(d){return this.__data__.has(d)},Ca.prototype.set=function(d,h){var E=this.__data__;if(E instanceof Si){var M=E.__data__;if(!xd||M.length<199)return M.push([d,h]),this.size=++E.size,this;E=this.__data__=new _i(M)}return E.set(d,h),this.size=E.size,this};var as=CP(Ga),XE=CP(z0,!0);function TF(d,h){var E=!0;return as(d,function(M,U,ae){return E=!!h(M,U,ae)}),E}function Ph(d,h,E){for(var M=-1,U=d.length;++M0&&E(ye)?h>1?Pr(ye,h-1,E,M,U):oo(U,ye):M||(U[U.length]=ye)}return U}var F0=$P(),ZE=$P(!0);function Ga(d,h){return d&&F0(d,h,$r)}function z0(d,h){return d&&ZE(d,h,$r)}function Th(d,h){return Eo(h,function(E){return Oi(d[E])})}function wc(d,h){for(var E=0,M=(h=ss(h,d)).length;d!=null&&Eh}function kF(d,h){return d!=null&&yn.call(d,h)}function OF(d,h){return d!=null&&h in Rn(d)}function V0(d,h,E){for(var M=E?pc:$i,U=d[0].length,ae=d.length,ce=ae,ye=ht(ae),Re=1/0,We=[];ce--;){var Ve=d[ce];ce&&h&&(Ve=En(Ve,Po(h))),Re=Ir(Ve.length,Re),ye[ce]=!E&&(h||U>=120&&Ve.length>=120)?new ll(ce&&Ve):void 0}Ve=d[0];var ot=-1,Ct=ye[0];e:for(;++ot=$t)return Rt;var Xe=Re[We];return Rt*(Xe=="desc"?-1:1)}}return ce.index-ye.index}(U,ae,E)})}function lP(d,h,E){for(var M=-1,U=h.length,ae={};++M-1;)ye!==d&&bh.call(ye,Re,1),bh.call(d,Re,1);return d}function cP(d,h){for(var E=d?h.length:0,M=E-1;E--;){var U=h[E];if(E==M||U!==ae){var ae=U;ki(U)?bh.call(d,U,1):X0(d,U)}}return d}function G0(d,h){return d+Ch(UE()*(h-d+1))}function Y0(d,h){var E="";if(!d||h<1||h>9007199254740991)return E;do h%2&&(E+=d),(h=Ch(h/2))&&(d+=d);while(h);return E}function Jt(d,h){return d1(FP(d,h,lo),d+"")}function DF(d){return qE(Ec(d))}function MF(d,h){var E=Ec(d);return Fh(E,cl(h,0,E.length))}function Td(d,h,E,M){if(!Vn(d))return d;for(var U=-1,ae=(h=ss(h,d)).length,ce=ae-1,ye=d;ye!=null&&++UU?0:U+h),(E=E>U?U:E)<0&&(E+=U),U=h>E?0:E-h>>>0,h>>>=0;for(var ae=ht(U);++M>>1,ce=d[ae];ce!==null&&!ko(ce)&&(E?ce<=h:ce=200){var We=h?null:LF(d);if(We)return dh(We);ce=!1,U=yd,Re=new ll}else Re=h?[]:ye;e:for(;++M=M?d:ea(d,h,E)}var vP=dF||function(d){return ut.clearTimeout(d)};function gP(d,h){if(h)return d.slice();var E=d.length,M=LE?LE(E):new d.constructor(E);return d.copy(M),M}function e1(d){var h=new d.constructor(d.byteLength);return new gh(h).set(new gh(d)),h}function yP(d,h){var E=h?e1(d.buffer):d.buffer;return new d.constructor(E,d.byteOffset,d.length)}function bP(d,h){if(d!==h){var E=d!==void 0,M=d===null,U=d==d,ae=ko(d),ce=h!==void 0,ye=h===null,Re=h==h,We=ko(h);if(!ye&&!We&&!ae&&d>h||ae&&ce&&Re&&!ye&&!We||M&&ce&&Re||!E&&Re||!U)return 1;if(!M&&!ae&&!We&&d1?E[U-1]:void 0,ce=U>2?E[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(U--,ae):void 0,ce&&Yr(E[0],E[1],ce)&&(ae=U<3?void 0:ae,U=1),h=Rn(h);++M-1?U[ae?h[ce]:ce]:void 0}}function EP(d){return Ti(function(h){var E=h.length,M=E,U=Zo.prototype.thru;for(d&&h.reverse();M--;){var ae=h[M];if(typeof ae!="function")throw new Jo(s);if(U&&!ce&&jh(ae)=="wrapper")var ce=new Zo([],!0)}for(M=ce?M:E;++M1&&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&E?new ll:void 0;for(ae.set(d,h),ae.set(h,d);++Ve-1&&d%1==0&&d1?"& ":"")+ae[ye],ae=ae.join(ce>2?", ":" "),U.replace(Ue,`{ +/* [wrapped with `+ae+`] */ +`)}(M,function(U,ae){return qr(c,function(ce){var ye="_."+ce[0];ae&ce[1]&&!$i(U,ye)&&U.push(ye)}),U.sort()}(function(U){var ae=U.match(ze);return ae?ae[1].split(He):[]}(M),E)))}function UP(d){var h=0,E=0;return function(){var M=gF(),U=16-(M-E);if(E=M,U>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function Fh(d,h){var E=-1,M=d.length,U=M-1;for(h=h===void 0?M:h;++E1?d[h-1]:void 0;return E=typeof E=="function"?(d.pop(),E):void 0,JP(d,E)});function ZP(d){var h=ee(d);return h.__chain__=!0,h}function zh(d,h){return h(d)}var i9=Ti(function(d){var h=d.length,E=h?d[0]:0,M=this.__wrapped__,U=function(ae){return L0(ae,d)};return!(h>1||this.__actions__.length)&&M instanceof rn&&ki(E)?((M=M.slice(E,+E+(h?1:0))).__actions__.push({func:zh,args:[U],thisArg:void 0}),new Zo(M,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(U)}),s9=Dh(function(d,h,E){yn.call(d,E)?++d[E]:Ei(d,E,1)}),l9=_P(qP),c9=_P(GP);function QP(d,h){return(Ht(d)?qr:as)(d,Ot(h,3))}function eT(d,h){return(Ht(d)?ch:XE)(d,Ot(h,3))}var u9=Dh(function(d,h,E){yn.call(d,E)?d[E].push(h):Ei(d,E,[h])}),d9=Jt(function(d,h,E){var M=-1,U=typeof h=="function",ae=io(d)?ht(d.length):[];return as(d,function(ce){ae[++M]=U?Bn(h,ce,E):Ed(ce,h,E)}),ae}),f9=Dh(function(d,h,E){Ei(d,E,h)});function Bh(d,h){return(Ht(d)?En:rP)(d,Ot(h,3))}var p9=Dh(function(d,h,E){d[E?0:1].push(h)},function(){return[[],[]]}),h9=Jt(function(d,h){if(d==null)return[];var E=h.length;return E>1&&Yr(d,h[0],h[1])?h=[]:E>2&&Yr(h[0],h[1],h[2])&&(h=[h[0]]),sP(d,Pr(h,1),[])}),Vh=fF||function(){return ut.Date.now()};function tT(d,h,E){return h=E?void 0:h,Pi(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function nT(d,h){var E;if(typeof h!="function")throw new Jo(s);return d=qt(d),function(){return--d>0&&(E=h.apply(this,arguments)),d<=1&&(h=void 0),E}}var h1=Jt(function(d,h,E){var M=1;if(E.length){var U=ns(E,Sc(h1));M|=32}return Pi(d,M,h,E,U)}),rT=Jt(function(d,h,E){var M=3;if(E.length){var U=ns(E,Sc(rT));M|=32}return Pi(h,M,d,E,U)});function oT(d,h,E){var M,U,ae,ce,ye,Re,We=0,Ve=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new Jo(s);function $t(At){var jt=M,Zt=U;return M=U=void 0,We=At,ce=d.apply(Zt,jt)}function Rt(At){return We=At,ye=Rd(st,h),Ve?$t(At):ce}function Xe(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-We>=ae}function st(){var At=Vh();if(Xe(At))return It(At);ye=Rd(st,function(jt){var Zt=h-(jt-Re);return ot?Ir(Zt,ae-(jt-We)):Zt}(At))}function It(At){return ye=void 0,Ct&&M?$t(At):(M=U=void 0,ce)}function wt(){var At=Vh(),jt=Xe(At);if(M=arguments,U=this,Re=At,jt){if(ye===void 0)return Rt(Re);if(ot)return vP(ye),ye=Rd(st,h),$t(Re)}return ye===void 0&&(ye=Rd(st,h)),ce}return h=na(h)||0,Vn(E)&&(Ve=!!E.leading,ae=(ot="maxWait"in E)?fr(na(E.maxWait)||0,h):ae,Ct="trailing"in E?!!E.trailing:Ct),wt.cancel=function(){ye!==void 0&&vP(ye),We=0,M=Re=U=ye=void 0},wt.flush=function(){return ye===void 0?ce:It(Vh())},wt}var m9=Jt(function(d,h){return KE(d,1,h)}),v9=Jt(function(d,h,E){return KE(d,na(h)||0,E)});function Uh(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Jo(s);var E=function M(){var U=arguments,ae=h?h.apply(this,U):U[0],ce=M.cache;if(ce.has(ae))return ce.get(ae);var ye=d.apply(this,U);return M.cache=ce.set(ae,ye)||ce,ye};return E.cache=new(Uh.Cache||_i),E}function Wh(d){if(typeof d!="function")throw new Jo(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)}}Uh.Cache=_i;var g9=jF(function(d,h){var E=(h=h.length==1&&Ht(h[0])?En(h[0],Po(Ot())):En(Pr(h,1),Po(Ot()))).length;return Jt(function(M){for(var U=-1,ae=Ir(M.length,E);++U=h}),fl=eP(function(){return arguments}())?eP:function(d){return Yn(d)&&yn.call(d,"callee")&&!zE.call(d,"callee")},Ht=ht.isArray,w9=So?Po(So):function(d){return Yn(d)&&Gr(d)==A};function io(d){return d!=null&&Hh(d.length)&&!Oi(d)}function nr(d){return Yn(d)&&io(d)}var cs=hF||E1,C9=Ci?Po(Ci):function(d){return Yn(d)&&Gr(d)==m};function v1(d){if(!Yn(d))return!1;var h=Gr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Dd(d)}function Oi(d){if(!Vn(d))return!1;var h=Gr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function iT(d){return typeof d=="number"&&d==qt(d)}function Hh(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Vn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Yn(d){return d!=null&&i(d)=="object"}var sT=Wa?Po(Wa):function(d){return Yn(d)&&Ar(d)==g};function lT(d){return typeof d=="number"||Yn(d)&&Gr(d)==y}function Dd(d){if(!Yn(d)||Gr(d)!=w)return!1;var h=yh(d);if(h===null)return!0;var E=yn.call(h,"constructor")&&h.constructor;return typeof E=="function"&&E instanceof E&&hh.call(E)==lF}var g1=Hr?Po(Hr):function(d){return Yn(d)&&Gr(d)==C},cT=_o?Po(_o):function(d){return Yn(d)&&Ar(d)==_};function qh(d){return typeof d=="string"||!Ht(d)&&Yn(d)&&Gr(d)==$}function ko(d){return i(d)=="symbol"||Yn(d)&&Gr(d)==P}var _c=Ha?Po(Ha):function(d){return Yn(d)&&Hh(d.length)&&!!me[Gr(d)]},$9=Nh(H0),S9=Nh(function(d,h){return d<=h});function uT(d){if(!d)return[];if(io(d))return qh(d)?wa(d):ao(d);if(bd&&d[bd])return function(E){for(var M,U=[];!(M=E.next()).done;)U.push(M.value);return U}(d[bd]());var h=Ar(d);return(h==g?D0:h==_?dh:Ec)(d)}function Ri(d){return d?(d=na(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function qt(d){var h=Ri(d),E=h%1;return h==h?E?h-E:h:0}function dT(d){return d?cl(qt(d),0,4294967295):0}function na(d){if(typeof d=="number")return d;if(ko(d))return NaN;if(Vn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Vn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(_e,"");var E=Ae.test(d);return E||Fe.test(d)?lt(d.slice(2),E?2:8):rt.test(d)?NaN:+d}function fT(d){return Ya(d,so(d))}function hn(d){return d==null?"":To(d)}var _9=Cc(function(d,h){if(Od(h)||io(h))Ya(h,$r(h),d);else for(var E in h)yn.call(h,E)&&Sd(d,E,h[E])}),pT=Cc(function(d,h){Ya(h,so(h),d)}),Gh=Cc(function(d,h,E,M){Ya(h,so(h),d,M)}),E9=Cc(function(d,h,E,M){Ya(h,$r(h),d,M)}),P9=Ti(L0),T9=Jt(function(d,h){d=Rn(d);var E=-1,M=h.length,U=M>2?h[2]:void 0;for(U&&Yr(h[0],h[1],U)&&(M=1);++E1),ae}),Ya(d,o1(d),E),M&&(E=Qo(E,7,FF));for(var U=h.length;U--;)X0(E,h[U]);return E}),A9=Ti(function(d,h){return d==null?{}:function(E,M){return lP(E,M,function(U,ae){return b1(E,ae)})}(d,h)});function mT(d,h){if(d==null)return{};var E=En(o1(d),function(M){return[M]});return h=Ot(h),lP(d,E,function(M,U){return h(M,U[0])})}var vT=OP($r),gT=OP(so);function Ec(d){return d==null?[]:R0(d,$r(d))}var N9=$c(function(d,h,E){return h=h.toLowerCase(),d+(E?yT(h):h)});function yT(d){return x1(hn(d).toLowerCase())}function bT(d){return(d=hn(d))&&d.replace(Te,eF).replace(Fn,"")}var j9=$c(function(d,h,E){return d+(E?"-":"")+h.toLowerCase()}),L9=$c(function(d,h,E){return d+(E?" ":"")+h.toLowerCase()}),F9=SP("toLowerCase"),z9=$c(function(d,h,E){return d+(E?"_":"")+h.toLowerCase()}),B9=$c(function(d,h,E){return d+(E?" ":"")+x1(h)}),V9=$c(function(d,h,E){return d+(E?" ":"")+h.toUpperCase()}),x1=SP("toUpperCase");function xT(d,h,E){return d=hn(d),(h=E?void 0:h)===void 0?function(M){return ke.test(M)}(d)?function(M){return M.match(oe)||[]}(d):function(M){return M.match(be)||[]}(d):d.match(h)||[]}var wT=Jt(function(d,h){try{return Bn(d,void 0,h)}catch(E){return v1(E)?E:new ln(E)}}),U9=Ti(function(d,h){return qr(h,function(E){E=Ka(E),Ei(d,E,h1(d[E],d))}),d});function w1(d){return function(){return d}}var W9=EP(),H9=EP(!0);function lo(d){return d}function C1(d){return nP(typeof d=="function"?d:Qo(d,1))}var q9=Jt(function(d,h){return function(E){return Ed(E,d,h)}}),G9=Jt(function(d,h){return function(E){return Ed(d,E,h)}});function $1(d,h,E){var M=$r(h),U=Th(h,M);E!=null||Vn(h)&&(U.length||!M.length)||(E=h,h=d,d=this,U=Th(h,$r(h)));var ae=!(Vn(E)&&"chain"in E&&!E.chain),ce=Oi(d);return qr(U,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__=ao(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),Ve.__chain__=We,Ve}return Re.apply(d,oo([this.value()],arguments))})}),d}function S1(){}var Y9=t1(En),K9=t1(al),X9=t1(E0);function CT(d){return l1(d)?P0(Ka(d)):function(h){return function(E){return wc(E,h)}}(d)}var J9=TP(),Z9=TP(!0);function _1(){return[]}function E1(){return!1}var Q9=Ih(function(d,h){return d+h},0),e8=n1("ceil"),t8=Ih(function(d,h){return d/h},1),n8=n1("floor"),P1,r8=Ih(function(d,h){return d*h},1),o8=n1("round"),a8=Ih(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new Jo(s);return d=qt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=tT,ee.assign=_9,ee.assignIn=pT,ee.assignInWith=Gh,ee.assignWith=E9,ee.at=P9,ee.before=nT,ee.bind=h1,ee.bindAll=U9,ee.bindKey=rT,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=ZP,ee.chunk=function(d,h,E){h=(E?Yr(d,h,E):h===void 0)?1:fr(qt(h),0);var M=d==null?0:d.length;if(!M||h<1)return[];for(var U=0,ae=0,ce=ht(wh(M/h));UWe?0:We+ye),(Re=Re===void 0||Re>We?We:qt(Re))<0&&(Re+=We),Re=ye>Re?0:dT(Re);ye>>0)?(d=hn(d))&&(typeof h=="string"||h!=null&&!g1(h))&&!(h=To(h))&&mc(d)?ls(wa(d),0,E):d.split(h,E):[]},ee.spread=function(d,h){if(typeof d!="function")throw new Jo(s);return h=h==null?0:fr(qt(h),0),Jt(function(E){var M=E[h],U=ls(E,0,h);return M&&oo(U,M),Bn(d,this,U)})},ee.tail=function(d){var h=d==null?0:d.length;return h?ea(d,1,h):[]},ee.take=function(d,h,E){return d&&d.length?ea(d,0,(h=E||h===void 0?1:qt(h))<0?0:h):[]},ee.takeRight=function(d,h,E){var M=d==null?0:d.length;return M?ea(d,(h=M-(h=E||h===void 0?1:qt(h)))<0?0:h,M):[]},ee.takeRightWhile=function(d,h){return d&&d.length?Rh(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?Rh(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,E){var M=!0,U=!0;if(typeof d!="function")throw new Jo(s);return Vn(E)&&(M="leading"in E?!!E.leading:M,U="trailing"in E?!!E.trailing:U),oT(d,h,{leading:M,maxWait:h,trailing:U})},ee.thru=zh,ee.toArray=uT,ee.toPairs=vT,ee.toPairsIn=gT,ee.toPath=function(d){return Ht(d)?En(d,Ka):ko(d)?[d]:ao(WP(hn(d)))},ee.toPlainObject=fT,ee.transform=function(d,h,E){var M=Ht(d),U=M||cs(d)||_c(d);if(h=Ot(h,4),E==null){var ae=d&&d.constructor;E=U?M?new ae:[]:Vn(d)&&Oi(ae)?xc(yh(d)):{}}return(U?qr:Ga)(d,function(ce,ye,Re){return h(E,ce,ye,Re)}),E},ee.unary=function(d){return tT(d,1)},ee.union=JF,ee.unionBy=ZF,ee.unionWith=QF,ee.uniq=function(d){return d&&d.length?is(d):[]},ee.uniqBy=function(d,h){return d&&d.length?is(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?is(d,void 0,h):[]},ee.unset=function(d,h){return d==null||X0(d,h)},ee.unzip=p1,ee.unzipWith=JP,ee.update=function(d,h,E){return d==null?d:pP(d,h,Q0(E))},ee.updateWith=function(d,h,E,M){return M=typeof M=="function"?M:void 0,d==null?d:pP(d,h,Q0(E),M)},ee.values=Ec,ee.valuesIn=function(d){return d==null?[]:R0(d,so(d))},ee.without=e9,ee.words=xT,ee.wrap=function(d,h){return m1(Q0(h),d)},ee.xor=t9,ee.xorBy=n9,ee.xorWith=r9,ee.zip=o9,ee.zipObject=function(d,h){return mP(d||[],h||[],Sd)},ee.zipObjectDeep=function(d,h){return mP(d||[],h||[],Td)},ee.zipWith=a9,ee.entries=vT,ee.entriesIn=gT,ee.extend=pT,ee.extendWith=Gh,$1(ee,ee),ee.add=Q9,ee.attempt=wT,ee.camelCase=N9,ee.capitalize=yT,ee.ceil=e8,ee.clamp=function(d,h,E){return E===void 0&&(E=h,h=void 0),E!==void 0&&(E=(E=na(E))==E?E:0),h!==void 0&&(h=(h=na(h))==h?h:0),cl(na(d),h,E)},ee.clone=function(d){return Qo(d,4)},ee.cloneDeep=function(d){return Qo(d,5)},ee.cloneDeepWith=function(d,h){return Qo(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return Qo(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||YE(d,h,$r(h))},ee.deburr=bT,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=t8,ee.endsWith=function(d,h,E){d=hn(d),h=To(h);var M=d.length,U=E=E===void 0?M:cl(qt(E),0,M);return(E-=h.length)>=0&&d.slice(E,U)==h},ee.eq=$a,ee.escape=function(d){return(d=hn(d))&&N.test(d)?d.replace(K,tF):d},ee.escapeRegExp=function(d){return(d=hn(d))&&he.test(d)?d.replace(ge,"\\$&"):d},ee.every=function(d,h,E){var M=Ht(d)?al:TF;return E&&Yr(d,h,E)&&(h=void 0),M(d,Ot(h,3))},ee.find=l9,ee.findIndex=qP,ee.findKey=function(d,h){return OE(d,Ot(h,3),Ga)},ee.findLast=c9,ee.findLastIndex=GP,ee.findLastKey=function(d,h){return OE(d,Ot(h,3),z0)},ee.floor=n8,ee.forEach=QP,ee.forEachRight=eT,ee.forIn=function(d,h){return d==null?d:F0(d,Ot(h,3),so)},ee.forInRight=function(d,h){return d==null?d:ZE(d,Ot(h,3),so)},ee.forOwn=function(d,h){return d&&Ga(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&z0(d,Ot(h,3))},ee.get=y1,ee.gt=b9,ee.gte=x9,ee.has=function(d,h){return d!=null&&AP(d,h,kF)},ee.hasIn=b1,ee.head=KP,ee.identity=lo,ee.includes=function(d,h,E,M){d=io(d)?d:Ec(d),E=E&&!M?qt(E):0;var U=d.length;return E<0&&(E=fr(U+E,0)),qh(d)?E<=U&&d.indexOf(h,E)>-1:!!U&&hc(d,h,E)>-1},ee.indexOf=function(d,h,E){var M=d==null?0:d.length;if(!M)return-1;var U=E==null?0:qt(E);return U<0&&(U=fr(M+U,0)),hc(d,h,U)},ee.inRange=function(d,h,E){return h=Ri(h),E===void 0?(E=h,h=0):E=Ri(E),function(M,U,ae){return M>=Ir(U,ae)&&M=-9007199254740991&&d<=9007199254740991},ee.isSet=cT,ee.isString=qh,ee.isSymbol=ko,ee.isTypedArray=_c,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Yn(d)&&Ar(d)==k},ee.isWeakSet=function(d){return Yn(d)&&Gr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":mF.call(d,h)},ee.kebabCase=j9,ee.last=ta,ee.lastIndexOf=function(d,h,E){var M=d==null?0:d.length;if(!M)return-1;var U=M;return E!==void 0&&(U=(U=qt(E))<0?fr(M+U,0):Ir(U,M-1)),h==h?function(ae,ce,ye){for(var Re=ye+1;Re--;)if(ae[Re]===ce)return Re;return Re}(d,h,U):uh(d,RE,U,!0)},ee.lowerCase=L9,ee.lowerFirst=F9,ee.lt=$9,ee.lte=S9,ee.max=function(d){return d&&d.length?Ph(d,lo,B0):void 0},ee.maxBy=function(d,h){return d&&d.length?Ph(d,Ot(h,2),B0):void 0},ee.mean=function(d){return DE(d,lo)},ee.meanBy=function(d,h){return DE(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Ph(d,lo,H0):void 0},ee.minBy=function(d,h){return d&&d.length?Ph(d,Ot(h,2),H0):void 0},ee.stubArray=_1,ee.stubFalse=E1,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=r8,ee.nth=function(d,h){return d&&d.length?iP(d,qt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=cF),this},ee.noop=S1,ee.now=Vh,ee.pad=function(d,h,E){d=hn(d);var M=(h=qt(h))?vc(d):0;if(!h||M>=h)return d;var U=(h-M)/2;return Ah(Ch(U),E)+d+Ah(wh(U),E)},ee.padEnd=function(d,h,E){d=hn(d);var M=(h=qt(h))?vc(d):0;return h&&Mh){var M=d;d=h,h=M}if(E||d%1||h%1){var U=UE();return Ir(d+U*(h-d+nt("1e-"+((U+"").length-1))),h)}return G0(d,h)},ee.reduce=function(d,h,E){var M=Ht(d)?_0:ME,U=arguments.length<3;return M(d,Ot(h,4),E,U,as)},ee.reduceRight=function(d,h,E){var M=Ht(d)?X6:ME,U=arguments.length<3;return M(d,Ot(h,4),E,U,XE)},ee.repeat=function(d,h,E){return h=(E?Yr(d,h,E):h===void 0)?1:qt(h),Y0(hn(d),h)},ee.replace=function(){var d=arguments,h=hn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,E){var M=-1,U=(h=ss(h,d)).length;for(U||(U=1,d=void 0);++M9007199254740991)return[];var E=4294967295,M=Ir(d,4294967295);d-=4294967295;for(var U=O0(M,h=Ot(h));++E=ae)return d;var ye=E-vc(M);if(ye<1)return M;var Re=ce?ls(ce,0,ye).join(""):d.slice(0,ye);if(U===void 0)return Re+M;if(ce&&(ye+=Re.length-ye),g1(U)){if(d.slice(ye).search(U)){var We,Ve=Re;for(U.global||(U=M0(U.source,hn(Ge.exec(U))+"g")),U.lastIndex=0;We=U.exec(Ve);)var ot=We.index;Re=Re.slice(0,ot===void 0?ye:ot)}}else if(d.indexOf(To(U),ye)!=ye){var Ct=Re.lastIndexOf(U);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+M},ee.unescape=function(d){return(d=hn(d))&&R.test(d)?d.replace(Y,oF):d},ee.uniqueId=function(d){var h=++sF;return hn(d)+h},ee.upperCase=V9,ee.upperFirst=x1,ee.each=QP,ee.eachRight=eT,ee.first=KP,$1(ee,(P1={},Ga(ee,function(d,h){yn.call(ee.prototype,h)||(P1[h]=d)}),P1),{chain:!1}),ee.VERSION="4.17.15",qr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),qr(["drop","take"],function(d,h){rn.prototype[d]=function(E){E=E===void 0?1:fr(qt(E),0);var M=this.__filtered__&&!h?new rn(this):this.clone();return M.__filtered__?M.__takeCount__=Ir(E,M.__takeCount__):M.__views__.push({size:Ir(E,4294967295),type:d+(M.__dir__<0?"Right":"")}),M},rn.prototype[d+"Right"]=function(E){return this.reverse()[d](E).reverse()}}),qr(["filter","map","takeWhile"],function(d,h){var E=h+1,M=E==1||E==3;rn.prototype[d]=function(U){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(U,3),type:E}),ae.__filtered__=ae.__filtered__||M,ae}}),qr(["head","last"],function(d,h){var E="take"+(h?"Right":"");rn.prototype[d]=function(){return this[E](1).value()[0]}}),qr(["initial","tail"],function(d,h){var E="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[E](1)}}),rn.prototype.compact=function(){return this.filter(lo)},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(E){return Ed(E,d,h)})}),rn.prototype.reject=function(d){return this.filter(Wh(Ot(d)))},rn.prototype.slice=function(d,h){d=qt(d);var E=this;return E.__filtered__&&(d>0||h<0)?new rn(E):(d<0?E=E.takeRight(-d):d&&(E=E.drop(d)),h!==void 0&&(E=(h=qt(h))<0?E.dropRight(-h):E.take(h-d)),E)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},Ga(rn.prototype,function(d,h){var E=/^(?:filter|find|map|reject)|While$/.test(h),M=/^(?:head|last)$/.test(h),U=ee[M?"take"+(h=="last"?"Right":""):h],ae=M||/^find/.test(h);U&&(ee.prototype[h]=function(){var ce=this.__wrapped__,ye=M?[1]:arguments,Re=ce instanceof rn,We=ye[0],Ve=Re||Ht(ce),ot=function(It){var wt=U.apply(ee,oo([It],ye));return M&&Ct?wt[0]:wt};Ve&&E&&typeof We=="function"&&We.length!=1&&(Re=Ve=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Xe=Re&&!$t;if(!ae&&Ve){ce=Xe?ce:new rn(this);var st=d.apply(ce,ye);return st.__actions__.push({func:zh,args:[ot],thisArg:void 0}),new Zo(st,Ct)}return Rt&&Xe?d.apply(this,ye):(st=this.thru(ot),Rt?M?st.value()[0]:st.value():st)})}),qr(["pop","push","shift","sort","splice","unshift"],function(d){var h=fh[d],E=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",M=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var U=arguments;if(M&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],U)}return this[E](function(ce){return h.apply(Ht(ce)?ce:[],U)})}}),Ga(rn.prototype,function(d,h){var E=ee[h];if(E){var M=E.name+"";yn.call(bc,M)||(bc[M]=[]),bc[M].push({name:h,func:E})}}),bc[Mh(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=ao(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=ao(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=ao(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__,E=Ht(d),M=h<0,U=E?d.length:0,ae=function(Zt,Pt,Dt){for(var pr=-1,Kr=Dt.length;++pr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,E=this;E instanceof _h;){var M=HP(E);M.__index__=0,M.__values__=void 0,h?U.__wrapped__=M:h=M;var U=M;E=E.__wrapped__}return U.__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:zh,args:[f1],thisArg:void 0}),new Zo(h,this.__chain__)}return this.thru(f1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return hP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,bd&&(ee.prototype[bd]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=rs,(a=(function(){return rs}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=rs)._=rs,yt._=rs):ut._=rs}).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),P=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 A(D,F,H,q,z,B){var G,Q=1&F,W=2&F,J=4&F;if(H&&(G=z?H(D,q,z,B):H(D)),G!==void 0)return G;if(!_(D))return D;var Z=y(D);if(Z){if(G=v(D),!Q)return c(D,G)}else{var L=b(D),Y=L=="[object Function]"||L=="[object GeneratorFunction]";if(w(D))return l(D,Q);if(L=="[object Object]"||L=="[object Arguments]"||Y&&!z){if(G=W||Y?{}:g(D),!Q)return W?f(D,s(G,D)):u(D,i(G,D))}else{if(!k[L])return z?D:{};G=x(D,L,Q)}}B||(B=new r);var K=B.get(D);if(K)return K;B.set(D,G),$(D)?D.forEach(function(V){G.add(A(V,F,H,V,D,B))}):C(D)&&D.forEach(function(V,X){G.set(X,A(V,F,H,X,D,B))});var R=J?W?m:p:W?keysIn:P,N=Z?void 0:R(D);return o(N||D,function(V,X){N&&(V=D[X=V]),a(G,X,A(V,F,H,X,D,B))}),G}},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 P in $)b(C,_+"["+P+"]",$[P]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent($));else $===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,$,P={},k=C.split("&"),A=0,D=k.length;A=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var H;try{H=_.status}catch{H=0}if(!H)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var P=function(F,H){H.total>0&&(H.percent=H.loaded/H.total*100),H.direction=F,C.emit("progress",H)};if(this.hasListeners("progress"))try{_.onprogress=P.bind(null,"download"),_.upload&&(_.upload.onprogress=P.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"],A=this._serializer||f.serialize[k?k.split(";")[0]:""];!A&&x(k)&&(A=f.serialize["application/json"]),A&&($=A($))}for(var D in this.header)this.header[D]!=null&&this.header.hasOwnProperty(D)&&_.setRequestHeader(D,this.header[D]);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 P=new f.Request(C,_);return this._setDefaults(P),$&&P.end($),P}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,$){var P=f("GET",C);return typeof _=="function"&&($=_,_=null),_&&P.query(_),$&&P.end($),P},f.head=function(C,_,$){var P=f("HEAD",C);return typeof _=="function"&&($=_,_=null),_&&P.query(_),$&&P.end($),P},f.options=function(C,_,$){var P=f("OPTIONS",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P},f.del=w,f.delete=w,f.patch=function(C,_,$){var P=f("PATCH",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P},f.post=function(C,_,$){var P=f("POST",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P},f.put=function(C,_,$){var P=f("PUT",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P}},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),Je=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),sn=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),gn=u(u(u(vt+"\\:")+"{0,5}"+vt)+"?\\:\\:"+vt),Fn=u(u(u(vt+"\\:")+"{0,6}"+vt)+"?\\:\\:"),se=u([Et,Yt,kt,sn,Vt,Ut,Kt,gn,Fn].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("[\\/\\?]",Je))+"*"),{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,"[\\:\\@\\/\\?]",Je),"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=[],Je=!0,tt=!1,ft=void 0;try{for(var _t,vt=ie[Symbol.iterator]();!(Je=(_t=vt.next()).done)&&(Se.push(_t.value),!$e||Se.length!==$e);Je=!0);}catch(dt){tt=!0,ft=dt}finally{try{!Je&&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,P=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function A(ne,te){var ie=ne.split("@"),$e="";ie.length>1&&($e=ie[0]+"@",ne=ie[1]);var Se=function(Je,tt){for(var ft=[],_t=Je.length;_t--;)ft[_t]=tt(Je[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return $e+Se}function D(ne){for(var te=[],ie=0,$e=ne.length;ie<$e;){var Se=ne.charCodeAt(ie++);if(Se>=55296&&Se<=56319&&ie<$e){var Je=ne.charCodeAt(ie++);(64512&Je)==56320?te.push(((1023&Se)<<10)+(1023&Je)+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)},H=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))},q=function(ne){var te,ie=[],$e=ne.length,Se=0,Je=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 sn=Yt<=tt?1:Yt>=tt+26?26:Yt-tt;if(kt$(g/Vt)&&k("overflow"),Et*=Vt}var Ut=ie.length+1;tt=H(Se-dt,Ut,dt==0),$(Se/Ut)>g-Je&&k("overflow"),Je+=$(Se/Ut),Se%=Ut,ie.splice(Se++,0,Je)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=D(ne)).length,$e=128,Se=0,Je=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(P(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+=(sn-$e)*oe,$e=sn;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<=Je?1:nt>=Je+26?26:nt-Je;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 Je=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&Se)<<6|63&Je)}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 Z(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,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 L(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function Y(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],$e=x(ie,2)[1];return $e?$e.split(".").map(L).join("."):ne}function K(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],$e=x(ie,3),Se=$e[1],Je=$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,sn=Et.length-kt,Vt=Array(kt),Ut=0;Ut1){var Fn=Vt.slice(0,Kt.index),se=Vt.slice(Kt.index+Kt.length);gn=Fn.join(":")+"::"+se.join(":")}else gn=Vt.join(":");return Je&&(gn+="%"+Je),gn}return ne}var R=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\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(R);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=K(Y(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 Je=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Je&&Je.unicodeSupport)Z(ie,$e);else{if(ie.host&&(te.domainHost||Je&&Je.domainHost))try{ie.host=B(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}Z(ie,b)}Je&&Je.parse&&Je.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function X(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(K(Y(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(Se,Je,tt){return"["+Je+(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?G(ne.host):B(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}}Z(ne,ie),te.reference!=="suffix"&&ne.scheme&&($e.push(ne.scheme),$e.push(":"));var Je=X(ne,te);if(Je!==void 0&&(te.reference!=="suffix"&&$e.push("//"),$e.push(Je),ne.path&&ne.path.charAt(0)!=="/"&&$e.push("/")),ne.path!==void 0){var tt=ne.path;te.absolutePath||Se&&Se.absolutePath||(tt=ge(tt)),Je===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]",'[\\"\\\\]'),Ge=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(Ge)?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,Je={},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 V5e(){const[e,t]=S.useState({config:null,input:null});return S.useEffect(()=>{async function n(){t({config:window.CONFIG_SCHEMA?await nM(window.CONFIG_SCHEMA):null,input:window.INPUT_SCHEMA?await nM(window.INPUT_SCHEMA):null})}n()},[]),e}/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2022 Joachim Wester + * MIT licensed + */var U5e=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)}}(),W5e=Object.prototype.hasOwnProperty;function Qw(e,t){return W5e.call(e,t)}function eC(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 $l(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function U6(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function nC(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&&!tC(m))throw new Jn("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);tC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new Jn("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=q5e[t.op].call(t,c,m,e);if(i.test===!1)throw new Jn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=cu[t.op].call(t,c,m,e);if(i.test===!1)throw new Jn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new Jn('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 Jn("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 Jn("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")&&nC(e.value))throw new Jn("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 Jn("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 Jn("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=H6([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Jn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Jn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function H6(e,t,n){try{if(!Array.isArray(e))throw new Jn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)S0(jo(t),jo(e),n||!0);else{n=n||_g;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function kE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=eC(t),i=eC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(Qw(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)?kE(u,f,n,r+"/"+$l(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+$l(c),value:jo(u)}),n.push({op:"replace",path:r+"/"+$l(c),value:jo(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+$l(c),value:jo(u)}),n.push({op:"remove",path:r+"/"+$l(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 sLe(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function oM(){return{data:"",event:"",id:"",retry:void 0}}var lLe=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=oC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=cLe,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??dLe;async function _(){var $;b=new AbortController;try{const P=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(P),await oLe(P.body,aLe(iLe(k=>{k?m[aM]=k:delete m[aM]},k=>{x=k},a))),i==null||i(),y(),f()}catch(P){if(!b.signal.aborted)try{const k=($=s==null?void 0:s(P))!==null&&$!==void 0?$:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function dLe(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(oC)))throw new Error(`Expected content-type to be ${oC}, Actual: ${t}`)}function fLe(e,t){return S0(e,t,!0,!1).newDocument}function pLe(){const[e,t]=S.useReducer(fLe,null),[n,r]=S.useState(null),o=S.useCallback(async(i,s)=>{const l=new AbortController;r(l),await uLe(z5e("/stream_log").toString(),{signal:l.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:i,config:s}),onmessage(c){var u;c.event==="data"&&t((u=JSON.parse(c.data))==null?void 0:u.ops)},onclose(){r(null)},onerror(c){throw r(null),c}})},[]),a=S.useCallback(()=>{n==null||n.abort(),r(null)},[n]);return{startStream:o,stopStream:n?a:void 0,latest:e}}const hLe=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"})),mLe=de(hd)({borderBottom:"none",color:"white",fill:"white",padding:0}),Sp=({children:e,...t})=>O.jsx(mLe,{...t,children:e}),vLe=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"})),gLe=de(M5)(({theme:e})=>({color:e.palette.error.main})),yLe=({errorMessages:e,id:t})=>O.jsx(sc,{id:t,title:e,children:O.jsx(gLe,{badgeContent:e.split(` +`).length,children:O.jsx(Z_,{color:"inherit"})})}),bLe={paddingLeft:0,paddingRight:0},xLe=I.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(tl,{children:[O.jsx(Sp,{colSpan:t,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(yLe,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(Sp,{align:"right",style:bLe,children:O.jsx(sc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(Qn,{"aria-label":l.addAriaLabel,onClick:a(o,Gi(i)),size:"large",sx:{p:1},children:O.jsx(vLe,{className:"text-ls-black"})})})}):null]})}),iM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},q6=(e,t,n,r,o)=>{if(t.type==="object")return G6(t).map(a=>{var l,c;const i=zs.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??Qg(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)}},G6=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"}):[""],wLe=({numColumns:e,translations:t})=>O.jsx(tl,{children:O.jsx(Sp,{colSpan:e,children:O.jsx(mn,{align:"center",children:t.noDataMessage})})}),CLe=I.memo(function({title:t}){return O.jsx(hd,{sx:{color:"var(--ls-black)"},children:t})}),$Le=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=IS(uL(bS(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}},sM=e=>({type:"Control",scope:e,label:!1}),SLe=I.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(Sp,{children:[r.properties?O.jsx(Gl,{schema:bo.schema(r,`#/properties/${Hl(n)}`,o),uischema:sM(`#/properties/${Hl(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(Gl,{schema:r,uischema:sM("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(cr,{error:!c,children:!c&&a})]})}),_Le=e=>{const t=ic(),n=$Le(t,e),r=Mt(n.errors);return O.jsx(SLe,{...n,isValid:r})},ELe=({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(tl,{hover:!0,children:[q6(_Le,t,e,c,u),c?O.jsx(Sp,{style:l?iM.fixedCell:iM.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(Qn,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(m0,{})})}),O.jsx(en,{item:!0,children:O.jsx(Qn,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(h0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(Qn,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",children:O.jsx(hLe,{className:"text-ls-black"})})})]})}):null]},e)},PLe=I.memo(ELe),TLe=({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(wLe,{numColumns:G6(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(I.Fragment,{children:ad(e).map(m=>{const b=zs.compose(t,`${m}`);return O.jsx(PLe,{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 kLe extends I.Component{constructor(){super(...arguments);_T(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.type==="object",v=b?q6(CLe,o,r,u,f):void 0;return O.jsx(_n,{xsUp:!c,children:O.jsxs(sL,{children:[O.jsxs(cL,{children:[O.jsx(xLe,{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(tl,{children:[v,u?O.jsx(hd,{}):null]})]}),O.jsx(lL,{children:O.jsx(TLe,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const OLe=I.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(i0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(F_,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(l0,{children:O.jsx(L_,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(s0,{children:[O.jsx(No,{onClick:o,color:"primary",children:l}),O.jsx(No,{onClick:r,color:"primary",children:s})]})]})}),RLe=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(_n,{xsUp:!l,children:[O.jsx(kLe,{...e,openDeleteDialog:c}),O.jsx(OLe,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},DLe=Cn(999,oc(ES,Gj,PS)),Y6=py(RLe),MLe=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("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,style:{width:"100%",fontSize:"18px"},id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},lM=ur(Ua(MLe));function ILe(e){try{return JSON.parse(e)}catch{return e}}function ALe(e){try{return JSON.stringify(e)}catch{return e}}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 O.jsx("textarea",{value:typeof t=="object"?ALe(t):t??"",onChange:u=>l(s,u.target.value===""?void 0:ILe(u.target.value)),className:n,style:{width:"100%",fontSize:"18px"},id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},jLe=ur(Ua(NLe));vr.extend(Uje);vr.extend(Bje);const hx=2e3;function K6(e){return typeof e=="object"?JSON.stringify(e,null,2):e}const LLe=Cn(2,On(wn("Control"),za("object"),Bo(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),FLe=Cn(1,On(wn("Control"),za("object"))),zLe=Cn(1,On(wn("Control"))),cM=[...F5e,{tester:LLe,renderer:V3e},{tester:c3e,renderer:u3e},{tester:f3e,renderer:p3e},{tester:W3e,renderer:H3e},{tester:DLe,renderer:Y6},{tester:FLe,renderer:F6}],BLe=Cn(1,(e,t)=>t.type==="array"),uM=[{tester:w4e,cell:C4e},{tester:S4e,cell:_4e},{tester:P4e,cell:T4e},{tester:O4e,cell:R4e},{tester:I4e,cell:A4e},{tester:L4e,cell:F4e},{tester:V4e,cell:U4e},{tester:G4e,cell:lM},{tester:H4e,cell:lM},{tester:X4e,cell:J4e},{tester:BLe,cell:Y6},{tester:zLe,cell:jLe}];function VLe(e){const[t,n]=S.useState(!1);return O.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[O.jsx("button",{className:"font-medium text-left p-4",onClick:()=>n(r=>!r),children:"Intermediate steps"}),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(r=>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:r.name}),O.jsx("p",{className:"text-sm",children:vr.utc(r.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:K6(r.final_output)??"..."})]},r.id))})]})}function aC(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($E.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function mx(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(Hje,{}):O.jsx(Wje,{})})}function ULe(e){const t=S.useMemo(()=>$E.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${aC(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(Ud.Root,{children:[O.jsx(Ud.Trigger,{asChild:!0,children:e.children}),O.jsxs(Ud.Portal,{children:[O.jsx(Ud.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(Ud.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.lengthwindow.self!==window.top),t=S.useRef(null),[n,r]=S.useState({data:{},errors:[]}),[o,a]=S.useState({data:{},errors:[]}),i=V5e();S.useEffect(()=>{if(i.config){const x=aC(window.location.href);r({data:x.configFromUrl??t.current??VV(i.config),errors:[]}),a({data:{},errors:[]})}},[i.config]);const{startStream:s,stopStream:l,latest:c}=pLe();return S.useEffect(()=>{var x;(x=window.parent)==null||x.postMessage({type:"init"},"*")},[]),S.useEffect(()=>{function x(g){if(g.source===window.parent){const y=g.data;if(typeof y=="object"&&y!=null)switch(y.type){case"update":{const w=y.value;if(Object.keys(w.config).length>0){t.current=w.config,r({data:w.config,errors:[]});break}}}}}return window.addEventListener("message",x),()=>window.removeEventListener("message",x)},[]),i.config&&i.input?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.jsxs("div",{className:"flex flex-col gap-3",children:[!e&&O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsx(nR,{schema:i.config,data:n.data,renderers:cM,cells:uM,onChange:({data:x,errors:g})=>x?r({data:x,errors:g}):void 0}),!!((u=n.errors)!=null&&u.length)&&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:(f=n.errors)==null?void 0:f.map((x,g)=>O.jsx("li",{children:x.message},g))})]})]}),!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.jsx("h3",{className:"font-medium",children:"Inputs"}),O.jsx(nR,{schema:i.input,data:o.data,renderers:cM,cells:uM,onChange:({data:x,errors:g})=>a({data:x,errors:g})}),!!((p=o.errors)!=null&&p.length)&&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:(m=o.errors)==null?void 0:m.map((x,g)=>O.jsx("li",{children:x.message},g))})]})]}),c&&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",children:c.streamed_output.map(K6).join("")||"..."}),O.jsx(VLe,{latest:c})]})]}),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 x;return(x=window.parent)==null?void 0:x.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 w;const x=$E.compressToEncodedURIComponent(JSON.stringify(n.data)),y=`${aC(window.location.href).basePath}/c/${x}`;(w=window.parent)==null||w.postMessage({type:"apply",value:{targetUrl:y,config:n.data}},"*")},children:O.jsx("span",{className:"text-white",children:"Apply"})})]}):O.jsxs(O.Fragment,{children:[O.jsx(ULe,{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(Gje,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),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:()=>{l?l():s(o.data,n.data)},disabled:!l&&(!!((b=o.errors)!=null&&b.length)||!!((v=n.errors)!=null&&v.length)),children:l?O.jsx("span",{className:"text-white",children:"Stop"}):O.jsxs(O.Fragment,{children:[O.jsx(qje,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})]})]})]})}):null}vx.createRoot(document.getElementById("root")).render(O.jsx(WLe,{})); diff --git a/langserve/playground/dist/assets/index-d51d2c09.css b/langserve/playground/dist/assets/index-d51d2c09.css new file mode 100644 index 00000000..32541392 --- /dev/null +++ b/langserve/playground/dist/assets/index-d51d2c09.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}}.\!pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.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}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-5{height:1.25rem}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-full{width:100%}.min-w-0{min-width:0px}.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}.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))}.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-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}.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-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.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-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-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)}.p-3{padding:.75rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.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-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}.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}.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}@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))}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}} diff --git a/langserve/playground/dist/favicon.ico b/langserve/playground/dist/favicon.ico new file mode 100644 index 00000000..bb99b584 Binary files /dev/null and b/langserve/playground/dist/favicon.ico differ diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html new file mode 100644 index 00000000..5ac50ec4 --- /dev/null +++ b/langserve/playground/dist/index.html @@ -0,0 +1,23 @@ + + + + + + + Playground + + + + +
+ + + + diff --git a/langserve/playground/index.html b/langserve/playground/index.html new file mode 100644 index 00000000..1f519c3a --- /dev/null +++ b/langserve/playground/index.html @@ -0,0 +1,21 @@ + + + + + + + Playground + + +
+ + + + diff --git a/langserve/playground/package.json b/langserve/playground/package.json new file mode 100644 index 00000000..95e98da1 --- /dev/null +++ b/langserve/playground/package.json @@ -0,0 +1,49 @@ +{ + "name": "langserve-playground", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "@emotion/react": "^11.11.1", + "@emotion/styled": "^11.11.0", + "@jsonforms/core": "^3.1.0", + "@jsonforms/material-renderers": "^3.1.0", + "@jsonforms/react": "^3.1.0", + "@jsonforms/vanilla-renderers": "^3.1.0", + "@microsoft/fetch-event-source": "^2.0.1", + "@mui/icons-material": "^5.14.11", + "@mui/material": "^5.14.11", + "@mui/x-date-pickers": "^6.16.0", + "dayjs": "^1.11.10", + "fast-json-patch": "^3.1.1", + "json-schema-defaults": "^0.4.0", + "lodash": "^4.17.21", + "lz-string": "^1.5.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "vaul": "^0.7.3" + }, + "devDependencies": { + "@types/lodash": "^4.14.200", + "@types/react": "^18.2.15", + "@types/react-dom": "^18.2.7", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "@vitejs/plugin-react": "^4.0.3", + "autoprefixer": "^10.4.16", + "eslint": "^8.45.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.3", + "postcss": "^8.4.31", + "tailwindcss": "^3.3.3", + "typescript": "^5.0.2", + "vite": "^4.4.5", + "vite-plugin-svgr": "^4.1.0" + } +} diff --git a/langserve/playground/postcss.config.js b/langserve/playground/postcss.config.js new file mode 100644 index 00000000..2aa7205d --- /dev/null +++ b/langserve/playground/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/langserve/playground/public/favicon.ico b/langserve/playground/public/favicon.ico new file mode 100644 index 00000000..bb99b584 Binary files /dev/null and b/langserve/playground/public/favicon.ico differ diff --git a/langserve/playground/src/App.css b/langserve/playground/src/App.css new file mode 100644 index 00000000..5cf4d1ed --- /dev/null +++ b/langserve/playground/src/App.css @@ -0,0 +1,90 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + input, + textarea, + select { + background: transparent; + } + + /* clash between MUI and Tailwind */ + 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%; /* slate-100 */ + --divider-700: 214.3 31.8% 91.4%; /* slate-200 */ + + --ls-blue: 211.5 91.8% 61.8%; + --ls-black: 222.2 47.4% 11.2%; /* slate-900 */ + --ls-gray-100: 215.4 16.3% 46.9%; /* slate-500 */ + --ls-gray-200: 212.7 26.8% 83.9%; /* slate-300 */ + --ls-gray-300: 214.3 31.8% 91.4%; /* slate-200 */ + --ls-gray-400: 210 40% 96.1%; /* slate-100 */ + } + + @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%; /* slate-800 */ + --divider-700: 215.3 25% 26.7%; /* slate-700 */ + + --ls-blue: 211.5 91.8% 61.8%; + --ls-black: 0 0% 100%; /* white */ + --ls-gray-100: 215 20.2% 65.1%; /* slate-400 */ + --ls-gray-200: 215.4 16.3% 46.9%; /* slate-500 */ + --ls-gray-300: 215.3 25% 26.7%; /* slate-700 */ + --ls-gray-400: 217.2 32.6% 17.5%; /* slate-800 */ + } + } +} + +.control { + @apply flex flex-col border border-divider-700 rounded-lg p-3 gap-1 relative bg-background transition-all outline-ls-blue/20; + @apply focus-within:border-ls-blue focus-within:outline focus-within:outline-4 focus-within:outline-ls-blue/20; +} + +.control > label, +.control h6 { + @apply text-xs uppercase font-semibold text-ls-gray-100; +} + +.control div .MuiGrid-item { + @apply pt-0; +} + +.control > select { + @apply -ml-1; +} + +.control > .input-description, +.control > .validation { + @apply absolute right-3 top-3 text-xs; +} + +.group-layout { + @apply flex flex-col gap-4 bg-background p-4 border border-divider-700 rounded-lg; +} + +.no-scrollbar { + scrollbar-width: none; +} + +.no-scrollbar::-webkit-scrollbar { + display: none; +} + +.vertical-layout { + @apply flex flex-col gap-4; +} diff --git a/langserve/playground/src/App.tsx b/langserve/playground/src/App.tsx new file mode 100644 index 00000000..ac0acfca --- /dev/null +++ b/langserve/playground/src/App.tsx @@ -0,0 +1,522 @@ +import "./App.css"; +import { Drawer } from "vaul"; + +import React, { ReactNode, useEffect, useMemo, useRef, useState } from "react"; +import defaults from "json-schema-defaults"; +import { JsonForms } from "@jsonforms/react"; +import { + materialAllOfControlTester, + MaterialAllOfRenderer, + materialAnyOfControlTester, + MaterialAnyOfRenderer, + MaterialObjectRenderer, + materialOneOfControlTester, + MaterialOneOfRenderer, +} from "@jsonforms/material-renderers"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; +import relativeDate from "dayjs/plugin/relativeTime"; +import CopyIcon from "./assets/CopyIcon.svg?react"; +import CheckCircleIcon from "./assets/CheckCircleIcon.svg?react"; +import SendIcon from "./assets/SendIcon.svg?react"; +import ShareIcon from "./assets/ShareIcon.svg?react"; +import CodeIcon from "./assets/CodeIcon.svg?react"; +import PadlockIcon from "./assets/PadlockIcon.svg?react"; +import { + compressToEncodedURIComponent, + decompressFromEncodedURIComponent, +} 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 { RunState, useStreamLog } from "./useStreamLog"; +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"; + +dayjs.extend(relativeDate); +dayjs.extend(utc); + +const URL_LENGTH_LIMIT = 2000; + +function str(o: unknown): React.ReactNode { + return typeof o === "object" + ? JSON.stringify(o, null, 2) + : (o as React.ReactNode); +} + +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"))); + +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: materialAnyOfControlTester, renderer: MaterialAnyOfRenderer }, + { tester: materialOneOfControlTester, renderer: MaterialOneOfRenderer }, + + // custom renderers + { tester: materialArrayControlTester, renderer: CustomArrayControlRenderer }, + { tester: isObject, renderer: InputControl }, +]; + +const nestedArrayControlTester: RankedTester = rankWith(1, (_, jsonSchema) => { + return jsonSchema.type === "array"; +}); + +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 IntermediateSteps(props: { latest: RunState }) { + const [expanded, setExpanded] = useState(false); + return ( +
+ + {expanded && ( +
+ {Object.values(props.latest.logs).map((log) => ( +
+
+ {log.name} +

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

+
+
+                {str(log.final_output) ?? "..."}
+              
+
+ ))} +
+ )} +
+ ); +} + +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); + + function toggleCopied() { + setCopied(true); + + if (cbRef.current != null) window.clearTimeout(cbRef.current); + cbRef.current = window.setTimeout(() => setCopied(false), 1500); + } + + useEffect(() => { + return () => { + if (cbRef.current != null) { + window.clearTimeout(cbRef.current); + } + }; + }, []); + + return ( + + ); +} + +function ShareDialog(props: { config: unknown; children: ReactNode }) { + const hash = useMemo(() => { + return compressToEncodedURIComponent(JSON.stringify(props.config)); + }, [props.config]); + + const state = getStateFromUrl(window.location.href); + + // get base URL + const targetUrl = `${state.basePath}/c/${hash}`; + + // .../c/[hash]/playground + const playgroundUrl = `${targetUrl}/playground`; + + // cURL, JS: .../c/[hash]/invoke + // Python: .../c/[hash] + const invokeUrl = `${targetUrl}/invoke`; + + const pythonSnippet = ` +from langserve import RemoteRunnable + +chain = RemoteRunnable("${targetUrl}") +chain.invoke({ ... }) +`; + + const typescriptSnippet = ` +import { RemoteRunnable } from "langchain/runnables/remote"; + +const chain = new RemoteRunnable({ url: \`${invokeUrl}\` }); +const result = await chain.invoke({ ... }); +`; + + return ( + + {props.children} + + + +
+

Share

+ +
+ +
+ {playgroundUrl.length < URL_LENGTH_LIMIT && ( +
+
+
+ 🦜 +
+ Playground +
+
+ +
+ {playgroundUrl.split("://")[1]} + PadlockIcon +
+ +
+
+ )} + +
+
+
+ +
+ Get the code +
+ + {targetUrl.length < URL_LENGTH_LIMIT && ( +
+
+ Python SDK +
+ +
+ )} + + {invokeUrl.length < URL_LENGTH_LIMIT && ( +
+
+ TypeScript SDK +
+ + +
+ )} +
+
+
+
+
+
+ ); +} + +function App() { + const [isIframe] = useState(() => window.self !== window.top); + + // 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); + + // store form state + const [configData, setConfigData] = useState< + Pick + >({ data: {}, errors: [] }); + + const [inputData, setInputData] = useState< + Pick + >({ data: {}, errors: [] }); + // fetch input and config schemas from the server + const schemas = useSchemas(); + // 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: [], + }); + setInputData({ data: {}, errors: [] }); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [schemas.config]); + // the runner + const { startStream, stopStream, latest } = useStreamLog(); + + 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: [] }); + break; + } + } + } + } + } + } + + window.addEventListener("message", listener); + return () => window.removeEventListener("message", listener); + }, []); + + return schemas.config && schemas.input ? ( +
+
+

+ 🦜 LangServe Playground +

+
+ {!isIframe &&

Configure

} + + + data ? setConfigData({ data, errors }) : undefined + } + /> + {!!configData.errors?.length && ( +
+ Validation Errors +
    + {configData.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+ )} +
+ + {!isIframe && ( +
+

Try it

+ +
+

Inputs

+ + setInputData({ data, errors })} + /> + {!!inputData.errors?.length && ( +
+ Validation Errors +
    + {inputData.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+ )} +
+ + {latest && ( +
+

Output

+
+ {latest.streamed_output.map(str).join("") || "..."} +
+ +
+ )} +
+ )} + +
+ +
+
+ + {isIframe ? ( + <> + + + + ) : ( + <> + + + + + + )} +
+
+
+ ) : null; +} + +export default App; diff --git a/langserve/playground/src/assets/CheckCircleIcon.svg b/langserve/playground/src/assets/CheckCircleIcon.svg new file mode 100644 index 00000000..d4060799 --- /dev/null +++ b/langserve/playground/src/assets/CheckCircleIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/CodeIcon.svg b/langserve/playground/src/assets/CodeIcon.svg new file mode 100644 index 00000000..14aeaf98 --- /dev/null +++ b/langserve/playground/src/assets/CodeIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/CopyIcon.svg b/langserve/playground/src/assets/CopyIcon.svg new file mode 100644 index 00000000..9f7b0d20 --- /dev/null +++ b/langserve/playground/src/assets/CopyIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/PadlockIcon.svg b/langserve/playground/src/assets/PadlockIcon.svg new file mode 100644 index 00000000..26c43029 --- /dev/null +++ b/langserve/playground/src/assets/PadlockIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/PlusIcon.svg b/langserve/playground/src/assets/PlusIcon.svg new file mode 100644 index 00000000..79270e2d --- /dev/null +++ b/langserve/playground/src/assets/PlusIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/SendIcon.svg b/langserve/playground/src/assets/SendIcon.svg new file mode 100644 index 00000000..c782a53a --- /dev/null +++ b/langserve/playground/src/assets/SendIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/ShareIcon.svg b/langserve/playground/src/assets/ShareIcon.svg new file mode 100644 index 00000000..0d2115fb --- /dev/null +++ b/langserve/playground/src/assets/ShareIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/TrashIcon.svg b/langserve/playground/src/assets/TrashIcon.svg new file mode 100644 index 00000000..9309fb3e --- /dev/null +++ b/langserve/playground/src/assets/TrashIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/components/CustomArrayControlRenderer.tsx b/langserve/playground/src/components/CustomArrayControlRenderer.tsx new file mode 100644 index 00000000..1da1b065 --- /dev/null +++ b/langserve/playground/src/components/CustomArrayControlRenderer.tsx @@ -0,0 +1,92 @@ +// From https://github.com/eclipsesource/jsonforms/blob/44070b325121ad7173082fdf33be079f42ef96c4/packages/material/src/complex/MaterialArrayControlRenderer.tsx +/* + The MIT License + + Copyright (c) 2017-2019 EclipseSource Munich + https://github.com/eclipsesource/jsonforms + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ +import { useCallback, useState } from "react"; +import { + ArrayLayoutProps, + RankedTester, + isObjectArrayControl, + isObjectArrayWithNesting, + isPrimitiveArrayControl, + or, + rankWith, +} from "@jsonforms/core"; +import { withJsonFormsArrayLayoutProps } from "@jsonforms/react"; +import { MaterialTableControl } from "./MaterialTableControl"; +import { Hidden } from "@mui/material"; +import { DeleteDialog } from "./DeleteDialog"; + +export const MaterialArrayControlRenderer = (props: ArrayLayoutProps) => { + const [open, setOpen] = useState(false); + const [path, setPath] = useState(undefined); + const [rowData, setRowData] = useState(undefined); + const { removeItems, visible } = props; + + const openDeleteDialog = useCallback( + (p: string, rowIndex: number) => { + setOpen(true); + setPath(p); + setRowData(rowIndex); + }, + [setOpen, setPath, setRowData] + ); + + const deleteCancel = useCallback(() => setOpen(false), [setOpen]); + const deleteConfirm = useCallback(() => { + const p = path?.substring(0, path.lastIndexOf(".")); + if (p != null && rowData != null) removeItems?.(p, [rowData])(); + setOpen(false); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [setOpen, path, rowData]); + + const deleteClose = useCallback(() => setOpen(false), [setOpen]); + + return ( +
+ + + + +
+ ); +}; + +// eslint-disable-next-line react-refresh/only-export-components +export const materialArrayControlTester: RankedTester = rankWith( + 999, + or(isObjectArrayControl, isPrimitiveArrayControl, isObjectArrayWithNesting) +); + +// eslint-disable-next-line react-refresh/only-export-components +export default withJsonFormsArrayLayoutProps(MaterialArrayControlRenderer); diff --git a/langserve/playground/src/components/CustomTextAreaCell.tsx b/langserve/playground/src/components/CustomTextAreaCell.tsx new file mode 100644 index 00000000..8911c6b8 --- /dev/null +++ b/langserve/playground/src/components/CustomTextAreaCell.tsx @@ -0,0 +1,68 @@ +// From https://github.com/eclipsesource/jsonforms/blob/master/packages/vanilla-renderers/src/cells/TextAreaCell.tsx + +/* + The MIT License + + Copyright (c) 2017-2019 EclipseSource Munich + https://github.com/eclipsesource/jsonforms + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ +import { + CellProps, + isMultiLineControl, + RankedTester, + rankWith, +} from "@jsonforms/core"; +import { withJsonFormsCellProps } from "@jsonforms/react"; +import { + withVanillaCellProps, + type VanillaRendererProps, +} from "@jsonforms/vanilla-renderers"; +import merge from "lodash/merge"; + +export const TextAreaCell = (props: CellProps & VanillaRendererProps) => { + const { data, className, id, enabled, config, uischema, path, handleChange } = + props; + const appliedUiSchemaOptions = merge({}, config, uischema.options); + return ( +