react-schema-form 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,95 +1,27 @@
1
- (function(Ft,Be){typeof exports=="object"&&typeof module<"u"?Be(exports,require("react"),require("@emotion/styled"),require("@emotion/react"),require("react-dom"),require("@uiw/react-markdown-editor"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/styled","@emotion/react","react-dom","@uiw/react-markdown-editor","@mui/material"],Be):(Ft=typeof globalThis<"u"?globalThis:Ft||self,Be(Ft["react-schema-form"]={},Ft.React,Ft.EmotionStyled,Ft.EmotionReact,Ft["React-dom"],Ft.UiwReactMarkdownEditor,Ft.MuiMaterial))})(this,function(Ft,Be,Gn,Zr,Oo,$x,Rn){"use strict";var O2=Object.defineProperty;var P2=(Ft,Be,Gn)=>Be in Ft?O2(Ft,Be,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ft[Be]=Gn;var zt=(Ft,Be,Gn)=>P2(Ft,typeof Be!="symbol"?Be+"":Be,Gn);function Kf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=Kf(Be),_x=Kf(Oo);var As=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vs={exports:{}},Po={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Gf;function Ix(){if(Gf)return Po;Gf=1;var e=Be,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(i,c,u){var d,h={},m=null,g=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)o.call(c,d)&&!a.hasOwnProperty(d)&&(h[d]=c[d]);if(i&&i.defaultProps)for(d in c=i.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:i,key:m,ref:g,props:h,_owner:s.current}}return Po.Fragment=r,Po.jsx=l,Po.jsxs=l,Po}var Eo={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Xf;function Dx(){return Xf||(Xf=1,process.env.NODE_ENV!=="production"&&function(){var e=Be,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.iterator,f="@@iterator";function y(G){if(G===null||typeof G!="object")return null;var be=w&&G[w]||G[f];return typeof be=="function"?be:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(G){{for(var be=arguments.length,Ee=new Array(be>1?be-1:0),Ne=1;Ne<be;Ne++)Ee[Ne-1]=arguments[Ne];b("error",G,Ee)}}function b(G,be,Ee){{var Ne=v.ReactDebugCurrentFrame,rt=Ne.getStackAddendum();rt!==""&&(be+="%s",Ee=Ee.concat([rt]));var pe=Ee.map(function(ce){return String(ce)});pe.unshift("Warning: "+be),Function.prototype.apply.call(console[G],console,pe)}}var x=!1,S=!1,C=!1,O=!1,k=!1,_;_=Symbol.for("react.module.reference");function T(G){return!!(typeof G=="string"||typeof G=="function"||G===o||G===a||k||G===s||G===u||G===d||O||G===g||x||S||C||typeof G=="object"&&G!==null&&(G.$$typeof===m||G.$$typeof===h||G.$$typeof===l||G.$$typeof===i||G.$$typeof===c||G.$$typeof===_||G.getModuleId!==void 0))}function P(G,be,Ee){var Ne=G.displayName;if(Ne)return Ne;var rt=be.displayName||be.name||"";return rt!==""?Ee+"("+rt+")":Ee}function D(G){return G.displayName||"Context"}function V(G){if(G==null)return null;if(typeof G.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof G=="function")return G.displayName||G.name||null;if(typeof G=="string")return G;switch(G){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case s:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof G=="object")switch(G.$$typeof){case i:var be=G;return D(be)+".Consumer";case l:var Ee=G;return D(Ee._context)+".Provider";case c:return P(G,G.render,"ForwardRef");case h:var Ne=G.displayName||null;return Ne!==null?Ne:V(G.type)||"Memo";case m:{var rt=G,pe=rt._payload,ce=rt._init;try{return V(ce(pe))}catch{return null}}}return null}var M=Object.assign,N=0,F,K,H,Z,L,j,Y;function q(){}q.__reactDisabledLog=!0;function $(){{if(N===0){F=console.log,K=console.info,H=console.warn,Z=console.error,L=console.group,j=console.groupCollapsed,Y=console.groupEnd;var G={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:G,log:G,warn:G,error:G,group:G,groupCollapsed:G,groupEnd:G})}N++}}function I(){{if(N--,N===0){var G={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},G,{value:F}),info:M({},G,{value:K}),warn:M({},G,{value:H}),error:M({},G,{value:Z}),group:M({},G,{value:L}),groupCollapsed:M({},G,{value:j}),groupEnd:M({},G,{value:Y})})}N<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=v.ReactCurrentDispatcher,Q;function W(G,be,Ee){{if(Q===void 0)try{throw Error()}catch(rt){var Ne=rt.stack.trim().match(/\n( *(at )?)/);Q=Ne&&Ne[1]||""}return`
18
- `+Q+G}}var ee=!1,ne;{var B=typeof WeakMap=="function"?WeakMap:Map;ne=new B}function A(G,be){if(!G||ee)return"";{var Ee=ne.get(G);if(Ee!==void 0)return Ee}var Ne;ee=!0;var rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=U.current,U.current=null,$();try{if(be){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Ot){Ne=Ot}Reflect.construct(G,[],ce)}else{try{ce.call()}catch(Ot){Ne=Ot}G.call(ce.prototype)}}else{try{throw Error()}catch(Ot){Ne=Ot}G()}}catch(Ot){if(Ot&&Ne&&typeof Ot.stack=="string"){for(var xe=Ot.stack.split(`
19
- `),qe=Ne.stack.split(`
20
- `),Ae=xe.length-1,ze=qe.length-1;Ae>=1&&ze>=0&&xe[Ae]!==qe[ze];)ze--;for(;Ae>=1&&ze>=0;Ae--,ze--)if(xe[Ae]!==qe[ze]){if(Ae!==1||ze!==1)do if(Ae--,ze--,ze<0||xe[Ae]!==qe[ze]){var pt=`
21
- `+xe[Ae].replace(" at new "," at ");return G.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",G.displayName)),typeof G=="function"&&ne.set(G,pt),pt}while(Ae>=1&&ze>=0);break}}}finally{ee=!1,U.current=pe,I(),Error.prepareStackTrace=rt}var Nt=G?G.displayName||G.name:"",ir=Nt?W(Nt):"";return typeof G=="function"&&ne.set(G,ir),ir}function z(G,be,Ee){return A(G,!1)}function X(G){var be=G.prototype;return!!(be&&be.isReactComponent)}function te(G,be,Ee){if(G==null)return"";if(typeof G=="function")return A(G,X(G));if(typeof G=="string")return W(G);switch(G){case u:return W("Suspense");case d:return W("SuspenseList")}if(typeof G=="object")switch(G.$$typeof){case c:return z(G.render);case h:return te(G.type,be,Ee);case m:{var Ne=G,rt=Ne._payload,pe=Ne._init;try{return te(pe(rt),be,Ee)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,J={},fe=v.ReactDebugCurrentFrame;function le(G){if(G){var be=G._owner,Ee=te(G.type,G._source,be?be.type:null);fe.setExtraStackFrame(Ee)}else fe.setExtraStackFrame(null)}function ge(G,be,Ee,Ne,rt){{var pe=Function.call.bind(ae);for(var ce in G)if(pe(G,ce)){var xe=void 0;try{if(typeof G[ce]!="function"){var qe=Error((Ne||"React class")+": "+Ee+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof G[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw qe.name="Invariant Violation",qe}xe=G[ce](be,ce,Ne,Ee,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ae){xe=Ae}xe&&!(xe instanceof Error)&&(le(rt),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ne||"React class",Ee,ce,typeof xe),le(null)),xe instanceof Error&&!(xe.message in J)&&(J[xe.message]=!0,le(rt),p("Failed %s type: %s",Ee,xe.message),le(null))}}}var Se=Array.isArray;function Ce(G){return Se(G)}function Fe(G){{var be=typeof Symbol=="function"&&Symbol.toStringTag,Ee=be&&G[Symbol.toStringTag]||G.constructor.name||"Object";return Ee}}function Ye(G){try{return He(G),!1}catch{return!0}}function He(G){return""+G}function Qe(G){if(Ye(G))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(G)),He(G)}var ut=v.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},st,Ge;function We(G){if(ae.call(G,"ref")){var be=Object.getOwnPropertyDescriptor(G,"ref").get;if(be&&be.isReactWarning)return!1}return G.ref!==void 0}function gt(G){if(ae.call(G,"key")){var be=Object.getOwnPropertyDescriptor(G,"key").get;if(be&&be.isReactWarning)return!1}return G.key!==void 0}function mt(G,be){typeof G.ref=="string"&&ut.current}function Dt(G,be){{var Ee=function(){st||(st=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};Ee.isReactWarning=!0,Object.defineProperty(G,"key",{get:Ee,configurable:!0})}}function De(G,be){{var Ee=function(){Ge||(Ge=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};Ee.isReactWarning=!0,Object.defineProperty(G,"ref",{get:Ee,configurable:!0})}}var me=function(G,be,Ee,Ne,rt,pe,ce){var xe={$$typeof:t,type:G,key:be,ref:Ee,props:ce,_owner:pe};return xe._store={},Object.defineProperty(xe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(xe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:rt}),Object.freeze&&(Object.freeze(xe.props),Object.freeze(xe)),xe};function $e(G,be,Ee,Ne,rt){{var pe,ce={},xe=null,qe=null;Ee!==void 0&&(Qe(Ee),xe=""+Ee),gt(be)&&(Qe(be.key),xe=""+be.key),We(be)&&(qe=be.ref,mt(be,rt));for(pe in be)ae.call(be,pe)&&!dt.hasOwnProperty(pe)&&(ce[pe]=be[pe]);if(G&&G.defaultProps){var Ae=G.defaultProps;for(pe in Ae)ce[pe]===void 0&&(ce[pe]=Ae[pe])}if(xe||qe){var ze=typeof G=="function"?G.displayName||G.name||"Unknown":G;xe&&Dt(ce,ze),qe&&De(ce,ze)}return me(G,xe,qe,rt,Ne,ut.current,ce)}}var je=v.ReactCurrentOwner,Ve=v.ReactDebugCurrentFrame;function Xe(G){if(G){var be=G._owner,Ee=te(G.type,G._source,be?be.type:null);Ve.setExtraStackFrame(Ee)}else Ve.setExtraStackFrame(null)}var Tt;Tt=!1;function St(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function pr(){{if(je.current){var G=V(je.current.type);if(G)return`
22
-
23
- Check the render method of \``+G+"`."}return""}}function ue(G){return""}var oe={};function ye(G){{var be=pr();if(!be){var Ee=typeof G=="string"?G:G.displayName||G.name;Ee&&(be=`
24
-
25
- Check the top-level render call using <`+Ee+">.")}return be}}function de(G,be){{if(!G._store||G._store.validated||G.key!=null)return;G._store.validated=!0;var Ee=ye(be);if(oe[Ee])return;oe[Ee]=!0;var Ne="";G&&G._owner&&G._owner!==je.current&&(Ne=" It was passed a child from "+V(G._owner.type)+"."),Xe(G),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ee,Ne),Xe(null)}}function Le(G,be){{if(typeof G!="object")return;if(Ce(G))for(var Ee=0;Ee<G.length;Ee++){var Ne=G[Ee];St(Ne)&&de(Ne,be)}else if(St(G))G._store&&(G._store.validated=!0);else if(G){var rt=y(G);if(typeof rt=="function"&&rt!==G.entries)for(var pe=rt.call(G),ce;!(ce=pe.next()).done;)St(ce.value)&&de(ce.value,be)}}}function Je(G){{var be=G.type;if(be==null||typeof be=="string")return;var Ee;if(typeof be=="function")Ee=be.propTypes;else if(typeof be=="object"&&(be.$$typeof===c||be.$$typeof===h))Ee=be.propTypes;else return;if(Ee){var Ne=V(be);ge(Ee,G.props,"prop",Ne,G)}else if(be.PropTypes!==void 0&&!Tt){Tt=!0;var rt=V(be);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",rt||"Unknown")}typeof be.getDefaultProps=="function"&&!be.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ke(G){{for(var be=Object.keys(G.props),Ee=0;Ee<be.length;Ee++){var Ne=be[Ee];if(Ne!=="children"&&Ne!=="key"){Xe(G),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ne),Xe(null);break}}G.ref!==null&&(Xe(G),p("Invalid attribute `ref` supplied to `React.Fragment`."),Xe(null))}}var we={};function ie(G,be,Ee,Ne,rt,pe){{var ce=T(G);if(!ce){var xe="";(G===void 0||typeof G=="object"&&G!==null&&Object.keys(G).length===0)&&(xe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qe=ue();qe?xe+=qe:xe+=pr();var Ae;G===null?Ae="null":Ce(G)?Ae="array":G!==void 0&&G.$$typeof===t?(Ae="<"+(V(G.type)||"Unknown")+" />",xe=" Did you accidentally export a JSX literal instead of a component?"):Ae=typeof G,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ae,xe)}var ze=$e(G,be,Ee,rt,pe);if(ze==null)return ze;if(ce){var pt=be.children;if(pt!==void 0)if(Ne)if(Ce(pt)){for(var Nt=0;Nt<pt.length;Nt++)Le(pt[Nt],G);Object.freeze&&Object.freeze(pt)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Le(pt,G)}if(ae.call(be,"key")){var ir=V(G),Ot=Object.keys(be).filter(function(En){return En!=="key"}),Pn=Ot.length>0?"{key: someKey, "+Ot.join(": ..., ")+": ...}":"{key: someKey}";if(!we[ir+Pn]){var rr=Ot.length>0?"{"+Ot.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(Mt,ke){typeof exports=="object"&&typeof module<"u"?ke(exports,require("react"),require("@emotion/styled"),require("@emotion/react"),require("react-dom"),require("@uiw/react-markdown-editor"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@emotion/styled","@emotion/react","react-dom","@uiw/react-markdown-editor","@mui/material"],ke):(Mt=typeof globalThis<"u"?globalThis:Mt||self,ke(Mt["react-schema-form"]={},Mt.React,Mt.EmotionStyled,Mt.EmotionReact,Mt["React-dom"],Mt.UiwReactMarkdownEditor,Mt.MuiMaterial))})(this,(function(Mt,ke,Yv,Or,Nn,Jv,Jr){"use strict";function Xu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const A=Xu(ke),Xv=Xu(Nn);var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var To={exports:{}},An={};var Zu;function Zv(){if(Zu)return An;Zu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:e,type:n,key:l,ref:i!==void 0?i:null,props:a}}return An.Fragment=t,An.jsx=r,An.jsxs=r,An}var Mn={};var Qu;function Qv(){return Qu||(Qu=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===R?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case b:return"Fragment";case p:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case x:return"SuspenseList";case j:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case f:return"Portal";case S:return C.displayName||"Context";case _:return(C._context.displayName||"Context")+".Consumer";case w:var V=C.render;return C=C.displayName,C||(C=V.displayName||V.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return V=C.displayName||null,V!==null?V:e(C.type)||"Memo";case k:V=C._payload,C=C._init;try{return e(C(V))}catch{}}return null}function t(C){return""+C}function r(C){try{t(C);var V=!1}catch{V=!0}if(V){V=console;var M=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return M.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(C)}}function n(C){if(C===b)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===k)return"<...>";try{var V=e(C);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function i(){var C=O.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function l(C){if(D.call(C,"key")){var V=Object.getOwnPropertyDescriptor(C,"key").get;if(V&&V.isReactWarning)return!1}return C.key!==void 0}function s(C,V){function M(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",V))}M.isReactWarning=!0,Object.defineProperty(C,"key",{get:M,configurable:!0})}function c(){var C=e(this.type);return le[C]||(le[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,V,M,T,$,q){var K=M.ref;return C={$$typeof:g,type:C,key:V,props:M,_owner:T},(K!==void 0?K:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function d(C,V,M,T,$,q){var K=V.children;if(K!==void 0)if(T)if(N(K)){for(T=0;T<K.length;T++)m(K[T]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(K);if(D.call(V,"key")){K=e(C);var re=Object.keys(V).filter(function(te){return te!=="key"});T=0<re.length?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}",z[K+T]||(re=0<re.length?"{"+re.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
26
2
  let props = %s;
27
3
  <%s {...props} />
28
4
  React keys must be passed directly to JSX without using spread:
29
5
  let props = %s;
30
- <%s key={someKey} {...props} />`,Pn,ir,rr,ir),we[ir+Pn]=!0}}return G===o?Ke(ze):Je(ze),ze}}function he(G,be,Ee){return ie(G,be,Ee,!0)}function Pe(G,be,Ee){return ie(G,be,Ee,!1)}var Me=Pe,et=he;Eo.Fragment=o,Eo.jsx=Me,Eo.jsxs=et}()),Eo}var Jf;function Mx(){return Jf||(Jf=1,process.env.NODE_ENV==="production"?Vs.exports=Ix():Vs.exports=Dx()),Vs.exports}var R=Mx(),dl,Zf;function jx(){if(Zf)return dl;Zf=1;function e(){this.__data__=[],this.size=0}return dl=e,dl}var fl,Qf;function Fs(){if(Qf)return fl;Qf=1;function e(t,r){return t===r||t!==t&&r!==r}return fl=e,fl}var pl,ep;function Ls(){if(ep)return pl;ep=1;var e=Fs();function t(r,o){for(var s=r.length;s--;)if(e(r[s][0],o))return s;return-1}return pl=t,pl}var hl,tp;function Nx(){if(tp)return hl;tp=1;var e=Ls(),t=Array.prototype,r=t.splice;function o(s){var a=this.__data__,l=e(a,s);if(l<0)return!1;var i=a.length-1;return l==i?a.pop():r.call(a,l,1),--this.size,!0}return hl=o,hl}var ml,rp;function Ax(){if(rp)return ml;rp=1;var e=Ls();function t(r){var o=this.__data__,s=e(o,r);return s<0?void 0:o[s][1]}return ml=t,ml}var gl,np;function Vx(){if(np)return gl;np=1;var e=Ls();function t(r){return e(this.__data__,r)>-1}return gl=t,gl}var yl,op;function Fx(){if(op)return yl;op=1;var e=Ls();function t(r,o){var s=this.__data__,a=e(s,r);return a<0?(++this.size,s.push([r,o])):s[a][1]=o,this}return yl=t,yl}var bl,sp;function qs(){if(sp)return bl;sp=1;var e=jx(),t=Nx(),r=Ax(),o=Vx(),s=Fx();function a(l){var i=-1,c=l==null?0:l.length;for(this.clear();++i<c;){var u=l[i];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=o,a.prototype.set=s,bl=a,bl}var vl,ap;function Lx(){if(ap)return vl;ap=1;var e=qs();function t(){this.__data__=new e,this.size=0}return vl=t,vl}var wl,ip;function qx(){if(ip)return wl;ip=1;function e(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}return wl=e,wl}var xl,lp;function Bx(){if(lp)return xl;lp=1;function e(t){return this.__data__.get(t)}return xl=e,xl}var Sl,cp;function zx(){if(cp)return Sl;cp=1;function e(t){return this.__data__.has(t)}return Sl=e,Sl}var Cl,up;function dp(){if(up)return Cl;up=1;var e=typeof As=="object"&&As&&As.Object===Object&&As;return Cl=e,Cl}var Tl,fp;function Lr(){if(fp)return Tl;fp=1;var e=dp(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Tl=r,Tl}var Ol,pp;function Pl(){if(pp)return Ol;pp=1;var e=Lr(),t=e.Symbol;return Ol=t,Ol}var El,hp;function Ux(){if(hp)return El;hp=1;var e=Pl(),t=Object.prototype,r=t.hasOwnProperty,o=t.toString,s=e?e.toStringTag:void 0;function a(l){var i=r.call(l,s),c=l[s];try{l[s]=void 0;var u=!0}catch{}var d=o.call(l);return u&&(i?l[s]=c:delete l[s]),d}return El=a,El}var kl,mp;function Wx(){if(mp)return kl;mp=1;var e=Object.prototype,t=e.toString;function r(o){return t.call(o)}return kl=r,kl}var Rl,gp;function ko(){if(gp)return Rl;gp=1;var e=Pl(),t=Ux(),r=Wx(),o="[object Null]",s="[object Undefined]",a=e?e.toStringTag:void 0;function l(i){return i==null?i===void 0?s:o:a&&a in Object(i)?t(i):r(i)}return Rl=l,Rl}var $l,yp;function Qr(){if(yp)return $l;yp=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return $l=e,$l}var _l,bp;function Il(){if(bp)return _l;bp=1;var e=ko(),t=Qr(),r="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function l(i){if(!t(i))return!1;var c=e(i);return c==o||c==s||c==r||c==a}return _l=l,_l}var Dl,vp;function Hx(){if(vp)return Dl;vp=1;var e=Lr(),t=e["__core-js_shared__"];return Dl=t,Dl}var Ml,wp;function Yx(){if(wp)return Ml;wp=1;var e=Hx(),t=function(){var o=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function r(o){return!!t&&t in o}return Ml=r,Ml}var jl,xp;function Sp(){if(xp)return jl;xp=1;var e=Function.prototype,t=e.toString;function r(o){if(o!=null){try{return t.call(o)}catch{}try{return o+""}catch{}}return""}return jl=r,jl}var Nl,Cp;function Kx(){if(Cp)return Nl;Cp=1;var e=Il(),t=Yx(),r=Qr(),o=Sp(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,i=Object.prototype,c=l.toString,u=i.hasOwnProperty,d=RegExp("^"+c.call(u).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(m){if(!r(m)||t(m))return!1;var g=e(m)?d:a;return g.test(o(m))}return Nl=h,Nl}var Al,Tp;function Gx(){if(Tp)return Al;Tp=1;function e(t,r){return t==null?void 0:t[r]}return Al=e,Al}var Vl,Op;function $n(){if(Op)return Vl;Op=1;var e=Kx(),t=Gx();function r(o,s){var a=t(o,s);return e(a)?a:void 0}return Vl=r,Vl}var Fl,Pp;function Ll(){if(Pp)return Fl;Pp=1;var e=$n(),t=Lr(),r=e(t,"Map");return Fl=r,Fl}var ql,Ep;function Bs(){if(Ep)return ql;Ep=1;var e=$n(),t=e(Object,"create");return ql=t,ql}var Bl,kp;function Xx(){if(kp)return Bl;kp=1;var e=Bs();function t(){this.__data__=e?e(null):{},this.size=0}return Bl=t,Bl}var zl,Rp;function Jx(){if(Rp)return zl;Rp=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return zl=e,zl}var Ul,$p;function Zx(){if($p)return Ul;$p=1;var e=Bs(),t="__lodash_hash_undefined__",r=Object.prototype,o=r.hasOwnProperty;function s(a){var l=this.__data__;if(e){var i=l[a];return i===t?void 0:i}return o.call(l,a)?l[a]:void 0}return Ul=s,Ul}var Wl,_p;function Qx(){if(_p)return Wl;_p=1;var e=Bs(),t=Object.prototype,r=t.hasOwnProperty;function o(s){var a=this.__data__;return e?a[s]!==void 0:r.call(a,s)}return Wl=o,Wl}var Hl,Ip;function eS(){if(Ip)return Hl;Ip=1;var e=Bs(),t="__lodash_hash_undefined__";function r(o,s){var a=this.__data__;return this.size+=this.has(o)?0:1,a[o]=e&&s===void 0?t:s,this}return Hl=r,Hl}var Yl,Dp;function tS(){if(Dp)return Yl;Dp=1;var e=Xx(),t=Jx(),r=Zx(),o=Qx(),s=eS();function a(l){var i=-1,c=l==null?0:l.length;for(this.clear();++i<c;){var u=l[i];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=o,a.prototype.set=s,Yl=a,Yl}var Kl,Mp;function rS(){if(Mp)return Kl;Mp=1;var e=tS(),t=qs(),r=Ll();function o(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Kl=o,Kl}var Gl,jp;function nS(){if(jp)return Gl;jp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Gl=e,Gl}var Xl,Np;function zs(){if(Np)return Xl;Np=1;var e=nS();function t(r,o){var s=r.__data__;return e(o)?s[typeof o=="string"?"string":"hash"]:s.map}return Xl=t,Xl}var Jl,Ap;function oS(){if(Ap)return Jl;Ap=1;var e=zs();function t(r){var o=e(this,r).delete(r);return this.size-=o?1:0,o}return Jl=t,Jl}var Zl,Vp;function sS(){if(Vp)return Zl;Vp=1;var e=zs();function t(r){return e(this,r).get(r)}return Zl=t,Zl}var Ql,Fp;function aS(){if(Fp)return Ql;Fp=1;var e=zs();function t(r){return e(this,r).has(r)}return Ql=t,Ql}var ec,Lp;function iS(){if(Lp)return ec;Lp=1;var e=zs();function t(r,o){var s=e(this,r),a=s.size;return s.set(r,o),this.size+=s.size==a?0:1,this}return ec=t,ec}var tc,qp;function lS(){if(qp)return tc;qp=1;var e=rS(),t=oS(),r=sS(),o=aS(),s=iS();function a(l){var i=-1,c=l==null?0:l.length;for(this.clear();++i<c;){var u=l[i];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=o,a.prototype.set=s,tc=a,tc}var rc,Bp;function cS(){if(Bp)return rc;Bp=1;var e=qs(),t=Ll(),r=lS(),o=200;function s(a,l){var i=this.__data__;if(i instanceof e){var c=i.__data__;if(!t||c.length<o-1)return c.push([a,l]),this.size=++i.size,this;i=this.__data__=new r(c)}return i.set(a,l),this.size=i.size,this}return rc=s,rc}var nc,zp;function Up(){if(zp)return nc;zp=1;var e=qs(),t=Lx(),r=qx(),o=Bx(),s=zx(),a=cS();function l(i){var c=this.__data__=new e(i);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,nc=l,nc}var oc,Wp;function Hp(){if(Wp)return oc;Wp=1;var e=$n(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return oc=t,oc}var sc,Yp;function ac(){if(Yp)return sc;Yp=1;var e=Hp();function t(r,o,s){o=="__proto__"&&e?e(r,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):r[o]=s}return sc=t,sc}var ic,Kp;function Gp(){if(Kp)return ic;Kp=1;var e=ac(),t=Fs();function r(o,s,a){(a!==void 0&&!t(o[s],a)||a===void 0&&!(s in o))&&e(o,s,a)}return ic=r,ic}var lc,Xp;function uS(){if(Xp)return lc;Xp=1;function e(t){return function(r,o,s){for(var a=-1,l=Object(r),i=s(r),c=i.length;c--;){var u=i[t?c:++a];if(o(l[u],u,l)===!1)break}return r}}return lc=e,lc}var cc,Jp;function dS(){if(Jp)return cc;Jp=1;var e=uS(),t=e();return cc=t,cc}var Ro={exports:{}};Ro.exports;var Zp;function Qp(){return Zp||(Zp=1,function(e,t){var r=Lr(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,l=a?r.Buffer:void 0,i=l?l.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var h=u.length,m=i?i(h):new u.constructor(h);return u.copy(m),m}e.exports=c}(Ro,Ro.exports)),Ro.exports}var uc,eh;function fS(){if(eh)return uc;eh=1;var e=Lr(),t=e.Uint8Array;return uc=t,uc}var dc,th;function fc(){if(th)return dc;th=1;var e=fS();function t(r){var o=new r.constructor(r.byteLength);return new e(o).set(new e(r)),o}return dc=t,dc}var pc,rh;function nh(){if(rh)return pc;rh=1;var e=fc();function t(r,o){var s=o?e(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.length)}return pc=t,pc}var hc,oh;function sh(){if(oh)return hc;oh=1;function e(t,r){var o=-1,s=t.length;for(r||(r=Array(s));++o<s;)r[o]=t[o];return r}return hc=e,hc}var mc,ah;function pS(){if(ah)return mc;ah=1;var e=Qr(),t=Object.create,r=function(){function o(){}return function(s){if(!e(s))return{};if(t)return t(s);o.prototype=s;var a=new o;return o.prototype=void 0,a}}();return mc=r,mc}var gc,ih;function lh(){if(ih)return gc;ih=1;function e(t,r){return function(o){return t(r(o))}}return gc=e,gc}var yc,ch;function bc(){if(ch)return yc;ch=1;var e=lh(),t=e(Object.getPrototypeOf,Object);return yc=t,yc}var vc,uh;function wc(){if(uh)return vc;uh=1;var e=Object.prototype;function t(r){var o=r&&r.constructor,s=typeof o=="function"&&o.prototype||e;return r===s}return vc=t,vc}var xc,dh;function fh(){if(dh)return xc;dh=1;var e=pS(),t=bc(),r=wc();function o(s){return typeof s.constructor=="function"&&!r(s)?e(t(s)):{}}return xc=o,xc}var Sc,ph;function _n(){if(ph)return Sc;ph=1;function e(t){return t!=null&&typeof t=="object"}return Sc=e,Sc}var Cc,hh;function hS(){if(hh)return Cc;hh=1;var e=ko(),t=_n(),r="[object Arguments]";function o(s){return t(s)&&e(s)==r}return Cc=o,Cc}var Tc,mh;function gh(){if(mh)return Tc;mh=1;var e=hS(),t=_n(),r=Object.prototype,o=r.hasOwnProperty,s=r.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(l){return t(l)&&o.call(l,"callee")&&!s.call(l,"callee")};return Tc=a,Tc}var Oc,yh;function Us(){if(yh)return Oc;yh=1;var e=Array.isArray;return Oc=e,Oc}var Pc,bh;function vh(){if(bh)return Pc;bh=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Pc=t,Pc}var Ec,wh;function Ws(){if(wh)return Ec;wh=1;var e=Il(),t=vh();function r(o){return o!=null&&t(o.length)&&!e(o)}return Ec=r,Ec}var kc,xh;function mS(){if(xh)return kc;xh=1;var e=Ws(),t=_n();function r(o){return t(o)&&e(o)}return kc=r,kc}var $o={exports:{}},Rc,Sh;function gS(){if(Sh)return Rc;Sh=1;function e(){return!1}return Rc=e,Rc}$o.exports;var Ch;function $c(){return Ch||(Ch=1,function(e,t){var r=Lr(),o=gS(),s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===s,i=l?r.Buffer:void 0,c=i?i.isBuffer:void 0,u=c||o;e.exports=u}($o,$o.exports)),$o.exports}var _c,Th;function yS(){if(Th)return _c;Th=1;var e=ko(),t=bc(),r=_n(),o="[object Object]",s=Function.prototype,a=Object.prototype,l=s.toString,i=a.hasOwnProperty,c=l.call(Object);function u(d){if(!r(d)||e(d)!=o)return!1;var h=t(d);if(h===null)return!0;var m=i.call(h,"constructor")&&h.constructor;return typeof m=="function"&&m instanceof m&&l.call(m)==c}return _c=u,_c}var Ic,Oh;function bS(){if(Oh)return Ic;Oh=1;var e=ko(),t=vh(),r=_n(),o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",i="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",m="[object RegExp]",g="[object Set]",w="[object String]",f="[object WeakMap]",y="[object ArrayBuffer]",v="[object DataView]",p="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",k="[object Uint8ClampedArray]",_="[object Uint16Array]",T="[object Uint32Array]",P={};P[p]=P[b]=P[x]=P[S]=P[C]=P[O]=P[k]=P[_]=P[T]=!0,P[o]=P[s]=P[y]=P[a]=P[v]=P[l]=P[i]=P[c]=P[u]=P[d]=P[h]=P[m]=P[g]=P[w]=P[f]=!1;function D(V){return r(V)&&t(V.length)&&!!P[e(V)]}return Ic=D,Ic}var Dc,Ph;function Mc(){if(Ph)return Dc;Ph=1;function e(t){return function(r){return t(r)}}return Dc=e,Dc}var _o={exports:{}};_o.exports;var Eh;function jc(){return Eh||(Eh=1,function(e,t){var r=dp(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,l=a&&r.process,i=function(){try{var c=s&&s.require&&s.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=i}(_o,_o.exports)),_o.exports}var Nc,kh;function Rh(){if(kh)return Nc;kh=1;var e=bS(),t=Mc(),r=jc(),o=r&&r.isTypedArray,s=o?t(o):e;return Nc=s,Nc}var Ac,$h;function _h(){if($h)return Ac;$h=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Ac=e,Ac}var Vc,Ih;function Dh(){if(Ih)return Vc;Ih=1;var e=ac(),t=Fs(),r=Object.prototype,o=r.hasOwnProperty;function s(a,l,i){var c=a[l];(!(o.call(a,l)&&t(c,i))||i===void 0&&!(l in a))&&e(a,l,i)}return Vc=s,Vc}var Fc,Mh;function Xn(){if(Mh)return Fc;Mh=1;var e=Dh(),t=ac();function r(o,s,a,l){var i=!a;a||(a={});for(var c=-1,u=s.length;++c<u;){var d=s[c],h=l?l(a[d],o[d],d,a,o):void 0;h===void 0&&(h=o[d]),i?t(a,d,h):e(a,d,h)}return a}return Fc=r,Fc}var Lc,jh;function vS(){if(jh)return Lc;jh=1;function e(t,r){for(var o=-1,s=Array(t);++o<t;)s[o]=r(o);return s}return Lc=e,Lc}var qc,Nh;function Ah(){if(Nh)return qc;Nh=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(o,s){var a=typeof o;return s=s??e,!!s&&(a=="number"||a!="symbol"&&t.test(o))&&o>-1&&o%1==0&&o<s}return qc=r,qc}var Bc,Vh;function Fh(){if(Vh)return Bc;Vh=1;var e=vS(),t=gh(),r=Us(),o=$c(),s=Ah(),a=Rh(),l=Object.prototype,i=l.hasOwnProperty;function c(u,d){var h=r(u),m=!h&&t(u),g=!h&&!m&&o(u),w=!h&&!m&&!g&&a(u),f=h||m||g||w,y=f?e(u.length,String):[],v=y.length;for(var p in u)(d||i.call(u,p))&&!(f&&(p=="length"||g&&(p=="offset"||p=="parent")||w&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||s(p,v)))&&y.push(p);return y}return Bc=c,Bc}var zc,Lh;function wS(){if(Lh)return zc;Lh=1;function e(t){var r=[];if(t!=null)for(var o in Object(t))r.push(o);return r}return zc=e,zc}var Uc,qh;function xS(){if(qh)return Uc;qh=1;var e=Qr(),t=wc(),r=wS(),o=Object.prototype,s=o.hasOwnProperty;function a(l){if(!e(l))return r(l);var i=t(l),c=[];for(var u in l)u=="constructor"&&(i||!s.call(l,u))||c.push(u);return c}return Uc=a,Uc}var Wc,Bh;function Jn(){if(Bh)return Wc;Bh=1;var e=Fh(),t=xS(),r=Ws();function o(s){return r(s)?e(s,!0):t(s)}return Wc=o,Wc}var Hc,zh;function SS(){if(zh)return Hc;zh=1;var e=Xn(),t=Jn();function r(o){return e(o,t(o))}return Hc=r,Hc}var Yc,Uh;function CS(){if(Uh)return Yc;Uh=1;var e=Gp(),t=Qp(),r=nh(),o=sh(),s=fh(),a=gh(),l=Us(),i=mS(),c=$c(),u=Il(),d=Qr(),h=yS(),m=Rh(),g=_h(),w=SS();function f(y,v,p,b,x,S,C){var O=g(y,p),k=g(v,p),_=C.get(k);if(_){e(y,p,_);return}var T=S?S(O,k,p+"",y,v,C):void 0,P=T===void 0;if(P){var D=l(k),V=!D&&c(k),M=!D&&!V&&m(k);T=k,D||V||M?l(O)?T=O:i(O)?T=o(O):V?(P=!1,T=t(k,!0)):M?(P=!1,T=r(k,!0)):T=[]:h(k)||a(k)?(T=O,a(O)?T=w(O):(!d(O)||u(O))&&(T=s(k))):P=!1}P&&(C.set(k,T),x(T,k,b,S,C),C.delete(k)),e(y,p,T)}return Yc=f,Yc}var Kc,Wh;function TS(){if(Wh)return Kc;Wh=1;var e=Up(),t=Gp(),r=dS(),o=CS(),s=Qr(),a=Jn(),l=_h();function i(c,u,d,h,m){c!==u&&r(u,function(g,w){if(m||(m=new e),s(g))o(c,u,w,d,i,h,m);else{var f=h?h(l(c,w),g,w+"",c,u,m):void 0;f===void 0&&(f=g),t(c,w,f)}},a)}return Kc=i,Kc}var Gc,Hh;function Yh(){if(Hh)return Gc;Hh=1;function e(t){return t}return Gc=e,Gc}var Xc,Kh;function OS(){if(Kh)return Xc;Kh=1;function e(t,r,o){switch(o.length){case 0:return t.call(r);case 1:return t.call(r,o[0]);case 2:return t.call(r,o[0],o[1]);case 3:return t.call(r,o[0],o[1],o[2])}return t.apply(r,o)}return Xc=e,Xc}var Jc,Gh;function PS(){if(Gh)return Jc;Gh=1;var e=OS(),t=Math.max;function r(o,s,a){return s=t(s===void 0?o.length-1:s,0),function(){for(var l=arguments,i=-1,c=t(l.length-s,0),u=Array(c);++i<c;)u[i]=l[s+i];i=-1;for(var d=Array(s+1);++i<s;)d[i]=l[i];return d[s]=a(u),e(o,this,d)}}return Jc=r,Jc}var Zc,Xh;function ES(){if(Xh)return Zc;Xh=1;function e(t){return function(){return t}}return Zc=e,Zc}var Qc,Jh;function kS(){if(Jh)return Qc;Jh=1;var e=ES(),t=Hp(),r=Yh(),o=t?function(s,a){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Qc=o,Qc}var eu,Zh;function RS(){if(Zh)return eu;Zh=1;var e=800,t=16,r=Date.now;function o(s){var a=0,l=0;return function(){var i=r(),c=t-(i-l);if(l=i,c>0){if(++a>=e)return arguments[0]}else a=0;return s.apply(void 0,arguments)}}return eu=o,eu}var tu,Qh;function $S(){if(Qh)return tu;Qh=1;var e=kS(),t=RS(),r=t(e);return tu=r,tu}var ru,em;function _S(){if(em)return ru;em=1;var e=Yh(),t=PS(),r=$S();function o(s,a){return r(t(s,a,e),s+"")}return ru=o,ru}var nu,tm;function IS(){if(tm)return nu;tm=1;var e=Fs(),t=Ws(),r=Ah(),o=Qr();function s(a,l,i){if(!o(i))return!1;var c=typeof l;return(c=="number"?t(i)&&r(l,i.length):c=="string"&&l in i)?e(i[l],a):!1}return nu=s,nu}var ou,rm;function nm(){if(rm)return ou;rm=1;var e=_S(),t=IS();function r(o){return e(function(s,a){var l=-1,i=a.length,c=i>1?a[i-1]:void 0,u=i>2?a[2]:void 0;for(c=o.length>3&&typeof c=="function"?(i--,c):void 0,u&&t(a[0],a[1],u)&&(c=i<3?void 0:c,i=1),s=Object(s);++l<i;){var d=a[l];d&&o(s,d,l,c)}return s})}return ou=r,ou}var su,om;function DS(){if(om)return su;om=1;var e=TS(),t=nm(),r=t(function(o,s,a){e(o,s,a)});return su=r,su}var MS=DS();const jS=Ut(MS);var au,sm;function NS(){if(sm)return au;sm=1;function e(t){return t==null}return au=e,au}var AS=NS();const am=Ut(AS);var VS=Qr();const FS=Ut(VS);var iu,im;function LS(){if(im)return iu;im=1;function e(t,r){for(var o=-1,s=t==null?0:t.length;++o<s&&r(t[o],o,t)!==!1;);return t}return iu=e,iu}var lu,lm;function qS(){if(lm)return lu;lm=1;var e=lh(),t=e(Object.keys,Object);return lu=t,lu}var cu,cm;function BS(){if(cm)return cu;cm=1;var e=wc(),t=qS(),r=Object.prototype,o=r.hasOwnProperty;function s(a){if(!e(a))return t(a);var l=[];for(var i in Object(a))o.call(a,i)&&i!="constructor"&&l.push(i);return l}return cu=s,cu}var uu,um;function du(){if(um)return uu;um=1;var e=Fh(),t=BS(),r=Ws();function o(s){return r(s)?e(s):t(s)}return uu=o,uu}var fu,dm;function zS(){if(dm)return fu;dm=1;var e=Xn(),t=du();function r(o,s){return o&&e(s,t(s),o)}return fu=r,fu}var pu,fm;function US(){if(fm)return pu;fm=1;var e=Xn(),t=Jn();function r(o,s){return o&&e(s,t(s),o)}return pu=r,pu}var hu,pm;function WS(){if(pm)return hu;pm=1;function e(t,r){for(var o=-1,s=t==null?0:t.length,a=0,l=[];++o<s;){var i=t[o];r(i,o,t)&&(l[a++]=i)}return l}return hu=e,hu}var mu,hm;function mm(){if(hm)return mu;hm=1;function e(){return[]}return mu=e,mu}var gu,gm;function yu(){if(gm)return gu;gm=1;var e=WS(),t=mm(),r=Object.prototype,o=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(l){return l==null?[]:(l=Object(l),e(s(l),function(i){return o.call(l,i)}))}:t;return gu=a,gu}var bu,ym;function HS(){if(ym)return bu;ym=1;var e=Xn(),t=yu();function r(o,s){return e(o,t(o),s)}return bu=r,bu}var vu,bm;function vm(){if(bm)return vu;bm=1;function e(t,r){for(var o=-1,s=r.length,a=t.length;++o<s;)t[a+o]=r[o];return t}return vu=e,vu}var wu,wm;function xm(){if(wm)return wu;wm=1;var e=vm(),t=bc(),r=yu(),o=mm(),s=Object.getOwnPropertySymbols,a=s?function(l){for(var i=[];l;)e(i,r(l)),l=t(l);return i}:o;return wu=a,wu}var xu,Sm;function YS(){if(Sm)return xu;Sm=1;var e=Xn(),t=xm();function r(o,s){return e(o,t(o),s)}return xu=r,xu}var Su,Cm;function Tm(){if(Cm)return Su;Cm=1;var e=vm(),t=Us();function r(o,s,a){var l=s(o);return t(o)?l:e(l,a(o))}return Su=r,Su}var Cu,Om;function KS(){if(Om)return Cu;Om=1;var e=Tm(),t=yu(),r=du();function o(s){return e(s,r,t)}return Cu=o,Cu}var Tu,Pm;function GS(){if(Pm)return Tu;Pm=1;var e=Tm(),t=xm(),r=Jn();function o(s){return e(s,r,t)}return Tu=o,Tu}var Ou,Em;function XS(){if(Em)return Ou;Em=1;var e=$n(),t=Lr(),r=e(t,"DataView");return Ou=r,Ou}var Pu,km;function JS(){if(km)return Pu;km=1;var e=$n(),t=Lr(),r=e(t,"Promise");return Pu=r,Pu}var Eu,Rm;function ZS(){if(Rm)return Eu;Rm=1;var e=$n(),t=Lr(),r=e(t,"Set");return Eu=r,Eu}var ku,$m;function QS(){if($m)return ku;$m=1;var e=$n(),t=Lr(),r=e(t,"WeakMap");return ku=r,ku}var Ru,_m;function $u(){if(_m)return Ru;_m=1;var e=XS(),t=Ll(),r=JS(),o=ZS(),s=QS(),a=ko(),l=Sp(),i="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",h="[object WeakMap]",m="[object DataView]",g=l(e),w=l(t),f=l(r),y=l(o),v=l(s),p=a;return(e&&p(new e(new ArrayBuffer(1)))!=m||t&&p(new t)!=i||r&&p(r.resolve())!=u||o&&p(new o)!=d||s&&p(new s)!=h)&&(p=function(b){var x=a(b),S=x==c?b.constructor:void 0,C=S?l(S):"";if(C)switch(C){case g:return m;case w:return i;case f:return u;case y:return d;case v:return h}return x}),Ru=p,Ru}var _u,Im;function eC(){if(Im)return _u;Im=1;var e=Object.prototype,t=e.hasOwnProperty;function r(o){var s=o.length,a=new o.constructor(s);return s&&typeof o[0]=="string"&&t.call(o,"index")&&(a.index=o.index,a.input=o.input),a}return _u=r,_u}var Iu,Dm;function tC(){if(Dm)return Iu;Dm=1;var e=fc();function t(r,o){var s=o?e(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.byteLength)}return Iu=t,Iu}var Du,Mm;function rC(){if(Mm)return Du;Mm=1;var e=/\w*$/;function t(r){var o=new r.constructor(r.source,e.exec(r));return o.lastIndex=r.lastIndex,o}return Du=t,Du}var Mu,jm;function nC(){if(jm)return Mu;jm=1;var e=Pl(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function o(s){return r?Object(r.call(s)):{}}return Mu=o,Mu}var ju,Nm;function oC(){if(Nm)return ju;Nm=1;var e=fc(),t=tC(),r=rC(),o=nC(),s=nh(),a="[object Boolean]",l="[object Date]",i="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",h="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",w="[object DataView]",f="[object Float32Array]",y="[object Float64Array]",v="[object Int8Array]",p="[object Int16Array]",b="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",O="[object Uint32Array]";function k(_,T,P){var D=_.constructor;switch(T){case g:return e(_);case a:case l:return new D(+_);case w:return t(_,P);case f:case y:case v:case p:case b:case x:case S:case C:case O:return s(_,P);case i:return new D;case c:case h:return new D(_);case u:return r(_);case d:return new D;case m:return o(_)}}return ju=k,ju}var Nu,Am;function sC(){if(Am)return Nu;Am=1;var e=$u(),t=_n(),r="[object Map]";function o(s){return t(s)&&e(s)==r}return Nu=o,Nu}var Au,Vm;function aC(){if(Vm)return Au;Vm=1;var e=sC(),t=Mc(),r=jc(),o=r&&r.isMap,s=o?t(o):e;return Au=s,Au}var Vu,Fm;function iC(){if(Fm)return Vu;Fm=1;var e=$u(),t=_n(),r="[object Set]";function o(s){return t(s)&&e(s)==r}return Vu=o,Vu}var Fu,Lm;function lC(){if(Lm)return Fu;Lm=1;var e=iC(),t=Mc(),r=jc(),o=r&&r.isSet,s=o?t(o):e;return Fu=s,Fu}var Lu,qm;function cC(){if(qm)return Lu;qm=1;var e=Up(),t=LS(),r=Dh(),o=zS(),s=US(),a=Qp(),l=sh(),i=HS(),c=YS(),u=KS(),d=GS(),h=$u(),m=eC(),g=oC(),w=fh(),f=Us(),y=$c(),v=aC(),p=Qr(),b=lC(),x=du(),S=Jn(),C=1,O=2,k=4,_="[object Arguments]",T="[object Array]",P="[object Boolean]",D="[object Date]",V="[object Error]",M="[object Function]",N="[object GeneratorFunction]",F="[object Map]",K="[object Number]",H="[object Object]",Z="[object RegExp]",L="[object Set]",j="[object String]",Y="[object Symbol]",q="[object WeakMap]",$="[object ArrayBuffer]",I="[object DataView]",U="[object Float32Array]",Q="[object Float64Array]",W="[object Int8Array]",ee="[object Int16Array]",ne="[object Int32Array]",B="[object Uint8Array]",A="[object Uint8ClampedArray]",z="[object Uint16Array]",X="[object Uint32Array]",te={};te[_]=te[T]=te[$]=te[I]=te[P]=te[D]=te[U]=te[Q]=te[W]=te[ee]=te[ne]=te[F]=te[K]=te[H]=te[Z]=te[L]=te[j]=te[Y]=te[B]=te[A]=te[z]=te[X]=!0,te[V]=te[M]=te[q]=!1;function ae(J,fe,le,ge,Se,Ce){var Fe,Ye=fe&C,He=fe&O,Qe=fe&k;if(le&&(Fe=Se?le(J,ge,Se,Ce):le(J)),Fe!==void 0)return Fe;if(!p(J))return J;var ut=f(J);if(ut){if(Fe=m(J),!Ye)return l(J,Fe)}else{var dt=h(J),st=dt==M||dt==N;if(y(J))return a(J,Ye);if(dt==H||dt==_||st&&!Se){if(Fe=He||st?{}:w(J),!Ye)return He?c(J,s(Fe,J)):i(J,o(Fe,J))}else{if(!te[dt])return Se?J:{};Fe=g(J,dt,Ye)}}Ce||(Ce=new e);var Ge=Ce.get(J);if(Ge)return Ge;Ce.set(J,Fe),b(J)?J.forEach(function(mt){Fe.add(ae(mt,fe,le,mt,J,Ce))}):v(J)&&J.forEach(function(mt,Dt){Fe.set(Dt,ae(mt,fe,le,Dt,J,Ce))});var We=Qe?He?d:u:He?S:x,gt=ut?void 0:We(J);return t(gt||J,function(mt,Dt){gt&&(Dt=mt,mt=J[Dt]),r(Fe,Dt,ae(mt,fe,le,Dt,J,Ce))}),Fe}return Lu=ae,Lu}var qu,Bm;function uC(){if(Bm)return qu;Bm=1;var e=cC(),t=1,r=4;function o(s){return e(s,t|r)}return qu=o,qu}var dC=uC();const Hs=Ut(dC);var Bu,zm;function fC(){if(zm)return Bu;zm=1;var e=Xn(),t=nm(),r=Jn(),o=t(function(s,a){e(a,r(a),s)});return Bu=o,Bu}var zu,Um;function pC(){return Um||(Um=1,zu=fC()),zu}var hC=pC();const mC=Ut(hC);var Uu,Wm;function gC(){if(Wm)return Uu;Wm=1;function e(t){return t===void 0}return Uu=e,Uu}var yC=gC();const bC=Ut(yC);var Wu={},Hm;function vC(){return Hm||(Hm=1,function(e){(function(t){var r={"'":/\\\'/g,'"':/\\\"/g},o={parse:function(s){if(typeof s!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var a=0,l=[],i,c,u,d;a<s.length;)if(i=s.indexOf(".",a),c=s.indexOf("[",a),i===-1&&c===-1)l.push(s.slice(a,s.length)),a=s.length;else if(c===-1||i!==-1&&i<c)l.push(s.slice(a,i)),a=i+1;else if(c>a&&(l.push(s.slice(a,c)),a=c),u=s.slice(c+1,c+2),u!=='"'&&u!=="'")d=s.indexOf("]",c),d===-1&&(d=s.length),l.push(s.slice(a+1,d)),a=s.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=s.indexOf(u+"]",c),d===-1&&(d=s.length);s.slice(d-1,d)==="\\"&&c<s.length;)c++,d=s.indexOf(u+"]",c);l.push(s.slice(a+2,d).replace(r[u],u).replace(/\\+/g,function(h){return new Array(Math.ceil(h.length/2)+1).join("\\")})),a=s.slice(d+2,d+3)==="."?d+3:d+2}return l},stringify:function(s,a,l){Array.isArray(s)||(s=[s]),a=a==='"'?'"':"'";var i=new RegExp("(\\\\|"+a+")","g");return s.map(function(c,u){let d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(i,"\\$1"),"["+a+d+a+"]")}).join("")},normalize:function(s,a,l){return o.stringify(Array.isArray(s)?s:o.parse(s),a,l)},registerModule:function(s){s.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=o.parse,this.stringify=o.stringify,this.normalize=o.normalize,this.$get=function(){return o}})}};e.ObjectPath=o})()}(Wu)),Wu}var Hu,Ym;function wC(){return Ym||(Ym=1,Hu=vC().ObjectPath),Hu}var xC=wC();const Gt=Ut(xC);var Ys={exports:{}},Yu={},en={},In={},Ku={},Gu={},Xu={},Km;function Ks(){return Km||(Km=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class o extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((b,x)=>`${b}${x}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((b,x)=>(x instanceof r&&(b[x.str]=(b[x.str]||0)+1),b),{})}}e._Code=o,e.nil=new o("");function s(v,...p){const b=[v[0]];let x=0;for(;x<p.length;)i(b,p[x]),b.push(v[++x]);return new o(b)}e._=s;const a=new o("+");function l(v,...p){const b=[g(v[0])];let x=0;for(;x<p.length;)b.push(a),i(b,p[x]),b.push(a,g(v[++x]));return c(b),new o(b)}e.str=l;function i(v,p){p instanceof o?v.push(...p._items):p instanceof r?v.push(p):v.push(h(p))}e.addCodeArg=i;function c(v){let p=1;for(;p<v.length-1;){if(v[p]===a){const b=u(v[p-1],v[p+1]);if(b!==void 0){v.splice(p-1,3,b);continue}v[p++]="+"}p++}}function u(v,p){if(p==='""')return v;if(v==='""')return p;if(typeof v=="string")return p instanceof r||v[v.length-1]!=='"'?void 0:typeof p!="string"?`${v.slice(0,-1)}${p}"`:p[0]==='"'?v.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(v instanceof r))return`"${v}${p.slice(1)}`}function d(v,p){return p.emptyStr()?v:v.emptyStr()?p:l`${v}${p}`}e.strConcat=d;function h(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:g(Array.isArray(v)?v.join(","):v)}function m(v){return new o(g(v))}e.stringify=m;function g(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function w(v){return typeof v=="string"&&e.IDENTIFIER.test(v)?new o(`.${v}`):s`[${v}]`}e.getProperty=w;function f(v){if(typeof v=="string"&&e.IDENTIFIER.test(v))return new o(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}e.getEsmExportName=f;function y(v){return new o(v.toString())}e.regexpCode=y}(Xu)),Xu}var Ju={},Gm;function Xm(){return Gm||(Gm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ks();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var o;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=s;class a extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:h}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${h}]`}}e.ValueScopeName=a;const l=(0,t._)`\n`;class i extends s{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?l:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(u),{prefix:g}=m,w=(h=d.key)!==null&&h!==void 0?h:d.ref;let f=this._values[g];if(f){const p=f.get(w);if(p)return p}else f=this._values[g]=new Map;f.set(w,m);const y=this._scope[g]||(this._scope[g]=[]),v=y.length;return y[v]=d.ref,m.setValue(d,{property:g,itemIndex:v}),m}getValue(u,d){const h=this._values[u];if(h)return h.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${u}${h.scopePath}`})}scopeCode(u=this._values,d,h){return this._reduceValues(u,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},d,h)}_reduceValues(u,d,h={},m){let g=t.nil;for(const w in u){const f=u[w];if(!f)continue;const y=h[w]=h[w]||new Map;f.forEach(v=>{if(y.has(v))return;y.set(v,o.Started);let p=d(v);if(p){const b=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${b} ${v} = ${p};${this.opts._n}`}else if(p=m==null?void 0:m(v))g=(0,t._)`${g}${p}${this.opts._n}`;else throw new r(v);y.set(v,o.Completed)})}return g}}e.ValueScope=i}(Ju)),Ju}var Jm;function at(){return Jm||(Jm=1,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=Ks(),r=Xm();var o=Ks();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var s=Xm();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.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($,I){return this}}class l extends a{constructor($,I,U){super(),this.varKind=$,this.name=I,this.rhs=U}render({es5:$,_n:I}){const U=$?r.varKinds.var:this.varKind,Q=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${Q};`+I}optimizeNames($,I){if($[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,$,I)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends a{constructor($,I,U){super(),this.lhs=$,this.rhs=I,this.sideEffects=U}render({_n:$}){return`${this.lhs} = ${this.rhs};`+$}optimizeNames($,I){if(!(this.lhs instanceof t.Name&&!$[this.lhs.str]&&!this.sideEffects))return this.rhs=M(this.rhs,$,I),this}get names(){const $=this.lhs instanceof t.Name?{}:{...this.lhs.names};return V($,this.rhs)}}class c extends i{constructor($,I,U,Q){super($,U,Q),this.op=I}render({_n:$}){return`${this.lhs} ${this.op}= ${this.rhs};`+$}}class u extends a{constructor($){super(),this.label=$,this.names={}}render({_n:$}){return`${this.label}:`+$}}class d extends a{constructor($){super(),this.label=$,this.names={}}render({_n:$}){return`break${this.label?` ${this.label}`:""};`+$}}class h extends a{constructor($){super(),this.error=$}render({_n:$}){return`throw ${this.error};`+$}get names(){return this.error.names}}class m extends a{constructor($){super(),this.code=$}render({_n:$}){return`${this.code};`+$}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames($,I){return this.code=M(this.code,$,I),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends a{constructor($=[]){super(),this.nodes=$}render($){return this.nodes.reduce((I,U)=>I+U.render($),"")}optimizeNodes(){const{nodes:$}=this;let I=$.length;for(;I--;){const U=$[I].optimizeNodes();Array.isArray(U)?$.splice(I,1,...U):U?$[I]=U:$.splice(I,1)}return $.length>0?this:void 0}optimizeNames($,I){const{nodes:U}=this;let Q=U.length;for(;Q--;){const W=U[Q];W.optimizeNames($,I)||(N($,W.names),U.splice(Q,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce(($,I)=>D($,I.names),{})}}class w extends g{render($){return"{"+$._n+super.render($)+"}"+$._n}}class f extends g{}class y extends w{}y.kind="else";class v extends w{constructor($,I){super(I),this.condition=$}render($){let I=`if(${this.condition})`+super.render($);return this.else&&(I+="else "+this.else.render($)),I}optimizeNodes(){super.optimizeNodes();const $=this.condition;if($===!0)return this.nodes;let I=this.else;if(I){const U=I.optimizeNodes();I=this.else=Array.isArray(U)?new y(U):U}if(I)return $===!1?I instanceof v?I:I.nodes:this.nodes.length?this:new v(F($),I instanceof v?[I]:I.nodes);if(!($===!1||!this.nodes.length))return this}optimizeNames($,I){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames($,I),!!(super.optimizeNames($,I)||this.else))return this.condition=M(this.condition,$,I),this}get names(){const $=super.names;return V($,this.condition),this.else&&D($,this.else.names),$}}v.kind="if";class p extends w{}p.kind="for";class b extends p{constructor($){super(),this.iteration=$}render($){return`for(${this.iteration})`+super.render($)}optimizeNames($,I){if(super.optimizeNames($,I))return this.iteration=M(this.iteration,$,I),this}get names(){return D(super.names,this.iteration.names)}}class x extends p{constructor($,I,U,Q){super(),this.varKind=$,this.name=I,this.from=U,this.to=Q}render($){const I=$.es5?r.varKinds.var:this.varKind,{name:U,from:Q,to:W}=this;return`for(${I} ${U}=${Q}; ${U}<${W}; ${U}++)`+super.render($)}get names(){const $=V(super.names,this.from);return V($,this.to)}}class S extends p{constructor($,I,U,Q){super(),this.loop=$,this.varKind=I,this.name=U,this.iterable=Q}render($){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render($)}optimizeNames($,I){if(super.optimizeNames($,I))return this.iterable=M(this.iterable,$,I),this}get names(){return D(super.names,this.iterable.names)}}class C extends w{constructor($,I,U){super(),this.name=$,this.args=I,this.async=U}render($){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render($)}}C.kind="func";class O extends g{render($){return"return "+super.render($)}}O.kind="return";class k extends w{render($){let I="try"+super.render($);return this.catch&&(I+=this.catch.render($)),this.finally&&(I+=this.finally.render($)),I}optimizeNodes(){var $,I;return super.optimizeNodes(),($=this.catch)===null||$===void 0||$.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames($,I){var U,Q;return super.optimizeNames($,I),(U=this.catch)===null||U===void 0||U.optimizeNames($,I),(Q=this.finally)===null||Q===void 0||Q.optimizeNames($,I),this}get names(){const $=super.names;return this.catch&&D($,this.catch.names),this.finally&&D($,this.finally.names),$}}class _ extends w{constructor($){super(),this.error=$}render($){return`catch(${this.error})`+super.render($)}}_.kind="catch";class T extends w{render($){return"finally"+super.render($)}}T.kind="finally";class P{constructor($,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?`
31
- `:""},this._extScope=$,this._scope=new r.Scope({parent:$}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,I){const U=this._extScope.value($,I);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue($,I){return this._extScope.getValue($,I)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,I,U,Q){const W=this._scope.toName(I);return U!==void 0&&Q&&(this._constants[W.str]=U),this._leafNode(new l($,W,U)),W}const($,I,U){return this._def(r.varKinds.const,$,I,U)}let($,I,U){return this._def(r.varKinds.let,$,I,U)}var($,I,U){return this._def(r.varKinds.var,$,I,U)}assign($,I,U){return this._leafNode(new i($,I,U))}add($,I){return this._leafNode(new c($,e.operators.ADD,I))}code($){return typeof $=="function"?$():$!==t.nil&&this._leafNode(new m($)),this}object(...$){const I=["{"];for(const[U,Q]of $)I.length>1&&I.push(","),I.push(U),(U!==Q||this.opts.es5)&&(I.push(":"),(0,t.addCodeArg)(I,Q));return I.push("}"),new t._Code(I)}if($,I,U){if(this._blockNode(new v($)),I&&U)this.code(I).else().code(U).endIf();else if(I)this.code(I).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new v($))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(v,y)}_for($,I){return this._blockNode($),I&&this.code(I).endFor(),this}for($,I){return this._for(new b($),I)}forRange($,I,U,Q,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const ee=this._scope.toName($);return this._for(new x(W,ee,I,U),()=>Q(ee))}forOf($,I,U,Q=r.varKinds.const){const W=this._scope.toName($);if(this.opts.es5){const ee=I instanceof t.Name?I:this.var("_arr",I);return this.forRange("_i",0,(0,t._)`${ee}.length`,ne=>{this.var(W,(0,t._)`${ee}[${ne}]`),U(W)})}return this._for(new S("of",Q,W,I),()=>U(W))}forIn($,I,U,Q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf($,(0,t._)`Object.keys(${I})`,U);const W=this._scope.toName($);return this._for(new S("in",Q,W,I),()=>U(W))}endFor(){return this._endBlockNode(p)}label($){return this._leafNode(new u($))}break($){return this._leafNode(new d($))}return($){const I=new O;if(this._blockNode(I),this.code($),I.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try($,I,U){if(!I&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const Q=new k;if(this._blockNode(Q),this.code($),I){const W=this.name("e");this._currNode=Q.catch=new _(W),I(W)}return U&&(this._currNode=Q.finally=new T,this.code(U)),this._endBlockNode(_,T)}throw($){return this._leafNode(new h($))}block($,I){return this._blockStarts.push(this._nodes.length),$&&this.code($).endBlock(I),this}endBlock($){const I=this._blockStarts.pop();if(I===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-I;if(U<0||$!==void 0&&U!==$)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${$} expected`);return this._nodes.length=I,this}func($,I=t.nil,U,Q){return this._blockNode(new C($,I,U)),Q&&this.code(Q).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize($=1){for(;$-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,I){const U=this._currNode;if(U instanceof $||I&&U instanceof I)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${I?`${$.kind}/${I.kind}`:$.kind}"`)}_elseNode($){const I=this._currNode;if(!(I instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=I.else=$,this}get _root(){return this._nodes[0]}get _currNode(){const $=this._nodes;return $[$.length-1]}set _currNode($){const I=this._nodes;I[I.length-1]=$}}e.CodeGen=P;function D(q,$){for(const I in $)q[I]=(q[I]||0)+($[I]||0);return q}function V(q,$){return $ instanceof t._CodeOrName?D(q,$.names):q}function M(q,$,I){if(q instanceof t.Name)return U(q);if(!Q(q))return q;return new t._Code(q._items.reduce((W,ee)=>(ee instanceof t.Name&&(ee=U(ee)),ee instanceof t._Code?W.push(...ee._items):W.push(ee),W),[]));function U(W){const ee=I[W.str];return ee===void 0||$[W.str]!==1?W:(delete $[W.str],ee)}function Q(W){return W instanceof t._Code&&W._items.some(ee=>ee instanceof t.Name&&$[ee.str]===1&&I[ee.str]!==void 0)}}function N(q,$){for(const I in $)q[I]=(q[I]||0)-($[I]||0)}function F(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${Y(q)}`}e.not=F;const K=j(e.operators.AND);function H(...q){return q.reduce(K)}e.and=H;const Z=j(e.operators.OR);function L(...q){return q.reduce(Z)}e.or=L;function j(q){return($,I)=>$===t.nil?I:I===t.nil?$:(0,t._)`${Y($)} ${q} ${Y(I)}`}function Y(q){return q instanceof t.Name?q:(0,t._)`(${q})`}}(Gu)),Gu}var it={},Zm;function bt(){if(Zm)return it;Zm=1,Object.defineProperty(it,"__esModule",{value:!0}),it.checkStrictMode=it.getErrorPath=it.Type=it.useFunc=it.setEvaluated=it.evaluatedPropsToName=it.mergeEvaluated=it.eachItem=it.unescapeJsonPointer=it.escapeJsonPointer=it.escapeFragment=it.unescapeFragment=it.schemaRefOrVal=it.schemaHasRulesButRef=it.schemaHasRules=it.checkUnknownRules=it.alwaysValidSchema=it.toHash=void 0;const e=at(),t=Ks();function r(S){const C={};for(const O of S)C[O]=!0;return C}it.toHash=r;function o(S,C){return typeof C=="boolean"?C:Object.keys(C).length===0?!0:(s(S,C),!a(C,S.self.RULES.all))}it.alwaysValidSchema=o;function s(S,C=S.schema){const{opts:O,self:k}=S;if(!O.strictSchema||typeof C=="boolean")return;const _=k.RULES.keywords;for(const T in C)_[T]||x(S,`unknown keyword: "${T}"`)}it.checkUnknownRules=s;function a(S,C){if(typeof S=="boolean")return!S;for(const O in S)if(C[O])return!0;return!1}it.schemaHasRules=a;function l(S,C){if(typeof S=="boolean")return!S;for(const O in S)if(O!=="$ref"&&C.all[O])return!0;return!1}it.schemaHasRulesButRef=l;function i({topSchemaRef:S,schemaPath:C},O,k,_){if(!_){if(typeof O=="number"||typeof O=="boolean")return O;if(typeof O=="string")return(0,e._)`${O}`}return(0,e._)`${S}${C}${(0,e.getProperty)(k)}`}it.schemaRefOrVal=i;function c(S){return h(decodeURIComponent(S))}it.unescapeFragment=c;function u(S){return encodeURIComponent(d(S))}it.escapeFragment=u;function d(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}it.escapeJsonPointer=d;function h(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}it.unescapeJsonPointer=h;function m(S,C){if(Array.isArray(S))for(const O of S)C(O);else C(S)}it.eachItem=m;function g({mergeNames:S,mergeToName:C,mergeValues:O,resultToName:k}){return(_,T,P,D)=>{const V=P===void 0?T:P instanceof e.Name?(T instanceof e.Name?S(_,T,P):C(_,T,P),P):T instanceof e.Name?(C(_,P,T),T):O(T,P);return D===e.Name&&!(V instanceof e.Name)?k(_,V):V}}it.mergeEvaluated={props:g({mergeNames:(S,C,O)=>S.if((0,e._)`${O} !== true && ${C} !== undefined`,()=>{S.if((0,e._)`${C} === true`,()=>S.assign(O,!0),()=>S.assign(O,(0,e._)`${O} || {}`).code((0,e._)`Object.assign(${O}, ${C})`))}),mergeToName:(S,C,O)=>S.if((0,e._)`${O} !== true`,()=>{C===!0?S.assign(O,!0):(S.assign(O,(0,e._)`${O} || {}`),f(S,O,C))}),mergeValues:(S,C)=>S===!0?!0:{...S,...C},resultToName:w}),items:g({mergeNames:(S,C,O)=>S.if((0,e._)`${O} !== true && ${C} !== undefined`,()=>S.assign(O,(0,e._)`${C} === true ? true : ${O} > ${C} ? ${O} : ${C}`)),mergeToName:(S,C,O)=>S.if((0,e._)`${O} !== true`,()=>S.assign(O,C===!0?!0:(0,e._)`${O} > ${C} ? ${O} : ${C}`)),mergeValues:(S,C)=>S===!0?!0:Math.max(S,C),resultToName:(S,C)=>S.var("items",C)})};function w(S,C){if(C===!0)return S.var("props",!0);const O=S.var("props",(0,e._)`{}`);return C!==void 0&&f(S,O,C),O}it.evaluatedPropsToName=w;function f(S,C,O){Object.keys(O).forEach(k=>S.assign((0,e._)`${C}${(0,e.getProperty)(k)}`,!0))}it.setEvaluated=f;const y={};function v(S,C){return S.scopeValue("func",{ref:C,code:y[C.code]||(y[C.code]=new t._Code(C.code))})}it.useFunc=v;var p;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(p||(it.Type=p={}));function b(S,C,O){if(S instanceof e.Name){const k=C===p.Num;return O?k?(0,e._)`"[" + ${S} + "]"`:(0,e._)`"['" + ${S} + "']"`:k?(0,e._)`"/" + ${S}`:(0,e._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return O?(0,e.getProperty)(S).toString():"/"+d(S)}it.getErrorPath=b;function x(S,C,O=S.opts.strictSchema){if(O){if(C=`strict mode: ${C}`,O===!0)throw new Error(C);S.self.logger.warn(C)}}return it.checkStrictMode=x,it}var Gs={},Qm;function dn(){if(Qm)return Gs;Qm=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=at(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Gs.default=t,Gs}var eg;function Xs(){return eg||(eg=1,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=at(),r=bt(),o=dn();e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:v})=>v?(0,t.str)`"${y}" keyword must be ${v} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function s(y,v=e.keywordError,p,b){const{it:x}=y,{gen:S,compositeRule:C,allErrors:O}=x,k=h(y,v,p);b??(C||O)?c(S,k):u(x,(0,t._)`[${k}]`)}e.reportError=s;function a(y,v=e.keywordError,p){const{it:b}=y,{gen:x,compositeRule:S,allErrors:C}=b,O=h(y,v,p);c(x,O),S||C||u(b,o.default.vErrors)}e.reportExtraError=a;function l(y,v){y.assign(o.default.errors,v),y.if((0,t._)`${o.default.vErrors} !== null`,()=>y.if(v,()=>y.assign((0,t._)`${o.default.vErrors}.length`,v),()=>y.assign(o.default.vErrors,null)))}e.resetErrorsCount=l;function i({gen:y,keyword:v,schemaValue:p,data:b,errsCount:x,it:S}){if(x===void 0)throw new Error("ajv implementation error");const C=y.name("err");y.forRange("i",x,o.default.errors,O=>{y.const(C,(0,t._)`${o.default.vErrors}[${O}]`),y.if((0,t._)`${C}.instancePath === undefined`,()=>y.assign((0,t._)`${C}.instancePath`,(0,t.strConcat)(o.default.instancePath,S.errorPath))),y.assign((0,t._)`${C}.schemaPath`,(0,t.str)`${S.errSchemaPath}/${v}`),S.opts.verbose&&(y.assign((0,t._)`${C}.schema`,p),y.assign((0,t._)`${C}.data`,b))})}e.extendErrors=i;function c(y,v){const p=y.const("err",v);y.if((0,t._)`${o.default.vErrors} === null`,()=>y.assign(o.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${o.default.vErrors}.push(${p})`),y.code((0,t._)`${o.default.errors}++`)}function u(y,v){const{gen:p,validateName:b,schemaEnv:x}=y;x.$async?p.throw((0,t._)`new ${y.ValidationError}(${v})`):(p.assign((0,t._)`${b}.errors`,v),p.return(!1))}const d={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 h(y,v,p){const{createErrors:b}=y.it;return b===!1?(0,t._)`{}`:m(y,v,p)}function m(y,v,p={}){const{gen:b,it:x}=y,S=[g(x,p),w(y,p)];return f(y,v,S),b.object(...S)}function g({errorPath:y},{instancePath:v}){const p=v?(0,t.str)`${y}${(0,r.getErrorPath)(v,r.Type.Str)}`:y;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,p)]}function w({keyword:y,it:{errSchemaPath:v}},{schemaPath:p,parentSchema:b}){let x=b?v:(0,t.str)`${v}/${y}`;return p&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(p,r.Type.Str)}`),[d.schemaPath,x]}function f(y,{params:v,message:p},b){const{keyword:x,data:S,schemaValue:C,it:O}=y,{opts:k,propertyName:_,topSchemaRef:T,schemaPath:P}=O;b.push([d.keyword,x],[d.params,typeof v=="function"?v(y):v||(0,t._)`{}`]),k.messages&&b.push([d.message,typeof p=="function"?p(y):p]),k.verbose&&b.push([d.schema,C],[d.parentSchema,(0,t._)`${T}${P}`],[o.default.data,S]),_&&b.push([d.propertyName,_])}}(Ku)),Ku}var tg;function SC(){if(tg)return In;tg=1,Object.defineProperty(In,"__esModule",{value:!0}),In.boolOrEmptySchema=In.topBoolOrEmptySchema=void 0;const e=Xs(),t=at(),r=dn(),o={message:"boolean schema is false"};function s(i){const{gen:c,schema:u,validateName:d}=i;u===!1?l(i,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${d}.errors`,null),c.return(!0))}In.topBoolOrEmptySchema=s;function a(i,c){const{gen:u,schema:d}=i;d===!1?(u.var(c,!1),l(i)):u.var(c,!0)}In.boolOrEmptySchema=a;function l(i,c){const{gen:u,data:d}=i,h={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:i};(0,e.reportError)(h,o,void 0,c)}return In}var Ht={},Dn={},rg;function ng(){if(rg)return Dn;rg=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.getRules=Dn.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(s){return typeof s=="string"&&t.has(s)}Dn.isJSONType=r;function o(){const s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}return Dn.getRules=o,Dn}var tn={},og;function sg(){if(og)return tn;og=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.shouldUseRule=tn.shouldUseGroup=tn.schemaHasRulesForType=void 0;function e({schema:o,self:s},a){const l=s.RULES.types[a];return l&&l!==!0&&t(o,l)}tn.schemaHasRulesForType=e;function t(o,s){return s.rules.some(a=>r(o,a))}tn.shouldUseGroup=t;function r(o,s){var a;return o[s.keyword]!==void 0||((a=s.definition.implements)===null||a===void 0?void 0:a.some(l=>o[l]!==void 0))}return tn.shouldUseRule=r,tn}var ag;function Js(){if(ag)return Ht;ag=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.reportTypeError=Ht.checkDataTypes=Ht.checkDataType=Ht.coerceAndCheckDataType=Ht.getJSONTypes=Ht.getSchemaTypes=Ht.DataType=void 0;const e=ng(),t=sg(),r=Xs(),o=at(),s=bt();var a;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(a||(Ht.DataType=a={}));function l(p){const b=i(p.type);if(b.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!b.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&b.push("null")}return b}Ht.getSchemaTypes=l;function i(p){const b=Array.isArray(p)?p:p?[p]:[];if(b.every(e.isJSONType))return b;throw new Error("type must be JSONType or JSONType[]: "+b.join(","))}Ht.getJSONTypes=i;function c(p,b){const{gen:x,data:S,opts:C}=p,O=d(b,C.coerceTypes),k=b.length>0&&!(O.length===0&&b.length===1&&(0,t.schemaHasRulesForType)(p,b[0]));if(k){const _=w(b,S,C.strictNumbers,a.Wrong);x.if(_,()=>{O.length?h(p,b,O):y(p)})}return k}Ht.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(p,b){return b?p.filter(x=>u.has(x)||b==="array"&&x==="array"):[]}function h(p,b,x){const{gen:S,data:C,opts:O}=p,k=S.let("dataType",(0,o._)`typeof ${C}`),_=S.let("coerced",(0,o._)`undefined`);O.coerceTypes==="array"&&S.if((0,o._)`${k} == 'object' && Array.isArray(${C}) && ${C}.length == 1`,()=>S.assign(C,(0,o._)`${C}[0]`).assign(k,(0,o._)`typeof ${C}`).if(w(b,C,O.strictNumbers),()=>S.assign(_,C))),S.if((0,o._)`${_} !== undefined`);for(const P of x)(u.has(P)||P==="array"&&O.coerceTypes==="array")&&T(P);S.else(),y(p),S.endIf(),S.if((0,o._)`${_} !== undefined`,()=>{S.assign(C,_),m(p,_)});function T(P){switch(P){case"string":S.elseIf((0,o._)`${k} == "number" || ${k} == "boolean"`).assign(_,(0,o._)`"" + ${C}`).elseIf((0,o._)`${C} === null`).assign(_,(0,o._)`""`);return;case"number":S.elseIf((0,o._)`${k} == "boolean" || ${C} === null
32
- || (${k} == "string" && ${C} && ${C} == +${C})`).assign(_,(0,o._)`+${C}`);return;case"integer":S.elseIf((0,o._)`${k} === "boolean" || ${C} === null
33
- || (${k} === "string" && ${C} && ${C} == +${C} && !(${C} % 1))`).assign(_,(0,o._)`+${C}`);return;case"boolean":S.elseIf((0,o._)`${C} === "false" || ${C} === 0 || ${C} === null`).assign(_,!1).elseIf((0,o._)`${C} === "true" || ${C} === 1`).assign(_,!0);return;case"null":S.elseIf((0,o._)`${C} === "" || ${C} === 0 || ${C} === false`),S.assign(_,null);return;case"array":S.elseIf((0,o._)`${k} === "string" || ${k} === "number"
34
- || ${k} === "boolean" || ${C} === null`).assign(_,(0,o._)`[${C}]`)}}}function m({gen:p,parentData:b,parentDataProperty:x},S){p.if((0,o._)`${b} !== undefined`,()=>p.assign((0,o._)`${b}[${x}]`,S))}function g(p,b,x,S=a.Correct){const C=S===a.Correct?o.operators.EQ:o.operators.NEQ;let O;switch(p){case"null":return(0,o._)`${b} ${C} null`;case"array":O=(0,o._)`Array.isArray(${b})`;break;case"object":O=(0,o._)`${b} && typeof ${b} == "object" && !Array.isArray(${b})`;break;case"integer":O=k((0,o._)`!(${b} % 1) && !isNaN(${b})`);break;case"number":O=k();break;default:return(0,o._)`typeof ${b} ${C} ${p}`}return S===a.Correct?O:(0,o.not)(O);function k(_=o.nil){return(0,o.and)((0,o._)`typeof ${b} == "number"`,_,x?(0,o._)`isFinite(${b})`:o.nil)}}Ht.checkDataType=g;function w(p,b,x,S){if(p.length===1)return g(p[0],b,x,S);let C;const O=(0,s.toHash)(p);if(O.array&&O.object){const k=(0,o._)`typeof ${b} != "object"`;C=O.null?k:(0,o._)`!${b} || ${k}`,delete O.null,delete O.array,delete O.object}else C=o.nil;O.number&&delete O.integer;for(const k in O)C=(0,o.and)(C,g(k,b,x,S));return C}Ht.checkDataTypes=w;const f={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:b})=>typeof p=="string"?(0,o._)`{type: ${p}}`:(0,o._)`{type: ${b}}`};function y(p){const b=v(p);(0,r.reportError)(b,f)}Ht.reportTypeError=y;function v(p){const{gen:b,data:x,schema:S}=p,C=(0,s.schemaRefOrVal)(p,S,"type");return{gen:b,keyword:"type",data:x,schema:S.type,schemaCode:C,schemaValue:C,parentSchema:S,params:{},it:p}}return Ht}var Io={},ig;function CC(){if(ig)return Io;ig=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.assignDefaults=void 0;const e=at(),t=bt();function r(s,a){const{properties:l,items:i}=s.schema;if(a==="object"&&l)for(const c in l)o(s,c,l[c].default);else a==="array"&&Array.isArray(i)&&i.forEach((c,u)=>o(s,u,c.default))}Io.assignDefaults=r;function o(s,a,l){const{gen:i,compositeRule:c,data:u,opts:d}=s;if(l===void 0)return;const h=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(s,`default is ignored for: ${h}`);return}let m=(0,e._)`${h} === undefined`;d.useDefaults==="empty"&&(m=(0,e._)`${m} || ${h} === null || ${h} === ""`),i.if(m,(0,e._)`${h} = ${(0,e.stringify)(l)}`)}return Io}var Mr={},Ct={},lg;function jr(){if(lg)return Ct;lg=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.validateUnion=Ct.validateArray=Ct.usePattern=Ct.callValidateCode=Ct.schemaProperties=Ct.allSchemaProperties=Ct.noPropertyInData=Ct.propertyInData=Ct.isOwnProperty=Ct.hasPropFunc=Ct.reportMissingProp=Ct.checkMissingProp=Ct.checkReportMissingProp=void 0;const e=at(),t=bt(),r=dn(),o=bt();function s(p,b){const{gen:x,data:S,it:C}=p;x.if(d(x,S,b,C.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${b}`},!0),p.error()})}Ct.checkReportMissingProp=s;function a({gen:p,data:b,it:{opts:x}},S,C){return(0,e.or)(...S.map(O=>(0,e.and)(d(p,b,O,x.ownProperties),(0,e._)`${C} = ${O}`)))}Ct.checkMissingProp=a;function l(p,b){p.setParams({missingProperty:b},!0),p.error()}Ct.reportMissingProp=l;function i(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ct.hasPropFunc=i;function c(p,b,x){return(0,e._)`${i(p)}.call(${b}, ${x})`}Ct.isOwnProperty=c;function u(p,b,x,S){const C=(0,e._)`${b}${(0,e.getProperty)(x)} !== undefined`;return S?(0,e._)`${C} && ${c(p,b,x)}`:C}Ct.propertyInData=u;function d(p,b,x,S){const C=(0,e._)`${b}${(0,e.getProperty)(x)} === undefined`;return S?(0,e.or)(C,(0,e.not)(c(p,b,x))):C}Ct.noPropertyInData=d;function h(p){return p?Object.keys(p).filter(b=>b!=="__proto__"):[]}Ct.allSchemaProperties=h;function m(p,b){return h(b).filter(x=>!(0,t.alwaysValidSchema)(p,b[x]))}Ct.schemaProperties=m;function g({schemaCode:p,data:b,it:{gen:x,topSchemaRef:S,schemaPath:C,errorPath:O},it:k},_,T,P){const D=P?(0,e._)`${p}, ${b}, ${S}${C}`:b,V=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,O)],[r.default.parentData,k.parentData],[r.default.parentDataProperty,k.parentDataProperty],[r.default.rootData,r.default.rootData]];k.opts.dynamicRef&&V.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const M=(0,e._)`${D}, ${x.object(...V)}`;return T!==e.nil?(0,e._)`${_}.call(${T}, ${M})`:(0,e._)`${_}(${M})`}Ct.callValidateCode=g;const w=(0,e._)`new RegExp`;function f({gen:p,it:{opts:b}},x){const S=b.unicodeRegExp?"u":"",{regExp:C}=b.code,O=C(x,S);return p.scopeValue("pattern",{key:O.toString(),ref:O,code:(0,e._)`${C.code==="new RegExp"?w:(0,o.useFunc)(p,C)}(${x}, ${S})`})}Ct.usePattern=f;function y(p){const{gen:b,data:x,keyword:S,it:C}=p,O=b.name("valid");if(C.allErrors){const _=b.let("valid",!0);return k(()=>b.assign(_,!1)),_}return b.var(O,!0),k(()=>b.break()),O;function k(_){const T=b.const("len",(0,e._)`${x}.length`);b.forRange("i",0,T,P=>{p.subschema({keyword:S,dataProp:P,dataPropType:t.Type.Num},O),b.if((0,e.not)(O),_)})}}Ct.validateArray=y;function v(p){const{gen:b,schema:x,keyword:S,it:C}=p;if(!Array.isArray(x))throw new Error("ajv implementation error");if(x.some(T=>(0,t.alwaysValidSchema)(C,T))&&!C.opts.unevaluated)return;const k=b.let("valid",!1),_=b.name("_valid");b.block(()=>x.forEach((T,P)=>{const D=p.subschema({keyword:S,schemaProp:P,compositeRule:!0},_);b.assign(k,(0,e._)`${k} || ${_}`),p.mergeValidEvaluated(D,_)||b.if((0,e.not)(k))})),p.result(k,()=>p.reset(),()=>p.error(!0))}return Ct.validateUnion=v,Ct}var cg;function TC(){if(cg)return Mr;cg=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.validateKeywordUsage=Mr.validSchemaType=Mr.funcKeywordCode=Mr.macroKeywordCode=void 0;const e=at(),t=dn(),r=jr(),o=Xs();function s(m,g){const{gen:w,keyword:f,schema:y,parentSchema:v,it:p}=m,b=g.macro.call(p.self,y,v,p),x=u(w,f,b);p.opts.validateSchema!==!1&&p.self.validateSchema(b,!0);const S=w.name("valid");m.subschema({schema:b,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${f}`,topSchemaRef:x,compositeRule:!0},S),m.pass(S,()=>m.error(!0))}Mr.macroKeywordCode=s;function a(m,g){var w;const{gen:f,keyword:y,schema:v,parentSchema:p,$data:b,it:x}=m;c(x,g);const S=!b&&g.compile?g.compile.call(x.self,v,p,x):g.validate,C=u(f,y,S),O=f.let("valid");m.block$data(O,k),m.ok((w=g.valid)!==null&&w!==void 0?w:O);function k(){if(g.errors===!1)P(),g.modifying&&l(m),D(()=>m.error());else{const V=g.async?_():T();g.modifying&&l(m),D(()=>i(m,V))}}function _(){const V=f.let("ruleErrs",null);return f.try(()=>P((0,e._)`await `),M=>f.assign(O,!1).if((0,e._)`${M} instanceof ${x.ValidationError}`,()=>f.assign(V,(0,e._)`${M}.errors`),()=>f.throw(M))),V}function T(){const V=(0,e._)`${C}.errors`;return f.assign(V,null),P(e.nil),V}function P(V=g.async?(0,e._)`await `:e.nil){const M=x.opts.passContext?t.default.this:t.default.self,N=!("compile"in g&&!b||g.schema===!1);f.assign(O,(0,e._)`${V}${(0,r.callValidateCode)(m,C,M,N)}`,g.modifying)}function D(V){var M;f.if((0,e.not)((M=g.valid)!==null&&M!==void 0?M:O),V)}}Mr.funcKeywordCode=a;function l(m){const{gen:g,data:w,it:f}=m;g.if(f.parentData,()=>g.assign(w,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function i(m,g){const{gen:w}=m;w.if((0,e._)`Array.isArray(${g})`,()=>{w.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,o.extendErrors)(m)},()=>m.error())}function c({schemaEnv:m},g){if(g.async&&!m.$async)throw new Error("async keyword in sync schema")}function u(m,g,w){if(w===void 0)throw new Error(`keyword "${g}" failed to compile`);return m.scopeValue("keyword",typeof w=="function"?{ref:w}:{ref:w,code:(0,e.stringify)(w)})}function d(m,g,w=!1){return!g.length||g.some(f=>f==="array"?Array.isArray(m):f==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==f||w&&typeof m>"u")}Mr.validSchemaType=d;function h({schema:m,opts:g,self:w,errSchemaPath:f},y,v){if(Array.isArray(y.keyword)?!y.keyword.includes(v):y.keyword!==v)throw new Error("ajv implementation error");const p=y.dependencies;if(p!=null&&p.some(b=>!Object.prototype.hasOwnProperty.call(m,b)))throw new Error(`parent schema must have dependencies of ${v}: ${p.join(",")}`);if(y.validateSchema&&!y.validateSchema(m[v])){const x=`keyword "${v}" value is invalid at path "${f}": `+w.errorsText(y.validateSchema.errors);if(g.validateSchema==="log")w.logger.error(x);else throw new Error(x)}}return Mr.validateKeywordUsage=h,Mr}var rn={},ug;function OC(){if(ug)return rn;ug=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.extendSubschemaMode=rn.extendSubschemaData=rn.getSubschema=void 0;const e=at(),t=bt();function r(a,{keyword:l,schemaProp:i,schema:c,schemaPath:u,errSchemaPath:d,topSchemaRef:h}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const m=a.schema[l];return i===void 0?{schema:m,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${a.errSchemaPath}/${l}`}:{schema:m[i],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(i)}`,errSchemaPath:`${a.errSchemaPath}/${l}/${(0,t.escapeFragment)(i)}`}}if(c!==void 0){if(u===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}rn.getSubschema=r;function o(a,l,{dataProp:i,dataPropType:c,data:u,dataTypes:d,propertyName:h}){if(u!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=l;if(i!==void 0){const{errorPath:w,dataPathArr:f,opts:y}=l,v=m.let("data",(0,e._)`${l.data}${(0,e.getProperty)(i)}`,!0);g(v),a.errorPath=(0,e.str)`${w}${(0,t.getErrorPath)(i,c,y.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${i}`,a.dataPathArr=[...f,a.parentDataProperty]}if(u!==void 0){const w=u instanceof e.Name?u:m.let("data",u,!0);g(w),h!==void 0&&(a.propertyName=h)}d&&(a.dataTypes=d);function g(w){a.data=w,a.dataLevel=l.dataLevel+1,a.dataTypes=[],l.definedProperties=new Set,a.parentData=l.data,a.dataNames=[...l.dataNames,w]}}rn.extendSubschemaData=o;function s(a,{jtdDiscriminator:l,jtdMetadata:i,compositeRule:c,createErrors:u,allErrors:d}){c!==void 0&&(a.compositeRule=c),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=l,a.jtdMetadata=i}return rn.extendSubschemaMode=s,rn}var nr={},Zu,dg;function fg(){return dg||(dg=1,Zu=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,s,a;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),o=a.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=o;s--!==0;){var l=a[s];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}),Zu}var Qu={exports:{}},pg;function PC(){if(pg)return Qu.exports;pg=1;var e=Qu.exports=function(o,s,a){typeof s=="function"&&(a=s,s={}),a=s.cb||a;var l=typeof a=="function"?a:a.pre||function(){},i=a.post||function(){};t(s,l,i,o,"",o)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(o,s,a,l,i,c,u,d,h,m){if(l&&typeof l=="object"&&!Array.isArray(l)){s(l,i,c,u,d,h,m);for(var g in l){var w=l[g];if(Array.isArray(w)){if(g in e.arrayKeywords)for(var f=0;f<w.length;f++)t(o,s,a,w[f],i+"/"+g+"/"+f,c,i,g,l,f)}else if(g in e.propsKeywords){if(w&&typeof w=="object")for(var y in w)t(o,s,a,w[y],i+"/"+g+"/"+r(y),c,i,g,l,y)}else(g in e.keywords||o.allKeys&&!(g in e.skipKeywords))&&t(o,s,a,w,i+"/"+g,c,i,g,l)}a(l,i,c,u,d,h,m)}}function r(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return Qu.exports}var hg;function Zs(){if(hg)return nr;hg=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.getSchemaRefs=nr.resolveUrl=nr.normalizeId=nr._getFullPath=nr.getFullPath=nr.inlineRef=void 0;const e=bt(),t=fg(),r=PC(),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function s(f,y=!0){return typeof f=="boolean"?!0:y===!0?!l(f):y?i(f)<=y:!1}nr.inlineRef=s;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(f){for(const y in f){if(a.has(y))return!0;const v=f[y];if(Array.isArray(v)&&v.some(l)||typeof v=="object"&&l(v))return!0}return!1}function i(f){let y=0;for(const v in f){if(v==="$ref")return 1/0;if(y++,!o.has(v)&&(typeof f[v]=="object"&&(0,e.eachItem)(f[v],p=>y+=i(p)),y===1/0))return 1/0}return y}function c(f,y="",v){v!==!1&&(y=h(y));const p=f.parse(y);return u(f,p)}nr.getFullPath=c;function u(f,y){return f.serialize(y).split("#")[0]+"#"}nr._getFullPath=u;const d=/#\/?$/;function h(f){return f?f.replace(d,""):""}nr.normalizeId=h;function m(f,y,v){return v=h(v),f.resolve(y,v)}nr.resolveUrl=m;const g=/^[a-z_][-a-z0-9._]*$/i;function w(f,y){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:p}=this.opts,b=h(f[v]||y),x={"":b},S=c(p,b,!1),C={},O=new Set;return r(f,{allKeys:!0},(T,P,D,V)=>{if(V===void 0)return;const M=S+P;let N=x[V];typeof T[v]=="string"&&(N=F.call(this,T[v])),K.call(this,T.$anchor),K.call(this,T.$dynamicAnchor),x[P]=N;function F(H){const Z=this.opts.uriResolver.resolve;if(H=h(N?Z(N,H):H),O.has(H))throw _(H);O.add(H);let L=this.refs[H];return typeof L=="string"&&(L=this.refs[L]),typeof L=="object"?k(T,L.schema,H):H!==h(M)&&(H[0]==="#"?(k(T,C[H],H),C[H]=T):this.refs[H]=M),H}function K(H){if(typeof H=="string"){if(!g.test(H))throw new Error(`invalid anchor "${H}"`);F.call(this,`#${H}`)}}}),C;function k(T,P,D){if(P!==void 0&&!t(T,P))throw _(D)}function _(T){return new Error(`reference "${T}" resolves to more than one schema`)}}return nr.getSchemaRefs=w,nr}var mg;function Qs(){if(mg)return en;mg=1,Object.defineProperty(en,"__esModule",{value:!0}),en.getData=en.KeywordCxt=en.validateFunctionCode=void 0;const e=SC(),t=Js(),r=sg(),o=Js(),s=CC(),a=TC(),l=OC(),i=at(),c=dn(),u=Zs(),d=bt(),h=Xs();function m(B){if(S(B)&&(O(B),x(B))){y(B);return}g(B,()=>(0,e.topBoolOrEmptySchema)(B))}en.validateFunctionCode=m;function g({gen:B,validateName:A,schema:z,schemaEnv:X,opts:te},ae){te.code.es5?B.func(A,(0,i._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{B.code((0,i._)`"use strict"; ${p(z,te)}`),f(B,te),B.code(ae)}):B.func(A,(0,i._)`${c.default.data}, ${w(te)}`,X.$async,()=>B.code(p(z,te)).code(ae))}function w(B){return(0,i._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${B.dynamicRef?(0,i._)`, ${c.default.dynamicAnchors}={}`:i.nil}}={}`}function f(B,A){B.if(c.default.valCxt,()=>{B.var(c.default.instancePath,(0,i._)`${c.default.valCxt}.${c.default.instancePath}`),B.var(c.default.parentData,(0,i._)`${c.default.valCxt}.${c.default.parentData}`),B.var(c.default.parentDataProperty,(0,i._)`${c.default.valCxt}.${c.default.parentDataProperty}`),B.var(c.default.rootData,(0,i._)`${c.default.valCxt}.${c.default.rootData}`),A.dynamicRef&&B.var(c.default.dynamicAnchors,(0,i._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{B.var(c.default.instancePath,(0,i._)`""`),B.var(c.default.parentData,(0,i._)`undefined`),B.var(c.default.parentDataProperty,(0,i._)`undefined`),B.var(c.default.rootData,c.default.data),A.dynamicRef&&B.var(c.default.dynamicAnchors,(0,i._)`{}`)})}function y(B){const{schema:A,opts:z,gen:X}=B;g(B,()=>{z.$comment&&A.$comment&&V(B),T(B),X.let(c.default.vErrors,null),X.let(c.default.errors,0),z.unevaluated&&v(B),k(B),M(B)})}function v(B){const{gen:A,validateName:z}=B;B.evaluated=A.const("evaluated",(0,i._)`${z}.evaluated`),A.if((0,i._)`${B.evaluated}.dynamicProps`,()=>A.assign((0,i._)`${B.evaluated}.props`,(0,i._)`undefined`)),A.if((0,i._)`${B.evaluated}.dynamicItems`,()=>A.assign((0,i._)`${B.evaluated}.items`,(0,i._)`undefined`))}function p(B,A){const z=typeof B=="object"&&B[A.schemaId];return z&&(A.code.source||A.code.process)?(0,i._)`/*# sourceURL=${z} */`:i.nil}function b(B,A){if(S(B)&&(O(B),x(B))){C(B,A);return}(0,e.boolOrEmptySchema)(B,A)}function x({schema:B,self:A}){if(typeof B=="boolean")return!B;for(const z in B)if(A.RULES.all[z])return!0;return!1}function S(B){return typeof B.schema!="boolean"}function C(B,A){const{schema:z,gen:X,opts:te}=B;te.$comment&&z.$comment&&V(B),P(B),D(B);const ae=X.const("_errs",c.default.errors);k(B,ae),X.var(A,(0,i._)`${ae} === ${c.default.errors}`)}function O(B){(0,d.checkUnknownRules)(B),_(B)}function k(B,A){if(B.opts.jtd)return F(B,[],!1,A);const z=(0,t.getSchemaTypes)(B.schema),X=(0,t.coerceAndCheckDataType)(B,z);F(B,z,!X,A)}function _(B){const{schema:A,errSchemaPath:z,opts:X,self:te}=B;A.$ref&&X.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(A,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${z}"`)}function T(B){const{schema:A,opts:z}=B;A.default!==void 0&&z.useDefaults&&z.strictSchema&&(0,d.checkStrictMode)(B,"default is ignored in the schema root")}function P(B){const A=B.schema[B.opts.schemaId];A&&(B.baseId=(0,u.resolveUrl)(B.opts.uriResolver,B.baseId,A))}function D(B){if(B.schema.$async&&!B.schemaEnv.$async)throw new Error("async schema in sync schema")}function V({gen:B,schemaEnv:A,schema:z,errSchemaPath:X,opts:te}){const ae=z.$comment;if(te.$comment===!0)B.code((0,i._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const J=(0,i.str)`${X}/$comment`,fe=B.scopeValue("root",{ref:A.root});B.code((0,i._)`${c.default.self}.opts.$comment(${ae}, ${J}, ${fe}.schema)`)}}function M(B){const{gen:A,schemaEnv:z,validateName:X,ValidationError:te,opts:ae}=B;z.$async?A.if((0,i._)`${c.default.errors} === 0`,()=>A.return(c.default.data),()=>A.throw((0,i._)`new ${te}(${c.default.vErrors})`)):(A.assign((0,i._)`${X}.errors`,c.default.vErrors),ae.unevaluated&&N(B),A.return((0,i._)`${c.default.errors} === 0`))}function N({gen:B,evaluated:A,props:z,items:X}){z instanceof i.Name&&B.assign((0,i._)`${A}.props`,z),X instanceof i.Name&&B.assign((0,i._)`${A}.items`,X)}function F(B,A,z,X){const{gen:te,schema:ae,data:J,allErrors:fe,opts:le,self:ge}=B,{RULES:Se}=ge;if(ae.$ref&&(le.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ae,Se))){te.block(()=>Q(B,"$ref",Se.all.$ref.definition));return}le.jtd||H(B,A),te.block(()=>{for(const Fe of Se.rules)Ce(Fe);Ce(Se.post)});function Ce(Fe){(0,r.shouldUseGroup)(ae,Fe)&&(Fe.type?(te.if((0,o.checkDataType)(Fe.type,J,le.strictNumbers)),K(B,Fe),A.length===1&&A[0]===Fe.type&&z&&(te.else(),(0,o.reportTypeError)(B)),te.endIf()):K(B,Fe),fe||te.if((0,i._)`${c.default.errors} === ${X||0}`))}}function K(B,A){const{gen:z,schema:X,opts:{useDefaults:te}}=B;te&&(0,s.assignDefaults)(B,A.type),z.block(()=>{for(const ae of A.rules)(0,r.shouldUseRule)(X,ae)&&Q(B,ae.keyword,ae.definition,A.type)})}function H(B,A){B.schemaEnv.meta||!B.opts.strictTypes||(Z(B,A),B.opts.allowUnionTypes||L(B,A),j(B,B.dataTypes))}function Z(B,A){if(A.length){if(!B.dataTypes.length){B.dataTypes=A;return}A.forEach(z=>{q(B.dataTypes,z)||I(B,`type "${z}" not allowed by context "${B.dataTypes.join(",")}"`)}),$(B,A)}}function L(B,A){A.length>1&&!(A.length===2&&A.includes("null"))&&I(B,"use allowUnionTypes to allow union type keyword")}function j(B,A){const z=B.self.RULES.all;for(const X in z){const te=z[X];if(typeof te=="object"&&(0,r.shouldUseRule)(B.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(J=>Y(A,J))&&I(B,`missing type "${ae.join(",")}" for keyword "${X}"`)}}}function Y(B,A){return B.includes(A)||A==="number"&&B.includes("integer")}function q(B,A){return B.includes(A)||A==="integer"&&B.includes("number")}function $(B,A){const z=[];for(const X of B.dataTypes)q(A,X)?z.push(X):A.includes("integer")&&X==="number"&&z.push("integer");B.dataTypes=z}function I(B,A){const z=B.schemaEnv.baseId+B.errSchemaPath;A+=` at "${z}" (strictTypes)`,(0,d.checkStrictMode)(B,A,B.opts.strictTypes)}class U{constructor(A,z,X){if((0,a.validateKeywordUsage)(A,z,X),this.gen=A.gen,this.allErrors=A.allErrors,this.keyword=X,this.data=A.data,this.schema=A.schema[X],this.$data=z.$data&&A.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(A,this.schema,X,this.$data),this.schemaType=z.schemaType,this.parentSchema=A.schema,this.params={},this.it=A,this.def=z,this.$data)this.schemaCode=A.gen.const("vSchema",ne(this.$data,A));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,z.schemaType,z.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(z.schemaType)}`);("code"in z?z.trackErrors:z.errors!==!1)&&(this.errsCount=A.gen.const("_errs",c.default.errors))}result(A,z,X){this.failResult((0,i.not)(A),z,X)}failResult(A,z,X){this.gen.if(A),X?X():this.error(),z?(this.gen.else(),z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(A,z){this.failResult((0,i.not)(A),void 0,z)}fail(A){if(A===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(A),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(A){if(!this.$data)return this.fail(A);const{schemaCode:z}=this;this.fail((0,i._)`${z} !== undefined && (${(0,i.or)(this.invalid$data(),A)})`)}error(A,z,X){if(z){this.setParams(z),this._error(A,X),this.setParams({});return}this._error(A,X)}_error(A,z){(A?h.reportExtraError:h.reportError)(this,this.def.error,z)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(A){this.allErrors||this.gen.if(A)}setParams(A,z){z?Object.assign(this.params,A):this.params=A}block$data(A,z,X=i.nil){this.gen.block(()=>{this.check$data(A,X),z()})}check$data(A=i.nil,z=i.nil){if(!this.$data)return;const{gen:X,schemaCode:te,schemaType:ae,def:J}=this;X.if((0,i.or)((0,i._)`${te} === undefined`,z)),A!==i.nil&&X.assign(A,!0),(ae.length||J.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),A!==i.nil&&X.assign(A,!1)),X.else()}invalid$data(){const{gen:A,schemaCode:z,schemaType:X,def:te,it:ae}=this;return(0,i.or)(J(),fe());function J(){if(X.length){if(!(z instanceof i.Name))throw new Error("ajv implementation error");const le=Array.isArray(X)?X:[X];return(0,i._)`${(0,o.checkDataTypes)(le,z,ae.opts.strictNumbers,o.DataType.Wrong)}`}return i.nil}function fe(){if(te.validateSchema){const le=A.scopeValue("validate$data",{ref:te.validateSchema});return(0,i._)`!${le}(${z})`}return i.nil}}subschema(A,z){const X=(0,l.getSubschema)(this.it,A);(0,l.extendSubschemaData)(X,this.it,A),(0,l.extendSubschemaMode)(X,A);const te={...this.it,...X,items:void 0,props:void 0};return b(te,z),te}mergeEvaluated(A,z){const{it:X,gen:te}=this;X.opts.unevaluated&&(X.props!==!0&&A.props!==void 0&&(X.props=d.mergeEvaluated.props(te,A.props,X.props,z)),X.items!==!0&&A.items!==void 0&&(X.items=d.mergeEvaluated.items(te,A.items,X.items,z)))}mergeValidEvaluated(A,z){const{it:X,gen:te}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return te.if(z,()=>this.mergeEvaluated(A,i.Name)),!0}}en.KeywordCxt=U;function Q(B,A,z,X){const te=new U(B,z,A);"code"in z?z.code(te,X):te.$data&&z.validate?(0,a.funcKeywordCode)(te,z):"macro"in z?(0,a.macroKeywordCode)(te,z):(z.compile||z.validate)&&(0,a.funcKeywordCode)(te,z)}const W=/^\/(?:[^~]|~0|~1)*$/,ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ne(B,{dataLevel:A,dataNames:z,dataPathArr:X}){let te,ae;if(B==="")return c.default.rootData;if(B[0]==="/"){if(!W.test(B))throw new Error(`Invalid JSON-pointer: ${B}`);te=B,ae=c.default.rootData}else{const ge=ee.exec(B);if(!ge)throw new Error(`Invalid JSON-pointer: ${B}`);const Se=+ge[1];if(te=ge[2],te==="#"){if(Se>=A)throw new Error(le("property/index",Se));return X[A-Se]}if(Se>A)throw new Error(le("data",Se));if(ae=z[A-Se],!te)return ae}let J=ae;const fe=te.split("/");for(const ge of fe)ge&&(ae=(0,i._)`${ae}${(0,i.getProperty)((0,d.unescapeJsonPointer)(ge))}`,J=(0,i._)`${J} && ${ae}`);return J;function le(ge,Se){return`Cannot access ${ge} ${Se} levels up, current level is ${A}`}}return en.getData=ne,en}var ea={},gg;function ed(){if(gg)return ea;gg=1,Object.defineProperty(ea,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return ea.default=e,ea}var ta={},yg;function ra(){if(yg)return ta;yg=1,Object.defineProperty(ta,"__esModule",{value:!0});const e=Zs();class t extends Error{constructor(o,s,a,l){super(l||`can't resolve reference ${a} from id ${s}`),this.missingRef=(0,e.resolveUrl)(o,s,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(o,this.missingRef))}}return ta.default=t,ta}var hr={},bg;function td(){if(bg)return hr;bg=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.resolveSchema=hr.getCompilingSchema=hr.resolveRef=hr.compileSchema=hr.SchemaEnv=void 0;const e=at(),t=ed(),r=dn(),o=Zs(),s=bt(),a=Qs();class l{constructor(v){var p;this.refs={},this.dynamicAnchors={};let b;typeof v.schema=="object"&&(b=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(p=v.baseId)!==null&&p!==void 0?p:(0,o.normalizeId)(b==null?void 0:b[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=b==null?void 0:b.$async,this.refs={}}}hr.SchemaEnv=l;function i(y){const v=d.call(this,y);if(v)return v;const p=(0,o.getFullPath)(this.opts.uriResolver,y.root.baseId),{es5:b,lines:x}=this.opts.code,{ownProperties:S}=this.opts,C=new e.CodeGen(this.scope,{es5:b,lines:x,ownProperties:S});let O;y.$async&&(O=C.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const k=C.scopeName("validate");y.validateName=k;const _={gen:C,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:C.scopeValue("schema",this.opts.code.source===!0?{ref:y.schema,code:(0,e.stringify)(y.schema)}:{ref:y.schema}),validateName:k,ValidationError:O,schema:y.schema,schemaEnv:y,rootId:p,baseId:y.baseId||p,schemaPath:e.nil,errSchemaPath:y.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let T;try{this._compilations.add(y),(0,a.validateFunctionCode)(_),C.optimize(this.opts.code.optimize);const P=C.toString();T=`${C.scopeRefs(r.default.scope)}return ${P}`,this.opts.code.process&&(T=this.opts.code.process(T,y));const V=new Function(`${r.default.self}`,`${r.default.scope}`,T)(this,this.scope.get());if(this.scope.value(k,{ref:V}),V.errors=null,V.schema=y.schema,V.schemaEnv=y,y.$async&&(V.$async=!0),this.opts.code.source===!0&&(V.source={validateName:k,validateCode:P,scopeValues:C._values}),this.opts.unevaluated){const{props:M,items:N}=_;V.evaluated={props:M instanceof e.Name?void 0:M,items:N instanceof e.Name?void 0:N,dynamicProps:M instanceof e.Name,dynamicItems:N instanceof e.Name},V.source&&(V.source.evaluated=(0,e.stringify)(V.evaluated))}return y.validate=V,y}catch(P){throw delete y.validate,delete y.validateName,T&&this.logger.error("Error compiling schema, function code:",T),P}finally{this._compilations.delete(y)}}hr.compileSchema=i;function c(y,v,p){var b;p=(0,o.resolveUrl)(this.opts.uriResolver,v,p);const x=y.refs[p];if(x)return x;let S=m.call(this,y,p);if(S===void 0){const C=(b=y.localRefs)===null||b===void 0?void 0:b[p],{schemaId:O}=this.opts;C&&(S=new l({schema:C,schemaId:O,root:y,baseId:v}))}if(S!==void 0)return y.refs[p]=u.call(this,S)}hr.resolveRef=c;function u(y){return(0,o.inlineRef)(y.schema,this.opts.inlineRefs)?y.schema:y.validate?y:i.call(this,y)}function d(y){for(const v of this._compilations)if(h(v,y))return v}hr.getCompilingSchema=d;function h(y,v){return y.schema===v.schema&&y.root===v.root&&y.baseId===v.baseId}function m(y,v){let p;for(;typeof(p=this.refs[v])=="string";)v=p;return p||this.schemas[v]||g.call(this,y,v)}function g(y,v){const p=this.opts.uriResolver.parse(v),b=(0,o._getFullPath)(this.opts.uriResolver,p);let x=(0,o.getFullPath)(this.opts.uriResolver,y.baseId,void 0);if(Object.keys(y.schema).length>0&&b===x)return f.call(this,p,y);const S=(0,o.normalizeId)(b),C=this.refs[S]||this.schemas[S];if(typeof C=="string"){const O=g.call(this,y,C);return typeof(O==null?void 0:O.schema)!="object"?void 0:f.call(this,p,O)}if(typeof(C==null?void 0:C.schema)=="object"){if(C.validate||i.call(this,C),S===(0,o.normalizeId)(v)){const{schema:O}=C,{schemaId:k}=this.opts,_=O[k];return _&&(x=(0,o.resolveUrl)(this.opts.uriResolver,x,_)),new l({schema:O,schemaId:k,root:y,baseId:x})}return f.call(this,p,C)}}hr.resolveSchema=g;const w=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function f(y,{baseId:v,schema:p,root:b}){var x;if(((x=y.fragment)===null||x===void 0?void 0:x[0])!=="/")return;for(const O of y.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const k=p[(0,s.unescapeFragment)(O)];if(k===void 0)return;p=k;const _=typeof p=="object"&&p[this.opts.schemaId];!w.has(O)&&_&&(v=(0,o.resolveUrl)(this.opts.uriResolver,v,_))}let S;if(typeof p!="boolean"&&p.$ref&&!(0,s.schemaHasRulesButRef)(p,this.RULES)){const O=(0,o.resolveUrl)(this.opts.uriResolver,v,p.$ref);S=g.call(this,b,O)}const{schemaId:C}=this.opts;if(S=S||new l({schema:p,schemaId:C,root:b,baseId:v}),S.schema!==S.root.schema)return S}return hr}const EC={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var na={},Do={exports:{}},rd,vg;function kC(){return vg||(vg=1,rd={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),rd}var nd,wg;function RC(){if(wg)return nd;wg=1;const{HEX:e}=kC(),t=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function r(f){if(i(f,".")<3)return{host:f,isIPV4:!1};const y=f.match(t)||[],[v]=y;return v?{host:l(v,"."),isIPV4:!0}:{host:f,isIPV4:!1}}function o(f,y=!1){let v="",p=!0;for(const b of f){if(e[b]===void 0)return;b!=="0"&&p===!0&&(p=!1),p||(v+=b)}return y&&v.length===0&&(v="0"),v}function s(f){let y=0;const v={error:!1,address:"",zone:""},p=[],b=[];let x=!1,S=!1,C=!1;function O(){if(b.length){if(x===!1){const k=o(b);if(k!==void 0)p.push(k);else return v.error=!0,!1}b.length=0}return!0}for(let k=0;k<f.length;k++){const _=f[k];if(!(_==="["||_==="]"))if(_===":"){if(S===!0&&(C=!0),!O())break;if(y++,p.push(":"),y>7){v.error=!0;break}k-1>=0&&f[k-1]===":"&&(S=!0);continue}else if(_==="%"){if(!O())break;x=!0}else{b.push(_);continue}}return b.length&&(x?v.zone=b.join(""):C?p.push(b.join("")):p.push(o(b))),v.address=p.join(""),v}function a(f){if(i(f,":")<2)return{host:f,isIPV6:!1};const y=s(f);if(y.error)return{host:f,isIPV6:!1};{let v=y.address,p=y.address;return y.zone&&(v+="%"+y.zone,p+="%25"+y.zone),{host:v,escapedHost:p,isIPV6:!0}}}function l(f,y){let v="",p=!0;const b=f.length;for(let x=0;x<b;x++){const S=f[x];S==="0"&&p?(x+1<=b&&f[x+1]===y||x+1===b)&&(v+=S,p=!1):(S===y?p=!0:p=!1,v+=S)}return v}function i(f,y){let v=0;for(let p=0;p<f.length;p++)f[p]===y&&v++;return v}const c=/^\.\.?\//u,u=/^\/\.(?:\/|$)/u,d=/^\/\.\.(?:\/|$)/u,h=/^\/?(?:.|\n)*?(?=\/|$)/u;function m(f){const y=[];for(;f.length;)if(f.match(c))f=f.replace(c,"");else if(f.match(u))f=f.replace(u,"/");else if(f.match(d))f=f.replace(d,"/"),y.pop();else if(f==="."||f==="..")f="";else{const v=f.match(h);if(v){const p=v[0];f=f.slice(p.length),y.push(p)}else throw new Error("Unexpected dot segment condition")}return y.join("")}function g(f,y){const v=y!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=v(f.scheme)),f.userinfo!==void 0&&(f.userinfo=v(f.userinfo)),f.host!==void 0&&(f.host=v(f.host)),f.path!==void 0&&(f.path=v(f.path)),f.query!==void 0&&(f.query=v(f.query)),f.fragment!==void 0&&(f.fragment=v(f.fragment)),f}function w(f){const y=[];if(f.userinfo!==void 0&&(y.push(f.userinfo),y.push("@")),f.host!==void 0){let v=unescape(f.host);const p=r(v);if(p.isIPV4)v=p.host;else{const b=a(p.host);b.isIPV6===!0?v=`[${b.escapedHost}]`:v=f.host}y.push(v)}return(typeof f.port=="number"||typeof f.port=="string")&&(y.push(":"),y.push(String(f.port))),y.length?y.join(""):void 0}return nd={recomposeAuthority:w,normalizeComponentEncoding:g,removeDotSegments:m,normalizeIPv4:r,normalizeIPv6:a,stringArrayToHexStripped:o},nd}var od,xg;function $C(){if(xg)return od;xg=1;const e=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(p){return typeof p.secure=="boolean"?p.secure:String(p.scheme).toLowerCase()==="wss"}function o(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const b=String(p.scheme).toLowerCase()==="https";return(p.port===(b?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function a(p){return p.secure=r(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function l(p){if((p.port===(r(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[b,x]=p.resourceName.split("?");p.path=b&&b!=="/"?b:void 0,p.query=x,p.resourceName=void 0}return p.fragment=void 0,p}function i(p,b){if(!p.path)return p.error="URN can not be parsed",p;const x=p.path.match(t);if(x){const S=b.scheme||p.scheme||"urn";p.nid=x[1].toLowerCase(),p.nss=x[2];const C=`${S}:${b.nid||p.nid}`,O=v[C];p.path=void 0,O&&(p=O.parse(p,b))}else p.error=p.error||"URN can not be parsed.";return p}function c(p,b){const x=b.scheme||p.scheme||"urn",S=p.nid.toLowerCase(),C=`${x}:${b.nid||S}`,O=v[C];O&&(p=O.serialize(p,b));const k=p,_=p.nss;return k.path=`${S||b.nid}:${_}`,b.skipEscape=!0,k}function u(p,b){const x=p;return x.uuid=x.nss,x.nss=void 0,!b.tolerant&&(!x.uuid||!e.test(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function d(p){const b=p;return b.nss=(p.uuid||"").toLowerCase(),b}const h={scheme:"http",domainHost:!0,parse:o,serialize:s},m={scheme:"https",domainHost:h.domainHost,parse:o,serialize:s},g={scheme:"ws",domainHost:!0,parse:a,serialize:l},w={scheme:"wss",domainHost:g.domainHost,parse:g.parse,serialize:g.serialize},v={http:h,https:m,ws:g,wss:w,urn:{scheme:"urn",parse:i,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:u,serialize:d,skipNormalize:!0}};return od=v,od}var Sg;function _C(){if(Sg)return Do.exports;Sg=1;const{normalizeIPv6:e,normalizeIPv4:t,removeDotSegments:r,recomposeAuthority:o,normalizeComponentEncoding:s}=RC(),a=$C();function l(y,v){return typeof y=="string"?y=d(w(y,v),v):typeof y=="object"&&(y=w(d(y,v),v)),y}function i(y,v,p){const b=Object.assign({scheme:"null"},p),x=c(w(y,b),w(v,b),b,!0);return d(x,{...b,skipEscape:!0})}function c(y,v,p,b){const x={};return b||(y=w(d(y,p),p),v=w(d(v,p),p)),p=p||{},!p.tolerant&&v.scheme?(x.scheme=v.scheme,x.userinfo=v.userinfo,x.host=v.host,x.port=v.port,x.path=r(v.path||""),x.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(x.userinfo=v.userinfo,x.host=v.host,x.port=v.port,x.path=r(v.path||""),x.query=v.query):(v.path?(v.path.charAt(0)==="/"?x.path=r(v.path):((y.userinfo!==void 0||y.host!==void 0||y.port!==void 0)&&!y.path?x.path="/"+v.path:y.path?x.path=y.path.slice(0,y.path.lastIndexOf("/")+1)+v.path:x.path=v.path,x.path=r(x.path)),x.query=v.query):(x.path=y.path,v.query!==void 0?x.query=v.query:x.query=y.query),x.userinfo=y.userinfo,x.host=y.host,x.port=y.port),x.scheme=y.scheme),x.fragment=v.fragment,x}function u(y,v,p){return typeof y=="string"?(y=unescape(y),y=d(s(w(y,p),!0),{...p,skipEscape:!0})):typeof y=="object"&&(y=d(s(y,!0),{...p,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=d(s(w(v,p),!0),{...p,skipEscape:!0})):typeof v=="object"&&(v=d(s(v,!0),{...p,skipEscape:!0})),y.toLowerCase()===v.toLowerCase()}function d(y,v){const p={host:y.host,scheme:y.scheme,userinfo:y.userinfo,port:y.port,path:y.path,query:y.query,nid:y.nid,nss:y.nss,uuid:y.uuid,fragment:y.fragment,reference:y.reference,resourceName:y.resourceName,secure:y.secure,error:""},b=Object.assign({},v),x=[],S=a[(b.scheme||p.scheme||"").toLowerCase()];S&&S.serialize&&S.serialize(p,b),p.path!==void 0&&(b.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),b.reference!=="suffix"&&p.scheme&&x.push(p.scheme,":");const C=o(p);if(C!==void 0&&(b.reference!=="suffix"&&x.push("//"),x.push(C),p.path&&p.path.charAt(0)!=="/"&&x.push("/")),p.path!==void 0){let O=p.path;!b.absolutePath&&(!S||!S.absolutePath)&&(O=r(O)),C===void 0&&(O=O.replace(/^\/\//u,"/%2F")),x.push(O)}return p.query!==void 0&&x.push("?",p.query),p.fragment!==void 0&&x.push("#",p.fragment),x.join("")}const h=Array.from({length:127},(y,v)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(v)));function m(y){let v=0;for(let p=0,b=y.length;p<b;++p)if(v=y.charCodeAt(p),v>126||h[v])return!0;return!1}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function w(y,v){const p=Object.assign({},v),b={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},x=y.indexOf("%")!==-1;let S=!1;p.reference==="suffix"&&(y=(p.scheme?p.scheme+":":"")+"//"+y);const C=y.match(g);if(C){if(b.scheme=C[1],b.userinfo=C[3],b.host=C[4],b.port=parseInt(C[5],10),b.path=C[6]||"",b.query=C[7],b.fragment=C[8],isNaN(b.port)&&(b.port=C[5]),b.host){const k=t(b.host);if(k.isIPV4===!1){const _=e(k.host);b.host=_.host.toLowerCase(),S=_.isIPV6}else b.host=k.host,S=!0}b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&b.query===void 0&&!b.path?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==b.reference&&(b.error=b.error||"URI is not a "+p.reference+" reference.");const O=a[(p.scheme||b.scheme||"").toLowerCase()];if(!p.unicodeSupport&&(!O||!O.unicodeSupport)&&b.host&&(p.domainHost||O&&O.domainHost)&&S===!1&&m(b.host))try{b.host=URL.domainToASCII(b.host.toLowerCase())}catch(k){b.error=b.error||"Host's domain name can not be converted to ASCII: "+k}(!O||O&&!O.skipNormalize)&&(x&&b.scheme!==void 0&&(b.scheme=unescape(b.scheme)),x&&b.host!==void 0&&(b.host=unescape(b.host)),b.path&&(b.path=escape(unescape(b.path))),b.fragment&&(b.fragment=encodeURI(decodeURIComponent(b.fragment)))),O&&O.parse&&O.parse(b,p)}else b.error=b.error||"URI can not be parsed.";return b}const f={SCHEMES:a,normalize:l,resolve:i,resolveComponents:c,equal:u,serialize:d,parse:w};return Do.exports=f,Do.exports.default=f,Do.exports.fastUri=f,Do.exports}var Cg;function IC(){if(Cg)return na;Cg=1,Object.defineProperty(na,"__esModule",{value:!0});const e=_C();return e.code='require("ajv/dist/runtime/uri").default',na.default=e,na}var Tg;function DC(){return Tg||(Tg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Qs();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=at();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const o=ed(),s=ra(),a=ng(),l=td(),i=at(),c=Zs(),u=Js(),d=bt(),h=EC,m=IC(),g=(L,j)=>new RegExp(L,j);g.code="new RegExp";const w=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function b(L){var j,Y,q,$,I,U,Q,W,ee,ne,B,A,z,X,te,ae,J,fe,le,ge,Se,Ce,Fe,Ye,He;const Qe=L.strict,ut=(j=L.code)===null||j===void 0?void 0:j.optimize,dt=ut===!0||ut===void 0?1:ut||0,st=(q=(Y=L.code)===null||Y===void 0?void 0:Y.regExp)!==null&&q!==void 0?q:g,Ge=($=L.uriResolver)!==null&&$!==void 0?$:m.default;return{strictSchema:(U=(I=L.strictSchema)!==null&&I!==void 0?I:Qe)!==null&&U!==void 0?U:!0,strictNumbers:(W=(Q=L.strictNumbers)!==null&&Q!==void 0?Q:Qe)!==null&&W!==void 0?W:!0,strictTypes:(ne=(ee=L.strictTypes)!==null&&ee!==void 0?ee:Qe)!==null&&ne!==void 0?ne:"log",strictTuples:(A=(B=L.strictTuples)!==null&&B!==void 0?B:Qe)!==null&&A!==void 0?A:"log",strictRequired:(X=(z=L.strictRequired)!==null&&z!==void 0?z:Qe)!==null&&X!==void 0?X:!1,code:L.code?{...L.code,optimize:dt,regExp:st}:{optimize:dt,regExp:st},loopRequired:(te=L.loopRequired)!==null&&te!==void 0?te:p,loopEnum:(ae=L.loopEnum)!==null&&ae!==void 0?ae:p,meta:(J=L.meta)!==null&&J!==void 0?J:!0,messages:(fe=L.messages)!==null&&fe!==void 0?fe:!0,inlineRefs:(le=L.inlineRefs)!==null&&le!==void 0?le:!0,schemaId:(ge=L.schemaId)!==null&&ge!==void 0?ge:"$id",addUsedSchema:(Se=L.addUsedSchema)!==null&&Se!==void 0?Se:!0,validateSchema:(Ce=L.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(Fe=L.validateFormats)!==null&&Fe!==void 0?Fe:!0,unicodeRegExp:(Ye=L.unicodeRegExp)!==null&&Ye!==void 0?Ye:!0,int32range:(He=L.int32range)!==null&&He!==void 0?He:!0,uriResolver:Ge}}class x{constructor(j={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...b(j)};const{es5:Y,lines:q}=this.opts.code;this.scope=new i.ValueScope({scope:{},prefixes:f,es5:Y,lines:q}),this.logger=D(j.logger);const $=j.validateFormats;j.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,y,j,"NOT SUPPORTED"),S.call(this,v,j,"DEPRECATED","warn"),this._metaOpts=T.call(this),j.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&_.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),O.call(this),j.validateFormats=$}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:Y,schemaId:q}=this.opts;let $=h;q==="id"&&($={...h},$.id=$.$id,delete $.$id),Y&&j&&this.addMetaSchema($,$[q],!1)}defaultMeta(){const{meta:j,schemaId:Y}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[Y]||j:void 0}validate(j,Y){let q;if(typeof j=="string"){if(q=this.getSchema(j),!q)throw new Error(`no schema with key or ref "${j}"`)}else q=this.compile(j);const $=q(Y);return"$async"in q||(this.errors=q.errors),$}compile(j,Y){const q=this._addSchema(j,Y);return q.validate||this._compileSchemaEnv(q)}compileAsync(j,Y){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return $.call(this,j,Y);async function $(ne,B){await I.call(this,ne.$schema);const A=this._addSchema(ne,B);return A.validate||U.call(this,A)}async function I(ne){ne&&!this.getSchema(ne)&&await $.call(this,{$ref:ne},!0)}async function U(ne){try{return this._compileSchemaEnv(ne)}catch(B){if(!(B instanceof s.default))throw B;return Q.call(this,B),await W.call(this,B.missingSchema),U.call(this,ne)}}function Q({missingSchema:ne,missingRef:B}){if(this.refs[ne])throw new Error(`AnySchema ${ne} is loaded but ${B} cannot be resolved`)}async function W(ne){const B=await ee.call(this,ne);this.refs[ne]||await I.call(this,B.$schema),this.refs[ne]||this.addSchema(B,ne,Y)}async function ee(ne){const B=this._loading[ne];if(B)return B;try{return await(this._loading[ne]=q(ne))}finally{delete this._loading[ne]}}}addSchema(j,Y,q,$=this.opts.validateSchema){if(Array.isArray(j)){for(const U of j)this.addSchema(U,void 0,q,$);return this}let I;if(typeof j=="object"){const{schemaId:U}=this.opts;if(I=j[U],I!==void 0&&typeof I!="string")throw new Error(`schema ${U} must be string`)}return Y=(0,c.normalizeId)(Y||I),this._checkUnique(Y),this.schemas[Y]=this._addSchema(j,q,Y,$,!0),this}addMetaSchema(j,Y,q=this.opts.validateSchema){return this.addSchema(j,Y,!0,q),this}validateSchema(j,Y){if(typeof j=="boolean")return!0;let q;if(q=j.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const $=this.validate(q,j);if(!$&&Y){const I="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(I);else throw new Error(I)}return $}getSchema(j){let Y;for(;typeof(Y=C.call(this,j))=="string";)j=Y;if(Y===void 0){const{schemaId:q}=this.opts,$=new l.SchemaEnv({schema:{},schemaId:q});if(Y=l.resolveSchema.call(this,$,j),!Y)return;this.refs[j]=Y}return Y.validate||this._compileSchemaEnv(Y)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Y=C.call(this,j);return typeof Y=="object"&&this._cache.delete(Y.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const Y=j;this._cache.delete(Y);let q=j[this.opts.schemaId];return q&&(q=(0,c.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const Y of j)this.addKeyword(Y);return this}addKeyword(j,Y){let q;if(typeof j=="string")q=j,typeof Y=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Y.keyword=q);else if(typeof j=="object"&&Y===void 0){if(Y=j,q=Y.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(M.call(this,q,Y),!Y)return(0,d.eachItem)(q,I=>N.call(this,I)),this;K.call(this,Y);const $={...Y,type:(0,u.getJSONTypes)(Y.type),schemaType:(0,u.getJSONTypes)(Y.schemaType)};return(0,d.eachItem)(q,$.type.length===0?I=>N.call(this,I,$):I=>$.type.forEach(U=>N.call(this,I,$,U))),this}getKeyword(j){const Y=this.RULES.all[j];return typeof Y=="object"?Y.definition:!!Y}removeKeyword(j){const{RULES:Y}=this;delete Y.keywords[j],delete Y.all[j];for(const q of Y.rules){const $=q.rules.findIndex(I=>I.keyword===j);$>=0&&q.rules.splice($,1)}return this}addFormat(j,Y){return typeof Y=="string"&&(Y=new RegExp(Y)),this.formats[j]=Y,this}errorsText(j=this.errors,{separator:Y=", ",dataVar:q="data"}={}){return!j||j.length===0?"No errors":j.map($=>`${q}${$.instancePath} ${$.message}`).reduce(($,I)=>$+Y+I)}$dataMetaSchema(j,Y){const q=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const $ of Y){const I=$.split("/").slice(1);let U=j;for(const Q of I)U=U[Q];for(const Q in q){const W=q[Q];if(typeof W!="object")continue;const{$data:ee}=W.definition,ne=U[Q];ee&&ne&&(U[Q]=Z(ne))}}return j}_removeAllSchemas(j,Y){for(const q in j){const $=j[q];(!Y||Y.test(q))&&(typeof $=="string"?delete j[q]:$&&!$.meta&&(this._cache.delete($.schema),delete j[q]))}}_addSchema(j,Y,q,$=this.opts.validateSchema,I=this.opts.addUsedSchema){let U;const{schemaId:Q}=this.opts;if(typeof j=="object")U=j[Q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(j);if(W!==void 0)return W;q=(0,c.normalizeId)(U||q);const ee=c.getSchemaRefs.call(this,j,q);return W=new l.SchemaEnv({schema:j,schemaId:Q,meta:Y,baseId:q,localRefs:ee}),this._cache.set(W.schema,W),I&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=W),$&&this.validateSchema(j,!0),W}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):l.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const Y=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,j)}finally{this.opts=Y}}}x.ValidationError=o.default,x.MissingRefError=s.default,e.default=x;function S(L,j,Y,q="error"){for(const $ in L){const I=$;I in j&&this.logger[q](`${Y}: option ${$}. ${L[I]}`)}}function C(L){return L=(0,c.normalizeId)(L),this.schemas[L]||this.refs[L]}function O(){const L=this.opts.schemas;if(L)if(Array.isArray(L))this.addSchema(L);else for(const j in L)this.addSchema(L[j],j)}function k(){for(const L in this.opts.formats){const j=this.opts.formats[L];j&&this.addFormat(L,j)}}function _(L){if(Array.isArray(L)){this.addVocabulary(L);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in L){const Y=L[j];Y.keyword||(Y.keyword=j),this.addKeyword(Y)}}function T(){const L={...this.opts};for(const j of w)delete L[j];return L}const P={log(){},warn(){},error(){}};function D(L){if(L===!1)return P;if(L===void 0)return console;if(L.log&&L.warn&&L.error)return L;throw new Error("logger must implement log, warn and error methods")}const V=/^[a-z_$][a-z0-9_$:-]*$/i;function M(L,j){const{RULES:Y}=this;if((0,d.eachItem)(L,q=>{if(Y.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!V.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function N(L,j,Y){var q;const $=j==null?void 0:j.post;if(Y&&$)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:I}=this;let U=$?I.post:I.rules.find(({type:W})=>W===Y);if(U||(U={type:Y,rules:[]},I.rules.push(U)),I.keywords[L]=!0,!j)return;const Q={keyword:L,definition:{...j,type:(0,u.getJSONTypes)(j.type),schemaType:(0,u.getJSONTypes)(j.schemaType)}};j.before?F.call(this,U,Q,j.before):U.rules.push(Q),I.all[L]=Q,(q=j.implements)===null||q===void 0||q.forEach(W=>this.addKeyword(W))}function F(L,j,Y){const q=L.rules.findIndex($=>$.keyword===Y);q>=0?L.rules.splice(q,0,j):(L.rules.push(j),this.logger.warn(`rule ${Y} is not defined`))}function K(L){let{metaSchema:j}=L;j!==void 0&&(L.$data&&this.opts.$data&&(j=Z(j)),L.validateSchema=this.compile(j,!0))}const H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z(L){return{anyOf:[L,H]}}}(Yu)),Yu}var oa={},sa={},aa={},Og;function MC(){if(Og)return aa;Og=1,Object.defineProperty(aa,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return aa.default=e,aa}var fn={},Pg;function jC(){if(Pg)return fn;Pg=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.callRef=fn.getValidate=void 0;const e=ra(),t=jr(),r=at(),o=dn(),s=td(),a=bt(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:h,it:m}=u,{baseId:g,schemaEnv:w,validateName:f,opts:y,self:v}=m,{root:p}=w;if((h==="#"||h==="#/")&&g===p.baseId)return x();const b=s.resolveRef.call(v,p,g,h);if(b===void 0)throw new e.default(m.opts.uriResolver,g,h);if(b instanceof s.SchemaEnv)return S(b);return C(b);function x(){if(w===p)return c(u,f,w,w.$async);const O=d.scopeValue("root",{ref:p});return c(u,(0,r._)`${O}.validate`,p,p.$async)}function S(O){const k=i(u,O);c(u,k,O,O.$async)}function C(O){const k=d.scopeValue("schema",y.code.source===!0?{ref:O,code:(0,r.stringify)(O)}:{ref:O}),_=d.name("valid"),T=u.subschema({schema:O,dataTypes:[],schemaPath:r.nil,topSchemaRef:k,errSchemaPath:h},_);u.mergeEvaluated(T),u.ok(_)}}};function i(u,d){const{gen:h}=u;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:d})}.validate`}fn.getValidate=i;function c(u,d,h,m){const{gen:g,it:w}=u,{allErrors:f,schemaEnv:y,opts:v}=w,p=v.passContext?o.default.this:r.nil;m?b():x();function b(){if(!y.$async)throw new Error("async schema referenced by sync schema");const O=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,t.callValidateCode)(u,d,p)}`),C(d),f||g.assign(O,!0)},k=>{g.if((0,r._)`!(${k} instanceof ${w.ValidationError})`,()=>g.throw(k)),S(k),f||g.assign(O,!1)}),u.ok(O)}function x(){u.result((0,t.callValidateCode)(u,d,p),()=>C(d),()=>S(d))}function S(O){const k=(0,r._)`${O}.errors`;g.assign(o.default.vErrors,(0,r._)`${o.default.vErrors} === null ? ${k} : ${o.default.vErrors}.concat(${k})`),g.assign(o.default.errors,(0,r._)`${o.default.vErrors}.length`)}function C(O){var k;if(!w.opts.unevaluated)return;const _=(k=h==null?void 0:h.validate)===null||k===void 0?void 0:k.evaluated;if(w.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(w.props=a.mergeEvaluated.props(g,_.props,w.props));else{const T=g.var("props",(0,r._)`${O}.evaluated.props`);w.props=a.mergeEvaluated.props(g,T,w.props,r.Name)}if(w.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(w.items=a.mergeEvaluated.items(g,_.items,w.items));else{const T=g.var("items",(0,r._)`${O}.evaluated.items`);w.items=a.mergeEvaluated.items(g,T,w.items,r.Name)}}}return fn.callRef=c,fn.default=l,fn}var Eg;function NC(){if(Eg)return sa;Eg=1,Object.defineProperty(sa,"__esModule",{value:!0});const e=MC(),t=jC(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return sa.default=r,sa}var ia={},la={},kg;function AC(){if(kg)return la;kg=1,Object.defineProperty(la,"__esModule",{value:!0});const e=at(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},o={message:({keyword:a,schemaCode:l})=>(0,e.str)`must be ${r[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${l}}`},s={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:o,code(a){const{keyword:l,data:i,schemaCode:c}=a;a.fail$data((0,e._)`${i} ${r[l].fail} ${c} || isNaN(${i})`)}};return la.default=s,la}var ca={},Rg;function VC(){if(Rg)return ca;Rg=1,Object.defineProperty(ca,"__esModule",{value:!0});const e=at(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,e._)`{multipleOf: ${o}}`},code(o){const{gen:s,data:a,schemaCode:l,it:i}=o,c=i.opts.multipleOfPrecision,u=s.let("res"),d=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;o.fail$data((0,e._)`(${l} === 0 || (${u} = ${a}/${l}, ${d}))`)}};return ca.default=r,ca}var ua={},da={},$g;function FC(){if($g)return da;$g=1,Object.defineProperty(da,"__esModule",{value:!0});function e(t){const r=t.length;let o=0,s=0,a;for(;s<r;)o++,a=t.charCodeAt(s++),a>=55296&&a<=56319&&s<r&&(a=t.charCodeAt(s),(a&64512)===56320&&s++);return o}return da.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',da}var _g;function LC(){if(_g)return ua;_g=1,Object.defineProperty(ua,"__esModule",{value:!0});const e=at(),t=bt(),r=FC(),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:l}){const i=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${l} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:l,data:i,schemaCode:c,it:u}=a,d=l==="maxLength"?e.operators.GT:e.operators.LT,h=u.opts.unicode===!1?(0,e._)`${i}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${i})`;a.fail$data((0,e._)`${h} ${d} ${c}`)}};return ua.default=s,ua}var fa={},Ig;function qC(){if(Ig)return fa;Ig=1,Object.defineProperty(fa,"__esModule",{value:!0});const e=jr(),t=at(),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,t.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,t._)`{pattern: ${s}}`},code(s){const{data:a,$data:l,schema:i,schemaCode:c,it:u}=s,d=u.opts.unicodeRegExp?"u":"",h=l?(0,t._)`(new RegExp(${c}, ${d}))`:(0,e.usePattern)(s,i);s.fail$data((0,t._)`!${h}.test(${a})`)}};return fa.default=o,fa}var pa={},Dg;function BC(){if(Dg)return pa;Dg=1,Object.defineProperty(pa,"__esModule",{value:!0});const e=at(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} properties`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:l}=o,i=s==="maxProperties"?e.operators.GT:e.operators.LT;o.fail$data((0,e._)`Object.keys(${a}).length ${i} ${l}`)}};return pa.default=r,pa}var ha={},Mg;function zC(){if(Mg)return ha;Mg=1,Object.defineProperty(ha,"__esModule",{value:!0});const e=jr(),t=at(),r=bt(),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:l,schema:i,schemaCode:c,data:u,$data:d,it:h}=a,{opts:m}=h;if(!d&&i.length===0)return;const g=i.length>=m.loopRequired;if(h.allErrors?w():f(),m.strictRequired){const p=a.parentSchema.properties,{definedProperties:b}=a.it;for(const x of i)if((p==null?void 0:p[x])===void 0&&!b.has(x)){const S=h.schemaEnv.baseId+h.errSchemaPath,C=`required property "${x}" is not defined at "${S}" (strictRequired)`;(0,r.checkStrictMode)(h,C,h.opts.strictRequired)}}function w(){if(g||d)a.block$data(t.nil,y);else for(const p of i)(0,e.checkReportMissingProp)(a,p)}function f(){const p=l.let("missing");if(g||d){const b=l.let("valid",!0);a.block$data(b,()=>v(p,b)),a.ok(b)}else l.if((0,e.checkMissingProp)(a,i,p)),(0,e.reportMissingProp)(a,p),l.else()}function y(){l.forOf("prop",c,p=>{a.setParams({missingProperty:p}),l.if((0,e.noPropertyInData)(l,u,p,m.ownProperties),()=>a.error())})}function v(p,b){a.setParams({missingProperty:p}),l.forOf(p,c,()=>{l.assign(b,(0,e.propertyInData)(l,u,p,m.ownProperties)),l.if((0,t.not)(b),()=>{a.error(),l.break()})},t.nil)}}};return ha.default=s,ha}var ma={},jg;function UC(){if(jg)return ma;jg=1,Object.defineProperty(ma,"__esModule",{value:!0});const e=at(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} items`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:l}=o,i=s==="maxItems"?e.operators.GT:e.operators.LT;o.fail$data((0,e._)`${a}.length ${i} ${l}`)}};return ma.default=r,ma}var ga={},ya={},Ng;function sd(){if(Ng)return ya;Ng=1,Object.defineProperty(ya,"__esModule",{value:!0});const e=fg();return e.code='require("ajv/dist/runtime/equal").default',ya.default=e,ya}var Ag;function WC(){if(Ag)return ga;Ag=1,Object.defineProperty(ga,"__esModule",{value:!0});const e=Js(),t=at(),r=bt(),o=sd(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:i}})=>(0,t.str)`must NOT have duplicate items (items ## ${i} and ${l} are identical)`,params:({params:{i:l,j:i}})=>(0,t._)`{i: ${l}, j: ${i}}`},code(l){const{gen:i,data:c,$data:u,schema:d,parentSchema:h,schemaCode:m,it:g}=l;if(!u&&!d)return;const w=i.let("valid"),f=h.items?(0,e.getSchemaTypes)(h.items):[];l.block$data(w,y,(0,t._)`${m} === false`),l.ok(w);function y(){const x=i.let("i",(0,t._)`${c}.length`),S=i.let("j");l.setParams({i:x,j:S}),i.assign(w,!0),i.if((0,t._)`${x} > 1`,()=>(v()?p:b)(x,S))}function v(){return f.length>0&&!f.some(x=>x==="object"||x==="array")}function p(x,S){const C=i.name("item"),O=(0,e.checkDataTypes)(f,C,g.opts.strictNumbers,e.DataType.Wrong),k=i.const("indices",(0,t._)`{}`);i.for((0,t._)`;${x}--;`,()=>{i.let(C,(0,t._)`${c}[${x}]`),i.if(O,(0,t._)`continue`),f.length>1&&i.if((0,t._)`typeof ${C} == "string"`,(0,t._)`${C} += "_"`),i.if((0,t._)`typeof ${k}[${C}] == "number"`,()=>{i.assign(S,(0,t._)`${k}[${C}]`),l.error(),i.assign(w,!1).break()}).code((0,t._)`${k}[${C}] = ${x}`)})}function b(x,S){const C=(0,r.useFunc)(i,o.default),O=i.name("outer");i.label(O).for((0,t._)`;${x}--;`,()=>i.for((0,t._)`${S} = ${x}; ${S}--;`,()=>i.if((0,t._)`${C}(${c}[${x}], ${c}[${S}])`,()=>{l.error(),i.assign(w,!1).break(O)})))}}};return ga.default=a,ga}var ba={},Vg;function HC(){if(Vg)return ba;Vg=1,Object.defineProperty(ba,"__esModule",{value:!0});const e=at(),t=bt(),r=sd(),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:l,data:i,$data:c,schemaCode:u,schema:d}=a;c||d&&typeof d=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(l,r.default)}(${i}, ${u})`):a.fail((0,e._)`${d} !== ${i}`)}};return ba.default=s,ba}var va={},Fg;function YC(){if(Fg)return va;Fg=1,Object.defineProperty(va,"__esModule",{value:!0});const e=at(),t=bt(),r=sd(),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:l,data:i,$data:c,schema:u,schemaCode:d,it:h}=a;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const m=u.length>=h.opts.loopEnum;let g;const w=()=>g??(g=(0,t.useFunc)(l,r.default));let f;if(m||c)f=l.let("valid"),a.block$data(f,y);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=l.const("vSchema",d);f=(0,e.or)(...u.map((b,x)=>v(p,x)))}a.pass(f);function y(){l.assign(f,!1),l.forOf("v",d,p=>l.if((0,e._)`${w()}(${i}, ${p})`,()=>l.assign(f,!0).break()))}function v(p,b){const x=u[b];return typeof x=="object"&&x!==null?(0,e._)`${w()}(${i}, ${p}[${b}])`:(0,e._)`${i} === ${x}`}}};return va.default=s,va}var Lg;function KC(){if(Lg)return ia;Lg=1,Object.defineProperty(ia,"__esModule",{value:!0});const e=AC(),t=VC(),r=LC(),o=qC(),s=BC(),a=zC(),l=UC(),i=WC(),c=HC(),u=YC(),d=[e.default,t.default,r.default,o.default,s.default,a.default,l.default,i.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return ia.default=d,ia}var wa={},Zn={},qg;function Bg(){if(qg)return Zn;qg=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.validateAdditionalItems=void 0;const e=at(),t=bt(),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:l,it:i}=a,{items:c}=l;if(!Array.isArray(c)){(0,t.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}s(a,c)}};function s(a,l){const{gen:i,schema:c,data:u,keyword:d,it:h}=a;h.items=!0;const m=i.const("len",(0,e._)`${u}.length`);if(c===!1)a.setParams({len:l.length}),a.pass((0,e._)`${m} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(h,c)){const w=i.var("valid",(0,e._)`${m} <= ${l.length}`);i.if((0,e.not)(w),()=>g(w)),a.ok(w)}function g(w){i.forRange("i",l.length,m,f=>{a.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},w),h.allErrors||i.if((0,e.not)(w),()=>i.break())})}}return Zn.validateAdditionalItems=s,Zn.default=o,Zn}var xa={},Qn={},zg;function Ug(){if(zg)return Qn;zg=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.validateTuple=void 0;const e=at(),t=bt(),r=jr(),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:l,it:i}=a;if(Array.isArray(l))return s(a,"additionalItems",l);i.items=!0,!(0,t.alwaysValidSchema)(i,l)&&a.ok((0,r.validateArray)(a))}};function s(a,l,i=a.schema){const{gen:c,parentSchema:u,data:d,keyword:h,it:m}=a;f(u),m.opts.unevaluated&&i.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(c,i.length,m.items));const g=c.name("valid"),w=c.const("len",(0,e._)`${d}.length`);i.forEach((y,v)=>{(0,t.alwaysValidSchema)(m,y)||(c.if((0,e._)`${w} > ${v}`,()=>a.subschema({keyword:h,schemaProp:v,dataProp:v},g)),a.ok(g))});function f(y){const{opts:v,errSchemaPath:p}=m,b=i.length,x=b===y.minItems&&(b===y.maxItems||y[l]===!1);if(v.strictTuples&&!x){const S=`"${h}" is ${b}-tuple, but minItems or maxItems/${l} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(m,S,v.strictTuples)}}}return Qn.validateTuple=s,Qn.default=o,Qn}var Wg;function GC(){if(Wg)return xa;Wg=1,Object.defineProperty(xa,"__esModule",{value:!0});const e=Ug(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return xa.default=t,xa}var Sa={},Hg;function XC(){if(Hg)return Sa;Hg=1,Object.defineProperty(Sa,"__esModule",{value:!0});const e=at(),t=bt(),r=jr(),o=Bg(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:i,parentSchema:c,it:u}=l,{prefixItems:d}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,i)&&(d?(0,o.validateAdditionalItems)(l,d):l.ok((0,r.validateArray)(l)))}};return Sa.default=a,Sa}var Ca={},Yg;function JC(){if(Yg)return Ca;Yg=1,Object.defineProperty(Ca,"__esModule",{value:!0});const e=at(),t=bt(),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:s,max:a}})=>a===void 0?(0,e.str)`must contain at least ${s} valid item(s)`:(0,e.str)`must contain at least ${s} and no more than ${a} valid item(s)`,params:({params:{min:s,max:a}})=>a===void 0?(0,e._)`{minContains: ${s}}`:(0,e._)`{minContains: ${s}, maxContains: ${a}}`},code(s){const{gen:a,schema:l,parentSchema:i,data:c,it:u}=s;let d,h;const{minContains:m,maxContains:g}=i;u.opts.next?(d=m===void 0?1:m,h=g):d=1;const w=a.const("len",(0,e._)`${c}.length`);if(s.setParams({min:d,max:h}),h===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,t.alwaysValidSchema)(u,l)){let b=(0,e._)`${w} >= ${d}`;h!==void 0&&(b=(0,e._)`${b} && ${w} <= ${h}`),s.pass(b);return}u.items=!0;const f=a.name("valid");h===void 0&&d===1?v(f,()=>a.if(f,()=>a.break())):d===0?(a.let(f,!0),h!==void 0&&a.if((0,e._)`${c}.length > 0`,y)):(a.let(f,!1),y()),s.result(f,()=>s.reset());function y(){const b=a.name("_valid"),x=a.let("count",0);v(b,()=>a.if(b,()=>p(x)))}function v(b,x){a.forRange("i",0,w,S=>{s.subschema({keyword:"contains",dataProp:S,dataPropType:t.Type.Num,compositeRule:!0},b),x()})}function p(b){a.code((0,e._)`${b}++`),h===void 0?a.if((0,e._)`${b} >= ${d}`,()=>a.assign(f,!0).break()):(a.if((0,e._)`${b} > ${h}`,()=>a.assign(f,!1).break()),d===1?a.assign(f,!0):a.if((0,e._)`${b} >= ${d}`,()=>a.assign(f,!0)))}}};return Ca.default=o,Ca}var ad={},Kg;function ZC(){return Kg||(Kg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=at(),r=bt(),o=jr();e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const h=u===1?"property":"properties";return(0,t.str)`must have ${h} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:h}})=>(0,t._)`{property: ${c},
35
- missingProperty: ${h},
6
+ <%s key={someKey} {...props} />`,T,K,re,K),z[K+T]=!0)}if(K=null,M!==void 0&&(r(M),K=""+M),l(V)&&(r(V.key),K=""+V.key),"key"in V){M={};for(var ie in V)ie!=="key"&&(M[ie]=V[ie])}else M=V;return K&&s(M,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,K,M,i(),$,q)}function m(C){h(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===k&&(C._payload.status==="fulfilled"?h(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function h(C){return typeof C=="object"&&C!==null&&C.$$typeof===g}var y=ke,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),S=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),O=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,N=Array.isArray,U=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(C){return C()}};var W,le={},ce=y.react_stack_bottom_frame.bind(y,a)(),ue=U(n(a)),z={};Mn.Fragment=b,Mn.jsx=function(C,V,M){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,M,!1,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)},Mn.jsxs=function(C,V,M){var T=1e4>O.recentlyCreatedOwnerStacks++;return d(C,V,M,!0,T?Error("react-stack-top-frame"):ce,T?U(n(C)):ue)}})()),Mn}var ed;function eb(){return ed||(ed=1,process.env.NODE_ENV==="production"?To.exports=Zv():To.exports=Qv()),To.exports}var F=eb(),Ma,td;function tb(){if(td)return Ma;td=1;function e(){this.__data__=[],this.size=0}return Ma=e,Ma}var Da,rd;function Po(){if(rd)return Da;rd=1;function e(t,r){return t===r||t!==t&&r!==r}return Da=e,Da}var qa,nd;function $o(){if(nd)return qa;nd=1;var e=Po();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return qa=t,qa}var La,od;function rb(){if(od)return La;od=1;var e=$o(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,l=e(a,i);if(l<0)return!1;var s=a.length-1;return l==s?a.pop():r.call(a,l,1),--this.size,!0}return La=n,La}var Fa,id;function nb(){if(id)return Fa;id=1;var e=$o();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Fa=t,Fa}var za,ad;function ob(){if(ad)return za;ad=1;var e=$o();function t(r){return e(this.__data__,r)>-1}return za=t,za}var Va,sd;function ib(){if(sd)return Va;sd=1;var e=$o();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Va=t,Va}var Ba,ld;function Ro(){if(ld)return Ba;ld=1;var e=tb(),t=rb(),r=nb(),n=ob(),i=ib();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ba=a,Ba}var Ua,cd;function ab(){if(cd)return Ua;cd=1;var e=Ro();function t(){this.__data__=new e,this.size=0}return Ua=t,Ua}var Wa,ud;function sb(){if(ud)return Wa;ud=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Wa=e,Wa}var Ha,dd;function lb(){if(dd)return Ha;dd=1;function e(t){return this.__data__.get(t)}return Ha=e,Ha}var Ka,fd;function cb(){if(fd)return Ka;fd=1;function e(t){return this.__data__.has(t)}return Ka=e,Ka}var Ga,pd;function hd(){if(pd)return Ga;pd=1;var e=typeof Co=="object"&&Co&&Co.Object===Object&&Co;return Ga=e,Ga}var Ya,md;function pr(){if(md)return Ya;md=1;var e=hd(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ya=r,Ya}var Ja,yd;function Xa(){if(yd)return Ja;yd=1;var e=pr(),t=e.Symbol;return Ja=t,Ja}var Za,gd;function ub(){if(gd)return Za;gd=1;var e=Xa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(l){var s=r.call(l,i),c=l[i];try{l[i]=void 0;var u=!0}catch{}var d=n.call(l);return u&&(s?l[i]=c:delete l[i]),d}return Za=a,Za}var Qa,vd;function db(){if(vd)return Qa;vd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qa=r,Qa}var es,bd;function Dn(){if(bd)return es;bd=1;var e=Xa(),t=ub(),r=db(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function l(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return es=l,es}var ts,_d;function xr(){if(_d)return ts;_d=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ts=e,ts}var rs,wd;function ns(){if(wd)return rs;wd=1;var e=Dn(),t=xr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function l(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==a}return rs=l,rs}var os,Sd;function fb(){if(Sd)return os;Sd=1;var e=pr(),t=e["__core-js_shared__"];return os=t,os}var is,Ed;function pb(){if(Ed)return is;Ed=1;var e=fb(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return is=r,is}var as,Od;function xd(){if(Od)return as;Od=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return as=r,as}var ss,Cd;function hb(){if(Cd)return ss;Cd=1;var e=ns(),t=pb(),r=xr(),n=xd(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,d=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(h){if(!r(h)||t(h))return!1;var y=e(h)?d:a;return y.test(n(h))}return ss=m,ss}var ls,Td;function mb(){if(Td)return ls;Td=1;function e(t,r){return t?.[r]}return ls=e,ls}var cs,Pd;function Xr(){if(Pd)return cs;Pd=1;var e=hb(),t=mb();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return cs=r,cs}var us,$d;function ds(){if($d)return us;$d=1;var e=Xr(),t=pr(),r=e(t,"Map");return us=r,us}var fs,Rd;function ko(){if(Rd)return fs;Rd=1;var e=Xr(),t=e(Object,"create");return fs=t,fs}var ps,kd;function yb(){if(kd)return ps;kd=1;var e=ko();function t(){this.__data__=e?e(null):{},this.size=0}return ps=t,ps}var hs,Id;function gb(){if(Id)return hs;Id=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hs=e,hs}var ms,jd;function vb(){if(jd)return ms;jd=1;var e=ko(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var l=this.__data__;if(e){var s=l[a];return s===t?void 0:s}return n.call(l,a)?l[a]:void 0}return ms=i,ms}var ys,Nd;function bb(){if(Nd)return ys;Nd=1;var e=ko(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return ys=n,ys}var gs,Ad;function _b(){if(Ad)return gs;Ad=1;var e=ko(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return gs=r,gs}var vs,Md;function wb(){if(Md)return vs;Md=1;var e=yb(),t=gb(),r=vb(),n=bb(),i=_b();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,vs=a,vs}var bs,Dd;function Sb(){if(Dd)return bs;Dd=1;var e=wb(),t=Ro(),r=ds();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return bs=n,bs}var _s,qd;function Eb(){if(qd)return _s;qd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _s=e,_s}var ws,Ld;function Io(){if(Ld)return ws;Ld=1;var e=Eb();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ws=t,ws}var Ss,Fd;function Ob(){if(Fd)return Ss;Fd=1;var e=Io();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ss=t,Ss}var Es,zd;function xb(){if(zd)return Es;zd=1;var e=Io();function t(r){return e(this,r).get(r)}return Es=t,Es}var Os,Vd;function Cb(){if(Vd)return Os;Vd=1;var e=Io();function t(r){return e(this,r).has(r)}return Os=t,Os}var xs,Bd;function Tb(){if(Bd)return xs;Bd=1;var e=Io();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return xs=t,xs}var Cs,Ud;function Pb(){if(Ud)return Cs;Ud=1;var e=Sb(),t=Ob(),r=xb(),n=Cb(),i=Tb();function a(l){var s=-1,c=l==null?0:l.length;for(this.clear();++s<c;){var u=l[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Cs=a,Cs}var Ts,Wd;function $b(){if(Wd)return Ts;Wd=1;var e=Ro(),t=ds(),r=Pb(),n=200;function i(a,l){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([a,l]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(a,l),this.size=s.size,this}return Ts=i,Ts}var Ps,Hd;function Kd(){if(Hd)return Ps;Hd=1;var e=Ro(),t=ab(),r=sb(),n=lb(),i=cb(),a=$b();function l(s){var c=this.__data__=new e(s);this.size=c.size}return l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=i,l.prototype.set=a,Ps=l,Ps}var $s,Gd;function Yd(){if(Gd)return $s;Gd=1;var e=Xr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return $s=t,$s}var Rs,Jd;function ks(){if(Jd)return Rs;Jd=1;var e=Yd();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Rs=t,Rs}var Is,Xd;function Zd(){if(Xd)return Is;Xd=1;var e=ks(),t=Po();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return Is=r,Is}var js,Qd;function Rb(){if(Qd)return js;Qd=1;function e(t){return function(r,n,i){for(var a=-1,l=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++a];if(n(l[u],u,l)===!1)break}return r}}return js=e,js}var Ns,ef;function kb(){if(ef)return Ns;ef=1;var e=Rb(),t=e();return Ns=t,Ns}var qn={exports:{}};qn.exports;var tf;function rf(){return tf||(tf=1,(function(e,t){var r=pr(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a?r.Buffer:void 0,s=l?l.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var m=u.length,h=s?s(m):new u.constructor(m);return u.copy(h),h}e.exports=c})(qn,qn.exports)),qn.exports}var As,nf;function Ib(){if(nf)return As;nf=1;var e=pr(),t=e.Uint8Array;return As=t,As}var Ms,of;function Ds(){if(of)return Ms;of=1;var e=Ib();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Ms=t,Ms}var qs,af;function sf(){if(af)return qs;af=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return qs=t,qs}var Ls,lf;function cf(){if(lf)return Ls;lf=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Ls=e,Ls}var Fs,uf;function jb(){if(uf)return Fs;uf=1;var e=xr(),t=Object.create,r=(function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var a=new n;return n.prototype=void 0,a}})();return Fs=r,Fs}var zs,df;function ff(){if(df)return zs;df=1;function e(t,r){return function(n){return t(r(n))}}return zs=e,zs}var Vs,pf;function Bs(){if(pf)return Vs;pf=1;var e=ff(),t=e(Object.getPrototypeOf,Object);return Vs=t,Vs}var Us,hf;function Ws(){if(hf)return Us;hf=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Us=t,Us}var Hs,mf;function yf(){if(mf)return Hs;mf=1;var e=jb(),t=Bs(),r=Ws();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Hs=n,Hs}var Ks,gf;function Zr(){if(gf)return Ks;gf=1;function e(t){return t!=null&&typeof t=="object"}return Ks=e,Ks}var Gs,vf;function Nb(){if(vf)return Gs;vf=1;var e=Dn(),t=Zr(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Gs=n,Gs}var Ys,bf;function _f(){if(bf)return Ys;bf=1;var e=Nb(),t=Zr(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(l){return t(l)&&n.call(l,"callee")&&!i.call(l,"callee")};return Ys=a,Ys}var Js,wf;function jo(){if(wf)return Js;wf=1;var e=Array.isArray;return Js=e,Js}var Xs,Sf;function Ef(){if(Sf)return Xs;Sf=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Xs=t,Xs}var Zs,Of;function No(){if(Of)return Zs;Of=1;var e=ns(),t=Ef();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zs=r,Zs}var Qs,xf;function Ab(){if(xf)return Qs;xf=1;var e=No(),t=Zr();function r(n){return t(n)&&e(n)}return Qs=r,Qs}var Ln={exports:{}},el,Cf;function Mb(){if(Cf)return el;Cf=1;function e(){return!1}return el=e,el}Ln.exports;var Tf;function tl(){return Tf||(Tf=1,(function(e,t){var r=pr(),n=Mb(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,s=l?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Ln,Ln.exports)),Ln.exports}var rl,Pf;function Db(){if(Pf)return rl;Pf=1;var e=Dn(),t=Bs(),r=Zr(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(d){if(!r(d)||e(d)!=n)return!1;var m=t(d);if(m===null)return!0;var h=s.call(m,"constructor")&&m.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}return rl=u,rl}var nl,$f;function qb(){if($f)return nl;$f=1;var e=Dn(),t=Ef(),r=Zr(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",m="[object Object]",h="[object RegExp]",y="[object Set]",g="[object String]",f="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",p="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",j="[object Uint32Array]",R={};R[p]=R[_]=R[S]=R[w]=R[E]=R[x]=R[P]=R[k]=R[j]=!0,R[n]=R[i]=R[b]=R[a]=R[v]=R[l]=R[s]=R[c]=R[u]=R[d]=R[m]=R[h]=R[y]=R[g]=R[f]=!1;function O(D){return r(D)&&t(D.length)&&!!R[e(D)]}return nl=O,nl}var ol,Rf;function il(){if(Rf)return ol;Rf=1;function e(t){return function(r){return t(r)}}return ol=e,ol}var Fn={exports:{}};Fn.exports;var kf;function al(){return kf||(kf=1,(function(e,t){var r=hd(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&r.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}})();e.exports=s})(Fn,Fn.exports)),Fn.exports}var sl,If;function jf(){if(If)return sl;If=1;var e=qb(),t=il(),r=al(),n=r&&r.isTypedArray,i=n?t(n):e;return sl=i,sl}var ll,Nf;function Af(){if(Nf)return ll;Nf=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return ll=e,ll}var cl,Mf;function Df(){if(Mf)return cl;Mf=1;var e=ks(),t=Po(),r=Object.prototype,n=r.hasOwnProperty;function i(a,l,s){var c=a[l];(!(n.call(a,l)&&t(c,s))||s===void 0&&!(l in a))&&e(a,l,s)}return cl=i,cl}var ul,qf;function mn(){if(qf)return ul;qf=1;var e=Df(),t=ks();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var d=i[c],m=l?l(a[d],n[d],d,a,n):void 0;m===void 0&&(m=n[d]),s?t(a,d,m):e(a,d,m)}return a}return ul=r,ul}var dl,Lf;function Lb(){if(Lf)return dl;Lf=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return dl=e,dl}var fl,Ff;function zf(){if(Ff)return fl;Ff=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return fl=r,fl}var pl,Vf;function Bf(){if(Vf)return pl;Vf=1;var e=Lb(),t=_f(),r=jo(),n=tl(),i=zf(),a=jf(),l=Object.prototype,s=l.hasOwnProperty;function c(u,d){var m=r(u),h=!m&&t(u),y=!m&&!h&&n(u),g=!m&&!h&&!y&&a(u),f=m||h||y||g,b=f?e(u.length,String):[],v=b.length;for(var p in u)(d||s.call(u,p))&&!(f&&(p=="length"||y&&(p=="offset"||p=="parent")||g&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||i(p,v)))&&b.push(p);return b}return pl=c,pl}var hl,Uf;function Fb(){if(Uf)return hl;Uf=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return hl=e,hl}var ml,Wf;function zb(){if(Wf)return ml;Wf=1;var e=xr(),t=Ws(),r=Fb(),n=Object.prototype,i=n.hasOwnProperty;function a(l){if(!e(l))return r(l);var s=t(l),c=[];for(var u in l)u=="constructor"&&(s||!i.call(l,u))||c.push(u);return c}return ml=a,ml}var yl,Hf;function yn(){if(Hf)return yl;Hf=1;var e=Bf(),t=zb(),r=No();function n(i){return r(i)?e(i,!0):t(i)}return yl=n,yl}var gl,Kf;function Vb(){if(Kf)return gl;Kf=1;var e=mn(),t=yn();function r(n){return e(n,t(n))}return gl=r,gl}var vl,Gf;function Bb(){if(Gf)return vl;Gf=1;var e=Zd(),t=rf(),r=sf(),n=cf(),i=yf(),a=_f(),l=jo(),s=Ab(),c=tl(),u=ns(),d=xr(),m=Db(),h=jf(),y=Af(),g=Vb();function f(b,v,p,_,S,w,E){var x=y(b,p),P=y(v,p),k=E.get(P);if(k){e(b,p,k);return}var j=w?w(x,P,p+"",b,v,E):void 0,R=j===void 0;if(R){var O=l(P),D=!O&&c(P),N=!O&&!D&&h(P);j=P,O||D||N?l(x)?j=x:s(x)?j=n(x):D?(R=!1,j=t(P,!0)):N?(R=!1,j=r(P,!0)):j=[]:m(P)||a(P)?(j=x,a(x)?j=g(x):(!d(x)||u(x))&&(j=i(P))):R=!1}R&&(E.set(P,j),S(j,P,_,w,E),E.delete(P)),e(b,p,j)}return vl=f,vl}var bl,Yf;function Ub(){if(Yf)return bl;Yf=1;var e=Kd(),t=Zd(),r=kb(),n=Bb(),i=xr(),a=yn(),l=Af();function s(c,u,d,m,h){c!==u&&r(u,function(y,g){if(h||(h=new e),i(y))n(c,u,g,d,s,m,h);else{var f=m?m(l(c,g),y,g+"",c,u,h):void 0;f===void 0&&(f=y),t(c,g,f)}},a)}return bl=s,bl}var _l,Jf;function Xf(){if(Jf)return _l;Jf=1;function e(t){return t}return _l=e,_l}var wl,Zf;function Wb(){if(Zf)return wl;Zf=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return wl=e,wl}var Sl,Qf;function Hb(){if(Qf)return Sl;Qf=1;var e=Wb(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var l=arguments,s=-1,c=t(l.length-i,0),u=Array(c);++s<c;)u[s]=l[i+s];s=-1;for(var d=Array(i+1);++s<i;)d[s]=l[s];return d[i]=a(u),e(n,this,d)}}return Sl=r,Sl}var El,ep;function Kb(){if(ep)return El;ep=1;function e(t){return function(){return t}}return El=e,El}var Ol,tp;function Gb(){if(tp)return Ol;tp=1;var e=Kb(),t=Yd(),r=Xf(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ol=n,Ol}var xl,rp;function Yb(){if(rp)return xl;rp=1;var e=800,t=16,r=Date.now;function n(i){var a=0,l=0;return function(){var s=r(),c=t-(s-l);if(l=s,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return xl=n,xl}var Cl,np;function Jb(){if(np)return Cl;np=1;var e=Gb(),t=Yb(),r=t(e);return Cl=r,Cl}var Tl,op;function Xb(){if(op)return Tl;op=1;var e=Xf(),t=Hb(),r=Jb();function n(i,a){return r(t(i,a,e),i+"")}return Tl=n,Tl}var Pl,ip;function Zb(){if(ip)return Pl;ip=1;var e=Po(),t=No(),r=zf(),n=xr();function i(a,l,s){if(!n(s))return!1;var c=typeof l;return(c=="number"?t(s)&&r(l,s.length):c=="string"&&l in s)?e(s[l],a):!1}return Pl=i,Pl}var $l,ap;function sp(){if(ap)return $l;ap=1;var e=Xb(),t=Zb();function r(n){return e(function(i,a){var l=-1,s=a.length,c=s>1?a[s-1]:void 0,u=s>2?a[2]:void 0;for(c=n.length>3&&typeof c=="function"?(s--,c):void 0,u&&t(a[0],a[1],u)&&(c=s<3?void 0:c,s=1),i=Object(i);++l<s;){var d=a[l];d&&n(i,d,l,c)}return i})}return $l=r,$l}var Rl,lp;function Qb(){if(lp)return Rl;lp=1;var e=Ub(),t=sp(),r=t(function(n,i,a){e(n,i,a)});return Rl=r,Rl}var e0=Qb();const t0=Ut(e0);var kl,cp;function r0(){if(cp)return kl;cp=1;function e(t){return t==null}return kl=e,kl}var n0=r0();const up=Ut(n0);var o0=xr();const i0=Ut(o0);var Il,dp;function a0(){if(dp)return Il;dp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return Il=e,Il}var jl,fp;function s0(){if(fp)return jl;fp=1;var e=ff(),t=e(Object.keys,Object);return jl=t,jl}var Nl,pp;function l0(){if(pp)return Nl;pp=1;var e=Ws(),t=s0(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var l=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&l.push(s);return l}return Nl=i,Nl}var Al,hp;function Ml(){if(hp)return Al;hp=1;var e=Bf(),t=l0(),r=No();function n(i){return r(i)?e(i):t(i)}return Al=n,Al}var Dl,mp;function c0(){if(mp)return Dl;mp=1;var e=mn(),t=Ml();function r(n,i){return n&&e(i,t(i),n)}return Dl=r,Dl}var ql,yp;function u0(){if(yp)return ql;yp=1;var e=mn(),t=yn();function r(n,i){return n&&e(i,t(i),n)}return ql=r,ql}var Ll,gp;function d0(){if(gp)return Ll;gp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,l=[];++n<i;){var s=t[n];r(s,n,t)&&(l[a++]=s)}return l}return Ll=e,Ll}var Fl,vp;function bp(){if(vp)return Fl;vp=1;function e(){return[]}return Fl=e,Fl}var zl,_p;function Vl(){if(_p)return zl;_p=1;var e=d0(),t=bp(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(s){return n.call(l,s)}))}:t;return zl=a,zl}var Bl,wp;function f0(){if(wp)return Bl;wp=1;var e=mn(),t=Vl();function r(n,i){return e(n,t(n),i)}return Bl=r,Bl}var Ul,Sp;function Ep(){if(Sp)return Ul;Sp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Ul=e,Ul}var Wl,Op;function xp(){if(Op)return Wl;Op=1;var e=Ep(),t=Bs(),r=Vl(),n=bp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Wl=a,Wl}var Hl,Cp;function p0(){if(Cp)return Hl;Cp=1;var e=mn(),t=xp();function r(n,i){return e(n,t(n),i)}return Hl=r,Hl}var Kl,Tp;function Pp(){if(Tp)return Kl;Tp=1;var e=Ep(),t=jo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return Kl=r,Kl}var Gl,$p;function h0(){if($p)return Gl;$p=1;var e=Pp(),t=Vl(),r=Ml();function n(i){return e(i,r,t)}return Gl=n,Gl}var Yl,Rp;function m0(){if(Rp)return Yl;Rp=1;var e=Pp(),t=xp(),r=yn();function n(i){return e(i,r,t)}return Yl=n,Yl}var Jl,kp;function y0(){if(kp)return Jl;kp=1;var e=Xr(),t=pr(),r=e(t,"DataView");return Jl=r,Jl}var Xl,Ip;function g0(){if(Ip)return Xl;Ip=1;var e=Xr(),t=pr(),r=e(t,"Promise");return Xl=r,Xl}var Zl,jp;function v0(){if(jp)return Zl;jp=1;var e=Xr(),t=pr(),r=e(t,"Set");return Zl=r,Zl}var Ql,Np;function b0(){if(Np)return Ql;Np=1;var e=Xr(),t=pr(),r=e(t,"WeakMap");return Ql=r,Ql}var ec,Ap;function tc(){if(Ap)return ec;Ap=1;var e=y0(),t=ds(),r=g0(),n=v0(),i=b0(),a=Dn(),l=xd(),s="[object Map]",c="[object Object]",u="[object Promise]",d="[object Set]",m="[object WeakMap]",h="[object DataView]",y=l(e),g=l(t),f=l(r),b=l(n),v=l(i),p=a;return(e&&p(new e(new ArrayBuffer(1)))!=h||t&&p(new t)!=s||r&&p(r.resolve())!=u||n&&p(new n)!=d||i&&p(new i)!=m)&&(p=function(_){var S=a(_),w=S==c?_.constructor:void 0,E=w?l(w):"";if(E)switch(E){case y:return h;case g:return s;case f:return u;case b:return d;case v:return m}return S}),ec=p,ec}var rc,Mp;function _0(){if(Mp)return rc;Mp=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,a=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(a.index=n.index,a.input=n.input),a}return rc=r,rc}var nc,Dp;function w0(){if(Dp)return nc;Dp=1;var e=Ds();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return nc=t,nc}var oc,qp;function S0(){if(qp)return oc;qp=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return oc=t,oc}var ic,Lp;function E0(){if(Lp)return ic;Lp=1;var e=Xa(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return ic=n,ic}var ac,Fp;function O0(){if(Fp)return ac;Fp=1;var e=Ds(),t=w0(),r=S0(),n=E0(),i=sf(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",m="[object String]",h="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",f="[object Float32Array]",b="[object Float64Array]",v="[object Int8Array]",p="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",w="[object Uint8ClampedArray]",E="[object Uint16Array]",x="[object Uint32Array]";function P(k,j,R){var O=k.constructor;switch(j){case y:return e(k);case a:case l:return new O(+k);case g:return t(k,R);case f:case b:case v:case p:case _:case S:case w:case E:case x:return i(k,R);case s:return new O;case c:case m:return new O(k);case u:return r(k);case d:return new O;case h:return n(k)}}return ac=P,ac}var sc,zp;function x0(){if(zp)return sc;zp=1;var e=tc(),t=Zr(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return sc=n,sc}var lc,Vp;function C0(){if(Vp)return lc;Vp=1;var e=x0(),t=il(),r=al(),n=r&&r.isMap,i=n?t(n):e;return lc=i,lc}var cc,Bp;function T0(){if(Bp)return cc;Bp=1;var e=tc(),t=Zr(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return cc=n,cc}var uc,Up;function P0(){if(Up)return uc;Up=1;var e=T0(),t=il(),r=al(),n=r&&r.isSet,i=n?t(n):e;return uc=i,uc}var dc,Wp;function $0(){if(Wp)return dc;Wp=1;var e=Kd(),t=a0(),r=Df(),n=c0(),i=u0(),a=rf(),l=cf(),s=f0(),c=p0(),u=h0(),d=m0(),m=tc(),h=_0(),y=O0(),g=yf(),f=jo(),b=tl(),v=C0(),p=xr(),_=P0(),S=Ml(),w=yn(),E=1,x=2,P=4,k="[object Arguments]",j="[object Array]",R="[object Boolean]",O="[object Date]",D="[object Error]",N="[object Function]",U="[object GeneratorFunction]",W="[object Map]",le="[object Number]",ce="[object Object]",ue="[object RegExp]",z="[object Set]",C="[object String]",V="[object Symbol]",M="[object WeakMap]",T="[object ArrayBuffer]",$="[object DataView]",q="[object Float32Array]",K="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",te="[object Int32Array]",L="[object Uint8Array]",I="[object Uint8ClampedArray]",G="[object Uint16Array]",X="[object Uint32Array]",oe={};oe[k]=oe[j]=oe[T]=oe[$]=oe[R]=oe[O]=oe[q]=oe[K]=oe[re]=oe[ie]=oe[te]=oe[W]=oe[le]=oe[ce]=oe[ue]=oe[z]=oe[C]=oe[V]=oe[L]=oe[I]=oe[G]=oe[X]=!0,oe[D]=oe[N]=oe[M]=!1;function ye(ve,fe,Te,be,Ee,he){var $e,Ie=fe&E,ot=fe&x,Qe=fe&P;if(Te&&($e=Ee?Te(ve,be,Ee,he):Te(ve)),$e!==void 0)return $e;if(!p(ve))return ve;var _t=f(ve);if(_t){if($e=h(ve),!Ie)return l(ve,$e)}else{var et=m(ve),Tt=et==N||et==U;if(b(ve))return a(ve,Ie);if(et==ce||et==k||Tt&&!Ee){if($e=ot||Tt?{}:g(ve),!Ie)return ot?c(ve,i($e,ve)):s(ve,n($e,ve))}else{if(!oe[et])return Ee?ve:{};$e=y(ve,et,Ie)}}he||(he=new e);var Je=he.get(ve);if(Je)return Je;he.set(ve,$e),_(ve)?ve.forEach(function(ft){$e.add(ye(ft,fe,Te,ft,ve,he))}):v(ve)&&ve.forEach(function(ft,ct){$e.set(ct,ye(ft,fe,Te,ct,ve,he))});var Oe=Qe?ot?d:u:ot?w:S,He=_t?void 0:Oe(ve);return t(He||ve,function(ft,ct){He&&(ct=ft,ft=ve[ct]),r($e,ct,ye(ft,fe,Te,ct,ve,he))}),$e}return dc=ye,dc}var fc,Hp;function R0(){if(Hp)return fc;Hp=1;var e=$0(),t=1,r=4;function n(i){return e(i,t|r)}return fc=n,fc}var k0=R0();const Ao=Ut(k0);var pc,Kp;function I0(){if(Kp)return pc;Kp=1;var e=mn(),t=sp(),r=yn(),n=t(function(i,a){e(a,r(a),i)});return pc=n,pc}var hc,Gp;function j0(){return Gp||(Gp=1,hc=I0()),hc}var N0=j0();const A0=Ut(N0);var mc,Yp;function M0(){if(Yp)return mc;Yp=1;function e(t){return t===void 0}return mc=e,mc}var D0=M0();const q0=Ut(D0);var yc={},Jp;function L0(){return Jp||(Jp=1,(function(e){(function(t){var r={"'":/\\\'/g,'"':/\\\"/g},n={parse:function(i){if(typeof i!="string")throw new TypeError("ObjectPath.parse must be passed a string");for(var a=0,l=[],s,c,u,d;a<i.length;)if(s=i.indexOf(".",a),c=i.indexOf("[",a),s===-1&&c===-1)l.push(i.slice(a,i.length)),a=i.length;else if(c===-1||s!==-1&&s<c)l.push(i.slice(a,s)),a=s+1;else if(c>a&&(l.push(i.slice(a,c)),a=c),u=i.slice(c+1,c+2),u!=='"'&&u!=="'")d=i.indexOf("]",c),d===-1&&(d=i.length),l.push(i.slice(a+1,d)),a=i.slice(d+1,d+2)==="."?d+2:d+1;else{for(d=i.indexOf(u+"]",c),d===-1&&(d=i.length);i.slice(d-1,d)==="\\"&&c<i.length;)c++,d=i.indexOf(u+"]",c);l.push(i.slice(a+2,d).replace(r[u],u).replace(/\\+/g,function(m){return new Array(Math.ceil(m.length/2)+1).join("\\")})),a=i.slice(d+2,d+3)==="."?d+3:d+2}return l},stringify:function(i,a,l){Array.isArray(i)||(i=[i]),a=a==='"'?'"':"'";var s=new RegExp("(\\\\|"+a+")","g");return i.map(function(c,u){let d=c.toString();return!l&&/^[A-z_]\w*$/.exec(d)?u!==0?"."+d:d:!l&&/^\d+$/.exec(d)?"["+d+"]":(d=d.replace(s,"\\$1"),"["+a+d+a+"]")}).join("")},normalize:function(i,a,l){return n.stringify(Array.isArray(i)?i:n.parse(i),a,l)},registerModule:function(i){i.module("ObjectPath",[]).provider("ObjectPath",function(){this.parse=n.parse,this.stringify=n.stringify,this.normalize=n.normalize,this.$get=function(){return n}})}};e.ObjectPath=n})()})(yc)),yc}var gc,Xp;function F0(){return Xp||(Xp=1,gc=L0().ObjectPath),gc}var z0=F0();const Rt=Ut(z0);var Mo={exports:{}},vc={},Cr={},Qr={},bc={},_c={},wc={},Zp;function Do(){return Zp||(Zp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(p){if(super(),!e.IDENTIFIER.test(p))throw new Error("CodeGen: name must be a valid identifier");this.str=p}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(p){super(),this._items=typeof p=="string"?[p]:p}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const p=this._items[0];return p===""||p==='""'}get str(){var p;return(p=this._str)!==null&&p!==void 0?p:this._str=this._items.reduce((_,S)=>`${_}${S}`,"")}get names(){var p;return(p=this._names)!==null&&p!==void 0?p:this._names=this._items.reduce((_,S)=>(S instanceof r&&(_[S.str]=(_[S.str]||0)+1),_),{})}}e._Code=n,e.nil=new n("");function i(v,...p){const _=[v[0]];let S=0;for(;S<p.length;)s(_,p[S]),_.push(v[++S]);return new n(_)}e._=i;const a=new n("+");function l(v,...p){const _=[y(v[0])];let S=0;for(;S<p.length;)_.push(a),s(_,p[S]),_.push(a,y(v[++S]));return c(_),new n(_)}e.str=l;function s(v,p){p instanceof n?v.push(...p._items):p instanceof r?v.push(p):v.push(m(p))}e.addCodeArg=s;function c(v){let p=1;for(;p<v.length-1;){if(v[p]===a){const _=u(v[p-1],v[p+1]);if(_!==void 0){v.splice(p-1,3,_);continue}v[p++]="+"}p++}}function u(v,p){if(p==='""')return v;if(v==='""')return p;if(typeof v=="string")return p instanceof r||v[v.length-1]!=='"'?void 0:typeof p!="string"?`${v.slice(0,-1)}${p}"`:p[0]==='"'?v.slice(0,-1)+p.slice(1):void 0;if(typeof p=="string"&&p[0]==='"'&&!(v instanceof r))return`"${v}${p.slice(1)}`}function d(v,p){return p.emptyStr()?v:v.emptyStr()?p:l`${v}${p}`}e.strConcat=d;function m(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:y(Array.isArray(v)?v.join(","):v)}function h(v){return new n(y(v))}e.stringify=h;function y(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function g(v){return typeof v=="string"&&e.IDENTIFIER.test(v)?new n(`.${v}`):i`[${v}]`}e.getProperty=g;function f(v){if(typeof v=="string"&&e.IDENTIFIER.test(v))return new n(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}e.getEsmExportName=f;function b(v){return new n(v.toString())}e.regexpCode=b})(wc)),wc}var Sc={},Qp;function eh(){return Qp||(Qp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Do();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,m;if(!((m=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||m===void 0)&&m.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class a extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:m}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${m}]`}}e.ValueScopeName=a;const l=(0,t._)`\n`;class s extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?l:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var m;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:y}=h,g=(m=d.key)!==null&&m!==void 0?m:d.ref;let f=this._values[y];if(f){const p=f.get(g);if(p)return p}else f=this._values[y]=new Map;f.set(g,h);const b=this._scope[y]||(this._scope[y]=[]),v=b.length;return b[v]=d.ref,h.setValue(d,{property:y,itemIndex:v}),h}getValue(u,d){const m=this._values[u];if(m)return m.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${u}${m.scopePath}`})}scopeCode(u=this._values,d,m){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,m)}_reduceValues(u,d,m={},h){let y=t.nil;for(const g in u){const f=u[g];if(!f)continue;const b=m[g]=m[g]||new Map;f.forEach(v=>{if(b.has(v))return;b.set(v,n.Started);let p=d(v);if(p){const _=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${_} ${v} = ${p};${this.opts._n}`}else if(p=h?.(v))y=(0,t._)`${y}${p}${this.opts._n}`;else throw new r(v);b.set(v,n.Completed)})}return y}}e.ValueScope=s})(Sc)),Sc}var th;function De(){return th||(th=1,(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=Do(),r=eh();var n=Do();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=eh();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.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(T,$){return this}}class l extends a{constructor(T,$,q){super(),this.varKind=T,this.name=$,this.rhs=q}render({es5:T,_n:$}){const q=T?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${q} ${this.name}${K};`+$}optimizeNames(T,$){if(T[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,T,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(T,$,q){super(),this.lhs=T,this.rhs=$,this.sideEffects=q}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,$){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=N(this.rhs,T,$),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return D(T,this.rhs)}}class c extends s{constructor(T,$,q,K){super(T,q,K),this.op=$}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class u extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class d extends a{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class m extends a{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class h extends a{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,$){return this.code=N(this.code,T,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends a{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce(($,q)=>$+q.render(T),"")}optimizeNodes(){const{nodes:T}=this;let $=T.length;for(;$--;){const q=T[$].optimizeNodes();Array.isArray(q)?T.splice($,1,...q):q?T[$]=q:T.splice($,1)}return T.length>0?this:void 0}optimizeNames(T,$){const{nodes:q}=this;let K=q.length;for(;K--;){const re=q[K];re.optimizeNames(T,$)||(U(T,re.names),q.splice(K,1))}return q.length>0?this:void 0}get names(){return this.nodes.reduce((T,$)=>O(T,$.names),{})}}class g extends y{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class f extends y{}class b extends g{}b.kind="else";class v extends g{constructor(T,$){super($),this.condition=T}render(T){let $=`if(${this.condition})`+super.render(T);return this.else&&($+="else "+this.else.render(T)),$}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let $=this.else;if($){const q=$.optimizeNodes();$=this.else=Array.isArray(q)?new b(q):q}if($)return T===!1?$ instanceof v?$:$.nodes:this.nodes.length?this:new v(W(T),$ instanceof v?[$]:$.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,$){var q;if(this.else=(q=this.else)===null||q===void 0?void 0:q.optimizeNames(T,$),!!(super.optimizeNames(T,$)||this.else))return this.condition=N(this.condition,T,$),this}get names(){const T=super.names;return D(T,this.condition),this.else&&O(T,this.else.names),T}}v.kind="if";class p extends g{}p.kind="for";class _ extends p{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iteration=N(this.iteration,T,$),this}get names(){return O(super.names,this.iteration.names)}}class S extends p{constructor(T,$,q,K){super(),this.varKind=T,this.name=$,this.from=q,this.to=K}render(T){const $=T.es5?r.varKinds.var:this.varKind,{name:q,from:K,to:re}=this;return`for(${$} ${q}=${K}; ${q}<${re}; ${q}++)`+super.render(T)}get names(){const T=D(super.names,this.from);return D(T,this.to)}}class w extends p{constructor(T,$,q,K){super(),this.loop=T,this.varKind=$,this.name=q,this.iterable=K}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,$){if(super.optimizeNames(T,$))return this.iterable=N(this.iterable,T,$),this}get names(){return O(super.names,this.iterable.names)}}class E extends g{constructor(T,$,q){super(),this.name=T,this.args=$,this.async=q}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}E.kind="func";class x extends y{render(T){return"return "+super.render(T)}}x.kind="return";class P extends g{render(T){let $="try"+super.render(T);return this.catch&&($+=this.catch.render(T)),this.finally&&($+=this.finally.render(T)),$}optimizeNodes(){var T,$;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(T,$){var q,K;return super.optimizeNames(T,$),(q=this.catch)===null||q===void 0||q.optimizeNames(T,$),(K=this.finally)===null||K===void 0||K.optimizeNames(T,$),this}get names(){const T=super.names;return this.catch&&O(T,this.catch.names),this.finally&&O(T,this.finally.names),T}}class k extends g{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}k.kind="catch";class j extends g{render(T){return"finally"+super.render(T)}}j.kind="finally";class R{constructor(T,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
7
+ `:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new f]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,$){const q=this._extScope.value(T,$);return(this._values[q.prefix]||(this._values[q.prefix]=new Set)).add(q),q}getScopeValue(T,$){return this._extScope.getValue(T,$)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,$,q,K){const re=this._scope.toName($);return q!==void 0&&K&&(this._constants[re.str]=q),this._leafNode(new l(T,re,q)),re}const(T,$,q){return this._def(r.varKinds.const,T,$,q)}let(T,$,q){return this._def(r.varKinds.let,T,$,q)}var(T,$,q){return this._def(r.varKinds.var,T,$,q)}assign(T,$,q){return this._leafNode(new s(T,$,q))}add(T,$){return this._leafNode(new c(T,e.operators.ADD,$))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new h(T)),this}object(...T){const $=["{"];for(const[q,K]of T)$.length>1&&$.push(","),$.push(q),(q!==K||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,K));return $.push("}"),new t._Code($)}if(T,$,q){if(this._blockNode(new v(T)),$&&q)this.code($).else().code(q).endIf();else if($)this.code($).endIf();else if(q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new v(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(T,$){return this._blockNode(T),$&&this.code($).endFor(),this}for(T,$){return this._for(new _(T),$)}forRange(T,$,q,K,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(T);return this._for(new S(re,ie,$,q),()=>K(ie))}forOf(T,$,q,K=r.varKinds.const){const re=this._scope.toName(T);if(this.opts.es5){const ie=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${ie}.length`,te=>{this.var(re,(0,t._)`${ie}[${te}]`),q(re)})}return this._for(new w("of",K,re,$),()=>q(re))}forIn(T,$,q,K=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${$})`,q);const re=this._scope.toName(T);return this._for(new w("in",K,re,$),()=>q(re))}endFor(){return this._endBlockNode(p)}label(T){return this._leafNode(new u(T))}break(T){return this._leafNode(new d(T))}return(T){const $=new x;if(this._blockNode($),this.code(T),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,$,q){if(!$&&!q)throw new Error('CodeGen: "try" without "catch" and "finally"');const K=new P;if(this._blockNode(K),this.code(T),$){const re=this.name("e");this._currNode=K.catch=new k(re),$(re)}return q&&(this._currNode=K.finally=new j,this.code(q)),this._endBlockNode(k,j)}throw(T){return this._leafNode(new m(T))}block(T,$){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock($),this}endBlock(T){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const q=this._nodes.length-$;if(q<0||T!==void 0&&q!==T)throw new Error(`CodeGen: wrong number of nodes: ${q} vs ${T} expected`);return this._nodes.length=$,this}func(T,$=t.nil,q,K){return this._blockNode(new E(T,$,q)),K&&this.code(K).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,$){const q=this._currNode;if(q instanceof T||$&&q instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${T.kind}/${$.kind}`:T.kind}"`)}_elseNode(T){const $=this._currNode;if(!($ instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const $=this._nodes;$[$.length-1]=T}}e.CodeGen=R;function O(M,T){for(const $ in T)M[$]=(M[$]||0)+(T[$]||0);return M}function D(M,T){return T instanceof t._CodeOrName?O(M,T.names):M}function N(M,T,$){if(M instanceof t.Name)return q(M);if(!K(M))return M;return new t._Code(M._items.reduce((re,ie)=>(ie instanceof t.Name&&(ie=q(ie)),ie instanceof t._Code?re.push(...ie._items):re.push(ie),re),[]));function q(re){const ie=$[re.str];return ie===void 0||T[re.str]!==1?re:(delete T[re.str],ie)}function K(re){return re instanceof t._Code&&re._items.some(ie=>ie instanceof t.Name&&T[ie.str]===1&&$[ie.str]!==void 0)}}function U(M,T){for(const $ in T)M[$]=(M[$]||0)-(T[$]||0)}function W(M){return typeof M=="boolean"||typeof M=="number"||M===null?!M:(0,t._)`!${V(M)}`}e.not=W;const le=C(e.operators.AND);function ce(...M){return M.reduce(le)}e.and=ce;const ue=C(e.operators.OR);function z(...M){return M.reduce(ue)}e.or=z;function C(M){return(T,$)=>T===t.nil?$:$===t.nil?T:(0,t._)`${V(T)} ${M} ${V($)}`}function V(M){return M instanceof t.Name?M:(0,t._)`(${M})`}})(_c)),_c}var qe={},rh;function Ge(){if(rh)return qe;rh=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=De(),t=Do();function r(w){const E={};for(const x of w)E[x]=!0;return E}qe.toHash=r;function n(w,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(i(w,E),!a(E,w.self.RULES.all))}qe.alwaysValidSchema=n;function i(w,E=w.schema){const{opts:x,self:P}=w;if(!x.strictSchema||typeof E=="boolean")return;const k=P.RULES.keywords;for(const j in E)k[j]||S(w,`unknown keyword: "${j}"`)}qe.checkUnknownRules=i;function a(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(E[x])return!0;return!1}qe.schemaHasRules=a;function l(w,E){if(typeof w=="boolean")return!w;for(const x in w)if(x!=="$ref"&&E.all[x])return!0;return!1}qe.schemaHasRulesButRef=l;function s({topSchemaRef:w,schemaPath:E},x,P,k){if(!k){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${w}${E}${(0,e.getProperty)(P)}`}qe.schemaRefOrVal=s;function c(w){return m(decodeURIComponent(w))}qe.unescapeFragment=c;function u(w){return encodeURIComponent(d(w))}qe.escapeFragment=u;function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=d;function m(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=m;function h(w,E){if(Array.isArray(w))for(const x of w)E(x);else E(w)}qe.eachItem=h;function y({mergeNames:w,mergeToName:E,mergeValues:x,resultToName:P}){return(k,j,R,O)=>{const D=R===void 0?j:R instanceof e.Name?(j instanceof e.Name?w(k,j,R):E(k,j,R),R):j instanceof e.Name?(E(k,R,j),j):x(j,R);return O===e.Name&&!(D instanceof e.Name)?P(k,D):D}}qe.mergeEvaluated={props:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>{w.if((0,e._)`${E} === true`,()=>w.assign(x,!0),()=>w.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${E})`))}),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>{E===!0?w.assign(x,!0):(w.assign(x,(0,e._)`${x} || {}`),f(w,x,E))}),mergeValues:(w,E)=>w===!0?!0:{...w,...E},resultToName:g}),items:y({mergeNames:(w,E,x)=>w.if((0,e._)`${x} !== true && ${E} !== undefined`,()=>w.assign(x,(0,e._)`${E} === true ? true : ${x} > ${E} ? ${x} : ${E}`)),mergeToName:(w,E,x)=>w.if((0,e._)`${x} !== true`,()=>w.assign(x,E===!0?!0:(0,e._)`${x} > ${E} ? ${x} : ${E}`)),mergeValues:(w,E)=>w===!0?!0:Math.max(w,E),resultToName:(w,E)=>w.var("items",E)})};function g(w,E){if(E===!0)return w.var("props",!0);const x=w.var("props",(0,e._)`{}`);return E!==void 0&&f(w,x,E),x}qe.evaluatedPropsToName=g;function f(w,E,x){Object.keys(x).forEach(P=>w.assign((0,e._)`${E}${(0,e.getProperty)(P)}`,!0))}qe.setEvaluated=f;const b={};function v(w,E){return w.scopeValue("func",{ref:E,code:b[E.code]||(b[E.code]=new t._Code(E.code))})}qe.useFunc=v;var p;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(p||(qe.Type=p={}));function _(w,E,x){if(w instanceof e.Name){const P=E===p.Num;return x?P?(0,e._)`"[" + ${w} + "]"`:(0,e._)`"['" + ${w} + "']"`:P?(0,e._)`"/" + ${w}`:(0,e._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(w).toString():"/"+d(w)}qe.getErrorPath=_;function S(w,E,x=w.opts.strictSchema){if(x){if(E=`strict mode: ${E}`,x===!0)throw new Error(E);w.self.logger.warn(E)}}return qe.checkStrictMode=S,qe}var qo={},nh;function Dr(){if(nh)return qo;nh=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=De(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return qo.default=t,qo}var oh;function Lo(){return oh||(oh=1,(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=De(),r=Ge(),n=Dr();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:v})=>v?(0,t.str)`"${b}" keyword must be ${v} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function i(b,v=e.keywordError,p,_){const{it:S}=b,{gen:w,compositeRule:E,allErrors:x}=S,P=m(b,v,p);_??(E||x)?c(w,P):u(S,(0,t._)`[${P}]`)}e.reportError=i;function a(b,v=e.keywordError,p){const{it:_}=b,{gen:S,compositeRule:w,allErrors:E}=_,x=m(b,v,p);c(S,x),w||E||u(_,n.default.vErrors)}e.reportExtraError=a;function l(b,v){b.assign(n.default.errors,v),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(v,()=>b.assign((0,t._)`${n.default.vErrors}.length`,v),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=l;function s({gen:b,keyword:v,schemaValue:p,data:_,errsCount:S,it:w}){if(S===void 0)throw new Error("ajv implementation error");const E=b.name("err");b.forRange("i",S,n.default.errors,x=>{b.const(E,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${E}.instancePath === undefined`,()=>b.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(n.default.instancePath,w.errorPath))),b.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${w.errSchemaPath}/${v}`),w.opts.verbose&&(b.assign((0,t._)`${E}.schema`,p),b.assign((0,t._)`${E}.data`,_))})}e.extendErrors=s;function c(b,v){const p=b.const("err",v);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${p}]`),(0,t._)`${n.default.vErrors}.push(${p})`),b.code((0,t._)`${n.default.errors}++`)}function u(b,v){const{gen:p,validateName:_,schemaEnv:S}=b;S.$async?p.throw((0,t._)`new ${b.ValidationError}(${v})`):(p.assign((0,t._)`${_}.errors`,v),p.return(!1))}const d={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 m(b,v,p){const{createErrors:_}=b.it;return _===!1?(0,t._)`{}`:h(b,v,p)}function h(b,v,p={}){const{gen:_,it:S}=b,w=[y(S,p),g(b,p)];return f(b,v,w),_.object(...w)}function y({errorPath:b},{instancePath:v}){const p=v?(0,t.str)`${b}${(0,r.getErrorPath)(v,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,p)]}function g({keyword:b,it:{errSchemaPath:v}},{schemaPath:p,parentSchema:_}){let S=_?v:(0,t.str)`${v}/${b}`;return p&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(p,r.Type.Str)}`),[d.schemaPath,S]}function f(b,{params:v,message:p},_){const{keyword:S,data:w,schemaValue:E,it:x}=b,{opts:P,propertyName:k,topSchemaRef:j,schemaPath:R}=x;_.push([d.keyword,S],[d.params,typeof v=="function"?v(b):v||(0,t._)`{}`]),P.messages&&_.push([d.message,typeof p=="function"?p(b):p]),P.verbose&&_.push([d.schema,E],[d.parentSchema,(0,t._)`${j}${R}`],[n.default.data,w]),k&&_.push([d.propertyName,k])}})(bc)),bc}var ih;function V0(){if(ih)return Qr;ih=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.boolOrEmptySchema=Qr.topBoolOrEmptySchema=void 0;const e=Lo(),t=De(),r=Dr(),n={message:"boolean schema is false"};function i(s){const{gen:c,schema:u,validateName:d}=s;u===!1?l(s,!1):typeof u=="object"&&u.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${d}.errors`,null),c.return(!0))}Qr.topBoolOrEmptySchema=i;function a(s,c){const{gen:u,schema:d}=s;d===!1?(u.var(c,!1),l(s)):u.var(c,!0)}Qr.boolOrEmptySchema=a;function l(s,c){const{gen:u,data:d}=s,m={gen:u,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(m,n,void 0,c)}return Qr}var Pt={},en={},ah;function sh(){if(ah)return en;ah=1,Object.defineProperty(en,"__esModule",{value:!0}),en.getRules=en.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}en.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return en.getRules=n,en}var Tr={},lh;function ch(){if(lh)return Tr;lh=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.shouldUseRule=Tr.shouldUseGroup=Tr.schemaHasRulesForType=void 0;function e({schema:n,self:i},a){const l=i.RULES.types[a];return l&&l!==!0&&t(n,l)}Tr.schemaHasRulesForType=e;function t(n,i){return i.rules.some(a=>r(n,a))}Tr.shouldUseGroup=t;function r(n,i){var a;return n[i.keyword]!==void 0||((a=i.definition.implements)===null||a===void 0?void 0:a.some(l=>n[l]!==void 0))}return Tr.shouldUseRule=r,Tr}var uh;function Fo(){if(uh)return Pt;uh=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.reportTypeError=Pt.checkDataTypes=Pt.checkDataType=Pt.coerceAndCheckDataType=Pt.getJSONTypes=Pt.getSchemaTypes=Pt.DataType=void 0;const e=sh(),t=ch(),r=Lo(),n=De(),i=Ge();var a;(function(p){p[p.Correct=0]="Correct",p[p.Wrong=1]="Wrong"})(a||(Pt.DataType=a={}));function l(p){const _=s(p.type);if(_.includes("null")){if(p.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!_.length&&p.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');p.nullable===!0&&_.push("null")}return _}Pt.getSchemaTypes=l;function s(p){const _=Array.isArray(p)?p:p?[p]:[];if(_.every(e.isJSONType))return _;throw new Error("type must be JSONType or JSONType[]: "+_.join(","))}Pt.getJSONTypes=s;function c(p,_){const{gen:S,data:w,opts:E}=p,x=d(_,E.coerceTypes),P=_.length>0&&!(x.length===0&&_.length===1&&(0,t.schemaHasRulesForType)(p,_[0]));if(P){const k=g(_,w,E.strictNumbers,a.Wrong);S.if(k,()=>{x.length?m(p,_,x):b(p)})}return P}Pt.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function d(p,_){return _?p.filter(S=>u.has(S)||_==="array"&&S==="array"):[]}function m(p,_,S){const{gen:w,data:E,opts:x}=p,P=w.let("dataType",(0,n._)`typeof ${E}`),k=w.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&w.if((0,n._)`${P} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>w.assign(E,(0,n._)`${E}[0]`).assign(P,(0,n._)`typeof ${E}`).if(g(_,E,x.strictNumbers),()=>w.assign(k,E))),w.if((0,n._)`${k} !== undefined`);for(const R of S)(u.has(R)||R==="array"&&x.coerceTypes==="array")&&j(R);w.else(),b(p),w.endIf(),w.if((0,n._)`${k} !== undefined`,()=>{w.assign(E,k),h(p,k)});function j(R){switch(R){case"string":w.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(k,(0,n._)`"" + ${E}`).elseIf((0,n._)`${E} === null`).assign(k,(0,n._)`""`);return;case"number":w.elseIf((0,n._)`${P} == "boolean" || ${E} === null
8
+ || (${P} == "string" && ${E} && ${E} == +${E})`).assign(k,(0,n._)`+${E}`);return;case"integer":w.elseIf((0,n._)`${P} === "boolean" || ${E} === null
9
+ || (${P} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(k,(0,n._)`+${E}`);return;case"boolean":w.elseIf((0,n._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(k,!1).elseIf((0,n._)`${E} === "true" || ${E} === 1`).assign(k,!0);return;case"null":w.elseIf((0,n._)`${E} === "" || ${E} === 0 || ${E} === false`),w.assign(k,null);return;case"array":w.elseIf((0,n._)`${P} === "string" || ${P} === "number"
10
+ || ${P} === "boolean" || ${E} === null`).assign(k,(0,n._)`[${E}]`)}}}function h({gen:p,parentData:_,parentDataProperty:S},w){p.if((0,n._)`${_} !== undefined`,()=>p.assign((0,n._)`${_}[${S}]`,w))}function y(p,_,S,w=a.Correct){const E=w===a.Correct?n.operators.EQ:n.operators.NEQ;let x;switch(p){case"null":return(0,n._)`${_} ${E} null`;case"array":x=(0,n._)`Array.isArray(${_})`;break;case"object":x=(0,n._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":x=P((0,n._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":x=P();break;default:return(0,n._)`typeof ${_} ${E} ${p}`}return w===a.Correct?x:(0,n.not)(x);function P(k=n.nil){return(0,n.and)((0,n._)`typeof ${_} == "number"`,k,S?(0,n._)`isFinite(${_})`:n.nil)}}Pt.checkDataType=y;function g(p,_,S,w){if(p.length===1)return y(p[0],_,S,w);let E;const x=(0,i.toHash)(p);if(x.array&&x.object){const P=(0,n._)`typeof ${_} != "object"`;E=x.null?P:(0,n._)`!${_} || ${P}`,delete x.null,delete x.array,delete x.object}else E=n.nil;x.number&&delete x.integer;for(const P in x)E=(0,n.and)(E,y(P,_,S,w));return E}Pt.checkDataTypes=g;const f={message:({schema:p})=>`must be ${p}`,params:({schema:p,schemaValue:_})=>typeof p=="string"?(0,n._)`{type: ${p}}`:(0,n._)`{type: ${_}}`};function b(p){const _=v(p);(0,r.reportError)(_,f)}Pt.reportTypeError=b;function v(p){const{gen:_,data:S,schema:w}=p,E=(0,i.schemaRefOrVal)(p,w,"type");return{gen:_,keyword:"type",data:S,schema:w.type,schemaCode:E,schemaValue:E,parentSchema:w,params:{},it:p}}return Pt}var zn={},dh;function B0(){if(dh)return zn;dh=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.assignDefaults=void 0;const e=De(),t=Ge();function r(i,a){const{properties:l,items:s}=i.schema;if(a==="object"&&l)for(const c in l)n(i,c,l[c].default);else a==="array"&&Array.isArray(s)&&s.forEach((c,u)=>n(i,u,c.default))}zn.assignDefaults=r;function n(i,a,l){const{gen:s,compositeRule:c,data:u,opts:d}=i;if(l===void 0)return;const m=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let h=(0,e._)`${m} === undefined`;d.useDefaults==="empty"&&(h=(0,e._)`${h} || ${m} === null || ${m} === ""`),s.if(h,(0,e._)`${m} = ${(0,e.stringify)(l)}`)}return zn}var ar={},tt={},fh;function sr(){if(fh)return tt;fh=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.validateUnion=tt.validateArray=tt.usePattern=tt.callValidateCode=tt.schemaProperties=tt.allSchemaProperties=tt.noPropertyInData=tt.propertyInData=tt.isOwnProperty=tt.hasPropFunc=tt.reportMissingProp=tt.checkMissingProp=tt.checkReportMissingProp=void 0;const e=De(),t=Ge(),r=Dr(),n=Ge();function i(p,_){const{gen:S,data:w,it:E}=p;S.if(d(S,w,_,E.opts.ownProperties),()=>{p.setParams({missingProperty:(0,e._)`${_}`},!0),p.error()})}tt.checkReportMissingProp=i;function a({gen:p,data:_,it:{opts:S}},w,E){return(0,e.or)(...w.map(x=>(0,e.and)(d(p,_,x,S.ownProperties),(0,e._)`${E} = ${x}`)))}tt.checkMissingProp=a;function l(p,_){p.setParams({missingProperty:_},!0),p.error()}tt.reportMissingProp=l;function s(p){return p.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}tt.hasPropFunc=s;function c(p,_,S){return(0,e._)`${s(p)}.call(${_}, ${S})`}tt.isOwnProperty=c;function u(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} !== undefined`;return w?(0,e._)`${E} && ${c(p,_,S)}`:E}tt.propertyInData=u;function d(p,_,S,w){const E=(0,e._)`${_}${(0,e.getProperty)(S)} === undefined`;return w?(0,e.or)(E,(0,e.not)(c(p,_,S))):E}tt.noPropertyInData=d;function m(p){return p?Object.keys(p).filter(_=>_!=="__proto__"):[]}tt.allSchemaProperties=m;function h(p,_){return m(_).filter(S=>!(0,t.alwaysValidSchema)(p,_[S]))}tt.schemaProperties=h;function y({schemaCode:p,data:_,it:{gen:S,topSchemaRef:w,schemaPath:E,errorPath:x},it:P},k,j,R){const O=R?(0,e._)`${p}, ${_}, ${w}${E}`:_,D=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,x)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&D.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const N=(0,e._)`${O}, ${S.object(...D)}`;return j!==e.nil?(0,e._)`${k}.call(${j}, ${N})`:(0,e._)`${k}(${N})`}tt.callValidateCode=y;const g=(0,e._)`new RegExp`;function f({gen:p,it:{opts:_}},S){const w=_.unicodeRegExp?"u":"",{regExp:E}=_.code,x=E(S,w);return p.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,e._)`${E.code==="new RegExp"?g:(0,n.useFunc)(p,E)}(${S}, ${w})`})}tt.usePattern=f;function b(p){const{gen:_,data:S,keyword:w,it:E}=p,x=_.name("valid");if(E.allErrors){const k=_.let("valid",!0);return P(()=>_.assign(k,!1)),k}return _.var(x,!0),P(()=>_.break()),x;function P(k){const j=_.const("len",(0,e._)`${S}.length`);_.forRange("i",0,j,R=>{p.subschema({keyword:w,dataProp:R,dataPropType:t.Type.Num},x),_.if((0,e.not)(x),k)})}}tt.validateArray=b;function v(p){const{gen:_,schema:S,keyword:w,it:E}=p;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(j=>(0,t.alwaysValidSchema)(E,j))&&!E.opts.unevaluated)return;const P=_.let("valid",!1),k=_.name("_valid");_.block(()=>S.forEach((j,R)=>{const O=p.subschema({keyword:w,schemaProp:R,compositeRule:!0},k);_.assign(P,(0,e._)`${P} || ${k}`),p.mergeValidEvaluated(O,k)||_.if((0,e.not)(P))})),p.result(P,()=>p.reset(),()=>p.error(!0))}return tt.validateUnion=v,tt}var ph;function U0(){if(ph)return ar;ph=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.validateKeywordUsage=ar.validSchemaType=ar.funcKeywordCode=ar.macroKeywordCode=void 0;const e=De(),t=Dr(),r=sr(),n=Lo();function i(h,y){const{gen:g,keyword:f,schema:b,parentSchema:v,it:p}=h,_=y.macro.call(p.self,b,v,p),S=u(g,f,_);p.opts.validateSchema!==!1&&p.self.validateSchema(_,!0);const w=g.name("valid");h.subschema({schema:_,schemaPath:e.nil,errSchemaPath:`${p.errSchemaPath}/${f}`,topSchemaRef:S,compositeRule:!0},w),h.pass(w,()=>h.error(!0))}ar.macroKeywordCode=i;function a(h,y){var g;const{gen:f,keyword:b,schema:v,parentSchema:p,$data:_,it:S}=h;c(S,y);const w=!_&&y.compile?y.compile.call(S.self,v,p,S):y.validate,E=u(f,b,w),x=f.let("valid");h.block$data(x,P),h.ok((g=y.valid)!==null&&g!==void 0?g:x);function P(){if(y.errors===!1)R(),y.modifying&&l(h),O(()=>h.error());else{const D=y.async?k():j();y.modifying&&l(h),O(()=>s(h,D))}}function k(){const D=f.let("ruleErrs",null);return f.try(()=>R((0,e._)`await `),N=>f.assign(x,!1).if((0,e._)`${N} instanceof ${S.ValidationError}`,()=>f.assign(D,(0,e._)`${N}.errors`),()=>f.throw(N))),D}function j(){const D=(0,e._)`${E}.errors`;return f.assign(D,null),R(e.nil),D}function R(D=y.async?(0,e._)`await `:e.nil){const N=S.opts.passContext?t.default.this:t.default.self,U=!("compile"in y&&!_||y.schema===!1);f.assign(x,(0,e._)`${D}${(0,r.callValidateCode)(h,E,N,U)}`,y.modifying)}function O(D){var N;f.if((0,e.not)((N=y.valid)!==null&&N!==void 0?N:x),D)}}ar.funcKeywordCode=a;function l(h){const{gen:y,data:g,it:f}=h;y.if(f.parentData,()=>y.assign(g,(0,e._)`${f.parentData}[${f.parentDataProperty}]`))}function s(h,y){const{gen:g}=h;g.if((0,e._)`Array.isArray(${y})`,()=>{g.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},y){if(y.async&&!h.$async)throw new Error("async keyword in sync schema")}function u(h,y,g){if(g===void 0)throw new Error(`keyword "${y}" failed to compile`);return h.scopeValue("keyword",typeof g=="function"?{ref:g}:{ref:g,code:(0,e.stringify)(g)})}function d(h,y,g=!1){return!y.length||y.some(f=>f==="array"?Array.isArray(h):f==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==f||g&&typeof h>"u")}ar.validSchemaType=d;function m({schema:h,opts:y,self:g,errSchemaPath:f},b,v){if(Array.isArray(b.keyword)?!b.keyword.includes(v):b.keyword!==v)throw new Error("ajv implementation error");const p=b.dependencies;if(p?.some(_=>!Object.prototype.hasOwnProperty.call(h,_)))throw new Error(`parent schema must have dependencies of ${v}: ${p.join(",")}`);if(b.validateSchema&&!b.validateSchema(h[v])){const S=`keyword "${v}" value is invalid at path "${f}": `+g.errorsText(b.validateSchema.errors);if(y.validateSchema==="log")g.logger.error(S);else throw new Error(S)}}return ar.validateKeywordUsage=m,ar}var Pr={},hh;function W0(){if(hh)return Pr;hh=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.extendSubschemaMode=Pr.extendSubschemaData=Pr.getSubschema=void 0;const e=De(),t=Ge();function r(a,{keyword:l,schemaProp:s,schema:c,schemaPath:u,errSchemaPath:d,topSchemaRef:m}){if(l!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const h=a.schema[l];return s===void 0?{schema:h,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${a.errSchemaPath}/${l}`}:{schema:h[s],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(s)}`,errSchemaPath:`${a.errSchemaPath}/${l}/${(0,t.escapeFragment)(s)}`}}if(c!==void 0){if(u===void 0||d===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:u,topSchemaRef:m,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Pr.getSubschema=r;function n(a,l,{dataProp:s,dataPropType:c,data:u,dataTypes:d,propertyName:m}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=l;if(s!==void 0){const{errorPath:g,dataPathArr:f,opts:b}=l,v=h.let("data",(0,e._)`${l.data}${(0,e.getProperty)(s)}`,!0);y(v),a.errorPath=(0,e.str)`${g}${(0,t.getErrorPath)(s,c,b.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${s}`,a.dataPathArr=[...f,a.parentDataProperty]}if(u!==void 0){const g=u instanceof e.Name?u:h.let("data",u,!0);y(g),m!==void 0&&(a.propertyName=m)}d&&(a.dataTypes=d);function y(g){a.data=g,a.dataLevel=l.dataLevel+1,a.dataTypes=[],l.definedProperties=new Set,a.parentData=l.data,a.dataNames=[...l.dataNames,g]}}Pr.extendSubschemaData=n;function i(a,{jtdDiscriminator:l,jtdMetadata:s,compositeRule:c,createErrors:u,allErrors:d}){c!==void 0&&(a.compositeRule=c),u!==void 0&&(a.createErrors=u),d!==void 0&&(a.allErrors=d),a.jtdDiscriminator=l,a.jtdMetadata=s}return Pr.extendSubschemaMode=i,Pr}var Dt={},Ec,mh;function yh(){return mh||(mh=1,Ec=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var l=a[i];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}),Ec}var Oc={exports:{}},gh;function H0(){if(gh)return Oc.exports;gh=1;var e=Oc.exports=function(n,i,a){typeof i=="function"&&(a=i,i={}),a=i.cb||a;var l=typeof a=="function"?a:a.pre||function(){},s=a.post||function(){};t(i,l,s,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(n,i,a,l,s,c,u,d,m,h){if(l&&typeof l=="object"&&!Array.isArray(l)){i(l,s,c,u,d,m,h);for(var y in l){var g=l[y];if(Array.isArray(g)){if(y in e.arrayKeywords)for(var f=0;f<g.length;f++)t(n,i,a,g[f],s+"/"+y+"/"+f,c,s,y,l,f)}else if(y in e.propsKeywords){if(g&&typeof g=="object")for(var b in g)t(n,i,a,g[b],s+"/"+y+"/"+r(b),c,s,y,l,b)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,i,a,g,s+"/"+y,c,s,y,l)}a(l,s,c,u,d,m,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Oc.exports}var vh;function zo(){if(vh)return Dt;vh=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getSchemaRefs=Dt.resolveUrl=Dt.normalizeId=Dt._getFullPath=Dt.getFullPath=Dt.inlineRef=void 0;const e=Ge(),t=yh(),r=H0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(f,b=!0){return typeof f=="boolean"?!0:b===!0?!l(f):b?s(f)<=b:!1}Dt.inlineRef=i;const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(f){for(const b in f){if(a.has(b))return!0;const v=f[b];if(Array.isArray(v)&&v.some(l)||typeof v=="object"&&l(v))return!0}return!1}function s(f){let b=0;for(const v in f){if(v==="$ref")return 1/0;if(b++,!n.has(v)&&(typeof f[v]=="object"&&(0,e.eachItem)(f[v],p=>b+=s(p)),b===1/0))return 1/0}return b}function c(f,b="",v){v!==!1&&(b=m(b));const p=f.parse(b);return u(f,p)}Dt.getFullPath=c;function u(f,b){return f.serialize(b).split("#")[0]+"#"}Dt._getFullPath=u;const d=/#\/?$/;function m(f){return f?f.replace(d,""):""}Dt.normalizeId=m;function h(f,b,v){return v=m(v),f.resolve(b,v)}Dt.resolveUrl=h;const y=/^[a-z_][-a-z0-9._]*$/i;function g(f,b){if(typeof f=="boolean")return{};const{schemaId:v,uriResolver:p}=this.opts,_=m(f[v]||b),S={"":_},w=c(p,_,!1),E={},x=new Set;return r(f,{allKeys:!0},(j,R,O,D)=>{if(D===void 0)return;const N=w+R;let U=S[D];typeof j[v]=="string"&&(U=W.call(this,j[v])),le.call(this,j.$anchor),le.call(this,j.$dynamicAnchor),S[R]=U;function W(ce){const ue=this.opts.uriResolver.resolve;if(ce=m(U?ue(U,ce):ce),x.has(ce))throw k(ce);x.add(ce);let z=this.refs[ce];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(j,z.schema,ce):ce!==m(N)&&(ce[0]==="#"?(P(j,E[ce],ce),E[ce]=j):this.refs[ce]=N),ce}function le(ce){if(typeof ce=="string"){if(!y.test(ce))throw new Error(`invalid anchor "${ce}"`);W.call(this,`#${ce}`)}}}),E;function P(j,R,O){if(R!==void 0&&!t(j,R))throw k(O)}function k(j){return new Error(`reference "${j}" resolves to more than one schema`)}}return Dt.getSchemaRefs=g,Dt}var bh;function Vo(){if(bh)return Cr;bh=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.getData=Cr.KeywordCxt=Cr.validateFunctionCode=void 0;const e=V0(),t=Fo(),r=ch(),n=Fo(),i=B0(),a=U0(),l=W0(),s=De(),c=Dr(),u=zo(),d=Ge(),m=Lo();function h(L){if(w(L)&&(x(L),S(L))){b(L);return}y(L,()=>(0,e.topBoolOrEmptySchema)(L))}Cr.validateFunctionCode=h;function y({gen:L,validateName:I,schema:G,schemaEnv:X,opts:oe},ye){oe.code.es5?L.func(I,(0,s._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{L.code((0,s._)`"use strict"; ${p(G,oe)}`),f(L,oe),L.code(ye)}):L.func(I,(0,s._)`${c.default.data}, ${g(oe)}`,X.$async,()=>L.code(p(G,oe)).code(ye))}function g(L){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${L.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function f(L,I){L.if(c.default.valCxt,()=>{L.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),L.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),L.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),L.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{L.var(c.default.instancePath,(0,s._)`""`),L.var(c.default.parentData,(0,s._)`undefined`),L.var(c.default.parentDataProperty,(0,s._)`undefined`),L.var(c.default.rootData,c.default.data),I.dynamicRef&&L.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function b(L){const{schema:I,opts:G,gen:X}=L;y(L,()=>{G.$comment&&I.$comment&&D(L),j(L),X.let(c.default.vErrors,null),X.let(c.default.errors,0),G.unevaluated&&v(L),P(L),N(L)})}function v(L){const{gen:I,validateName:G}=L;L.evaluated=I.const("evaluated",(0,s._)`${G}.evaluated`),I.if((0,s._)`${L.evaluated}.dynamicProps`,()=>I.assign((0,s._)`${L.evaluated}.props`,(0,s._)`undefined`)),I.if((0,s._)`${L.evaluated}.dynamicItems`,()=>I.assign((0,s._)`${L.evaluated}.items`,(0,s._)`undefined`))}function p(L,I){const G=typeof L=="object"&&L[I.schemaId];return G&&(I.code.source||I.code.process)?(0,s._)`/*# sourceURL=${G} */`:s.nil}function _(L,I){if(w(L)&&(x(L),S(L))){E(L,I);return}(0,e.boolOrEmptySchema)(L,I)}function S({schema:L,self:I}){if(typeof L=="boolean")return!L;for(const G in L)if(I.RULES.all[G])return!0;return!1}function w(L){return typeof L.schema!="boolean"}function E(L,I){const{schema:G,gen:X,opts:oe}=L;oe.$comment&&G.$comment&&D(L),R(L),O(L);const ye=X.const("_errs",c.default.errors);P(L,ye),X.var(I,(0,s._)`${ye} === ${c.default.errors}`)}function x(L){(0,d.checkUnknownRules)(L),k(L)}function P(L,I){if(L.opts.jtd)return W(L,[],!1,I);const G=(0,t.getSchemaTypes)(L.schema),X=(0,t.coerceAndCheckDataType)(L,G);W(L,G,!X,I)}function k(L){const{schema:I,errSchemaPath:G,opts:X,self:oe}=L;I.$ref&&X.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(I,oe.RULES)&&oe.logger.warn(`$ref: keywords ignored in schema at path "${G}"`)}function j(L){const{schema:I,opts:G}=L;I.default!==void 0&&G.useDefaults&&G.strictSchema&&(0,d.checkStrictMode)(L,"default is ignored in the schema root")}function R(L){const I=L.schema[L.opts.schemaId];I&&(L.baseId=(0,u.resolveUrl)(L.opts.uriResolver,L.baseId,I))}function O(L){if(L.schema.$async&&!L.schemaEnv.$async)throw new Error("async schema in sync schema")}function D({gen:L,schemaEnv:I,schema:G,errSchemaPath:X,opts:oe}){const ye=G.$comment;if(oe.$comment===!0)L.code((0,s._)`${c.default.self}.logger.log(${ye})`);else if(typeof oe.$comment=="function"){const ve=(0,s.str)`${X}/$comment`,fe=L.scopeValue("root",{ref:I.root});L.code((0,s._)`${c.default.self}.opts.$comment(${ye}, ${ve}, ${fe}.schema)`)}}function N(L){const{gen:I,schemaEnv:G,validateName:X,ValidationError:oe,opts:ye}=L;G.$async?I.if((0,s._)`${c.default.errors} === 0`,()=>I.return(c.default.data),()=>I.throw((0,s._)`new ${oe}(${c.default.vErrors})`)):(I.assign((0,s._)`${X}.errors`,c.default.vErrors),ye.unevaluated&&U(L),I.return((0,s._)`${c.default.errors} === 0`))}function U({gen:L,evaluated:I,props:G,items:X}){G instanceof s.Name&&L.assign((0,s._)`${I}.props`,G),X instanceof s.Name&&L.assign((0,s._)`${I}.items`,X)}function W(L,I,G,X){const{gen:oe,schema:ye,data:ve,allErrors:fe,opts:Te,self:be}=L,{RULES:Ee}=be;if(ye.$ref&&(Te.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(ye,Ee))){oe.block(()=>K(L,"$ref",Ee.all.$ref.definition));return}Te.jtd||ce(L,I),oe.block(()=>{for(const $e of Ee.rules)he($e);he(Ee.post)});function he($e){(0,r.shouldUseGroup)(ye,$e)&&($e.type?(oe.if((0,n.checkDataType)($e.type,ve,Te.strictNumbers)),le(L,$e),I.length===1&&I[0]===$e.type&&G&&(oe.else(),(0,n.reportTypeError)(L)),oe.endIf()):le(L,$e),fe||oe.if((0,s._)`${c.default.errors} === ${X||0}`))}}function le(L,I){const{gen:G,schema:X,opts:{useDefaults:oe}}=L;oe&&(0,i.assignDefaults)(L,I.type),G.block(()=>{for(const ye of I.rules)(0,r.shouldUseRule)(X,ye)&&K(L,ye.keyword,ye.definition,I.type)})}function ce(L,I){L.schemaEnv.meta||!L.opts.strictTypes||(ue(L,I),L.opts.allowUnionTypes||z(L,I),C(L,L.dataTypes))}function ue(L,I){if(I.length){if(!L.dataTypes.length){L.dataTypes=I;return}I.forEach(G=>{M(L.dataTypes,G)||$(L,`type "${G}" not allowed by context "${L.dataTypes.join(",")}"`)}),T(L,I)}}function z(L,I){I.length>1&&!(I.length===2&&I.includes("null"))&&$(L,"use allowUnionTypes to allow union type keyword")}function C(L,I){const G=L.self.RULES.all;for(const X in G){const oe=G[X];if(typeof oe=="object"&&(0,r.shouldUseRule)(L.schema,oe)){const{type:ye}=oe.definition;ye.length&&!ye.some(ve=>V(I,ve))&&$(L,`missing type "${ye.join(",")}" for keyword "${X}"`)}}}function V(L,I){return L.includes(I)||I==="number"&&L.includes("integer")}function M(L,I){return L.includes(I)||I==="integer"&&L.includes("number")}function T(L,I){const G=[];for(const X of L.dataTypes)M(I,X)?G.push(X):I.includes("integer")&&X==="number"&&G.push("integer");L.dataTypes=G}function $(L,I){const G=L.schemaEnv.baseId+L.errSchemaPath;I+=` at "${G}" (strictTypes)`,(0,d.checkStrictMode)(L,I,L.opts.strictTypes)}class q{constructor(I,G,X){if((0,a.validateKeywordUsage)(I,G,X),this.gen=I.gen,this.allErrors=I.allErrors,this.keyword=X,this.data=I.data,this.schema=I.schema[X],this.$data=G.$data&&I.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(I,this.schema,X,this.$data),this.schemaType=G.schemaType,this.parentSchema=I.schema,this.params={},this.it=I,this.def=G,this.$data)this.schemaCode=I.gen.const("vSchema",te(this.$data,I));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:G.errors!==!1)&&(this.errsCount=I.gen.const("_errs",c.default.errors))}result(I,G,X){this.failResult((0,s.not)(I),G,X)}failResult(I,G,X){this.gen.if(I),X?X():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(I,G){this.failResult((0,s.not)(I),void 0,G)}fail(I){if(I===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(I),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(I){if(!this.$data)return this.fail(I);const{schemaCode:G}=this;this.fail((0,s._)`${G} !== undefined && (${(0,s.or)(this.invalid$data(),I)})`)}error(I,G,X){if(G){this.setParams(G),this._error(I,X),this.setParams({});return}this._error(I,X)}_error(I,G){(I?m.reportExtraError:m.reportError)(this,this.def.error,G)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(I){this.allErrors||this.gen.if(I)}setParams(I,G){G?Object.assign(this.params,I):this.params=I}block$data(I,G,X=s.nil){this.gen.block(()=>{this.check$data(I,X),G()})}check$data(I=s.nil,G=s.nil){if(!this.$data)return;const{gen:X,schemaCode:oe,schemaType:ye,def:ve}=this;X.if((0,s.or)((0,s._)`${oe} === undefined`,G)),I!==s.nil&&X.assign(I,!0),(ye.length||ve.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),I!==s.nil&&X.assign(I,!1)),X.else()}invalid$data(){const{gen:I,schemaCode:G,schemaType:X,def:oe,it:ye}=this;return(0,s.or)(ve(),fe());function ve(){if(X.length){if(!(G instanceof s.Name))throw new Error("ajv implementation error");const Te=Array.isArray(X)?X:[X];return(0,s._)`${(0,n.checkDataTypes)(Te,G,ye.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}function fe(){if(oe.validateSchema){const Te=I.scopeValue("validate$data",{ref:oe.validateSchema});return(0,s._)`!${Te}(${G})`}return s.nil}}subschema(I,G){const X=(0,l.getSubschema)(this.it,I);(0,l.extendSubschemaData)(X,this.it,I),(0,l.extendSubschemaMode)(X,I);const oe={...this.it,...X,items:void 0,props:void 0};return _(oe,G),oe}mergeEvaluated(I,G){const{it:X,gen:oe}=this;X.opts.unevaluated&&(X.props!==!0&&I.props!==void 0&&(X.props=d.mergeEvaluated.props(oe,I.props,X.props,G)),X.items!==!0&&I.items!==void 0&&(X.items=d.mergeEvaluated.items(oe,I.items,X.items,G)))}mergeValidEvaluated(I,G){const{it:X,gen:oe}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return oe.if(G,()=>this.mergeEvaluated(I,s.Name)),!0}}Cr.KeywordCxt=q;function K(L,I,G,X){const oe=new q(L,G,I);"code"in G?G.code(oe,X):oe.$data&&G.validate?(0,a.funcKeywordCode)(oe,G):"macro"in G?(0,a.macroKeywordCode)(oe,G):(G.compile||G.validate)&&(0,a.funcKeywordCode)(oe,G)}const re=/^\/(?:[^~]|~0|~1)*$/,ie=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(L,{dataLevel:I,dataNames:G,dataPathArr:X}){let oe,ye;if(L==="")return c.default.rootData;if(L[0]==="/"){if(!re.test(L))throw new Error(`Invalid JSON-pointer: ${L}`);oe=L,ye=c.default.rootData}else{const be=ie.exec(L);if(!be)throw new Error(`Invalid JSON-pointer: ${L}`);const Ee=+be[1];if(oe=be[2],oe==="#"){if(Ee>=I)throw new Error(Te("property/index",Ee));return X[I-Ee]}if(Ee>I)throw new Error(Te("data",Ee));if(ye=G[I-Ee],!oe)return ye}let ve=ye;const fe=oe.split("/");for(const be of fe)be&&(ye=(0,s._)`${ye}${(0,s.getProperty)((0,d.unescapeJsonPointer)(be))}`,ve=(0,s._)`${ve} && ${ye}`);return ve;function Te(be,Ee){return`Cannot access ${be} ${Ee} levels up, current level is ${I}`}}return Cr.getData=te,Cr}var Bo={},_h;function xc(){if(_h)return Bo;_h=1,Object.defineProperty(Bo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bo.default=e,Bo}var Uo={},wh;function Wo(){if(wh)return Uo;wh=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=zo();class t extends Error{constructor(n,i,a,l){super(l||`can't resolve reference ${a} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Uo.default=t,Uo}var Wt={},Sh;function Cc(){if(Sh)return Wt;Sh=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.resolveSchema=Wt.getCompilingSchema=Wt.resolveRef=Wt.compileSchema=Wt.SchemaEnv=void 0;const e=De(),t=xc(),r=Dr(),n=zo(),i=Ge(),a=Vo();class l{constructor(v){var p;this.refs={},this.dynamicAnchors={};let _;typeof v.schema=="object"&&(_=v.schema),this.schema=v.schema,this.schemaId=v.schemaId,this.root=v.root||this,this.baseId=(p=v.baseId)!==null&&p!==void 0?p:(0,n.normalizeId)(_?.[v.schemaId||"$id"]),this.schemaPath=v.schemaPath,this.localRefs=v.localRefs,this.meta=v.meta,this.$async=_?.$async,this.refs={}}}Wt.SchemaEnv=l;function s(b){const v=d.call(this,b);if(v)return v;const p=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:_,lines:S}=this.opts.code,{ownProperties:w}=this.opts,E=new e.CodeGen(this.scope,{es5:_,lines:S,ownProperties:w});let x;b.$async&&(x=E.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=E.scopeName("validate");b.validateName=P;const k={gen:E,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:E.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:P,ValidationError:x,schema:b.schema,schemaEnv:b,rootId:p,baseId:b.baseId||p,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let j;try{this._compilations.add(b),(0,a.validateFunctionCode)(k),E.optimize(this.opts.code.optimize);const R=E.toString();j=`${E.scopeRefs(r.default.scope)}return ${R}`,this.opts.code.process&&(j=this.opts.code.process(j,b));const D=new Function(`${r.default.self}`,`${r.default.scope}`,j)(this,this.scope.get());if(this.scope.value(P,{ref:D}),D.errors=null,D.schema=b.schema,D.schemaEnv=b,b.$async&&(D.$async=!0),this.opts.code.source===!0&&(D.source={validateName:P,validateCode:R,scopeValues:E._values}),this.opts.unevaluated){const{props:N,items:U}=k;D.evaluated={props:N instanceof e.Name?void 0:N,items:U instanceof e.Name?void 0:U,dynamicProps:N instanceof e.Name,dynamicItems:U instanceof e.Name},D.source&&(D.source.evaluated=(0,e.stringify)(D.evaluated))}return b.validate=D,b}catch(R){throw delete b.validate,delete b.validateName,j&&this.logger.error("Error compiling schema, function code:",j),R}finally{this._compilations.delete(b)}}Wt.compileSchema=s;function c(b,v,p){var _;p=(0,n.resolveUrl)(this.opts.uriResolver,v,p);const S=b.refs[p];if(S)return S;let w=h.call(this,b,p);if(w===void 0){const E=(_=b.localRefs)===null||_===void 0?void 0:_[p],{schemaId:x}=this.opts;E&&(w=new l({schema:E,schemaId:x,root:b,baseId:v}))}if(w!==void 0)return b.refs[p]=u.call(this,w)}Wt.resolveRef=c;function u(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:s.call(this,b)}function d(b){for(const v of this._compilations)if(m(v,b))return v}Wt.getCompilingSchema=d;function m(b,v){return b.schema===v.schema&&b.root===v.root&&b.baseId===v.baseId}function h(b,v){let p;for(;typeof(p=this.refs[v])=="string";)v=p;return p||this.schemas[v]||y.call(this,b,v)}function y(b,v){const p=this.opts.uriResolver.parse(v),_=(0,n._getFullPath)(this.opts.uriResolver,p);let S=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&_===S)return f.call(this,p,b);const w=(0,n.normalizeId)(_),E=this.refs[w]||this.schemas[w];if(typeof E=="string"){const x=y.call(this,b,E);return typeof x?.schema!="object"?void 0:f.call(this,p,x)}if(typeof E?.schema=="object"){if(E.validate||s.call(this,E),w===(0,n.normalizeId)(v)){const{schema:x}=E,{schemaId:P}=this.opts,k=x[P];return k&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,k)),new l({schema:x,schemaId:P,root:b,baseId:S})}return f.call(this,p,E)}}Wt.resolveSchema=y;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function f(b,{baseId:v,schema:p,root:_}){var S;if(((S=b.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const x of b.fragment.slice(1).split("/")){if(typeof p=="boolean")return;const P=p[(0,i.unescapeFragment)(x)];if(P===void 0)return;p=P;const k=typeof p=="object"&&p[this.opts.schemaId];!g.has(x)&&k&&(v=(0,n.resolveUrl)(this.opts.uriResolver,v,k))}let w;if(typeof p!="boolean"&&p.$ref&&!(0,i.schemaHasRulesButRef)(p,this.RULES)){const x=(0,n.resolveUrl)(this.opts.uriResolver,v,p.$ref);w=y.call(this,_,x)}const{schemaId:E}=this.opts;if(w=w||new l({schema:p,schemaId:E,root:_,baseId:v}),w.schema!==w.root.schema)return w}return Wt}const K0={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Ho={},Vn={exports:{}},Tc,Eh;function Oh(){if(Eh)return Tc;Eh=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(h){let y="",g=0,f=0;for(f=0;f<h.length;f++)if(g=h[f].charCodeAt(0),g!==48){if(!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f];break}for(f+=1;f<h.length;f++){if(g=h[f].charCodeAt(0),!(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102))return"";y+=h[f]}return y}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(h){return h.length=0,!0}function a(h,y,g){if(h.length){const f=r(h);if(f!=="")y.push(f);else return g.error=!0,!1;h.length=0}return!0}function l(h){let y=0;const g={error:!1,address:"",zone:""},f=[],b=[];let v=!1,p=!1,_=a;for(let S=0;S<h.length;S++){const w=h[S];if(!(w==="["||w==="]"))if(w===":"){if(v===!0&&(p=!0),!_(b,f,g))break;if(++y>7){g.error=!0;break}S>0&&h[S-1]===":"&&(v=!0),f.push(":");continue}else if(w==="%"){if(!_(b,f,g))break;_=i}else{b.push(w);continue}}return b.length&&(_===i?g.zone=b.join(""):p?f.push(b.join("")):f.push(r(b))),g.address=f.join(""),g}function s(h){if(c(h,":")<2)return{host:h,isIPV6:!1};const y=l(h);if(y.error)return{host:h,isIPV6:!1};{let g=y.address,f=y.address;return y.zone&&(g+="%"+y.zone,f+="%25"+y.zone),{host:g,isIPV6:!0,escapedHost:f}}}function c(h,y){let g=0;for(let f=0;f<h.length;f++)h[f]===y&&g++;return g}function u(h){let y=h;const g=[];let f=-1,b=0;for(;b=y.length;){if(b===1){if(y===".")break;if(y==="/"){g.push("/");break}else{g.push(y);break}}else if(b===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){g.push("/");break}}else if(b===3&&y==="/.."){g.length!==0&&g.pop(),g.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),g.length!==0&&g.pop();continue}}if((f=y.indexOf("/",1))===-1){g.push(y);break}else g.push(y.slice(0,f)),y=y.slice(f)}return g.join("")}function d(h,y){const g=y!==!0?escape:unescape;return h.scheme!==void 0&&(h.scheme=g(h.scheme)),h.userinfo!==void 0&&(h.userinfo=g(h.userinfo)),h.host!==void 0&&(h.host=g(h.host)),h.path!==void 0&&(h.path=g(h.path)),h.query!==void 0&&(h.query=g(h.query)),h.fragment!==void 0&&(h.fragment=g(h.fragment)),h}function m(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let g=unescape(h.host);if(!t(g)){const f=s(g);f.isIPV6===!0?g=`[${f.escapedHost}]`:g=h.host}y.push(g)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Tc={nonSimpleDomain:n,recomposeAuthority:m,normalizeComponentEncoding:d,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:s,stringArrayToHexStripped:r},Tc}var Pc,xh;function G0(){if(xh)return Pc;xh=1;const{isUUID:e}=Oh(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(w){return r.indexOf(w)!==-1}function i(w){return w.secure===!0?!0:w.secure===!1?!1:w.scheme?w.scheme.length===3&&(w.scheme[0]==="w"||w.scheme[0]==="W")&&(w.scheme[1]==="s"||w.scheme[1]==="S")&&(w.scheme[2]==="s"||w.scheme[2]==="S"):!1}function a(w){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w}function l(w){const E=String(w.scheme).toLowerCase()==="https";return(w.port===(E?443:80)||w.port==="")&&(w.port=void 0),w.path||(w.path="/"),w}function s(w){return w.secure=i(w),w.resourceName=(w.path||"/")+(w.query?"?"+w.query:""),w.path=void 0,w.query=void 0,w}function c(w){if((w.port===(i(w)?443:80)||w.port==="")&&(w.port=void 0),typeof w.secure=="boolean"&&(w.scheme=w.secure?"wss":"ws",w.secure=void 0),w.resourceName){const[E,x]=w.resourceName.split("?");w.path=E&&E!=="/"?E:void 0,w.query=x,w.resourceName=void 0}return w.fragment=void 0,w}function u(w,E){if(!w.path)return w.error="URN can not be parsed",w;const x=w.path.match(t);if(x){const P=E.scheme||w.scheme||"urn";w.nid=x[1].toLowerCase(),w.nss=x[2];const k=`${P}:${E.nid||w.nid}`,j=S(k);w.path=void 0,j&&(w=j.parse(w,E))}else w.error=w.error||"URN can not be parsed.";return w}function d(w,E){if(w.nid===void 0)throw new Error("URN without nid cannot be serialized");const x=E.scheme||w.scheme||"urn",P=w.nid.toLowerCase(),k=`${x}:${E.nid||P}`,j=S(k);j&&(w=j.serialize(w,E));const R=w,O=w.nss;return R.path=`${P||E.nid}:${O}`,E.skipEscape=!0,R}function m(w,E){const x=w;return x.uuid=x.nss,x.nss=void 0,!E.tolerant&&(!x.uuid||!e(x.uuid))&&(x.error=x.error||"UUID is not valid."),x}function h(w){const E=w;return E.nss=(w.uuid||"").toLowerCase(),E}const y={scheme:"http",domainHost:!0,parse:a,serialize:l},g={scheme:"https",domainHost:y.domainHost,parse:a,serialize:l},f={scheme:"ws",domainHost:!0,parse:s,serialize:c},b={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},_={http:y,https:g,ws:f,wss:b,urn:{scheme:"urn",parse:u,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(_,null);function S(w){return w&&(_[w]||_[w.toLowerCase()])||void 0}return Pc={wsIsSecure:i,SCHEMES:_,isValidSchemeName:n,getSchemeHandler:S},Pc}var Ch;function Y0(){if(Ch)return Vn.exports;Ch=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizeComponentEncoding:n,isIPv4:i,nonSimpleDomain:a}=Oh(),{SCHEMES:l,getSchemeHandler:s}=G0();function c(b,v){return typeof b=="string"?b=h(g(b,v),v):typeof b=="object"&&(b=g(h(b,v),v)),b}function u(b,v,p){const _=p?Object.assign({scheme:"null"},p):{scheme:"null"},S=d(g(b,_),g(v,_),_,!0);return _.skipEscape=!0,h(S,_)}function d(b,v,p,_){const S={};return _||(b=g(h(b,p),p),v=g(h(v,p),p)),p=p||{},!p.tolerant&&v.scheme?(S.scheme=v.scheme,S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.userinfo!==void 0||v.host!==void 0||v.port!==void 0?(S.userinfo=v.userinfo,S.host=v.host,S.port=v.port,S.path=t(v.path||""),S.query=v.query):(v.path?(v.path[0]==="/"?S.path=t(v.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?S.path="/"+v.path:b.path?S.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+v.path:S.path=v.path,S.path=t(S.path)),S.query=v.query):(S.path=b.path,v.query!==void 0?S.query=v.query:S.query=b.query),S.userinfo=b.userinfo,S.host=b.host,S.port=b.port),S.scheme=b.scheme),S.fragment=v.fragment,S}function m(b,v,p){return typeof b=="string"?(b=unescape(b),b=h(n(g(b,p),!0),{...p,skipEscape:!0})):typeof b=="object"&&(b=h(n(b,!0),{...p,skipEscape:!0})),typeof v=="string"?(v=unescape(v),v=h(n(g(v,p),!0),{...p,skipEscape:!0})):typeof v=="object"&&(v=h(n(v,!0),{...p,skipEscape:!0})),b.toLowerCase()===v.toLowerCase()}function h(b,v){const p={host:b.host,scheme:b.scheme,userinfo:b.userinfo,port:b.port,path:b.path,query:b.query,nid:b.nid,nss:b.nss,uuid:b.uuid,fragment:b.fragment,reference:b.reference,resourceName:b.resourceName,secure:b.secure,error:""},_=Object.assign({},v),S=[],w=s(_.scheme||p.scheme);w&&w.serialize&&w.serialize(p,_),p.path!==void 0&&(_.skipEscape?p.path=unescape(p.path):(p.path=escape(p.path),p.scheme!==void 0&&(p.path=p.path.split("%3A").join(":")))),_.reference!=="suffix"&&p.scheme&&S.push(p.scheme,":");const E=r(p);if(E!==void 0&&(_.reference!=="suffix"&&S.push("//"),S.push(E),p.path&&p.path[0]!=="/"&&S.push("/")),p.path!==void 0){let x=p.path;!_.absolutePath&&(!w||!w.absolutePath)&&(x=t(x)),E===void 0&&x[0]==="/"&&x[1]==="/"&&(x="/%2F"+x.slice(2)),S.push(x)}return p.query!==void 0&&S.push("?",p.query),p.fragment!==void 0&&S.push("#",p.fragment),S.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(b,v){const p=Object.assign({},v),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let S=!1;p.reference==="suffix"&&(p.scheme?b=p.scheme+":"+b:b="//"+b);const w=b.match(y);if(w){if(_.scheme=w[1],_.userinfo=w[3],_.host=w[4],_.port=parseInt(w[5],10),_.path=w[6]||"",_.query=w[7],_.fragment=w[8],isNaN(_.port)&&(_.port=w[5]),_.host)if(i(_.host)===!1){const P=e(_.host);_.host=P.host.toLowerCase(),S=P.isIPV6}else S=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",p.reference&&p.reference!=="suffix"&&p.reference!==_.reference&&(_.error=_.error||"URI is not a "+p.reference+" reference.");const E=s(p.scheme||_.scheme);if(!p.unicodeSupport&&(!E||!E.unicodeSupport)&&_.host&&(p.domainHost||E&&E.domainHost)&&S===!1&&a(_.host))try{_.host=URL.domainToASCII(_.host.toLowerCase())}catch(x){_.error=_.error||"Host's domain name can not be converted to ASCII: "+x}(!E||E&&!E.skipNormalize)&&(b.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=unescape(_.host))),_.path&&(_.path=escape(unescape(_.path))),_.fragment&&(_.fragment=encodeURI(decodeURIComponent(_.fragment)))),E&&E.parse&&E.parse(_,p)}else _.error=_.error||"URI can not be parsed.";return _}const f={SCHEMES:l,normalize:c,resolve:u,resolveComponent:d,equal:m,serialize:h,parse:g};return Vn.exports=f,Vn.exports.default=f,Vn.exports.fastUri=f,Vn.exports}var Th;function J0(){if(Th)return Ho;Th=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Y0();return e.code='require("ajv/dist/runtime/uri").default',Ho.default=e,Ho}var Ph;function X0(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Vo();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=De();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=xc(),i=Wo(),a=sh(),l=Cc(),s=De(),c=zo(),u=Fo(),d=Ge(),m=K0,h=J0(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],f=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={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."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p=200;function _(z){var C,V,M,T,$,q,K,re,ie,te,L,I,G,X,oe,ye,ve,fe,Te,be,Ee,he,$e,Ie,ot;const Qe=z.strict,_t=(C=z.code)===null||C===void 0?void 0:C.optimize,et=_t===!0||_t===void 0?1:_t||0,Tt=(M=(V=z.code)===null||V===void 0?void 0:V.regExp)!==null&&M!==void 0?M:y,Je=(T=z.uriResolver)!==null&&T!==void 0?T:h.default;return{strictSchema:(q=($=z.strictSchema)!==null&&$!==void 0?$:Qe)!==null&&q!==void 0?q:!0,strictNumbers:(re=(K=z.strictNumbers)!==null&&K!==void 0?K:Qe)!==null&&re!==void 0?re:!0,strictTypes:(te=(ie=z.strictTypes)!==null&&ie!==void 0?ie:Qe)!==null&&te!==void 0?te:"log",strictTuples:(I=(L=z.strictTuples)!==null&&L!==void 0?L:Qe)!==null&&I!==void 0?I:"log",strictRequired:(X=(G=z.strictRequired)!==null&&G!==void 0?G:Qe)!==null&&X!==void 0?X:!1,code:z.code?{...z.code,optimize:et,regExp:Tt}:{optimize:et,regExp:Tt},loopRequired:(oe=z.loopRequired)!==null&&oe!==void 0?oe:p,loopEnum:(ye=z.loopEnum)!==null&&ye!==void 0?ye:p,meta:(ve=z.meta)!==null&&ve!==void 0?ve:!0,messages:(fe=z.messages)!==null&&fe!==void 0?fe:!0,inlineRefs:(Te=z.inlineRefs)!==null&&Te!==void 0?Te:!0,schemaId:(be=z.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(Ee=z.addUsedSchema)!==null&&Ee!==void 0?Ee:!0,validateSchema:(he=z.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:($e=z.validateFormats)!==null&&$e!==void 0?$e:!0,unicodeRegExp:(Ie=z.unicodeRegExp)!==null&&Ie!==void 0?Ie:!0,int32range:(ot=z.int32range)!==null&&ot!==void 0?ot:!0,uriResolver:Je}}class S{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,..._(C)};const{es5:V,lines:M}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:f,es5:V,lines:M}),this.logger=O(C.logger);const T=C.validateFormats;C.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,b,C,"NOT SUPPORTED"),w.call(this,v,C,"DEPRECATED","warn"),this._metaOpts=j.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&k.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),x.call(this),C.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:V,schemaId:M}=this.opts;let T=m;M==="id"&&(T={...m},T.id=T.$id,delete T.$id),V&&C&&this.addMetaSchema(T,T[M],!1)}defaultMeta(){const{meta:C,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[V]||C:void 0}validate(C,V){let M;if(typeof C=="string"){if(M=this.getSchema(C),!M)throw new Error(`no schema with key or ref "${C}"`)}else M=this.compile(C);const T=M(V);return"$async"in M||(this.errors=M.errors),T}compile(C,V){const M=this._addSchema(C,V);return M.validate||this._compileSchemaEnv(M)}compileAsync(C,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:M}=this.opts;return T.call(this,C,V);async function T(te,L){await $.call(this,te.$schema);const I=this._addSchema(te,L);return I.validate||q.call(this,I)}async function $(te){te&&!this.getSchema(te)&&await T.call(this,{$ref:te},!0)}async function q(te){try{return this._compileSchemaEnv(te)}catch(L){if(!(L instanceof i.default))throw L;return K.call(this,L),await re.call(this,L.missingSchema),q.call(this,te)}}function K({missingSchema:te,missingRef:L}){if(this.refs[te])throw new Error(`AnySchema ${te} is loaded but ${L} cannot be resolved`)}async function re(te){const L=await ie.call(this,te);this.refs[te]||await $.call(this,L.$schema),this.refs[te]||this.addSchema(L,te,V)}async function ie(te){const L=this._loading[te];if(L)return L;try{return await(this._loading[te]=M(te))}finally{delete this._loading[te]}}}addSchema(C,V,M,T=this.opts.validateSchema){if(Array.isArray(C)){for(const q of C)this.addSchema(q,void 0,M,T);return this}let $;if(typeof C=="object"){const{schemaId:q}=this.opts;if($=C[q],$!==void 0&&typeof $!="string")throw new Error(`schema ${q} must be string`)}return V=(0,c.normalizeId)(V||$),this._checkUnique(V),this.schemas[V]=this._addSchema(C,M,V,T,!0),this}addMetaSchema(C,V,M=this.opts.validateSchema){return this.addSchema(C,V,!0,M),this}validateSchema(C,V){if(typeof C=="boolean")return!0;let M;if(M=C.$schema,M!==void 0&&typeof M!="string")throw new Error("$schema must be a string");if(M=M||this.opts.defaultMeta||this.defaultMeta(),!M)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(M,C);if(!T&&V){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return T}getSchema(C){let V;for(;typeof(V=E.call(this,C))=="string";)C=V;if(V===void 0){const{schemaId:M}=this.opts,T=new l.SchemaEnv({schema:{},schemaId:M});if(V=l.resolveSchema.call(this,T,C),!V)return;this.refs[C]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=E.call(this,C);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const V=C;this._cache.delete(V);let M=C[this.opts.schemaId];return M&&(M=(0,c.normalizeId)(M),delete this.schemas[M],delete this.refs[M]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const V of C)this.addKeyword(V);return this}addKeyword(C,V){let M;if(typeof C=="string")M=C,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=M);else if(typeof C=="object"&&V===void 0){if(V=C,M=V.keyword,Array.isArray(M)&&!M.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N.call(this,M,V),!V)return(0,d.eachItem)(M,$=>U.call(this,$)),this;le.call(this,V);const T={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(M,T.type.length===0?$=>U.call(this,$,T):$=>T.type.forEach(q=>U.call(this,$,T,q))),this}getKeyword(C){const V=this.RULES.all[C];return typeof V=="object"?V.definition:!!V}removeKeyword(C){const{RULES:V}=this;delete V.keywords[C],delete V.all[C];for(const M of V.rules){const T=M.rules.findIndex($=>$.keyword===C);T>=0&&M.rules.splice(T,1)}return this}addFormat(C,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[C]=V,this}errorsText(C=this.errors,{separator:V=", ",dataVar:M="data"}={}){return!C||C.length===0?"No errors":C.map(T=>`${M}${T.instancePath} ${T.message}`).reduce((T,$)=>T+V+$)}$dataMetaSchema(C,V){const M=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const T of V){const $=T.split("/").slice(1);let q=C;for(const K of $)q=q[K];for(const K in M){const re=M[K];if(typeof re!="object")continue;const{$data:ie}=re.definition,te=q[K];ie&&te&&(q[K]=ue(te))}}return C}_removeAllSchemas(C,V){for(const M in C){const T=C[M];(!V||V.test(M))&&(typeof T=="string"?delete C[M]:T&&!T.meta&&(this._cache.delete(T.schema),delete C[M]))}}_addSchema(C,V,M,T=this.opts.validateSchema,$=this.opts.addUsedSchema){let q;const{schemaId:K}=this.opts;if(typeof C=="object")q=C[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(C);if(re!==void 0)return re;M=(0,c.normalizeId)(q||M);const ie=c.getSchemaRefs.call(this,C,M);return re=new l.SchemaEnv({schema:C,schemaId:K,meta:V,baseId:M,localRefs:ie}),this._cache.set(re.schema,re),$&&!M.startsWith("#")&&(M&&this._checkUnique(M),this.refs[M]=re),T&&this.validateSchema(C,!0),re}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):l.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const V=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,C)}finally{this.opts=V}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function w(z,C,V,M="error"){for(const T in z){const $=T;$ in C&&this.logger[M](`${V}: option ${T}. ${z[$]}`)}}function E(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function x(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function k(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const V=z[C];V.keyword||(V.keyword=C),this.addKeyword(V)}}function j(){const z={...this.opts};for(const C of g)delete z[C];return z}const R={log(){},warn(){},error(){}};function O(z){if(z===!1)return R;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 D=/^[a-z_$][a-z0-9_$:-]*$/i;function N(z,C){const{RULES:V}=this;if((0,d.eachItem)(z,M=>{if(V.keywords[M])throw new Error(`Keyword ${M} is already defined`);if(!D.test(M))throw new Error(`Keyword ${M} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function U(z,C,V){var M;const T=C?.post;if(V&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let q=T?$.post:$.rules.find(({type:re})=>re===V);if(q||(q={type:V,rules:[]},$.rules.push(q)),$.keywords[z]=!0,!C)return;const K={keyword:z,definition:{...C,type:(0,u.getJSONTypes)(C.type),schemaType:(0,u.getJSONTypes)(C.schemaType)}};C.before?W.call(this,q,K,C.before):q.rules.push(K),$.all[z]=K,(M=C.implements)===null||M===void 0||M.forEach(re=>this.addKeyword(re))}function W(z,C,V){const M=z.rules.findIndex(T=>T.keyword===V);M>=0?z.rules.splice(M,0,C):(z.rules.push(C),this.logger.warn(`rule ${V} is not defined`))}function le(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ue(C)),z.validateSchema=this.compile(C,!0))}const ce={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ue(z){return{anyOf:[z,ce]}}})(vc)),vc}var Ko={},Go={},Yo={},$h;function Z0(){if($h)return Yo;$h=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Yo.default=e,Yo}var qr={},Rh;function Q0(){if(Rh)return qr;Rh=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.callRef=qr.getValidate=void 0;const e=Wo(),t=sr(),r=De(),n=Dr(),i=Cc(),a=Ge(),l={keyword:"$ref",schemaType:"string",code(u){const{gen:d,schema:m,it:h}=u,{baseId:y,schemaEnv:g,validateName:f,opts:b,self:v}=h,{root:p}=g;if((m==="#"||m==="#/")&&y===p.baseId)return S();const _=i.resolveRef.call(v,p,y,m);if(_===void 0)throw new e.default(h.opts.uriResolver,y,m);if(_ instanceof i.SchemaEnv)return w(_);return E(_);function S(){if(g===p)return c(u,f,g,g.$async);const x=d.scopeValue("root",{ref:p});return c(u,(0,r._)`${x}.validate`,p,p.$async)}function w(x){const P=s(u,x);c(u,P,x,x.$async)}function E(x){const P=d.scopeValue("schema",b.code.source===!0?{ref:x,code:(0,r.stringify)(x)}:{ref:x}),k=d.name("valid"),j=u.subschema({schema:x,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:m},k);u.mergeEvaluated(j),u.ok(k)}}};function s(u,d){const{gen:m}=u;return d.validate?m.scopeValue("validate",{ref:d.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:d})}.validate`}qr.getValidate=s;function c(u,d,m,h){const{gen:y,it:g}=u,{allErrors:f,schemaEnv:b,opts:v}=g,p=v.passContext?n.default.this:r.nil;h?_():S();function _(){if(!b.$async)throw new Error("async schema referenced by sync schema");const x=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(u,d,p)}`),E(d),f||y.assign(x,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${g.ValidationError})`,()=>y.throw(P)),w(P),f||y.assign(x,!1)}),u.ok(x)}function S(){u.result((0,t.callValidateCode)(u,d,p),()=>E(d),()=>w(d))}function w(x){const P=(0,r._)`${x}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function E(x){var P;if(!g.opts.unevaluated)return;const k=(P=m?.validate)===null||P===void 0?void 0:P.evaluated;if(g.props!==!0)if(k&&!k.dynamicProps)k.props!==void 0&&(g.props=a.mergeEvaluated.props(y,k.props,g.props));else{const j=y.var("props",(0,r._)`${x}.evaluated.props`);g.props=a.mergeEvaluated.props(y,j,g.props,r.Name)}if(g.items!==!0)if(k&&!k.dynamicItems)k.items!==void 0&&(g.items=a.mergeEvaluated.items(y,k.items,g.items));else{const j=y.var("items",(0,r._)`${x}.evaluated.items`);g.items=a.mergeEvaluated.items(y,j,g.items,r.Name)}}}return qr.callRef=c,qr.default=l,qr}var kh;function e_(){if(kh)return Go;kh=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Z0(),t=Q0(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Go.default=r,Go}var Jo={},Xo={},Ih;function t_(){if(Ih)return Xo;Ih=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=De(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:a,schemaCode:l})=>(0,e.str)`must be ${r[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>(0,e._)`{comparison: ${r[a].okStr}, limit: ${l}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{keyword:l,data:s,schemaCode:c}=a;a.fail$data((0,e._)`${s} ${r[l].fail} ${c} || isNaN(${s})`)}};return Xo.default=i,Xo}var Zo={},jh;function r_(){if(jh)return Zo;jh=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=De(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:a,schemaCode:l,it:s}=n,c=s.opts.multipleOfPrecision,u=i.let("res"),d=c?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${c}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${l} === 0 || (${u} = ${a}/${l}, ${d}))`)}};return Zo.default=r,Zo}var Qo={},ei={},Nh;function n_(){if(Nh)return ei;Nh=1,Object.defineProperty(ei,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,a;for(;i<r;)n++,a=t.charCodeAt(i++),a>=55296&&a<=56319&&i<r&&(a=t.charCodeAt(i),(a&64512)===56320&&i++);return n}return ei.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ei}var Ah;function o_(){if(Ah)return Qo;Ah=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=De(),t=Ge(),r=n_(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:l}){const s=a==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${l} characters`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:l,data:s,schemaCode:c,it:u}=a,d=l==="maxLength"?e.operators.GT:e.operators.LT,m=u.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(a.gen,r.default)}(${s})`;a.fail$data((0,e._)`${m} ${d} ${c}`)}};return Qo.default=i,Qo}var ti={},Mh;function i_(){if(Mh)return ti;Mh=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=sr(),t=De(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,t.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,t._)`{pattern: ${i}}`},code(i){const{data:a,$data:l,schema:s,schemaCode:c,it:u}=i,d=u.opts.unicodeRegExp?"u":"",m=l?(0,t._)`(new RegExp(${c}, ${d}))`:(0,e.usePattern)(i,s);i.fail$data((0,t._)`!${m}.test(${a})`)}};return ti.default=n,ti}var ri={},Dh;function a_(){if(Dh)return ri;Dh=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=De(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${a}).length ${s} ${l}`)}};return ri.default=r,ri}var ni={},qh;function s_(){if(qh)return ni;qh=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,t.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,t._)`{missingProperty: ${a}}`},code(a){const{gen:l,schema:s,schemaCode:c,data:u,$data:d,it:m}=a,{opts:h}=m;if(!d&&s.length===0)return;const y=s.length>=h.loopRequired;if(m.allErrors?g():f(),h.strictRequired){const p=a.parentSchema.properties,{definedProperties:_}=a.it;for(const S of s)if(p?.[S]===void 0&&!_.has(S)){const w=m.schemaEnv.baseId+m.errSchemaPath,E=`required property "${S}" is not defined at "${w}" (strictRequired)`;(0,r.checkStrictMode)(m,E,m.opts.strictRequired)}}function g(){if(y||d)a.block$data(t.nil,b);else for(const p of s)(0,e.checkReportMissingProp)(a,p)}function f(){const p=l.let("missing");if(y||d){const _=l.let("valid",!0);a.block$data(_,()=>v(p,_)),a.ok(_)}else l.if((0,e.checkMissingProp)(a,s,p)),(0,e.reportMissingProp)(a,p),l.else()}function b(){l.forOf("prop",c,p=>{a.setParams({missingProperty:p}),l.if((0,e.noPropertyInData)(l,u,p,h.ownProperties),()=>a.error())})}function v(p,_){a.setParams({missingProperty:p}),l.forOf(p,c,()=>{l.assign(_,(0,e.propertyInData)(l,u,p,h.ownProperties)),l.if((0,t.not)(_),()=>{a.error(),l.break()})},t.nil)}}};return ni.default=i,ni}var oi={},Lh;function l_(){if(Lh)return oi;Lh=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=De(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const a=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:a,schemaCode:l}=n,s=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${a}.length ${s} ${l}`)}};return oi.default=r,oi}var ii={},ai={},Fh;function $c(){if(Fh)return ai;Fh=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=yh();return e.code='require("ajv/dist/runtime/equal").default',ai.default=e,ai}var zh;function c_(){if(zh)return ii;zh=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Fo(),t=De(),r=Ge(),n=$c(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${l} are identical)`,params:({params:{i:l,j:s}})=>(0,t._)`{i: ${l}, j: ${s}}`},code(l){const{gen:s,data:c,$data:u,schema:d,parentSchema:m,schemaCode:h,it:y}=l;if(!u&&!d)return;const g=s.let("valid"),f=m.items?(0,e.getSchemaTypes)(m.items):[];l.block$data(g,b,(0,t._)`${h} === false`),l.ok(g);function b(){const S=s.let("i",(0,t._)`${c}.length`),w=s.let("j");l.setParams({i:S,j:w}),s.assign(g,!0),s.if((0,t._)`${S} > 1`,()=>(v()?p:_)(S,w))}function v(){return f.length>0&&!f.some(S=>S==="object"||S==="array")}function p(S,w){const E=s.name("item"),x=(0,e.checkDataTypes)(f,E,y.opts.strictNumbers,e.DataType.Wrong),P=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${S}--;`,()=>{s.let(E,(0,t._)`${c}[${S}]`),s.if(x,(0,t._)`continue`),f.length>1&&s.if((0,t._)`typeof ${E} == "string"`,(0,t._)`${E} += "_"`),s.if((0,t._)`typeof ${P}[${E}] == "number"`,()=>{s.assign(w,(0,t._)`${P}[${E}]`),l.error(),s.assign(g,!1).break()}).code((0,t._)`${P}[${E}] = ${S}`)})}function _(S,w){const E=(0,r.useFunc)(s,n.default),x=s.name("outer");s.label(x).for((0,t._)`;${S}--;`,()=>s.for((0,t._)`${w} = ${S}; ${w}--;`,()=>s.if((0,t._)`${E}(${c}[${S}], ${c}[${w}])`,()=>{l.error(),s.assign(g,!1).break(x)})))}}};return ii.default=a,ii}var si={},Vh;function u_(){if(Vh)return si;Vh=1,Object.defineProperty(si,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:a})=>(0,e._)`{allowedValue: ${a}}`},code(a){const{gen:l,data:s,$data:c,schemaCode:u,schema:d}=a;c||d&&typeof d=="object"?a.fail$data((0,e._)`!${(0,t.useFunc)(l,r.default)}(${s}, ${u})`):a.fail((0,e._)`${d} !== ${s}`)}};return si.default=i,si}var li={},Bh;function d_(){if(Bh)return li;Bh=1,Object.defineProperty(li,"__esModule",{value:!0});const e=De(),t=Ge(),r=$c(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,e._)`{allowedValues: ${a}}`},code(a){const{gen:l,data:s,$data:c,schema:u,schemaCode:d,it:m}=a;if(!c&&u.length===0)throw new Error("enum must have non-empty array");const h=u.length>=m.opts.loopEnum;let y;const g=()=>y??(y=(0,t.useFunc)(l,r.default));let f;if(h||c)f=l.let("valid"),a.block$data(f,b);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const p=l.const("vSchema",d);f=(0,e.or)(...u.map((_,S)=>v(p,S)))}a.pass(f);function b(){l.assign(f,!1),l.forOf("v",d,p=>l.if((0,e._)`${g()}(${s}, ${p})`,()=>l.assign(f,!0).break()))}function v(p,_){const S=u[_];return typeof S=="object"&&S!==null?(0,e._)`${g()}(${s}, ${p}[${_}])`:(0,e._)`${s} === ${S}`}}};return li.default=i,li}var Uh;function f_(){if(Uh)return Jo;Uh=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=t_(),t=r_(),r=o_(),n=i_(),i=a_(),a=s_(),l=l_(),s=c_(),c=u_(),u=d_(),d=[e.default,t.default,r.default,n.default,i.default,a.default,l.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,u.default];return Jo.default=d,Jo}var ci={},gn={},Wh;function Hh(){if(Wh)return gn;Wh=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.validateAdditionalItems=void 0;const e=De(),t=Ge(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{parentSchema:l,it:s}=a,{items:c}=l;if(!Array.isArray(c)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(a,c)}};function i(a,l){const{gen:s,schema:c,data:u,keyword:d,it:m}=a;m.items=!0;const h=s.const("len",(0,e._)`${u}.length`);if(c===!1)a.setParams({len:l.length}),a.pass((0,e._)`${h} <= ${l.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(m,c)){const g=s.var("valid",(0,e._)`${h} <= ${l.length}`);s.if((0,e.not)(g),()=>y(g)),a.ok(g)}function y(g){s.forRange("i",l.length,h,f=>{a.subschema({keyword:d,dataProp:f,dataPropType:t.Type.Num},g),m.allErrors||s.if((0,e.not)(g),()=>s.break())})}}return gn.validateAdditionalItems=i,gn.default=n,gn}var ui={},vn={},Kh;function Gh(){if(Kh)return vn;Kh=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.validateTuple=void 0;const e=De(),t=Ge(),r=sr(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:l,it:s}=a;if(Array.isArray(l))return i(a,"additionalItems",l);s.items=!0,!(0,t.alwaysValidSchema)(s,l)&&a.ok((0,r.validateArray)(a))}};function i(a,l,s=a.schema){const{gen:c,parentSchema:u,data:d,keyword:m,it:h}=a;f(u),h.opts.unevaluated&&s.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(c,s.length,h.items));const y=c.name("valid"),g=c.const("len",(0,e._)`${d}.length`);s.forEach((b,v)=>{(0,t.alwaysValidSchema)(h,b)||(c.if((0,e._)`${g} > ${v}`,()=>a.subschema({keyword:m,schemaProp:v,dataProp:v},y)),a.ok(y))});function f(b){const{opts:v,errSchemaPath:p}=h,_=s.length,S=_===b.minItems&&(_===b.maxItems||b[l]===!1);if(v.strictTuples&&!S){const w=`"${m}" is ${_}-tuple, but minItems or maxItems/${l} are not specified or different at path "${p}"`;(0,t.checkStrictMode)(h,w,v.strictTuples)}}}return vn.validateTuple=i,vn.default=n,vn}var Yh;function p_(){if(Yh)return ui;Yh=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Gh(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ui.default=t,ui}var di={},Jh;function h_(){if(Jh)return di;Jh=1,Object.defineProperty(di,"__esModule",{value:!0});const e=De(),t=Ge(),r=sr(),n=Hh(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:s,parentSchema:c,it:u}=l,{prefixItems:d}=c;u.items=!0,!(0,t.alwaysValidSchema)(u,s)&&(d?(0,n.validateAdditionalItems)(l,d):l.ok((0,r.validateArray)(l)))}};return di.default=a,di}var fi={},Xh;function m_(){if(Xh)return fi;Xh=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:a}})=>a===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${a} valid item(s)`,params:({params:{min:i,max:a}})=>a===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${a}}`},code(i){const{gen:a,schema:l,parentSchema:s,data:c,it:u}=i;let d,m;const{minContains:h,maxContains:y}=s;u.opts.next?(d=h===void 0?1:h,m=y):d=1;const g=a.const("len",(0,e._)`${c}.length`);if(i.setParams({min:d,max:m}),m===void 0&&d===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&d>m){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,l)){let _=(0,e._)`${g} >= ${d}`;m!==void 0&&(_=(0,e._)`${_} && ${g} <= ${m}`),i.pass(_);return}u.items=!0;const f=a.name("valid");m===void 0&&d===1?v(f,()=>a.if(f,()=>a.break())):d===0?(a.let(f,!0),m!==void 0&&a.if((0,e._)`${c}.length > 0`,b)):(a.let(f,!1),b()),i.result(f,()=>i.reset());function b(){const _=a.name("_valid"),S=a.let("count",0);v(_,()=>a.if(_,()=>p(S)))}function v(_,S){a.forRange("i",0,g,w=>{i.subschema({keyword:"contains",dataProp:w,dataPropType:t.Type.Num,compositeRule:!0},_),S()})}function p(_){a.code((0,e._)`${_}++`),m===void 0?a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0).break()):(a.if((0,e._)`${_} > ${m}`,()=>a.assign(f,!1).break()),d===1?a.assign(f,!0):a.if((0,e._)`${_} >= ${d}`,()=>a.assign(f,!0)))}}};return fi.default=n,fi}var Rc={},Zh;function y_(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=De(),r=Ge(),n=sr();e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const m=u===1?"property":"properties";return(0,t.str)`must have ${m} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:m}})=>(0,t._)`{property: ${c},
11
+ missingProperty: ${m},
36
12
  depsCount: ${u},
37
- deps: ${d}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);l(c,u),i(c,d)}};function a({schema:c}){const u={},d={};for(const h in c){if(h==="__proto__")continue;const m=Array.isArray(c[h])?u:d;m[h]=c[h]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:h,it:m}=c;if(Object.keys(u).length===0)return;const g=d.let("missing");for(const w in u){const f=u[w];if(f.length===0)continue;const y=(0,o.propertyInData)(d,h,w,m.opts.ownProperties);c.setParams({property:w,depsCount:f.length,deps:f.join(", ")}),m.allErrors?d.if(y,()=>{for(const v of f)(0,o.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${y} && (${(0,o.checkMissingProp)(c,f,g)})`),(0,o.reportMissingProp)(c,g),d.else())}}e.validatePropertyDeps=l;function i(c,u=c.schema){const{gen:d,data:h,keyword:m,it:g}=c,w=d.name("valid");for(const f in u)(0,r.alwaysValidSchema)(g,u[f])||(d.if((0,o.propertyInData)(d,h,f,g.opts.ownProperties),()=>{const y=c.subschema({keyword:m,schemaProp:f},w);c.mergeValidEvaluated(y,w)},()=>d.var(w,!0)),c.ok(w))}e.validateSchemaDeps=i,e.default=s}(ad)),ad}var Ta={},Gg;function QC(){if(Gg)return Ta;Gg=1,Object.defineProperty(Ta,"__esModule",{value:!0});const e=at(),t=bt(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:s})=>(0,e._)`{propertyName: ${s.propertyName}}`},code(s){const{gen:a,schema:l,data:i,it:c}=s;if((0,t.alwaysValidSchema)(c,l))return;const u=a.name("valid");a.forIn("key",i,d=>{s.setParams({propertyName:d}),s.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,e.not)(u),()=>{s.error(!0),c.allErrors||a.break()})}),s.ok(u)}};return Ta.default=o,Ta}var Oa={},Xg;function Jg(){if(Xg)return Oa;Xg=1,Object.defineProperty(Oa,"__esModule",{value:!0});const e=jr(),t=at(),r=dn(),o=bt(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:i,schema:c,parentSchema:u,data:d,errsCount:h,it:m}=l;if(!h)throw new Error("ajv implementation error");const{allErrors:g,opts:w}=m;if(m.props=!0,w.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(m,c))return;const f=(0,e.allSchemaProperties)(u.properties),y=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${h} === ${r.default.errors}`);function v(){i.forIn("key",d,C=>{!f.length&&!y.length?x(C):i.if(p(C),()=>x(C))})}function p(C){let O;if(f.length>8){const k=(0,o.schemaRefOrVal)(m,u.properties,"properties");O=(0,e.isOwnProperty)(i,k,C)}else f.length?O=(0,t.or)(...f.map(k=>(0,t._)`${C} === ${k}`)):O=t.nil;return y.length&&(O=(0,t.or)(O,...y.map(k=>(0,t._)`${(0,e.usePattern)(l,k)}.test(${C})`))),(0,t.not)(O)}function b(C){i.code((0,t._)`delete ${d}[${C}]`)}function x(C){if(w.removeAdditional==="all"||w.removeAdditional&&c===!1){b(C);return}if(c===!1){l.setParams({additionalProperty:C}),l.error(),g||i.break();return}if(typeof c=="object"&&!(0,o.alwaysValidSchema)(m,c)){const O=i.name("valid");w.removeAdditional==="failing"?(S(C,O,!1),i.if((0,t.not)(O),()=>{l.reset(),b(C)})):(S(C,O),g||i.if((0,t.not)(O),()=>i.break()))}}function S(C,O,k){const _={keyword:"additionalProperties",dataProp:C,dataPropType:o.Type.Str};k===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(_,O)}}};return Oa.default=a,Oa}var Pa={},Zg;function eT(){if(Zg)return Pa;Zg=1,Object.defineProperty(Pa,"__esModule",{value:!0});const e=Qs(),t=jr(),r=bt(),o=Jg(),s={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:l,schema:i,parentSchema:c,data:u,it:d}=a;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&o.default.code(new e.KeywordCxt(d,o.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(i);for(const y of h)d.definedProperties.add(y);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(l,(0,r.toHash)(h),d.props));const m=h.filter(y=>!(0,r.alwaysValidSchema)(d,i[y]));if(m.length===0)return;const g=l.name("valid");for(const y of m)w(y)?f(y):(l.if((0,t.propertyInData)(l,u,y,d.opts.ownProperties)),f(y),d.allErrors||l.else().var(g,!0),l.endIf()),a.it.definedProperties.add(y),a.ok(g);function w(y){return d.opts.useDefaults&&!d.compositeRule&&i[y].default!==void 0}function f(y){a.subschema({keyword:"properties",schemaProp:y,dataProp:y},g)}}};return Pa.default=s,Pa}var Ea={},Qg;function tT(){if(Qg)return Ea;Qg=1,Object.defineProperty(Ea,"__esModule",{value:!0});const e=jr(),t=at(),r=bt(),o=bt(),s={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:l,schema:i,data:c,parentSchema:u,it:d}=a,{opts:h}=d,m=(0,e.allSchemaProperties)(i),g=m.filter(x=>(0,r.alwaysValidSchema)(d,i[x]));if(m.length===0||g.length===m.length&&(!d.opts.unevaluated||d.props===!0))return;const w=h.strictSchema&&!h.allowMatchingProperties&&u.properties,f=l.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,o.evaluatedPropsToName)(l,d.props));const{props:y}=d;v();function v(){for(const x of m)w&&p(x),d.allErrors?b(x):(l.var(f,!0),b(x),l.if(f))}function p(x){for(const S in w)new RegExp(x).test(S)&&(0,r.checkStrictMode)(d,`property ${S} matches pattern ${x} (use allowMatchingProperties)`)}function b(x){l.forIn("key",c,S=>{l.if((0,t._)`${(0,e.usePattern)(a,x)}.test(${S})`,()=>{const C=g.includes(x);C||a.subschema({keyword:"patternProperties",schemaProp:x,dataProp:S,dataPropType:o.Type.Str},f),d.opts.unevaluated&&y!==!0?l.assign((0,t._)`${y}[${S}]`,!0):!C&&!d.allErrors&&l.if((0,t.not)(f),()=>l.break())})})}}};return Ea.default=s,Ea}var ka={},ey;function rT(){if(ey)return ka;ey=1,Object.defineProperty(ka,"__esModule",{value:!0});const e=bt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:o,schema:s,it:a}=r;if((0,e.alwaysValidSchema)(a,s)){r.fail();return}const l=o.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),r.failResult(l,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return ka.default=t,ka}var Ra={},ty;function nT(){if(ty)return Ra;ty=1,Object.defineProperty(Ra,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:jr().validateUnion,error:{message:"must match a schema in anyOf"}};return Ra.default=t,Ra}var $a={},ry;function oT(){if(ry)return $a;ry=1,Object.defineProperty($a,"__esModule",{value:!0});const e=at(),t=bt(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:s})=>(0,e._)`{passingSchemas: ${s.passing}}`},code(s){const{gen:a,schema:l,parentSchema:i,it:c}=s;if(!Array.isArray(l))throw new Error("ajv implementation error");if(c.opts.discriminator&&i.discriminator)return;const u=l,d=a.let("valid",!1),h=a.let("passing",null),m=a.name("_valid");s.setParams({passing:h}),a.block(g),s.result(d,()=>s.reset(),()=>s.error(!0));function g(){u.forEach((w,f)=>{let y;(0,t.alwaysValidSchema)(c,w)?a.var(m,!0):y=s.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},m),f>0&&a.if((0,e._)`${m} && ${d}`).assign(d,!1).assign(h,(0,e._)`[${h}, ${f}]`).else(),a.if(m,()=>{a.assign(d,!0),a.assign(h,f),y&&s.mergeEvaluated(y,e.Name)})})}}};return $a.default=o,$a}var _a={},ny;function sT(){if(ny)return _a;ny=1,Object.defineProperty(_a,"__esModule",{value:!0});const e=bt(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:o,schema:s,it:a}=r;if(!Array.isArray(s))throw new Error("ajv implementation error");const l=o.name("valid");s.forEach((i,c)=>{if((0,e.alwaysValidSchema)(a,i))return;const u=r.subschema({keyword:"allOf",schemaProp:c},l);r.ok(l),r.mergeEvaluated(u)})}};return _a.default=t,_a}var Ia={},oy;function aT(){if(oy)return Ia;oy=1,Object.defineProperty(Ia,"__esModule",{value:!0});const e=at(),t=bt(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:l,parentSchema:i,it:c}=a;i.then===void 0&&i.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=s(c,"then"),d=s(c,"else");if(!u&&!d)return;const h=l.let("valid",!0),m=l.name("_valid");if(g(),a.reset(),u&&d){const f=l.let("ifClause");a.setParams({ifClause:f}),l.if(m,w("then",f),w("else",f))}else u?l.if(m,w("then")):l.if((0,e.not)(m),w("else"));a.pass(h,()=>a.error(!0));function g(){const f=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);a.mergeEvaluated(f)}function w(f,y){return()=>{const v=a.subschema({keyword:f},m);l.assign(h,m),a.mergeValidEvaluated(v,h),y?l.assign(y,(0,e._)`${f}`):a.setParams({ifClause:f})}}}};function s(a,l){const i=a.schema[l];return i!==void 0&&!(0,t.alwaysValidSchema)(a,i)}return Ia.default=o,Ia}var Da={},sy;function iT(){if(sy)return Da;sy=1,Object.defineProperty(Da,"__esModule",{value:!0});const e=bt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:o,it:s}){o.if===void 0&&(0,e.checkStrictMode)(s,`"${r}" without "if" is ignored`)}};return Da.default=t,Da}var ay;function lT(){if(ay)return wa;ay=1,Object.defineProperty(wa,"__esModule",{value:!0});const e=Bg(),t=GC(),r=Ug(),o=XC(),s=JC(),a=ZC(),l=QC(),i=Jg(),c=eT(),u=tT(),d=rT(),h=nT(),m=oT(),g=sT(),w=aT(),f=iT();function y(v=!1){const p=[d.default,h.default,m.default,g.default,w.default,f.default,l.default,i.default,a.default,c.default,u.default];return v?p.push(t.default,o.default):p.push(e.default,r.default),p.push(s.default),p}return wa.default=y,wa}var Ma={},ja={},iy;function cT(){if(iy)return ja;iy=1,Object.defineProperty(ja,"__esModule",{value:!0});const e=at(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,e._)`{format: ${o}}`},code(o,s){const{gen:a,data:l,$data:i,schema:c,schemaCode:u,it:d}=o,{opts:h,errSchemaPath:m,schemaEnv:g,self:w}=d;if(!h.validateFormats)return;i?f():y();function f(){const v=a.scopeValue("formats",{ref:w.formats,code:h.code.formats}),p=a.const("fDef",(0,e._)`${v}[${u}]`),b=a.let("fType"),x=a.let("format");a.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>a.assign(b,(0,e._)`${p}.type || "string"`).assign(x,(0,e._)`${p}.validate`),()=>a.assign(b,(0,e._)`"string"`).assign(x,p)),o.fail$data((0,e.or)(S(),C()));function S(){return h.strictSchema===!1?e.nil:(0,e._)`${u} && !${x}`}function C(){const O=g.$async?(0,e._)`(${p}.async ? await ${x}(${l}) : ${x}(${l}))`:(0,e._)`${x}(${l})`,k=(0,e._)`(typeof ${x} == "function" ? ${O} : ${x}.test(${l}))`;return(0,e._)`${x} && ${x} !== true && ${b} === ${s} && !${k}`}}function y(){const v=w.formats[c];if(!v){S();return}if(v===!0)return;const[p,b,x]=C(v);p===s&&o.pass(O());function S(){if(h.strictSchema===!1){w.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${c}" ignored in schema at path "${m}"`}}function C(k){const _=k instanceof RegExp?(0,e.regexpCode)(k):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(c)}`:void 0,T=a.scopeValue("formats",{key:c,ref:k,code:_});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${T}.validate`]:["string",k,T]}function O(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${x}(${l})`}return typeof b=="function"?(0,e._)`${x}(${l})`:(0,e._)`${x}.test(${l})`}}}};return ja.default=r,ja}var ly;function uT(){if(ly)return Ma;ly=1,Object.defineProperty(Ma,"__esModule",{value:!0});const t=[cT().default];return Ma.default=t,Ma}var Mn={},cy;function dT(){return cy||(cy=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.contentVocabulary=Mn.metadataVocabulary=void 0,Mn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Mn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Mn}var uy;function fT(){if(uy)return oa;uy=1,Object.defineProperty(oa,"__esModule",{value:!0});const e=NC(),t=KC(),r=lT(),o=uT(),s=dT(),a=[e.default,t.default,(0,r.default)(),o.default,s.metadataVocabulary,s.contentVocabulary];return oa.default=a,oa}var Na={},Mo={},dy;function pT(){if(dy)return Mo;dy=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Mo.DiscrError=e={})),Mo}var fy;function hT(){if(fy)return Na;fy=1,Object.defineProperty(Na,"__esModule",{value:!0});const e=at(),t=pT(),r=td(),o=ra(),s=bt(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:i,tagName:c}})=>i===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:i,tag:c,tagName:u}})=>(0,e._)`{error: ${i}, tag: ${u}, tagValue: ${c}}`},code(i){const{gen:c,data:u,schema:d,parentSchema:h,it:m}=i,{oneOf:g}=h;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=d.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");const f=c.let("valid",!1),y=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(w)}`);c.if((0,e._)`typeof ${y} == "string"`,()=>v(),()=>i.error(!1,{discrError:t.DiscrError.Tag,tag:y,tagName:w})),i.ok(f);function v(){const x=b();c.if(!1);for(const S in x)c.elseIf((0,e._)`${y} === ${S}`),c.assign(f,p(x[S]));c.else(),i.error(!1,{discrError:t.DiscrError.Mapping,tag:y,tagName:w}),c.endIf()}function p(x){const S=c.name("valid"),C=i.subschema({keyword:"oneOf",schemaProp:x},S);return i.mergeEvaluated(C,e.Name),S}function b(){var x;const S={},C=k(h);let O=!0;for(let P=0;P<g.length;P++){let D=g[P];if(D!=null&&D.$ref&&!(0,s.schemaHasRulesButRef)(D,m.self.RULES)){const M=D.$ref;if(D=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,M),D instanceof r.SchemaEnv&&(D=D.schema),D===void 0)throw new o.default(m.opts.uriResolver,m.baseId,M)}const V=(x=D==null?void 0:D.properties)===null||x===void 0?void 0:x[w];if(typeof V!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${w}"`);O=O&&(C||k(D)),_(V,P)}if(!O)throw new Error(`discriminator: "${w}" must be required`);return S;function k({required:P}){return Array.isArray(P)&&P.includes(w)}function _(P,D){if(P.const)T(P.const,D);else if(P.enum)for(const V of P.enum)T(V,D);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function T(P,D){if(typeof P!="string"||P in S)throw new Error(`discriminator: "${w}" values must be unique strings`);S[P]=D}}}};return Na.default=l,Na}const mT={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var py;function hy(){return py||(py=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=DC(),o=fT(),s=hT(),a=mT,l=["/properties"],i="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(w=>this.addVocabulary(w)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const w=this.opts.$data?this.$dataMetaSchema(a,l):a;this.addMetaSchema(w,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Qs();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=at();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=ed();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var m=ra();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})}(Ys,Ys.exports)),Ys.exports}var gT=hy();const yT=Ut(gT);var Aa={exports:{}},id={},my;function bT(){return my||(my=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(P,D){return{validate:P,compare:D}}e.fullFormats={date:t(a,l),time:t(c(!0),u),"date-time":t(m(!0),g),"iso-time":t(c(),d),"iso-date-time":t(m(),w),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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:T,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:b,int32:{type:"number",validate:C},int64:{type:"number",validate:O},float:{type:"number",validate:k},double:{type:"number",validate:k},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,g),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-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,w),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 r(P){return P%4===0&&(P%100!==0||P%400===0)}const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(P){const D=o.exec(P);if(!D)return!1;const V=+D[1],M=+D[2],N=+D[3];return M>=1&&M<=12&&N>=1&&N<=(M===2&&r(V)?29:s[M])}function l(P,D){if(P&&D)return P>D?1:P<D?-1:0}const i=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(P){return function(V){const M=i.exec(V);if(!M)return!1;const N=+M[1],F=+M[2],K=+M[3],H=M[4],Z=M[5]==="-"?-1:1,L=+(M[6]||0),j=+(M[7]||0);if(L>23||j>59||P&&!H)return!1;if(N<=23&&F<=59&&K<60)return!0;const Y=F-j*Z,q=N-L*Z-(Y<0?1:0);return(q===23||q===-1)&&(Y===59||Y===-1)&&K<61}}function u(P,D){if(!(P&&D))return;const V=new Date("2020-01-01T"+P).valueOf(),M=new Date("2020-01-01T"+D).valueOf();if(V&&M)return V-M}function d(P,D){if(!(P&&D))return;const V=i.exec(P),M=i.exec(D);if(V&&M)return P=V[1]+V[2]+V[3],D=M[1]+M[2]+M[3],P>D?1:P<D?-1:0}const h=/t|\s/i;function m(P){const D=c(P);return function(M){const N=M.split(h);return N.length===2&&a(N[0])&&D(N[1])}}function g(P,D){if(!(P&&D))return;const V=new Date(P).valueOf(),M=new Date(D).valueOf();if(V&&M)return V-M}function w(P,D){if(!(P&&D))return;const[V,M]=P.split(h),[N,F]=D.split(h),K=l(V,N);if(K!==void 0)return K||u(M,F)}const f=/\/|:/,y=/^(?:[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;function v(P){return f.test(P)&&y.test(P)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(P){return p.lastIndex=0,p.test(P)}const x=-2147483648,S=2**31-1;function C(P){return Number.isInteger(P)&&P<=S&&P>=x}function O(P){return Number.isInteger(P)}function k(){return!0}const _=/[^\\]\\Z/;function T(P){if(_.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}}(id)),id}var ld={},gy;function vT(){return gy||(gy=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=hy(),r=at(),o=r.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:i,schemaCode:c})=>(0,r.str)`should be ${s[i].okStr} ${c}`,params:({keyword:i,schemaCode:c})=>(0,r._)`{comparison: ${s[i].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:a,code(i){const{gen:c,data:u,schemaCode:d,keyword:h,it:m}=i,{opts:g,self:w}=m;if(!g.validateFormats)return;const f=new t.KeywordCxt(m,w.RULES.all.format.definition,"format");f.$data?y():v();function y(){const b=c.scopeValue("formats",{ref:w.formats,code:g.code.formats}),x=c.const("fmt",(0,r._)`${b}[${f.schemaCode}]`);i.fail$data((0,r.or)((0,r._)`typeof ${x} != "object"`,(0,r._)`${x} instanceof RegExp`,(0,r._)`typeof ${x}.compare != "function"`,p(x)))}function v(){const b=f.schema,x=w.formats[b];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw new Error(`"${h}": format "${b}" does not define "compare" function`);const S=c.scopeValue("formats",{key:b,ref:x,code:g.code.formats?(0,r._)`${g.code.formats}${(0,r.getProperty)(b)}`:void 0});i.fail$data(p(S))}function p(b){return(0,r._)`${b}.compare(${u}, ${d}) ${s[h].fail} 0`}},dependencies:["format"]};const l=i=>(i.addKeyword(e.formatLimitDefinition),i);e.default=l}(ld)),ld}var yy;function wT(){return yy||(yy=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=bT(),o=vT(),s=at(),a=new s.Name("fullFormats"),l=new s.Name("fastFormats"),i=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,r.fullFormats,a),u;const[h,m]=d.mode==="fast"?[r.fastFormats,l]:[r.fullFormats,a],g=d.formats||r.formatNames;return c(u,g,h,m),d.keywords&&(0,o.default)(u),u};i.get=(u,d="full")=>{const m=(d==="fast"?r.fastFormats:r.fullFormats)[u];if(!m)throw new Error(`Unknown format "${u}"`);return m};function c(u,d,h,m){var g,w;(g=(w=u.opts.code).formats)!==null&&g!==void 0||(w.formats=(0,s._)`require("ajv-formats/dist/formats").${m}`);for(const f of d)u.addFormat(f,h[f])}e.exports=t=i,Object.defineProperty(t,"__esModule",{value:!0}),t.default=i}(Aa,Aa.exports)),Aa.exports}var xT=wT();const ST=Ut(xT),Va=new yT({allErrors:!0,strict:!1,keywords:["readonly"]});ST(Va);const cd=new Map,CT=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((r,o)=>r&&r[o],e)}catch{return}},TT=(e,t)=>{try{const r=Hs(t);if(!e)return!0;const o=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!o){console.warn(`Unsupported condition format: ${e}`);return}const s=o[1].trim(),a=o[2],l=o[3],i=o[4],c=o[5],u=o[6],d=CT(r,s);let h;if(i!==void 0)h=i;else if(c!==void 0)h=c;else if(u!==void 0)h=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(a){case"===":return d===h;case"!==":return d!==h;case">":return d>h;case"<":return d<h;default:console.warn(`Unsupported operator: ${a}`);return}}catch(r){console.error("Custom evaluation error:",r);return}},lr=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},ud=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},by=(e,t)=>{if(!t)return e;const r=[],o=Object.keys(e).length===0?t:e;return t.forEach((s,a)=>{r.push({name:o[a],value:s})}),r},wr=(e,t,r)=>{r=r||{};const o=r.global&&r.global.formDefaults?Hs(r.global.formDefaults):{};return r.global&&r.global.supressPropertyTitles===!0?o.title=t.title:o.title=t.title||e,t.description&&(o.description=t.description),(r.required===!0||t.required===!0)&&(o.required=!0),t.maxLength&&(o.maxlength=t.maxLength),t.minLength&&(o.minlength=t.minLength),(t.readOnly||t.readonly)&&(o.readonly=!0),t.minimum&&(o.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(o.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(o.validationMessage=t.validationMessage),t.enumNames&&(o.titleMap=by(t.enumNames,t.enum)),o.schema=t,o},OT=(e,t,r)=>{if(lr(t.type)==="tBoolean"&&!t.enum){const o=wr(e,t,r);return o.key=r.path,o.type="tBoolean",r.lookup[Gt.stringify(r.path)]=o,o}},vy=(e,t,r)=>{if(lr(t.type)==="string"&&!t.enum){const o=wr(e,t,r);return o.key=r.path,o.type="text",r.lookup[Gt.stringify(r.path)]=o,o}},wy=(e,t,r)=>{if(lr(t.type)==="number"){const o=wr(e,t,r);return o.key=r.path,o.type="number",r.lookup[Gt.stringify(r.path)]=o,o}},xy=(e,t,r)=>{if(lr(t.type)==="integer"){const o=wr(e,t,r);return o.key=r.path,o.type="number",r.lookup[Gt.stringify(r.path)]=o,o}},PT=(e,t,r)=>{if(lr(t.type)==="date"){const o=wr(e,t,r);return o.key=r.path,o.type="date",r.lookup[Gt.stringify(r.path)]=o,o}},Sy=(e,t,r)=>{if(lr(t.type)==="boolean"){const o=wr(e,t,r);return o.key=r.path,o.type="checkbox",r.lookup[Gt.stringify(r.path)]=o,o}},Cy=(e,t,r)=>{if(lr(t.type)==="string"&&t.enum){const o=wr(e,t,r);return o.key=r.path,o.type="select",!o.titleMap&&!t.isObject&&(o.titleMap=ud(t.enum)),r.lookup[Gt.stringify(r.path)]=o,o}},Ty=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?Ty(r):(r==null||r==="")&&delete e[t]}),Oy=(e,t,r)=>{if(lr(t.type)==="array"&&t.items&&t.items.enum){const o=wr(e,t,r);return o.key=r.path,o.type="checkboxes",o.titleMap||(o.titleMap=ud(t.items.enum)),r.lookup[Gt.stringify(r.path)]=o,o}},jo=(e,t,r)=>{const o=pn[lr(t.type)];if(o){let s;for(let a=0;a<o.length;a+=1)if(s=o[a](e,t,r),s)return s.schema["x-schema-form"]&&FS(s.schema["x-schema-form"])&&(s=mC(s,s.schema["x-schema-form"])),s}},Py=(e,t,r)=>{if(lr(t.type)==="object"){const o=wr(e,t,r);return o.type="fieldset",o.items=[],r.lookup[Gt.stringify(r.path)]=o,t.properties&&Object.keys(t.properties).forEach(s=>{if(Object.prototype.hasOwnProperty.call(t.properties,s)){const a=r.path.slice();if(a.push(s),r.ignore[Gt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(s)!==-1,i=jo(s,t.properties[s],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});i&&o.items.push(i)}}}),o}},ET=(e,t,r)=>{if(lr(t.type)==="array"){const o=wr(e,t,r);if(o.type="tuple",o.key=r.path,r.lookup[Gt.stringify(r.path)]=o,Array.isArray(t.items)){const s=t.required&&t.required.indexOf(r.path[r.path.length-1]);return o.items=t.items.reduce((a,l,i)=>{const c=r.path.slice();c.push(i);const u=jo(e,l,{path:c,required:s||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),o}}},Ey=(e,t,r)=>{if(lr(t.type)==="array"){const o=wr(e,t,r);if(o.type="array",o.key=r.path,r.lookup[Gt.stringify(r.path)]=o,typeof t.items<"u"){const s=t.required&&t.required.indexOf(r.path[r.path.length-1])!==-1,a=r.path.slice();a.push("");const l=jo(e,t.items,{path:a,required:s||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});l?o.items=[l]:o.items=t.items}return o}},pn={string:[Cy,vy],object:[Py],number:[wy],integer:[xy],boolean:[Sy],array:[Oy,ET,Ey],date:[PT],tBoolean:[OT]},ky=(e,t,r)=>{const o=[],s={};if(t=t||{},r=r||{},lr(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(a=>{if(Object.prototype.hasOwnProperty.call(e.properties,a)&&t[a]!==!0){const l=e.required&&e.required.indexOf(a)!==-1,i=jo(a,e.properties[a],{path:[a],lookup:s,ignore:t,required:l,global:r});i&&o.push(i)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:o,lookup:s}},Ry=e=>e,kT=(e,t)=>{pn[e]||(pn[e]=[]),pn[e].push(t)},RT=(e,t)=>{pn[e]||(pn[e]=[]),pn[e].unshift(t)},$T=(e,t,r,o)=>{o=typeof o<"u"?o:!0,r=r||[];const s=(a,l,i)=>{if(l(a,i),a.properties&&Object.keys(a.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(a.properties,c)){const u=i.slice();u.push(c),s(a.properties[c],l,u)}}),!o&&a.items){const c=i.slice();c.push(""),s(a.items,l,c)}};s(e,t,r||[])},dd=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{dd(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(o=>{dd(o,t)})})},fd=(e,t,r,o,s)=>{t=t||["*"],o=o||{},s=s||e.readonly||e.readOnly;const a=ky(e,r,o),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(a.form).concat(t.slice(l+1)));const{lookup:i}=a;return Ry(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Gt.parse(c.key)),c&&c.itemForm){c.items=[];const u=Gt.stringify(c.key);i[u].items.forEach(h=>{const m=Hs(c.itemForm);m.key=h.key,c.items.push(m)})}if(c&&c.key){const u=Gt.stringify(c.key);if(i[u]){const d=i[u];Object.keys(d).forEach(h=>{Object.prototype.hasOwnProperty.call(d,h)&&c[h]===void 0&&(c[h]=d[h])})}}return s===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=fd(e,c.items,r,o,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=fd(e,u.items,r,o,c.readonly)}),c&&c.type==="checkbox"&&bC(c.schema.default)&&(c.schema.default=!1),c}))};function _T(e,t,r,o){const s=/^\d+$/;t||(t=this);const a=typeof e=="string"?Gt.parse(e):e;if(typeof r<"u"&&a.length===1||(typeof r<"u"&&typeof t[a[0]]>"u"&&(t[a[0]]=a.length>=2&&s.test(a[1])?[]:{}),typeof o<"u"&&["number","integer"].indexOf(o)>-1&&typeof r>"u"))return t[a[0]]=r,t;let l=t[a[0]];for(let i=1;i<a.length;i+=1){if(a[i]==="")return;if(typeof r<"u"){if(i===a.length-1)return l[a[i]]=r,r;let c=l[a[i]];(typeof c>"u"||c===null)&&(c=s.test(a[i+1])?[]:{},l[a[i]]=c),l=c}else l&&(l=l[a[i]])}return l}const $y=(e,t)=>{if(cd.has(e))return cd.get(e);try{const r=Va.compile(t);return cd.set(e,r),r}catch{return null}};function IT(e){const t=JSON.stringify(e);let r=0;for(let o=0;o<t.length;o++)r=(r<<5)-r+t.charCodeAt(o),r|=0;return r.toString(16)}const Xt={traverseForm:dd,traverseSchema:$T,prependRule:RT,appendRule:kT,postProcessFn:Ry,getDefaults:ky,defaultFormDefinition:jo,defaults:pn,array:Ey,fieldset:Py,checkboxes:Oy,select:Cy,checkbox:Sy,integer:xy,number:wy,text:vy,stdFormObj:wr,canonicalTitleMap:by,enumToTitleMap:ud,stripNullType:lr,merge:fd,validate:(e,t)=>{if(!e||!e.schema)return{valid:!0};(t===""||e.type==="number"&&(t===null||isNaN(parseFloat(t))))&&(t=void 0);const r=e.key[e.key.length-1],{schema:o}=e,s={type:"object",properties:{},$schema:"http://json-schema.org/draft-07/schema#"},a=e.key[e.key.length-1];s.properties[a]=o,e.required&&(s.required=[a]);const l=$y(r,s);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:Va.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let r=IT(e);const o=$y(r,e);return o?o(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:Va.errorsText(o.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:TT,selectOrSet:_T,getValueFromModel:(e,t)=>{let r;return Array.isArray(t)?(t.reduce((o,s)=>o&&o[s],e),r=t.reduce((o,s)=>o&&o[s],e)):r=e[t],r},getTitleByValue:(e,t)=>{for(let r=0;r<e.length;r+=1){const o=e[r];if(o.value===t)return o.name}},removeEmpty:Ty},DT=e=>{let t;return e.form&&e.form.key&&(t=Xt.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},MT=e=>e.displayName||e.name||"Component",Jt=(e,t={})=>class extends Be.Component{constructor(o){super(o),this.displayName=`ComposedComponent(${MT(e)})`,this.onChangeValidate=this.onChangeValidate.bind(this),this.state=this.constructor.getDerivedStateFromProps(this.props)}static getDerivedStateFromProps(o){const{errorText:s,form:a,showErrors:l,localization:i}=o;i&&i.getLocalizedString;const c=DT(o);if(!l)return{value:c,valid:!0,error:""};const u=Xt.validate(a,c||void 0),d=u.valid?void 0:u.error;return console.log("error",d),{value:c,valid:u.valid,error:(u.valid?null:d)||s}}onChangeValidate(o,s){const{form:a,onChange:l,localization:i}=this.props;i&&i.getLocalizedString;let c=null;const u=a.schema?a.schema.type:a.type;switch(u){case"integer":case"number":{c=o;break}case"boolean":c=o.target.checked;break;case"array":c=o;break;case"object":if(a.type==="date"){o.target.value.length>0?c=new Date(o.target.value):c="";break}({value:c}=o.target);break;case"string":a.type==="timestamp"?c=o:{value:c}=o.target;break;default:console.log("type = ",u),{value:c}=o.target}const d=Xt.validate(a,c);console.log(a,c),console.log("error",d.valid?null:d.error),this.setState({value:c,valid:d.valid,error:d.valid?null:d.error}),l(a.key,c)}render(){return R.jsx(e,{...t,...this.props,...this.state,onChangeValidate:this.onChangeValidate})}};var Fa={exports:{}},La={exports:{}},vt={};/** @license React v16.13.1
38
- * react-is.production.min.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */var _y;function jT(){if(_y)return vt;_y=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case t:switch(S=S.type,S){case c:case u:case o:case a:case s:case h:return S;default:switch(S=S&&S.$$typeof,S){case i:case d:case w:case g:case l:return S;default:return C}}case r:return C}}}function x(S){return b(S)===u}return vt.AsyncMode=c,vt.ConcurrentMode=u,vt.ContextConsumer=i,vt.ContextProvider=l,vt.Element=t,vt.ForwardRef=d,vt.Fragment=o,vt.Lazy=w,vt.Memo=g,vt.Portal=r,vt.Profiler=a,vt.StrictMode=s,vt.Suspense=h,vt.isAsyncMode=function(S){return x(S)||b(S)===c},vt.isConcurrentMode=x,vt.isContextConsumer=function(S){return b(S)===i},vt.isContextProvider=function(S){return b(S)===l},vt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},vt.isForwardRef=function(S){return b(S)===d},vt.isFragment=function(S){return b(S)===o},vt.isLazy=function(S){return b(S)===w},vt.isMemo=function(S){return b(S)===g},vt.isPortal=function(S){return b(S)===r},vt.isProfiler=function(S){return b(S)===a},vt.isStrictMode=function(S){return b(S)===s},vt.isSuspense=function(S){return b(S)===h},vt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===o||S===u||S===a||S===s||S===h||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===w||S.$$typeof===g||S.$$typeof===l||S.$$typeof===i||S.$$typeof===d||S.$$typeof===y||S.$$typeof===v||S.$$typeof===p||S.$$typeof===f)},vt.typeOf=b,vt}var wt={};/** @license React v16.13.1
45
- * react-is.development.js
46
- *
47
- * Copyright (c) Facebook, Inc. and its affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */var Iy;function NT(){return Iy||(Iy=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function b(A){return typeof A=="string"||typeof A=="function"||A===o||A===u||A===a||A===s||A===h||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===w||A.$$typeof===g||A.$$typeof===l||A.$$typeof===i||A.$$typeof===d||A.$$typeof===y||A.$$typeof===v||A.$$typeof===p||A.$$typeof===f)}function x(A){if(typeof A=="object"&&A!==null){var z=A.$$typeof;switch(z){case t:var X=A.type;switch(X){case c:case u:case o:case a:case s:case h:return X;default:var te=X&&X.$$typeof;switch(te){case i:case d:case w:case g:case l:return te;default:return z}}case r:return z}}}var S=c,C=u,O=i,k=l,_=t,T=d,P=o,D=w,V=g,M=r,N=a,F=s,K=h,H=!1;function Z(A){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(A)||x(A)===c}function L(A){return x(A)===u}function j(A){return x(A)===i}function Y(A){return x(A)===l}function q(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function $(A){return x(A)===d}function I(A){return x(A)===o}function U(A){return x(A)===w}function Q(A){return x(A)===g}function W(A){return x(A)===r}function ee(A){return x(A)===a}function ne(A){return x(A)===s}function B(A){return x(A)===h}wt.AsyncMode=S,wt.ConcurrentMode=C,wt.ContextConsumer=O,wt.ContextProvider=k,wt.Element=_,wt.ForwardRef=T,wt.Fragment=P,wt.Lazy=D,wt.Memo=V,wt.Portal=M,wt.Profiler=N,wt.StrictMode=F,wt.Suspense=K,wt.isAsyncMode=Z,wt.isConcurrentMode=L,wt.isContextConsumer=j,wt.isContextProvider=Y,wt.isElement=q,wt.isForwardRef=$,wt.isFragment=I,wt.isLazy=U,wt.isMemo=Q,wt.isPortal=W,wt.isProfiler=ee,wt.isStrictMode=ne,wt.isSuspense=B,wt.isValidElementType=b,wt.typeOf=x}()),wt}var Dy;function My(){return Dy||(Dy=1,process.env.NODE_ENV==="production"?La.exports=jT():La.exports=NT()),La.exports}/*
52
- object-assign
53
- (c) Sindre Sorhus
54
- @license MIT
55
- */var pd,jy;function AT(){if(jy)return pd;jy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},i=0;i<10;i++)l["_"+String.fromCharCode(i)]=i;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pd=s()?Object.assign:function(a,l){for(var i,c=o(a),u,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var h in i)t.call(i,h)&&(c[h]=i[h]);if(e){u=e(i);for(var m=0;m<u.length;m++)r.call(i,u[m])&&(c[u[m]]=i[u[m]])}}return c},pd}var hd,Ny;function md(){if(Ny)return hd;Ny=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hd=e,hd}var gd,Ay;function Vy(){return Ay||(Ay=1,gd=Function.call.bind(Object.prototype.hasOwnProperty)),gd}var yd,Fy;function VT(){if(Fy)return yd;Fy=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=md(),r={},o=Vy();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(a,l,i,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(o(a,d)){var h;try{if(typeof a[d]!="function"){var m=Error((c||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=a[d](l,d,c,i,null,t)}catch(w){h=w}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var g=u?u():"";e("Failed "+i+" type: "+h.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},yd=s,yd}var bd,Ly;function FT(){if(Ly)return bd;Ly=1;var e=My(),t=AT(),r=md(),o=Vy(),s=VT(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return bd=function(i,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(L){var j=L&&(u&&L[u]||L[d]);if(typeof j=="function")return j}var m="<<anonymous>>",g={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:p(),arrayOf:b,element:x(),elementType:S(),instanceOf:C,node:T(),objectOf:k,oneOf:O,oneOfType:_,shape:D,exact:V};function w(L,j){return L===j?L!==0||1/L===1/j:L!==L&&j!==j}function f(L,j){this.message=L,this.data=j&&typeof j=="object"?j:{},this.stack=""}f.prototype=Error.prototype;function y(L){if(process.env.NODE_ENV!=="production")var j={},Y=0;function q(I,U,Q,W,ee,ne,B){if(W=W||m,ne=ne||Q,B!==r){if(c){var A=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 A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var z=W+":"+Q;!j[z]&&Y<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[z]=!0,Y++)}}return U[Q]==null?I?U[Q]===null?new f("The "+ee+" `"+ne+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new f("The "+ee+" `"+ne+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:L(U,Q,W,ee,ne)}var $=q.bind(null,!1);return $.isRequired=q.bind(null,!0),$}function v(L){function j(Y,q,$,I,U,Q){var W=Y[q],ee=F(W);if(ee!==L){var ne=K(W);return new f("Invalid "+I+" `"+U+"` of type "+("`"+ne+"` supplied to `"+$+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return y(j)}function p(){return y(l)}function b(L){function j(Y,q,$,I,U){if(typeof L!="function")return new f("Property `"+U+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var Q=Y[q];if(!Array.isArray(Q)){var W=F(Q);return new f("Invalid "+I+" `"+U+"` of type "+("`"+W+"` supplied to `"+$+"`, expected an array."))}for(var ee=0;ee<Q.length;ee++){var ne=L(Q,ee,$,I,U+"["+ee+"]",r);if(ne instanceof Error)return ne}return null}return y(j)}function x(){function L(j,Y,q,$,I){var U=j[Y];if(!i(U)){var Q=F(U);return new f("Invalid "+$+" `"+I+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return y(L)}function S(){function L(j,Y,q,$,I){var U=j[Y];if(!e.isValidElementType(U)){var Q=F(U);return new f("Invalid "+$+" `"+I+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return y(L)}function C(L){function j(Y,q,$,I,U){if(!(Y[q]instanceof L)){var Q=L.name||m,W=Z(Y[q]);return new f("Invalid "+I+" `"+U+"` of type "+("`"+W+"` supplied to `"+$+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(j)}function O(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function j(Y,q,$,I,U){for(var Q=Y[q],W=0;W<L.length;W++)if(w(Q,L[W]))return null;var ee=JSON.stringify(L,function(B,A){var z=K(A);return z==="symbol"?String(A):A});return new f("Invalid "+I+" `"+U+"` of value `"+String(Q)+"` "+("supplied to `"+$+"`, expected one of "+ee+"."))}return y(j)}function k(L){function j(Y,q,$,I,U){if(typeof L!="function")return new f("Property `"+U+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var Q=Y[q],W=F(Q);if(W!=="object")return new f("Invalid "+I+" `"+U+"` of type "+("`"+W+"` supplied to `"+$+"`, expected an object."));for(var ee in Q)if(o(Q,ee)){var ne=L(Q,ee,$,I,U+"."+ee,r);if(ne instanceof Error)return ne}return null}return y(j)}function _(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var j=0;j<L.length;j++){var Y=L[j];if(typeof Y!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(Y)+" at index "+j+"."),l}function q($,I,U,Q,W){for(var ee=[],ne=0;ne<L.length;ne++){var B=L[ne],A=B($,I,U,Q,W,r);if(A==null)return null;A.data&&o(A.data,"expectedType")&&ee.push(A.data.expectedType)}var z=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new f("Invalid "+Q+" `"+W+"` supplied to "+("`"+U+"`"+z+"."))}return y(q)}function T(){function L(j,Y,q,$,I){return M(j[Y])?null:new f("Invalid "+$+" `"+I+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return y(L)}function P(L,j,Y,q,$){return new f((L||"React class")+": "+j+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function D(L){function j(Y,q,$,I,U){var Q=Y[q],W=F(Q);if(W!=="object")return new f("Invalid "+I+" `"+U+"` of type `"+W+"` "+("supplied to `"+$+"`, expected `object`."));for(var ee in L){var ne=L[ee];if(typeof ne!="function")return P($,I,U,ee,K(ne));var B=ne(Q,ee,$,I,U+"."+ee,r);if(B)return B}return null}return y(j)}function V(L){function j(Y,q,$,I,U){var Q=Y[q],W=F(Q);if(W!=="object")return new f("Invalid "+I+" `"+U+"` of type `"+W+"` "+("supplied to `"+$+"`, expected `object`."));var ee=t({},Y[q],L);for(var ne in ee){var B=L[ne];if(o(L,ne)&&typeof B!="function")return P($,I,U,ne,K(B));if(!B)return new f("Invalid "+I+" `"+U+"` key `"+ne+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
56
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var A=B(Q,ne,$,I,U+"."+ne,r);if(A)return A}return null}return y(j)}function M(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(M);if(L===null||i(L))return!0;var j=h(L);if(j){var Y=j.call(L),q;if(j!==L.entries){for(;!(q=Y.next()).done;)if(!M(q.value))return!1}else for(;!(q=Y.next()).done;){var $=q.value;if($&&!M($[1]))return!1}}else return!1;return!0;default:return!1}}function N(L,j){return L==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function F(L){var j=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":N(j,L)?"symbol":j}function K(L){if(typeof L>"u"||L===null)return""+L;var j=F(L);if(j==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return j}function H(L){var j=K(L);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Z(L){return!L.constructor||!L.constructor.name?m:L.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},bd}var vd,qy;function LT(){if(qy)return vd;qy=1;var e=md();function t(){}function r(){}return r.resetWarningCache=t,vd=function(){function o(l,i,c,u,d,h){if(h!==e){var m=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 m.name="Invariant Violation",m}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},vd}var By;function qT(){if(By)return Fa.exports;if(By=1,process.env.NODE_ENV!=="production"){var e=My(),t=!0;Fa.exports=FT()(e.isElement,t)}else Fa.exports=LT()();return Fa.exports}var BT=qT();const n=Ut(BT);function zy(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=zy(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Te(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=zy(e))&&(o&&(o+=" "),o+=t);return o}function _e(e,t,r=void 0){const o={};for(const s in e){const a=e[s];let l="",i=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(l+=(i===!0?"":" ")+t(u),i=!1,r&&r[u]&&(l+=" "+r[u]))}o[s]=l}return o}let Uy=0;function zT(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(Uy+=1,r(`mui-${Uy}`))},[t]),o}const Wy={...E}.useId;function mr(e){if(Wy!==void 0){const t=Wy();return e??t}return zT(e)}const Mt=n.oneOfType([n.func,n.object]);function qr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":qr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var qa={exports:{}},Pt={};/**
57
- * @license React
58
- * react-is.production.js
59
- *
60
- * Copyright (c) Meta Platforms, Inc. and affiliates.
61
- *
62
- * This source code is licensed under the MIT license found in the
63
- * LICENSE file in the root directory of this source tree.
64
- */var Hy;function UT(){if(Hy)return Pt;Hy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function w(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case r:case s:case o:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case l:case i:case h:case d:return f;case a:return f;default:return y}}case t:return y}}}return Pt.ContextConsumer=a,Pt.ContextProvider=l,Pt.Element=e,Pt.ForwardRef=i,Pt.Fragment=r,Pt.Lazy=h,Pt.Memo=d,Pt.Portal=t,Pt.Profiler=s,Pt.StrictMode=o,Pt.Suspense=c,Pt.SuspenseList=u,Pt.isContextConsumer=function(f){return w(f)===a},Pt.isContextProvider=function(f){return w(f)===l},Pt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Pt.isForwardRef=function(f){return w(f)===i},Pt.isFragment=function(f){return w(f)===r},Pt.isLazy=function(f){return w(f)===h},Pt.isMemo=function(f){return w(f)===d},Pt.isPortal=function(f){return w(f)===t},Pt.isProfiler=function(f){return w(f)===s},Pt.isStrictMode=function(f){return w(f)===o},Pt.isSuspense=function(f){return w(f)===c},Pt.isSuspenseList=function(f){return w(f)===u},Pt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===o||f===c||f===u||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===i||f.$$typeof===g||f.getModuleId!==void 0)},Pt.typeOf=w,Pt}var Et={};/**
65
- * @license React
66
- * react-is.development.js
67
- *
68
- * Copyright (c) Meta Platforms, Inc. and affiliates.
69
- *
70
- * This source code is licensed under the MIT license found in the
71
- * LICENSE file in the root directory of this source tree.
72
- */var Yy;function WT(){return Yy||(Yy=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case t:switch(f=f.type,f){case o:case a:case s:case u:case d:return f;default:switch(f=f&&f.$$typeof,f){case i:case c:case m:case h:return f;case l:return f;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.for("react.client.reference");Et.ContextConsumer=l,Et.ContextProvider=i,Et.Element=t,Et.ForwardRef=c,Et.Fragment=o,Et.Lazy=m,Et.Memo=h,Et.Portal=r,Et.Profiler=a,Et.StrictMode=s,Et.Suspense=u,Et.SuspenseList=d,Et.isContextConsumer=function(f){return e(f)===l},Et.isContextProvider=function(f){return e(f)===i},Et.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Et.isForwardRef=function(f){return e(f)===c},Et.isFragment=function(f){return e(f)===o},Et.isLazy=function(f){return e(f)===m},Et.isMemo=function(f){return e(f)===h},Et.isPortal=function(f){return e(f)===r},Et.isProfiler=function(f){return e(f)===a},Et.isStrictMode=function(f){return e(f)===s},Et.isSuspense=function(f){return e(f)===u},Et.isSuspenseList=function(f){return e(f)===d},Et.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===a||f===s||f===u||f===d||f===g||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===h||f.$$typeof===i||f.$$typeof===l||f.$$typeof===c||f.$$typeof===w||f.getModuleId!==void 0)},Et.typeOf=e}()),Et}var Ky;function HT(){return Ky||(Ky=1,process.env.NODE_ENV==="production"?qa.exports=UT():qa.exports=WT()),qa.exports}var Ba=HT();function Br(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gy(e){if(E.isValidElement(e)||Ba.isValidElementType(e)||!Br(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Gy(e[r])}),t}function Zt(e,t,r={clone:!0}){const o=r.clone?{...e}:e;return Br(e)&&Br(t)&&Object.keys(t).forEach(s=>{E.isValidElement(t[s])||Ba.isValidElementType(t[s])?o[s]=t[s]:Br(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Br(e[s])?o[s]=Zt(e[s],t[s],r):r.clone?o[s]=Br(t[s])?Gy(t[s]):t[s]:o[s]=t[s]}),o}function No(e,t){return t?Zt(e,t,{clone:!1}):e}const hn=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.string,n.object,n.array]):{};function YT(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var l,i;const a=/min-width:\s*([0-9.]+)/;return+(((l=o.match(a))==null?void 0:l[1])||0)-+(((i=s.match(a))==null?void 0:i[1])||0)});return r.length?r.reduce((o,s)=>{const a=t[s];return delete o[s],o[s]=a,o},{...t}):t}function KT(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function GT(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
73
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:qr(18,`(${t})`));return null}const[,o,s]=r,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(a)}function XT(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...i)=>t(e.breakpoints.up(...i),l),a.down=(...i)=>t(e.breakpoints.down(...i),l),a.between=(...i)=>t(e.breakpoints.between(...i),l),a.only=(...i)=>t(e.breakpoints.only(...i),l),a.not=(...i)=>{const c=t(e.breakpoints.not(...i),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},s=a=>(r(o,a),o);return r(s),{...e,containerQueries:s}}const za={xs:0,sm:600,md:900,lg:1200,xl:1536},Xy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${za[e]}px)`},JT={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:za[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function nn(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||Xy;return t.reduce((l,i,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=o.breakpoints||Xy;return Object.keys(t).reduce((l,i)=>{if(KT(a.keys,i)){const c=GT(o.containerQueries?o:JT,i);c&&(l[c]=r(t[i],i))}else if(Object.keys(a.values||za).includes(i)){const c=a.up(i);l[c]=r(t[i],i)}else{const c=i;l[c]=t[c]}return l},{})}return r(t)}function ZT(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,s)=>{const a=e.up(s);return o[a]={},o},{}))||{}}function QT(e,t){return e.reduce((r,o)=>{const s=r[o];return(!s||Object.keys(s).length===0)&&delete r[o],r},t)}function Ua(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const o=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function Wa(e,t,r,o=r){let s;return typeof e=="function"?s=e(r):Array.isArray(e)?s=e[r]||o:s=Ua(e,r)||o,t&&(s=t(s,o,e)),s}function Lt(e){const{prop:t,cssProperty:r=e.prop,themeKey:o,transform:s}=e,a=l=>{if(l[t]==null)return null;const i=l[t],c=l.theme,u=Ua(c,o)||{};return nn(l,i,h=>{let m=Wa(u,s,h);return h===m&&typeof h=="string"&&(m=Wa(u,s,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?m:{[r]:m}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:hn}:{},a.filterProps=[t],a}function e1(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const t1={m:"margin",p:"padding"},r1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},n1=e1(e=>{if(e.length>2)if(Jy[e])e=Jy[e];else return[e];const[t,r]=e.split(""),o=t1[t],s=r1[r]||"";return Array.isArray(s)?s.map(a=>o+a):[o+s]}),Ha=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ya=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],o1=[...Ha,...Ya];function Ao(e,t,r,o){const s=Ua(e,t,!0)??r;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof s=="string"?`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>s.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${l} > ${s.length-1}, you need to add the missing values.`].join(`
13
+ deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);l(c,u),s(c,d)}};function a({schema:c}){const u={},d={};for(const m in c){if(m==="__proto__")continue;const h=Array.isArray(c[m])?u:d;h[m]=c[m]}return[u,d]}function l(c,u=c.schema){const{gen:d,data:m,it:h}=c;if(Object.keys(u).length===0)return;const y=d.let("missing");for(const g in u){const f=u[g];if(f.length===0)continue;const b=(0,n.propertyInData)(d,m,g,h.opts.ownProperties);c.setParams({property:g,depsCount:f.length,deps:f.join(", ")}),h.allErrors?d.if(b,()=>{for(const v of f)(0,n.checkReportMissingProp)(c,v)}):(d.if((0,t._)`${b} && (${(0,n.checkMissingProp)(c,f,y)})`),(0,n.reportMissingProp)(c,y),d.else())}}e.validatePropertyDeps=l;function s(c,u=c.schema){const{gen:d,data:m,keyword:h,it:y}=c,g=d.name("valid");for(const f in u)(0,r.alwaysValidSchema)(y,u[f])||(d.if((0,n.propertyInData)(d,m,f,y.opts.ownProperties),()=>{const b=c.subschema({keyword:h,schemaProp:f},g);c.mergeValidEvaluated(b,g)},()=>d.var(g,!0)),c.ok(g))}e.validateSchemaDeps=s,e.default=i})(Rc)),Rc}var pi={},Qh;function g_(){if(Qh)return pi;Qh=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:a,schema:l,data:s,it:c}=i;if((0,t.alwaysValidSchema)(c,l))return;const u=a.name("valid");a.forIn("key",s,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},u),a.if((0,e.not)(u),()=>{i.error(!0),c.allErrors||a.break()})}),i.ok(u)}};return pi.default=n,pi}var hi={},em;function tm(){if(em)return hi;em=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=sr(),t=De(),r=Dr(),n=Ge(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:s,schema:c,parentSchema:u,data:d,errsCount:m,it:h}=l;if(!m)throw new Error("ajv implementation error");const{allErrors:y,opts:g}=h;if(h.props=!0,g.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,c))return;const f=(0,e.allSchemaProperties)(u.properties),b=(0,e.allSchemaProperties)(u.patternProperties);v(),l.ok((0,t._)`${m} === ${r.default.errors}`);function v(){s.forIn("key",d,E=>{!f.length&&!b.length?S(E):s.if(p(E),()=>S(E))})}function p(E){let x;if(f.length>8){const P=(0,n.schemaRefOrVal)(h,u.properties,"properties");x=(0,e.isOwnProperty)(s,P,E)}else f.length?x=(0,t.or)(...f.map(P=>(0,t._)`${E} === ${P}`)):x=t.nil;return b.length&&(x=(0,t.or)(x,...b.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${E})`))),(0,t.not)(x)}function _(E){s.code((0,t._)`delete ${d}[${E}]`)}function S(E){if(g.removeAdditional==="all"||g.removeAdditional&&c===!1){_(E);return}if(c===!1){l.setParams({additionalProperty:E}),l.error(),y||s.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(h,c)){const x=s.name("valid");g.removeAdditional==="failing"?(w(E,x,!1),s.if((0,t.not)(x),()=>{l.reset(),_(E)})):(w(E,x),y||s.if((0,t.not)(x),()=>s.break()))}}function w(E,x,P){const k={keyword:"additionalProperties",dataProp:E,dataPropType:n.Type.Str};P===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(k,x)}}};return hi.default=a,hi}var mi={},rm;function v_(){if(rm)return mi;rm=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=Vo(),t=sr(),r=Ge(),n=tm(),i={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,parentSchema:c,data:u,it:d}=a;d.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(s);for(const b of m)d.definedProperties.add(b);d.opts.unevaluated&&m.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(l,(0,r.toHash)(m),d.props));const h=m.filter(b=>!(0,r.alwaysValidSchema)(d,s[b]));if(h.length===0)return;const y=l.name("valid");for(const b of h)g(b)?f(b):(l.if((0,t.propertyInData)(l,u,b,d.opts.ownProperties)),f(b),d.allErrors||l.else().var(y,!0),l.endIf()),a.it.definedProperties.add(b),a.ok(y);function g(b){return d.opts.useDefaults&&!d.compositeRule&&s[b].default!==void 0}function f(b){a.subschema({keyword:"properties",schemaProp:b,dataProp:b},y)}}};return mi.default=i,mi}var yi={},nm;function b_(){if(nm)return yi;nm=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=sr(),t=De(),r=Ge(),n=Ge(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:l,schema:s,data:c,parentSchema:u,it:d}=a,{opts:m}=d,h=(0,e.allSchemaProperties)(s),y=h.filter(S=>(0,r.alwaysValidSchema)(d,s[S]));if(h.length===0||y.length===h.length&&(!d.opts.unevaluated||d.props===!0))return;const g=m.strictSchema&&!m.allowMatchingProperties&&u.properties,f=l.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(l,d.props));const{props:b}=d;v();function v(){for(const S of h)g&&p(S),d.allErrors?_(S):(l.var(f,!0),_(S),l.if(f))}function p(S){for(const w in g)new RegExp(S).test(w)&&(0,r.checkStrictMode)(d,`property ${w} matches pattern ${S} (use allowMatchingProperties)`)}function _(S){l.forIn("key",c,w=>{l.if((0,t._)`${(0,e.usePattern)(a,S)}.test(${w})`,()=>{const E=y.includes(S);E||a.subschema({keyword:"patternProperties",schemaProp:S,dataProp:w,dataPropType:n.Type.Str},f),d.opts.unevaluated&&b!==!0?l.assign((0,t._)`${b}[${w}]`,!0):!E&&!d.allErrors&&l.if((0,t.not)(f),()=>l.break())})})}}};return yi.default=i,yi}var gi={},om;function __(){if(om)return gi;om=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=Ge(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:a}=r;if((0,e.alwaysValidSchema)(a,i)){r.fail();return}const l=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),r.failResult(l,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return gi.default=t,gi}var vi={},im;function w_(){if(im)return vi;im=1,Object.defineProperty(vi,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sr().validateUnion,error:{message:"must match a schema in anyOf"}};return vi.default=t,vi}var bi={},am;function S_(){if(am)return bi;am=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:a,schema:l,parentSchema:s,it:c}=i;if(!Array.isArray(l))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const u=l,d=a.let("valid",!1),m=a.let("passing",null),h=a.name("_valid");i.setParams({passing:m}),a.block(y),i.result(d,()=>i.reset(),()=>i.error(!0));function y(){u.forEach((g,f)=>{let b;(0,t.alwaysValidSchema)(c,g)?a.var(h,!0):b=i.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},h),f>0&&a.if((0,e._)`${h} && ${d}`).assign(d,!1).assign(m,(0,e._)`[${m}, ${f}]`).else(),a.if(h,()=>{a.assign(d,!0),a.assign(m,f),b&&i.mergeEvaluated(b,e.Name)})})}}};return bi.default=n,bi}var _i={},sm;function E_(){if(sm)return _i;sm=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=Ge(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:a}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const l=n.name("valid");i.forEach((s,c)=>{if((0,e.alwaysValidSchema)(a,s))return;const u=r.subschema({keyword:"allOf",schemaProp:c},l);r.ok(l),r.mergeEvaluated(u)})}};return _i.default=t,_i}var wi={},lm;function O_(){if(lm)return wi;lm=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=De(),t=Ge(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:a})=>(0,e.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,e._)`{failingKeyword: ${a.ifClause}}`},code(a){const{gen:l,parentSchema:s,it:c}=a;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const u=i(c,"then"),d=i(c,"else");if(!u&&!d)return;const m=l.let("valid",!0),h=l.name("_valid");if(y(),a.reset(),u&&d){const f=l.let("ifClause");a.setParams({ifClause:f}),l.if(h,g("then",f),g("else",f))}else u?l.if(h,g("then")):l.if((0,e.not)(h),g("else"));a.pass(m,()=>a.error(!0));function y(){const f=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);a.mergeEvaluated(f)}function g(f,b){return()=>{const v=a.subschema({keyword:f},h);l.assign(m,h),a.mergeValidEvaluated(v,m),b?l.assign(b,(0,e._)`${f}`):a.setParams({ifClause:f})}}}};function i(a,l){const s=a.schema[l];return s!==void 0&&!(0,t.alwaysValidSchema)(a,s)}return wi.default=n,wi}var Si={},cm;function x_(){if(cm)return Si;cm=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Ge(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Si.default=t,Si}var um;function C_(){if(um)return ci;um=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Hh(),t=p_(),r=Gh(),n=h_(),i=m_(),a=y_(),l=g_(),s=tm(),c=v_(),u=b_(),d=__(),m=w_(),h=S_(),y=E_(),g=O_(),f=x_();function b(v=!1){const p=[d.default,m.default,h.default,y.default,g.default,f.default,l.default,s.default,a.default,c.default,u.default];return v?p.push(t.default,n.default):p.push(e.default,r.default),p.push(i.default),p}return ci.default=b,ci}var Ei={},Oi={},dm;function T_(){if(dm)return Oi;dm=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=De(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:a,data:l,$data:s,schema:c,schemaCode:u,it:d}=n,{opts:m,errSchemaPath:h,schemaEnv:y,self:g}=d;if(!m.validateFormats)return;s?f():b();function f(){const v=a.scopeValue("formats",{ref:g.formats,code:m.code.formats}),p=a.const("fDef",(0,e._)`${v}[${u}]`),_=a.let("fType"),S=a.let("format");a.if((0,e._)`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>a.assign(_,(0,e._)`${p}.type || "string"`).assign(S,(0,e._)`${p}.validate`),()=>a.assign(_,(0,e._)`"string"`).assign(S,p)),n.fail$data((0,e.or)(w(),E()));function w(){return m.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function E(){const x=y.$async?(0,e._)`(${p}.async ? await ${S}(${l}) : ${S}(${l}))`:(0,e._)`${S}(${l})`,P=(0,e._)`(typeof ${S} == "function" ? ${x} : ${S}.test(${l}))`;return(0,e._)`${S} && ${S} !== true && ${_} === ${i} && !${P}`}}function b(){const v=g.formats[c];if(!v){w();return}if(v===!0)return;const[p,_,S]=E(v);p===i&&n.pass(x());function w(){if(m.strictSchema===!1){g.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function E(P){const k=P instanceof RegExp?(0,e.regexpCode)(P):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(c)}`:void 0,j=a.scopeValue("formats",{key:c,ref:P,code:k});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${j}.validate`]:["string",P,j]}function x(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${l})`}return typeof _=="function"?(0,e._)`${S}(${l})`:(0,e._)`${S}.test(${l})`}}}};return Oi.default=r,Oi}var fm;function P_(){if(fm)return Ei;fm=1,Object.defineProperty(Ei,"__esModule",{value:!0});const t=[T_().default];return Ei.default=t,Ei}var tn={},pm;function $_(){return pm||(pm=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.contentVocabulary=tn.metadataVocabulary=void 0,tn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],tn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),tn}var hm;function R_(){if(hm)return Ko;hm=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=e_(),t=f_(),r=C_(),n=P_(),i=$_(),a=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Ko.default=a,Ko}var xi={},Bn={},mm;function k_(){if(mm)return Bn;mm=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Bn.DiscrError=e={})),Bn}var ym;function I_(){if(ym)return xi;ym=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=De(),t=k_(),r=Cc(),n=Wo(),i=Ge(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:u}})=>(0,e._)`{error: ${s}, tag: ${u}, tagValue: ${c}}`},code(s){const{gen:c,data:u,schema:d,parentSchema:m,it:h}=s,{oneOf:y}=m;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const g=d.propertyName;if(typeof g!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const f=c.let("valid",!1),b=c.const("tag",(0,e._)`${u}${(0,e.getProperty)(g)}`);c.if((0,e._)`typeof ${b} == "string"`,()=>v(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:b,tagName:g})),s.ok(f);function v(){const S=_();c.if(!1);for(const w in S)c.elseIf((0,e._)`${b} === ${w}`),c.assign(f,p(S[w]));c.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:b,tagName:g}),c.endIf()}function p(S){const w=c.name("valid"),E=s.subschema({keyword:"oneOf",schemaProp:S},w);return s.mergeEvaluated(E,e.Name),w}function _(){var S;const w={},E=P(m);let x=!0;for(let R=0;R<y.length;R++){let O=y[R];if(O?.$ref&&!(0,i.schemaHasRulesButRef)(O,h.self.RULES)){const N=O.$ref;if(O=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,N),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new n.default(h.opts.uriResolver,h.baseId,N)}const D=(S=O?.properties)===null||S===void 0?void 0:S[g];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);x=x&&(E||P(O)),k(D,R)}if(!x)throw new Error(`discriminator: "${g}" must be required`);return w;function P({required:R}){return Array.isArray(R)&&R.includes(g)}function k(R,O){if(R.const)j(R.const,O);else if(R.enum)for(const D of R.enum)j(D,O);else throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`)}function j(R,O){if(typeof R!="string"||R in w)throw new Error(`discriminator: "${g}" values must be unique strings`);w[R]=O}}}};return xi.default=l,xi}const j_={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var gm;function vm(){return gm||(gm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=X0(),n=R_(),i=I_(),a=j_,l=["/properties"],s="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,l):a;this.addMetaSchema(g,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=Vo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=De();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var m=xc();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var h=Wo();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Mo,Mo.exports)),Mo.exports}var N_=vm();const A_=Ut(N_);var Ci={exports:{}},kc={},bm;function M_(){return bm||(bm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(R,O){return{validate:R,compare:O}}e.fullFormats={date:t(a,l),time:t(c(!0),u),"date-time":t(h(!0),y),"iso-time":t(c(),d),"iso-date-time":t(h(),g),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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:j,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:_,int32:{type:"number",validate:E},int64:{type:"number",validate:x},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,y),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-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,g),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 r(R){return R%4===0&&(R%100!==0||R%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(R){const O=n.exec(R);if(!O)return!1;const D=+O[1],N=+O[2],U=+O[3];return N>=1&&N<=12&&U>=1&&U<=(N===2&&r(D)?29:i[N])}function l(R,O){if(R&&O)return R>O?1:R<O?-1:0}const s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(R){return function(D){const N=s.exec(D);if(!N)return!1;const U=+N[1],W=+N[2],le=+N[3],ce=N[4],ue=N[5]==="-"?-1:1,z=+(N[6]||0),C=+(N[7]||0);if(z>23||C>59||R&&!ce)return!1;if(U<=23&&W<=59&&le<60)return!0;const V=W-C*ue,M=U-z*ue-(V<0?1:0);return(M===23||M===-1)&&(V===59||V===-1)&&le<61}}function u(R,O){if(!(R&&O))return;const D=new Date("2020-01-01T"+R).valueOf(),N=new Date("2020-01-01T"+O).valueOf();if(D&&N)return D-N}function d(R,O){if(!(R&&O))return;const D=s.exec(R),N=s.exec(O);if(D&&N)return R=D[1]+D[2]+D[3],O=N[1]+N[2]+N[3],R>O?1:R<O?-1:0}const m=/t|\s/i;function h(R){const O=c(R);return function(N){const U=N.split(m);return U.length===2&&a(U[0])&&O(U[1])}}function y(R,O){if(!(R&&O))return;const D=new Date(R).valueOf(),N=new Date(O).valueOf();if(D&&N)return D-N}function g(R,O){if(!(R&&O))return;const[D,N]=R.split(m),[U,W]=O.split(m),le=l(D,U);if(le!==void 0)return le||u(N,W)}const f=/\/|:/,b=/^(?:[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;function v(R){return f.test(R)&&b.test(R)}const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(R){return p.lastIndex=0,p.test(R)}const S=-2147483648,w=2**31-1;function E(R){return Number.isInteger(R)&&R<=w&&R>=S}function x(R){return Number.isInteger(R)}function P(){return!0}const k=/[^\\]\\Z/;function j(R){if(k.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(kc)),kc}var Ic={},_m;function D_(){return _m||(_m=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=vm(),r=De(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:s,schemaCode:c})=>(0,r.str)`should be ${i[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>(0,r._)`{comparison: ${i[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:c,data:u,schemaCode:d,keyword:m,it:h}=s,{opts:y,self:g}=h;if(!y.validateFormats)return;const f=new t.KeywordCxt(h,g.RULES.all.format.definition,"format");f.$data?b():v();function b(){const _=c.scopeValue("formats",{ref:g.formats,code:y.code.formats}),S=c.const("fmt",(0,r._)`${_}[${f.schemaCode}]`);s.fail$data((0,r.or)((0,r._)`typeof ${S} != "object"`,(0,r._)`${S} instanceof RegExp`,(0,r._)`typeof ${S}.compare != "function"`,p(S)))}function v(){const _=f.schema,S=g.formats[_];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${m}": format "${_}" does not define "compare" function`);const w=c.scopeValue("formats",{key:_,ref:S,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(_)}`:void 0});s.fail$data(p(w))}function p(_){return(0,r._)`${_}.compare(${u}, ${d}) ${i[m].fail} 0`}},dependencies:["format"]};const l=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=l})(Ic)),Ic}var wm;function q_(){return wm||(wm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=M_(),n=D_(),i=De(),a=new i.Name("fullFormats"),l=new i.Name("fastFormats"),s=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,r.fullFormats,a),u;const[m,h]=d.mode==="fast"?[r.fastFormats,l]:[r.fullFormats,a],y=d.formats||r.formatNames;return c(u,y,m,h),d.keywords&&(0,n.default)(u),u};s.get=(u,d="full")=>{const h=(d==="fast"?r.fastFormats:r.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function c(u,d,m,h){var y,g;(y=(g=u.opts.code).formats)!==null&&y!==void 0||(g.formats=(0,i._)`require("ajv-formats/dist/formats").${h}`);for(const f of d)u.addFormat(f,m[f])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Ci,Ci.exports)),Ci.exports}var L_=q_();const F_=Ut(L_),Ti=new A_({allErrors:!0,strict:!1,keywords:["readonly"]});F_(Ti);const jc=new Map,z_=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((r,n)=>r&&r[n],e)}catch{return}},V_=(e,t)=>{try{const r=Ao(t);if(!e)return!0;const n=e.match(/^(.*?)\s*(===|!==|>)\s*('([^']*)'|"([^"]*)'|([0-9.]+))$/);if(!n){console.warn(`Unsupported condition format: ${e}`);return}const i=n[1].trim(),a=n[2],l=n[3],s=n[4],c=n[5],u=n[6],d=z_(r,i);let m;if(s!==void 0)m=s;else if(c!==void 0)m=c;else if(u!==void 0)m=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(a){case"===":return d===m;case"!==":return d!==m;case">":return d>m;case"<":return d<m;default:console.warn(`Unsupported operator: ${a}`);return}}catch(r){console.error("Custom evaluation error:",r);return}},Ft=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},Nc=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},Sm=(e,t)=>{if(!t)return e;const r=[],n=Object.keys(e).length===0?t:e;return t.forEach((i,a)=>{r.push({name:n[a],value:i})}),r},Xt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ao(r.global.formDefaults):{};return r.global&&r.global.supressPropertyTitles===!0?n.title=t.title:n.title=t.title||e,t.description&&(n.description=t.description),(r.required===!0||t.required===!0)&&(n.required=!0),t.maxLength&&(n.maxlength=t.maxLength),t.minLength&&(n.minlength=t.minLength),(t.readOnly||t.readonly)&&(n.readonly=!0),t.minimum&&(n.minimum=t.minimum+(t.exclusiveMinimum?1:0)),t.maximum&&(n.maximum=t.maximum-(t.exclusiveMaximum?1:0)),t.validationMessage&&(n.validationMessage=t.validationMessage),t.enumNames&&(n.titleMap=Sm(t.enumNames,t.enum)),n.schema=t,n},B_=(e,t,r)=>{if(Ft(t.type)==="tBoolean"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[Rt.stringify(r.path)]=n,n}},Em=(e,t,r)=>{if(Ft(t.type)==="string"&&!t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="text",r.lookup[Rt.stringify(r.path)]=n,n}},Om=(e,t,r)=>{if(Ft(t.type)==="number"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},xm=(e,t,r)=>{if(Ft(t.type)==="integer"){const n=Xt(e,t,r);return n.key=r.path,n.type="number",r.lookup[Rt.stringify(r.path)]=n,n}},U_=(e,t,r)=>{if(Ft(t.type)==="date"){const n=Xt(e,t,r);return n.key=r.path,n.type="date",r.lookup[Rt.stringify(r.path)]=n,n}},Cm=(e,t,r)=>{if(Ft(t.type)==="boolean"){const n=Xt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[Rt.stringify(r.path)]=n,n}},Tm=(e,t,r)=>{if(Ft(t.type)==="string"&&t.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=Nc(t.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Pm=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?Pm(r):(r==null||r==="")&&delete e[t]}),$m=(e,t,r)=>{if(Ft(t.type)==="array"&&t.items&&t.items.enum){const n=Xt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=Nc(t.items.enum)),r.lookup[Rt.stringify(r.path)]=n,n}},Un=(e,t,r)=>{const n=Lr[Ft(t.type)];if(n){let i;for(let a=0;a<n.length;a+=1)if(i=n[a](e,t,r),i)return i.schema["x-schema-form"]&&i0(i.schema["x-schema-form"])&&(i=A0(i,i.schema["x-schema-form"])),i}},Rm=(e,t,r)=>{if(Ft(t.type)==="object"){const n=Xt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[Rt.stringify(r.path)]=n,t.properties&&Object.keys(t.properties).forEach(i=>{if(Object.prototype.hasOwnProperty.call(t.properties,i)){const a=r.path.slice();if(a.push(i),r.ignore[Rt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=Un(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},W_=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[Rt.stringify(r.path)]=n,Array.isArray(t.items)){const i=t.required&&t.required.indexOf(r.path[r.path.length-1]);return n.items=t.items.reduce((a,l,s)=>{const c=r.path.slice();c.push(s);const u=Un(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},km=(e,t,r)=>{if(Ft(t.type)==="array"){const n=Xt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[Rt.stringify(r.path)]=n,typeof t.items<"u"){const i=t.required&&t.required.indexOf(r.path[r.path.length-1])!==-1,a=r.path.slice();a.push("");const l=Un(e,t.items,{path:a,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});l?n.items=[l]:n.items=t.items}return n}},Lr={string:[Tm,Em],object:[Rm],number:[Om],integer:[xm],boolean:[Cm],array:[$m,W_,km],date:[U_],tBoolean:[B_]},Im=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},Ft(e.type)==="object")e.properties&&Object.keys(e.properties).forEach(a=>{if(Object.prototype.hasOwnProperty.call(e.properties,a)&&t[a]!==!0){const l=e.required&&e.required.indexOf(a)!==-1,s=Un(a,e.properties[a],{path:[a],lookup:i,ignore:t,required:l,global:r});s&&n.push(s)}});else throw new Error('Not implemented. Only type "object" allowed at root level of schema.');return{form:n,lookup:i}},jm=e=>e,H_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].push(t)},K_=(e,t)=>{Lr[e]||(Lr[e]=[]),Lr[e].unshift(t)},G_=(e,t,r,n)=>{n=typeof n<"u"?n:!0,r=r||[];const i=(a,l,s)=>{if(l(a,s),a.properties&&Object.keys(a.properties).forEach(c=>{if(Object.prototype.hasOwnProperty.call(a.properties,c)){const u=s.slice();u.push(c),i(a.properties[c],l,u)}}),!n&&a.items){const c=s.slice();c.push(""),i(a.items,l,c)}};i(e,t,r||[])},Ac=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{Ac(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{Ac(n,t)})})},Mc=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=Im(e,r,n),l=t.indexOf("*");l!==-1&&(t=t.slice(0,l).concat(a.form).concat(t.slice(l+1)));const{lookup:s}=a;return jm(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=Rt.parse(c.key)),c&&c.itemForm){c.items=[];const u=Rt.stringify(c.key);s[u].items.forEach(m=>{const h=Ao(c.itemForm);h.key=m.key,c.items.push(h)})}if(c&&c.key){const u=Rt.stringify(c.key);if(s[u]){const d=s[u];Object.keys(d).forEach(m=>{Object.prototype.hasOwnProperty.call(d,m)&&c[m]===void 0&&(c[m]=d[m])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=Mc(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=Mc(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&q0(c.schema.default)&&(c.schema.default=!1),c}))};function Y_(e,t,r,n){const i=/^\d+$/;t||(t=this);const a=typeof e=="string"?Rt.parse(e):e;if(typeof r<"u"&&a.length===1||(typeof r<"u"&&typeof t[a[0]]>"u"&&(t[a[0]]=a.length>=2&&i.test(a[1])?[]:{}),typeof n<"u"&&["number","integer"].indexOf(n)>-1&&typeof r>"u"))return t[a[0]]=r,t;let l=t[a[0]];for(let s=1;s<a.length;s+=1){if(a[s]==="")return;if(typeof r<"u"){if(s===a.length-1)return l[a[s]]=r,r;let c=l[a[s]];(typeof c>"u"||c===null)&&(c=i.test(a[s+1])?[]:{},l[a[s]]=c),l=c}else l&&(l=l[a[s]])}return l}const Nm=(e,t)=>{if(jc.has(e))return jc.get(e);try{const r=Ti.compile(t);return jc.set(e,r),r}catch{return null}};function J_(e){const t=JSON.stringify(e);let r=0;for(let n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return r.toString(16)}const lr={traverseForm:Ac,traverseSchema:G_,prependRule:K_,appendRule:H_,postProcessFn:jm,getDefaults:Im,defaultFormDefinition:Un,defaults:Lr,array:km,fieldset:Rm,checkboxes:$m,select:Tm,checkbox:Cm,integer:xm,number:Om,text:Em,stdFormObj:Xt,canonicalTitleMap:Sm,enumToTitleMap:Nc,stripNullType:Ft,merge:Mc,validate:(e,t)=>{if(!e||!e.schema)return{valid:!0};(t===""||e.type==="number"&&(t===null||isNaN(parseFloat(t))))&&(t=void 0);const r=e.key[e.key.length-1],{schema:n}=e,i={type:"object",properties:{},$schema:"http://json-schema.org/draft-07/schema#"},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l=Nm(r,i);return l?l(t===void 0?{}:{[e.key[e.key.length-1]]:t})?{valid:!0}:{valid:!1,error:Ti.errorsText(l.errors,{})}:{valid:!1,error:"Invalid Schema"}},validateBySchema:(e,t)=>{e.$schema||(e.$schema="http://json-schema.org/draft-07/schema#");let r=J_(e);const n=Nm(r,e);return n?n(t===void 0?{}:t)?{valid:!0}:{valid:!1,error:Ti.errorsText(n.errors,{})}:{valid:!1,error:"Invalid Schema"}},safeEval:V_,selectOrSet:Y_,getValueFromModel:(e,t)=>{let r;return Array.isArray(t)?(t.reduce((n,i)=>n&&n[i],e),r=t.reduce((n,i)=>n&&n[i],e)):r=e[t],r},getTitleByValue:(e,t)=>{for(let r=0;r<e.length;r+=1){const n=e[r];if(n.value===t)return n.name}},removeEmpty:Pm};var Pi={exports:{}},$i={exports:{}},Xe={};var Am;function X_(){if(Am)return Xe;Am=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case m:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case g:case y:case l:return w;default:return E}}case r:return E}}}function S(w){return _(w)===u}return Xe.AsyncMode=c,Xe.ConcurrentMode=u,Xe.ContextConsumer=s,Xe.ContextProvider=l,Xe.Element=t,Xe.ForwardRef=d,Xe.Fragment=n,Xe.Lazy=g,Xe.Memo=y,Xe.Portal=r,Xe.Profiler=a,Xe.StrictMode=i,Xe.Suspense=m,Xe.isAsyncMode=function(w){return S(w)||_(w)===c},Xe.isConcurrentMode=S,Xe.isContextConsumer=function(w){return _(w)===s},Xe.isContextProvider=function(w){return _(w)===l},Xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Xe.isForwardRef=function(w){return _(w)===d},Xe.isFragment=function(w){return _(w)===n},Xe.isLazy=function(w){return _(w)===g},Xe.isMemo=function(w){return _(w)===y},Xe.isPortal=function(w){return _(w)===r},Xe.isProfiler=function(w){return _(w)===a},Xe.isStrictMode=function(w){return _(w)===i},Xe.isSuspense=function(w){return _(w)===m},Xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===y||w.$$typeof===l||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===v||w.$$typeof===p||w.$$typeof===f)},Xe.typeOf=_,Xe}var Ze={};var Mm;function Z_(){return Mm||(Mm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function _(I){return typeof I=="string"||typeof I=="function"||I===n||I===u||I===a||I===i||I===m||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===y||I.$$typeof===l||I.$$typeof===s||I.$$typeof===d||I.$$typeof===b||I.$$typeof===v||I.$$typeof===p||I.$$typeof===f)}function S(I){if(typeof I=="object"&&I!==null){var G=I.$$typeof;switch(G){case t:var X=I.type;switch(X){case c:case u:case n:case a:case i:case m:return X;default:var oe=X&&X.$$typeof;switch(oe){case s:case d:case g:case y:case l:return oe;default:return G}}case r:return G}}}var w=c,E=u,x=s,P=l,k=t,j=d,R=n,O=g,D=y,N=r,U=a,W=i,le=m,ce=!1;function ue(I){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(I)||S(I)===c}function z(I){return S(I)===u}function C(I){return S(I)===s}function V(I){return S(I)===l}function M(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function T(I){return S(I)===d}function $(I){return S(I)===n}function q(I){return S(I)===g}function K(I){return S(I)===y}function re(I){return S(I)===r}function ie(I){return S(I)===a}function te(I){return S(I)===i}function L(I){return S(I)===m}Ze.AsyncMode=w,Ze.ConcurrentMode=E,Ze.ContextConsumer=x,Ze.ContextProvider=P,Ze.Element=k,Ze.ForwardRef=j,Ze.Fragment=R,Ze.Lazy=O,Ze.Memo=D,Ze.Portal=N,Ze.Profiler=U,Ze.StrictMode=W,Ze.Suspense=le,Ze.isAsyncMode=ue,Ze.isConcurrentMode=z,Ze.isContextConsumer=C,Ze.isContextProvider=V,Ze.isElement=M,Ze.isForwardRef=T,Ze.isFragment=$,Ze.isLazy=q,Ze.isMemo=K,Ze.isPortal=re,Ze.isProfiler=ie,Ze.isStrictMode=te,Ze.isSuspense=L,Ze.isValidElementType=_,Ze.typeOf=S})()),Ze}var Dm;function qm(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?$i.exports=X_():$i.exports=Z_()),$i.exports}var Dc,Lm;function Q_(){if(Lm)return Dc;Lm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},s=0;s<10;s++)l["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Dc=i()?Object.assign:function(a,l){for(var s,c=n(a),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var m in s)t.call(s,m)&&(c[m]=s[m]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(c[u[h]]=s[u[h]])}}return c},Dc}var qc,Fm;function Lc(){if(Fm)return qc;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qc=e,qc}var Fc,zm;function Vm(){return zm||(zm=1,Fc=Function.call.bind(Object.prototype.hasOwnProperty)),Fc}var zc,Bm;function ew(){if(Bm)return zc;Bm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lc(),r={},n=Vm();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(a,l,s,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=a[d](l,d,c,s,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zc=i,zc}var Vc,Um;function tw(){if(Um)return Vc;Um=1;var e=qm(),t=Q_(),r=Lc(),n=Vm(),i=ew(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return Vc=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(z){var C=z&&(u&&z[u]||z[d]);if(typeof C=="function")return C}var h="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:p(),arrayOf:_,element:S(),elementType:w(),instanceOf:E,node:j(),objectOf:P,oneOf:x,oneOfType:k,shape:O,exact:D};function g(z,C){return z===C?z!==0||1/z===1/C:z!==z&&C!==C}function f(z,C){this.message=z,this.data=C&&typeof C=="object"?C:{},this.stack=""}f.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var C={},V=0;function M($,q,K,re,ie,te,L){if(re=re||h,te=te||K,L!==r){if(c){var I=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 I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=re+":"+K;!C[G]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),C[G]=!0,V++)}}return q[K]==null?$?q[K]===null?new f("The "+ie+" `"+te+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+ie+" `"+te+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:z(q,K,re,ie,te)}var T=M.bind(null,!1);return T.isRequired=M.bind(null,!0),T}function v(z){function C(V,M,T,$,q,K){var re=V[M],ie=W(re);if(ie!==z){var te=le(re);return new f("Invalid "+$+" `"+q+"` of type "+("`"+te+"` supplied to `"+T+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(C)}function p(){return b(l)}function _(z){function C(V,M,T,$,q){if(typeof z!="function")return new f("Property `"+q+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var K=V[M];if(!Array.isArray(K)){var re=W(K);return new f("Invalid "+$+" `"+q+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var te=z(K,ie,T,$,q+"["+ie+"]",r);if(te instanceof Error)return te}return null}return b(C)}function S(){function z(C,V,M,T,$){var q=C[V];if(!s(q)){var K=W(q);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return b(z)}function w(){function z(C,V,M,T,$){var q=C[V];if(!e.isValidElementType(q)){var K=W(q);return new f("Invalid "+T+" `"+$+"` of type "+("`"+K+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return b(z)}function E(z){function C(V,M,T,$,q){if(!(V[M]instanceof z)){var K=z.name||h,re=ue(V[M]);return new f("Invalid "+$+" `"+q+"` of type "+("`"+re+"` supplied to `"+T+"`, expected ")+("instance of `"+K+"`."))}return null}return b(C)}function x(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function C(V,M,T,$,q){for(var K=V[M],re=0;re<z.length;re++)if(g(K,z[re]))return null;var ie=JSON.stringify(z,function(L,I){var G=le(I);return G==="symbol"?String(I):I});return new f("Invalid "+$+" `"+q+"` of value `"+String(K)+"` "+("supplied to `"+T+"`, expected one of "+ie+"."))}return b(C)}function P(z){function C(V,M,T,$,q){if(typeof z!="function")return new f("Property `"+q+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var K=V[M],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+q+"` of type "+("`"+re+"` supplied to `"+T+"`, expected an object."));for(var ie in K)if(n(K,ie)){var te=z(K,ie,T,$,q+"."+ie,r);if(te instanceof Error)return te}return null}return b(C)}function k(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var C=0;C<z.length;C++){var V=z[C];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ce(V)+" at index "+C+"."),l}function M(T,$,q,K,re){for(var ie=[],te=0;te<z.length;te++){var L=z[te],I=L(T,$,q,K,re,r);if(I==null)return null;I.data&&n(I.data,"expectedType")&&ie.push(I.data.expectedType)}var G=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+K+" `"+re+"` supplied to "+("`"+q+"`"+G+"."))}return b(M)}function j(){function z(C,V,M,T,$){return N(C[V])?null:new f("Invalid "+T+" `"+$+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return b(z)}function R(z,C,V,M,T){return new f((z||"React class")+": "+C+" type `"+V+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function O(z){function C(V,M,T,$,q){var K=V[M],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+q+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));for(var ie in z){var te=z[ie];if(typeof te!="function")return R(T,$,q,ie,le(te));var L=te(K,ie,T,$,q+"."+ie,r);if(L)return L}return null}return b(C)}function D(z){function C(V,M,T,$,q){var K=V[M],re=W(K);if(re!=="object")return new f("Invalid "+$+" `"+q+"` of type `"+re+"` "+("supplied to `"+T+"`, expected `object`."));var ie=t({},V[M],z);for(var te in ie){var L=z[te];if(n(z,te)&&typeof L!="function")return R(T,$,q,te,le(L));if(!L)return new f("Invalid "+$+" `"+q+"` key `"+te+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(V[M],null," ")+`
14
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var I=L(K,te,T,$,q+"."+te,r);if(I)return I}return null}return b(C)}function N(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(N);if(z===null||s(z))return!0;var C=m(z);if(C){var V=C.call(z),M;if(C!==z.entries){for(;!(M=V.next()).done;)if(!N(M.value))return!1}else for(;!(M=V.next()).done;){var T=M.value;if(T&&!N(T[1]))return!1}}else return!1;return!0;default:return!1}}function U(z,C){return z==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function W(z){var C=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":U(C,z)?"symbol":C}function le(z){if(typeof z>"u"||z===null)return""+z;var C=W(z);if(C==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return C}function ce(z){var C=le(z);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function ue(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Vc}var Bc,Wm;function rw(){if(Wm)return Bc;Wm=1;var e=Lc();function t(){}function r(){}return r.resetWarningCache=t,Bc=function(){function n(l,s,c,u,d,m){if(m!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Bc}var Hm;function nw(){if(Hm)return Pi.exports;if(Hm=1,process.env.NODE_ENV!=="production"){var e=qm(),t=!0;Pi.exports=tw()(e.isElement,t)}else Pi.exports=rw()();return Pi.exports}var ow=nw();const o=Ut(ow);function Km(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Km(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function xe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Km(e))&&(n&&(n+=" "),n+=t);return n}function Be(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let l="",s=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(l+=(s===!0?"":" ")+t(u),s=!1,r&&r[u]&&(l+=" "+r[u]))}n[i]=l}return n}let Gm=0;function iw(e){const[t,r]=A.useState(e),n=e||t;return A.useEffect(()=>{t==null&&(Gm+=1,r(`mui-${Gm}`))},[t]),n}const Ym={...A}.useId;function bn(e){if(Ym!==void 0){const t=Ym();return e??t}return iw(e)}const zt=o.oneOfType([o.func,o.object]);function hr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ri={exports:{}},it={};var Jm;function aw(){if(Jm)return it;Jm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return it.ContextConsumer=a,it.ContextProvider=l,it.Element=e,it.ForwardRef=s,it.Fragment=r,it.Lazy=m,it.Memo=d,it.Portal=t,it.Profiler=i,it.StrictMode=n,it.Suspense=c,it.SuspenseList=u,it.isContextConsumer=function(f){return g(f)===a},it.isContextProvider=function(f){return g(f)===l},it.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},it.isForwardRef=function(f){return g(f)===s},it.isFragment=function(f){return g(f)===r},it.isLazy=function(f){return g(f)===m},it.isMemo=function(f){return g(f)===d},it.isPortal=function(f){return g(f)===t},it.isProfiler=function(f){return g(f)===i},it.isStrictMode=function(f){return g(f)===n},it.isSuspense=function(f){return g(f)===c},it.isSuspenseList=function(f){return g(f)===u},it.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},it.typeOf=g,it}var at={};var Xm;function sw(){return Xm||(Xm=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");at.ContextConsumer=l,at.ContextProvider=s,at.Element=t,at.ForwardRef=c,at.Fragment=n,at.Lazy=h,at.Memo=m,at.Portal=r,at.Profiler=a,at.StrictMode=i,at.Suspense=u,at.SuspenseList=d,at.isContextConsumer=function(f){return e(f)===l},at.isContextProvider=function(f){return e(f)===s},at.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},at.isForwardRef=function(f){return e(f)===c},at.isFragment=function(f){return e(f)===n},at.isLazy=function(f){return e(f)===h},at.isMemo=function(f){return e(f)===m},at.isPortal=function(f){return e(f)===r},at.isProfiler=function(f){return e(f)===a},at.isStrictMode=function(f){return e(f)===i},at.isSuspense=function(f){return e(f)===u},at.isSuspenseList=function(f){return e(f)===d},at.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},at.typeOf=e})()),at}var Zm;function lw(){return Zm||(Zm=1,process.env.NODE_ENV==="production"?Ri.exports=aw():Ri.exports=sw()),Ri.exports}var ki=lw();function mr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qm(e){if(A.isValidElement(e)||ki.isValidElementType(e)||!mr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Qm(e[r])}),t}function kt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return mr(e)&&mr(t)&&Object.keys(t).forEach(i=>{A.isValidElement(t[i])||ki.isValidElementType(t[i])?n[i]=t[i]:mr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&mr(e[i])?n[i]=kt(e[i],t[i],r):r.clone?n[i]=mr(t[i])?Qm(t[i]):t[i]:n[i]=t[i]}),n}function Wn(e,t){return t?kt(e,t,{clone:!1}):e}const Fr=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ey(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function cw(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function uw(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
15
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:hr(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function dw(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...s)=>t(e.breakpoints.up(...s),l),a.down=(...s)=>t(e.breakpoints.down(...s),l),a.between=(...s)=>t(e.breakpoints.between(...s),l),a.only=(...s)=>t(e.breakpoints.only(...s),l),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const Ii={xs:0,sm:600,md:900,lg:1200,xl:1536},ty={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ii[e]}px)`},fw={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ii[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function $r(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ty;return t.reduce((l,s,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||ty;return Object.keys(t).reduce((l,s)=>{if(cw(a.keys,s)){const c=uw(n.containerQueries?n:fw,s);c&&(l[c]=r(t[s],s))}else if(Object.keys(a.values||Ii).includes(s)){const c=a.up(s);l[c]=r(t[s],s)}else{const c=s;l[c]=t[c]}return l},{})}return r(t)}function pw(e={}){return e.keys?.reduce((r,n)=>{const i=e.up(n);return r[i]={},r},{})||{}}function ry(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function ji(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Ni(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=ji(e,r)||n,t&&(i=t(i,n,e)),i}function wt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=l=>{if(l[t]==null)return null;const s=l[t],c=l.theme,u=ji(c,n)||{};return $r(l,s,m=>{let h=Ni(u,i,m);return m===h&&typeof m=="string"&&(h=Ni(u,i,`${t}${m==="default"?"":pe(m)}`,m)),r===!1?h:{[r]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fr}:{},a.filterProps=[t],a}function hw(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const mw={m:"margin",p:"padding"},yw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ny={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gw=hw(e=>{if(e.length>2)if(ny[e])e=ny[e];else return[e];const[t,r]=e.split(""),n=mw[t],i=yw[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ai=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vw=[...Ai,...Mi];function Hn(e,t,r,n){const i=ji(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${i.length-1}, you need to add the missing values.`].join(`
74
16
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
75
- `)));const i=s[l];return a>=0?i:typeof i=="number"?-i:`-${i}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
76
- `)),()=>{})}function wd(e){return Ao(e,"spacing",8,"spacing")}function Vo(e,t){return typeof t=="string"||t==null?t:e(t)}function s1(e,t){return r=>e.reduce((o,s)=>(o[s]=Vo(t,r),o),{})}function a1(e,t,r,o){if(!t.includes(r))return null;const s=n1(r),a=s1(s,o),l=e[r];return nn(e,l,a)}function Zy(e,t){const r=wd(e.theme);return Object.keys(e).map(o=>a1(e,t,o,r)).reduce(No,{})}function At(e){return Zy(e,Ha)}At.propTypes=process.env.NODE_ENV!=="production"?Ha.reduce((e,t)=>(e[t]=hn,e),{}):{},At.filterProps=Ha;function Vt(e){return Zy(e,Ya)}Vt.propTypes=process.env.NODE_ENV!=="production"?Ya.reduce((e,t)=>(e[t]=hn,e),{}):{},Vt.filterProps=Ya,process.env.NODE_ENV!=="production"&&o1.reduce((e,t)=>(e[t]=hn,e),{});function Ka(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),r=o=>Object.keys(o).reduce((s,a)=>t[a]?No(s,t[a](o)):s,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},r.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),r}function xr(e){return typeof e!="number"?e:`${e}px solid`}function Sr(e,t){return Lt({prop:e,themeKey:"borders",transform:t})}const i1=Sr("border",xr),l1=Sr("borderTop",xr),c1=Sr("borderRight",xr),u1=Sr("borderBottom",xr),d1=Sr("borderLeft",xr),f1=Sr("borderColor"),p1=Sr("borderTopColor"),h1=Sr("borderRightColor"),m1=Sr("borderBottomColor"),g1=Sr("borderLeftColor"),y1=Sr("outline",xr),b1=Sr("outlineColor"),Ga=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ao(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Vo(t,o)});return nn(e,e.borderRadius,r)}return null};Ga.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:hn}:{},Ga.filterProps=["borderRadius"],Ka(i1,l1,c1,u1,d1,f1,p1,h1,m1,g1,Ga,y1,b1);const Xa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ao(e.theme,"spacing",8,"gap"),r=o=>({gap:Vo(t,o)});return nn(e,e.gap,r)}return null};Xa.propTypes=process.env.NODE_ENV!=="production"?{gap:hn}:{},Xa.filterProps=["gap"];const Ja=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ao(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Vo(t,o)});return nn(e,e.columnGap,r)}return null};Ja.propTypes=process.env.NODE_ENV!=="production"?{columnGap:hn}:{},Ja.filterProps=["columnGap"];const Za=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ao(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Vo(t,o)});return nn(e,e.rowGap,r)}return null};Za.propTypes=process.env.NODE_ENV!=="production"?{rowGap:hn}:{},Za.filterProps=["rowGap"];const v1=Lt({prop:"gridColumn"}),w1=Lt({prop:"gridRow"}),x1=Lt({prop:"gridAutoFlow"}),S1=Lt({prop:"gridAutoColumns"}),C1=Lt({prop:"gridAutoRows"}),T1=Lt({prop:"gridTemplateColumns"}),O1=Lt({prop:"gridTemplateRows"}),P1=Lt({prop:"gridTemplateAreas"}),E1=Lt({prop:"gridArea"});Ka(Xa,Ja,Za,v1,w1,x1,S1,C1,T1,O1,P1,E1);function eo(e,t){return t==="grey"?t:e}const k1=Lt({prop:"color",themeKey:"palette",transform:eo}),R1=Lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:eo}),$1=Lt({prop:"backgroundColor",themeKey:"palette",transform:eo});Ka(k1,R1,$1);function gr(e){return e<=1&&e!==0?`${e*100}%`:e}const _1=Lt({prop:"width",transform:gr}),xd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var s,a,l,i,c;const o=((l=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:l[r])||za[r];return o?((c=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:gr(r)}};return nn(e,e.maxWidth,t)}return null};xd.filterProps=["maxWidth"];const I1=Lt({prop:"minWidth",transform:gr}),D1=Lt({prop:"height",transform:gr}),M1=Lt({prop:"maxHeight",transform:gr}),j1=Lt({prop:"minHeight",transform:gr});Lt({prop:"size",cssProperty:"width",transform:gr}),Lt({prop:"size",cssProperty:"height",transform:gr});const N1=Lt({prop:"boxSizing"});Ka(_1,xd,I1,D1,M1,j1,N1);const Fo={border:{themeKey:"borders",transform:xr},borderTop:{themeKey:"borders",transform:xr},borderRight:{themeKey:"borders",transform:xr},borderBottom:{themeKey:"borders",transform:xr},borderLeft:{themeKey:"borders",transform:xr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ga},color:{themeKey:"palette",transform:eo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:eo},backgroundColor:{themeKey:"palette",transform:eo},p:{style:Vt},pt:{style:Vt},pr:{style:Vt},pb:{style:Vt},pl:{style:Vt},px:{style:Vt},py:{style:Vt},padding:{style:Vt},paddingTop:{style:Vt},paddingRight:{style:Vt},paddingBottom:{style:Vt},paddingLeft:{style:Vt},paddingX:{style:Vt},paddingY:{style:Vt},paddingInline:{style:Vt},paddingInlineStart:{style:Vt},paddingInlineEnd:{style:Vt},paddingBlock:{style:Vt},paddingBlockStart:{style:Vt},paddingBlockEnd:{style:Vt},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},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:Xa},rowGap:{style:Za},columnGap:{style:Ja},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gr},maxWidth:{style:xd},minWidth:{transform:gr},height:{transform:gr},maxHeight:{transform:gr},minHeight:{transform:gr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function A1(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function V1(e,t){return typeof e=="function"?e(t):e}function F1(){function e(r,o,s,a){const l={[r]:o,theme:s},i=a[r];if(!i)return{[r]:o};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=i;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[r]:o};const m=Ua(s,u)||{};return h?h(l):nn(l,o,w=>{let f=Wa(m,d,w);return w===f&&typeof w=="string"&&(f=Wa(m,d,`${r}${w==="default"?"":Oe(w)}`,w)),c===!1?f:{[c]:f}})}function t(r){const{sx:o,theme:s={}}=r||{};if(!o)return null;const a=s.unstable_sxConfig??Fo;function l(i){let c=i;if(typeof i=="function")c=i(s);else if(typeof i!="object")return i;if(!c)return null;const u=ZT(s.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(m=>{const g=V1(c[m],s);if(g!=null)if(typeof g=="object")if(a[m])h=No(h,e(m,g,s,a));else{const w=nn({theme:s},g,f=>({[m]:f}));A1(w,g)?h[m]=t({sx:g,theme:s}):h=No(h,w)}else h=No(h,e(m,g,s,a))}),YT(s,QT(d,h))}return Array.isArray(o)?o.map(l):l(o)}return t}const to=F1();to.filterProps=["sx"];const L1=e=>{var o;const t={systemProps:{},otherProps:{}},r=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Fo;return Object.keys(e).forEach(s=>{r[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function q1(e){const{sx:t,...r}=e,{systemProps:o,otherProps:s}=L1(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...l)=>{const i=t(...l);return Br(i)?{...o,...i}:o}:a={...o,...t},{...s,sx:a}}function B1(e){for(var t=0,r,o=0,s=e.length;s>=4;++o,s-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 z1={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,scale: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};function U1(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var W1=/[A-Z]|^ms/g,H1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qy=function(t){return t.charCodeAt(1)===45},eb=function(t){return t!=null&&typeof t!="boolean"},Sd=U1(function(e){return Qy(e)?e:e.replace(W1,"-$&").toLowerCase()}),tb=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(H1,function(o,s,a){return mn={name:s,styles:a,next:mn},s})}return z1[t]!==1&&!Qy(t)&&typeof r=="number"&&r!==0?r+"px":r};function Qa(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return mn={name:s.name,styles:s.styles,next:mn},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)mn={name:l.name,styles:l.styles,next:mn},l=l.next;var i=a.styles+";";return i}return Y1(e,t,r)}}var c=r;return c}function Y1(e,t,r){var o="";if(Array.isArray(r))for(var s=0;s<r.length;s++)o+=Qa(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var i=l;eb(i)&&(o+=Sd(a)+":"+tb(a,i)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)eb(l[c])&&(o+=Sd(a)+":"+tb(a,l[c])+";");else{var u=Qa(e,t,l);switch(a){case"animation":case"animationName":{o+=Sd(a)+":"+u+";";break}default:o+=a+"{"+u+"}"}}}return o}var rb=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function K1(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";mn=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=Qa(r,t,a);else{var l=a;s+=l[0]}for(var i=1;i<e.length;i++)if(s+=Qa(r,t,e[i]),o){var c=a;s+=c[i]}rb.lastIndex=0;for(var u="",d;(d=rb.exec(s))!==null;)u+="-"+d[1];var h=B1(s)+u;return{name:h,styles:s,next:mn}}function G1(e){return e==null||Object.keys(e).length===0}function nb(e){const{styles:t,defaultTheme:r={}}=e,o=typeof t=="function"?s=>t(G1(s)?r:s):t;return R.jsx(Zr.Global,{styles:o})}process.env.NODE_ENV!=="production"&&(nb.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.string,n.object,n.func])});/**
77
- * @mui/styled-engine v6.4.3
78
- *
79
- * @license MIT
80
- * This source code is licensed under the MIT license found in the
81
- * LICENSE file in the root directory of this source tree.
82
- */function X1(e,t){const r=Gn(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
83
- `)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),r(...o)}:r}function J1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ob=[];function sb(e){return ob[0]=e,K1(ob)}const Z1=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>({...r,[o.key]:o.val}),{})};function Q1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...s}=e,a=Z1(t),l=Object.keys(a);function i(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-o/100}${r})`}function u(m,g){const w=l.indexOf(g);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(w!==-1&&typeof t[l[w]]=="number"?t[l[w]]:g)-o/100}${r})`}function d(m){return l.indexOf(m)+1<l.length?u(m,l[l.indexOf(m)+1]):i(m)}function h(m){const g=l.indexOf(m);return g===0?i(l[1]):g===l.length-1?c(l[g]):u(m,l[l.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:i,down:c,between:u,only:d,not:h,unit:r,...s}}const eO={borderRadius:4};function ab(e=8,t=wd({spacing:e})){if(e.mui)return e;const r=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function tO(e,t){var o;const r=this;if(r.vars){if(!((o=r.colorSchemes)!=null&&o[e])||typeof r.getColorSchemeSelector!="function")return{};let s=r.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return r.palette.mode===e?t:{}}function Cd(e={},...t){const{breakpoints:r={},palette:o={},spacing:s,shape:a={},...l}=e,i=Q1(r),c=ab(s);let u=Zt({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...eO,...a}},l);return u=XT(u),u.applyStyles=tO,u=t.reduce((d,h)=>Zt(d,h),u),u.unstable_sxConfig={...Fo,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(h){return to({sx:h,theme:this})},u}function rO(e){return Object.keys(e).length===0}function ib(e=null){const t=E.useContext(Zr.ThemeContext);return!t||rO(t)?e:t}const nO=Cd();function Td(e=nO){return ib(e)}function lb({styles:e,themeId:t,defaultTheme:r={}}){const o=Td(r),s=typeof e=="function"?e(t&&o[t]||o):e;return R.jsx(nb,{styles:s})}process.env.NODE_ENV!=="production"&&(lb.propTypes={defaultTheme:n.object,styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool]),themeId:n.string});const cb=e=>e,oO=(()=>{let e=cb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cb}}})(),sO={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 Ie(e,t,r="Mui"){const o=sO[t];return o?`${r}-${o}`:`${oO.generate(e)}-${t}`}function ke(e,t,r="Mui"){const o={};return t.forEach(s=>{o[s]=Ie(e,s,r)}),o}function ub(e,t=""){return e.displayName||e.name||t}function db(e,t,r){const o=ub(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function aO(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ub(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ba.ForwardRef:return db(e,e.render,"ForwardRef");case Ba.Memo:return db(e,e.type,"memo");default:return}}}function fb(e){const{variants:t,...r}=e,o={variants:t,style:sb(r),isProcessed:!0};return o.style===r||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=sb(s.style))}),o}const iO=Cd();function ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lO(e){return e?(t,r)=>r[e]:null}function cO(e,t,r){e.theme=fO(e.theme)?r:e.theme[t]||e.theme}function ti(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>ti(e,o));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=r.style;else{const{variants:s,...a}=r;o=a}return pb(e,r.variants,[o])}return r!=null&&r.isProcessed?r.style:r}function pb(e,t,r=[]){var s;let o;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const i in l.props)if(e[i]!==l.props[i]&&((s=e.ownerState)==null?void 0:s[i])!==l.props[i])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(l.style(o))):r.push(l.style)}return r}function hb(e={}){const{themeId:t,defaultTheme:r=iO,rootShouldForwardProp:o=ei,slotShouldForwardProp:s=ei}=e;function a(i){cO(i,t,r)}return(i,c={})=>{J1(i,S=>S.filter(C=>C!==to));const{name:u,slot:d,skipVariantsResolver:h,skipSx:m,overridesResolver:g=lO(mb(d)),...w}=c,f=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,y=m||!1;let v=ei;d==="Root"||d==="root"?v=o:d?v=s:pO(i)&&(v=void 0);const p=X1(i,{shouldForwardProp:v,label:dO(u,d),...w}),b=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(O){return ti(O,S)};if(Br(S)){const C=fb(S);return C.variants?function(k){return ti(k,C)}:C.style}return S},x=(...S)=>{const C=[],O=S.map(b),k=[];if(C.push(a),u&&g&&k.push(function(D){var F,K;const M=(K=(F=D.theme.components)==null?void 0:F[u])==null?void 0:K.styleOverrides;if(!M)return null;const N={};for(const H in M)N[H]=ti(D,M[H]);return g(D,N)}),u&&!f&&k.push(function(D){var N,F;const V=D.theme,M=(F=(N=V==null?void 0:V.components)==null?void 0:N[u])==null?void 0:F.variants;return M?pb(D,M):null}),y||k.push(to),Array.isArray(O[0])){const P=O.shift(),D=new Array(C.length).fill(""),V=new Array(k.length).fill("");let M;M=[...D,...P,...V],M.raw=[...D,...P.raw,...V],C.unshift(M)}const _=[...C,...O,...k],T=p(..._);return i.muiName&&(T.muiName=i.muiName),process.env.NODE_ENV!=="production"&&(T.displayName=uO(u,d,i)),T};return p.withConfig&&(x.withConfig=p.withConfig),x}}function uO(e,t,r){return e?`${e}${Oe(t||"")}`:`Styled(${aO(r)})`}function dO(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${mb(t||"Root")}`),r}function fO(e){for(const t in e)return!1;return!0}function pO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ri=hb();function Lo(e,t){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)){const c=i;r[s][c]=Lo(a[c],l[c])}}}else r[s]===void 0&&(r[s]=e[s])}return r}function gb(e){const{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Lo(t.components[r].defaultProps,o)}function hO({props:e,name:t,defaultTheme:r,themeId:o}){let s=Td(r);return s=s[o]||s,gb({theme:s,name:t,props:e})}const qt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function mO(e,t,r,o,s){const[a,l]=E.useState(()=>s&&r?r(e).matches:o?o(e).matches:t);return qt(()=>{if(!r)return;const i=r(e),c=()=>{l(i.matches)};return c(),i.addEventListener("change",c),()=>{i.removeEventListener("change",c)}},[e,r]),a}const yb={...E}.useSyncExternalStore;function gO(e,t,r,o,s){const a=E.useCallback(()=>t,[t]),l=E.useMemo(()=>{if(s&&r)return()=>r(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return a},[a,e,o,s,r]),[i,c]=E.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,h=>(d.addEventListener("change",h),()=>{d.removeEventListener("change",h)})]},[a,r,e]);return yb(c,i,l)}function bb(e={}){const{themeId:t}=e;return function(o,s={}){let a=ib();a&&t&&(a=a[t]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:c=l?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=gb({name:"MuiUseMediaQuery",props:s,theme:a});process.env.NODE_ENV!=="production"&&typeof o=="function"&&a===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
84
- `));let h=typeof o=="function"?o(a):o;h=h.replace(/^@media( ?)/m,"");const g=(yb!==void 0?gO:mO)(h,i,c,u,d);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:h,match:g}),g}}bb();function yO(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Od(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),yO(e,t,r)}function bO(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function gn(e){if(e.type)return e;if(e.charAt(0)==="#")return gn(bO(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
85
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:qr(9,e));let o=e.substring(t+1,e.length-1),s;if(r==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
86
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:qr(10,s))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:s}}const vO=e=>{const t=gn(e);return t.values.slice(0,3).map((r,o)=>t.type.includes("hsl")&&o!==0?`${r}%`:r).join(" ")},qo=(e,t)=>{try{return vO(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ni(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function vb(e){e=gn(e);const{values:t}=e,r=t[0],o=t[1]/100,s=t[2]/100,a=o*Math.min(s,1-s),l=(u,d=(u+r/30)%12)=>s-a*Math.max(Math.min(d-3,9-d,1),-1);let i="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(i+="a",c.push(t[3])),ni({type:i,values:c})}function Pd(e){e=gn(e);let t=e.type==="hsl"||e.type==="hsla"?gn(vb(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function wb(e,t){const r=Pd(e),o=Pd(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function nt(e,t){return e=gn(e),t=Od(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ni(e)}function oi(e,t,r){try{return nt(e,t)}catch{return e}}function Ed(e,t){if(e=gn(e),t=Od(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ni(e)}function _t(e,t,r){try{return Ed(e,t)}catch{return e}}function kd(e,t){if(e=gn(e),t=Od(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ni(e)}function It(e,t,r){try{return kd(e,t)}catch{return e}}function wO(e,t=.15){return Pd(e)>.5?Ed(e,t):kd(e,t)}function si(e,t,r){try{return wO(e,t)}catch{return e}}function Cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function xO(e){const{prototype:t={}}=e;return!!t.isReactComponent}function xb(e,t,r,o,s){const a=e[t],l=s||t;if(a==null||typeof window>"u")return null;let i;const c=a.type;return typeof c=="function"&&!xO(c)&&(i="Did you accidentally use a plain function component for an element instead?"),i!==void 0?new Error(`Invalid ${o} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Bo=Cr(n.element,xb);Bo.isRequired=Cr(n.element.isRequired,xb);function SO(e){const{prototype:t={}}=e;return!!t.isReactComponent}function CO(e,t,r,o,s){const a=e[t],l=s||t;if(a==null||typeof window>"u")return null;let i;return typeof a=="function"&&!SO(a)&&(i="Did you accidentally provide a plain function component instead?"),i!==void 0?new Error(`Invalid ${o} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ai=Cr(n.elementType,CO),TO="exact-prop: ​";function Sb(e){return process.env.NODE_ENV==="production"?e:{...e,[TO]:t=>{const r=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return r.length>0?new Error(`The following props are not supported: ${r.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function on(e,t,r,o,s){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=s||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${o} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Rd(...e){return e.reduce((t,r)=>r==null?t:function(...s){t.apply(this,s),r.apply(this,s)},()=>{})}function ii(e,t=166){let r;function o(...s){const a=()=>{e.apply(this,s)};clearTimeout(r),r=setTimeout(a,t)}return o.clear=()=>{clearTimeout(r)},o}function zo(e,t){var r,o,s;return E.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(r=e.type)==null?void 0:r._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}function Yt(e){return e&&e.ownerDocument||document}function Nr(e){return Yt(e).defaultView||window}function li(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Cb(e,t,r,o,s){if(process.env.NODE_ENV==="production")return null;const a=s||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function cr({controlled:e,default:t,name:r,state:o="value"}){const{current:s}=E.useRef(e!==void 0),[a,l]=E.useState(t),i=s?e:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(e!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
87
- `))},[o,r,e]);const{current:u}=E.useRef(t);E.useEffect(()=>{!s&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
88
- `))},[JSON.stringify(t)])}const c=E.useCallback(u=>{s||l(u)},[]);return[i,c]}function Re(e){const t=E.useRef(e);return qt(()=>{t.current=e}),E.useRef((...r)=>(0,t.current)(...r)).current}function ft(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{li(r,t)})},e)}const Tb={};function Ob(e,t){const r=E.useRef(Tb);return r.current===Tb&&(r.current=e(t)),r}const OO=[];function PO(e){E.useEffect(e,OO)}class $d{constructor(){zt(this,"currentId",null);zt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});zt(this,"disposeEffect",()=>this.clear)}static create(){return new $d}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Pb(){const e=Ob($d.create).current;return PO(e.disposeEffect),e}function Eb(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
89
- `))}return!1}function kb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const EO=e=>{const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current},kO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function RO(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Rb(e,t,r,o){const s=e[t];if(s==null||!Number.isInteger(s)){const a=RO(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function $b(e,t,...r){return e[t]===void 0?null:Rb(e,t,...r)}function _d(){return null}$b.isRequired=Rb,_d.isRequired=_d;const Id=process.env.NODE_ENV==="production"?_d:$b;function $O(e){return typeof e=="string"}function _b(e,t,r){return e===void 0||$O(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Ib(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{r[o]=e[o]}),r}function Db(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Mb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:s,className:a}=e;if(!t){const g=Te(r==null?void 0:r.className,a,s==null?void 0:s.className,o==null?void 0:o.className),w={...r==null?void 0:r.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...r,...s,...o};return g.length>0&&(f.className=g),Object.keys(w).length>0&&(f.style=w),{props:f,internalRef:void 0}}const l=Ib({...s,...o}),i=Db(o),c=Db(s),u=t(l),d=Te(u==null?void 0:u.className,r==null?void 0:r.className,a,s==null?void 0:s.className,o==null?void 0:o.className),h={...u==null?void 0:u.style,...r==null?void 0:r.style,...s==null?void 0:s.style,...o==null?void 0:o.style},m={...u,...r,...c,...i};return d.length>0&&(m.className=d),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:u.ref}}function Uo(e,t,r){return typeof e=="function"?e(t,r):e}function lt(e){var h;const{elementType:t,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1,...a}=e,l=s?{}:Uo(r,o),{props:i,internalRef:c}=Mb({...a,externalSlotProps:l}),u=ft(c,l==null?void 0:l.ref,(h=e.additionalProps)==null?void 0:h.ref);return _b(t,{...i,ref:u},o)}function Wo(e){var t;return parseInt(E.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const _O=E.createContext();process.env.NODE_ENV!=="production"&&(n.node,n.bool);const Qt=()=>E.useContext(_O)??!1,IO=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(n.node,n.object);function DO(e){const{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r])return o;const s=t.components[r];return s.defaultProps?Lo(s.defaultProps,o):!s.styleOverrides&&!s.variants?Lo(s,o):o}function MO({props:e,name:t}){const r=E.useContext(IO);return DO({props:e,name:t,theme:{components:r}})}const jb={theme:void 0};function jO(e){let t,r;return function(s){let a=t;return(a===void 0||s.theme!==r)&&(jb.theme=s.theme,a=fb(e(jb)),t=a,r=s.theme),a}}function NO(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Nb=(e,t,r,o=[])=>{let s=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(s)?s[Number(a)]=r:s&&typeof s=="object"&&(s[a]=r):s&&typeof s=="object"&&(s[a]||(s[a]=o.includes(a)?[]:{}),s=s[a])})},AO=(e,t,r)=>{function o(s,a=[],l=[]){Object.entries(s).forEach(([i,c])=>{(!r||r&&!r([...a,i]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...a,i],Array.isArray(c)?[...l,i]:l):t([...a,i],c,l))})}o(e)},VO=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Dd(e,t){const{prefix:r,shouldSkipGeneratingVar:o}=t||{},s={},a={},l={};return AO(e,(i,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(i,c))){const d=`--${r?`${r}-`:""}${i.join("-")}`,h=VO(i,c);Object.assign(s,{[d]:h}),Nb(a,i,`var(${d})`,u),Nb(l,i,`var(${d}, ${h})`,u)}},i=>i[0]==="vars"),{css:s,vars:a,varsWithDefaults:l}}function FO(e,t={}){const{getSelector:r=y,disableCssColorScheme:o,colorSchemeSelector:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:i="light",...c}=e,{vars:u,css:d,varsWithDefaults:h}=Dd(c,t);let m=h;const g={},{[i]:w,...f}=a;if(Object.entries(f||{}).forEach(([b,x])=>{const{vars:S,css:C,varsWithDefaults:O}=Dd(x,t);m=Zt(m,O),g[b]={css:C,vars:S}}),w){const{css:b,vars:x,varsWithDefaults:S}=Dd(w,t);m=Zt(m,S),g[i]={css:b,vars:x}}function y(b,x){var C,O;let S=s;if(s==="class"&&(S=".%s"),s==="data"&&(S="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(S=`[${s}="%s"]`),b){if(S==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((O=(C=a[b])==null?void 0:C.palette)==null?void 0:O.mode)||b})`]:{":root":x}};if(S)return e.defaultColorScheme===b?`:root, ${S.replace("%s",String(b))}`:S.replace("%s",String(b))}return":root"}return{vars:m,generateThemeVars:()=>{let b={...u};return Object.entries(g).forEach(([,{vars:x}])=>{b=Zt(b,x)}),b},generateStyleSheets:()=>{var k,_;const b=[],x=e.defaultColorScheme||"light";function S(T,P){Object.keys(P).length&&b.push(typeof T=="string"?{[T]:{...P}}:T)}S(r(void 0,{...d}),d);const{[x]:C,...O}=g;if(C){const{css:T}=C,P=(_=(k=a[x])==null?void 0:k.palette)==null?void 0:_.mode,D=!o&&P?{colorScheme:P,...T}:{...T};S(r(x,{...D}),D)}return Object.entries(O).forEach(([T,{css:P}])=>{var M,N;const D=(N=(M=a[T])==null?void 0:M.palette)==null?void 0:N.mode,V=!o&&D?{colorScheme:D,...P}:{...P};S(r(T,{...V}),V)}),b}}}function LO(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Ho={black:"#000",white:"#fff"},qO={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"},ro={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},no={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Yo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},oo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},so={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ao={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ab(){return{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:Ho.white,default:Ho.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}}}const BO=Ab();function Vb(){return{text:{primary:Ho.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:Ho.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}}}const Fb=Vb();function Lb(e,t,r,o){const s=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=kd(e.main,s):t==="dark"&&(e.dark=Ed(e.main,a)))}function zO(e="light"){return e==="dark"?{main:oo[200],light:oo[50],dark:oo[400]}:{main:oo[700],light:oo[400],dark:oo[800]}}function UO(e="light"){return e==="dark"?{main:ro[200],light:ro[50],dark:ro[400]}:{main:ro[500],light:ro[300],dark:ro[700]}}function WO(e="light"){return e==="dark"?{main:no[500],light:no[300],dark:no[700]}:{main:no[700],light:no[400],dark:no[800]}}function HO(e="light"){return e==="dark"?{main:so[400],light:so[300],dark:so[700]}:{main:so[700],light:so[500],dark:so[900]}}function YO(e="light"){return e==="dark"?{main:ao[400],light:ao[300],dark:ao[700]}:{main:ao[800],light:ao[500],dark:ao[900]}}function KO(e="light"){return e==="dark"?{main:Yo[400],light:Yo[300],dark:Yo[700]}:{main:"#ed6c02",light:Yo[500],dark:Yo[900]}}function Md(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2,...s}=e,a=e.primary||zO(t),l=e.secondary||UO(t),i=e.error||WO(t),c=e.info||HO(t),u=e.success||YO(t),d=e.warning||KO(t);function h(f){const y=wb(f,Fb.text.primary)>=r?Fb.text.primary:BO.text.primary;if(process.env.NODE_ENV!=="production"){const v=wb(f,y);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${y} on ${f}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
90
- `))}return y}const m=({color:f,name:y,mainShade:v=500,lightShade:p=300,darkShade:b=700})=>{if(f={...f},!f.main&&f[v]&&(f.main=f[v]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
91
- The color object needs to have a \`main\` property or a \`${v}\` property.`:qr(11,y?` (${y})`:"",v));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
92
- \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
17
+ `)));const s=i[l];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
18
+ `)),()=>{})}function Uc(e){return Hn(e,"spacing",8,"spacing")}function Kn(e,t){return typeof t=="string"||t==null?t:e(t)}function bw(e,t){return r=>e.reduce((n,i)=>(n[i]=Kn(t,r),n),{})}function _w(e,t,r,n){if(!t.includes(r))return null;const i=gw(r),a=bw(i,n),l=e[r];return $r(e,l,a)}function oy(e,t){const r=Uc(e.theme);return Object.keys(e).map(n=>_w(e,t,n,r)).reduce(Wn,{})}function vt(e){return oy(e,Ai)}vt.propTypes=process.env.NODE_ENV!=="production"?Ai.reduce((e,t)=>(e[t]=Fr,e),{}):{},vt.filterProps=Ai;function bt(e){return oy(e,Mi)}bt.propTypes=process.env.NODE_ENV!=="production"?Mi.reduce((e,t)=>(e[t]=Fr,e),{}):{},bt.filterProps=Mi,process.env.NODE_ENV!=="production"&&vw.reduce((e,t)=>(e[t]=Fr,e),{});function Di(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Wn(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Zt(e){return typeof e!="number"?e:`${e}px solid`}function Qt(e,t){return wt({prop:e,themeKey:"borders",transform:t})}const ww=Qt("border",Zt),Sw=Qt("borderTop",Zt),Ew=Qt("borderRight",Zt),Ow=Qt("borderBottom",Zt),xw=Qt("borderLeft",Zt),Cw=Qt("borderColor"),Tw=Qt("borderTopColor"),Pw=Qt("borderRightColor"),$w=Qt("borderBottomColor"),Rw=Qt("borderLeftColor"),kw=Qt("outline",Zt),Iw=Qt("outlineColor"),qi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Kn(t,n)});return $r(e,e.borderRadius,r)}return null};qi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fr}:{},qi.filterProps=["borderRadius"],Di(ww,Sw,Ew,Ow,xw,Cw,Tw,Pw,$w,Rw,qi,kw,Iw);const Li=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hn(e.theme,"spacing",8,"gap"),r=n=>({gap:Kn(t,n)});return $r(e,e.gap,r)}return null};Li.propTypes=process.env.NODE_ENV!=="production"?{gap:Fr}:{},Li.filterProps=["gap"];const Fi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Kn(t,n)});return $r(e,e.columnGap,r)}return null};Fi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fr}:{},Fi.filterProps=["columnGap"];const zi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Kn(t,n)});return $r(e,e.rowGap,r)}return null};zi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fr}:{},zi.filterProps=["rowGap"];const jw=wt({prop:"gridColumn"}),Nw=wt({prop:"gridRow"}),Aw=wt({prop:"gridAutoFlow"}),Mw=wt({prop:"gridAutoColumns"}),Dw=wt({prop:"gridAutoRows"}),qw=wt({prop:"gridTemplateColumns"}),Lw=wt({prop:"gridTemplateRows"}),Fw=wt({prop:"gridTemplateAreas"}),zw=wt({prop:"gridArea"});Di(Li,Fi,zi,jw,Nw,Aw,Mw,Dw,qw,Lw,Fw,zw);function _n(e,t){return t==="grey"?t:e}const Vw=wt({prop:"color",themeKey:"palette",transform:_n}),Bw=wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_n}),Uw=wt({prop:"backgroundColor",themeKey:"palette",transform:_n});Di(Vw,Bw,Uw);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const Ww=wt({prop:"width",transform:Ht}),Wc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Ii[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ht(r)}};return $r(e,e.maxWidth,t)}return null};Wc.filterProps=["maxWidth"];const Hw=wt({prop:"minWidth",transform:Ht}),Kw=wt({prop:"height",transform:Ht}),Gw=wt({prop:"maxHeight",transform:Ht}),Yw=wt({prop:"minHeight",transform:Ht});wt({prop:"size",cssProperty:"width",transform:Ht}),wt({prop:"size",cssProperty:"height",transform:Ht});const Jw=wt({prop:"boxSizing"});Di(Ww,Wc,Hw,Kw,Gw,Yw,Jw);const Gn={border:{themeKey:"borders",transform:Zt},borderTop:{themeKey:"borders",transform:Zt},borderRight:{themeKey:"borders",transform:Zt},borderBottom:{themeKey:"borders",transform:Zt},borderLeft:{themeKey:"borders",transform:Zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qi},color:{themeKey:"palette",transform:_n},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_n},backgroundColor:{themeKey:"palette",transform:_n},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:vt},mt:{style:vt},mr:{style:vt},mb:{style:vt},ml:{style:vt},mx:{style:vt},my:{style:vt},margin:{style:vt},marginTop:{style:vt},marginRight:{style:vt},marginBottom:{style:vt},marginLeft:{style:vt},marginX:{style:vt},marginY:{style:vt},marginInline:{style:vt},marginInlineStart:{style:vt},marginInlineEnd:{style:vt},marginBlock:{style:vt},marginBlockStart:{style:vt},marginBlockEnd:{style:vt},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:Li},rowGap:{style:zi},columnGap:{style:Fi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Wc},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xw(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Zw(e,t){return typeof e=="function"?e(t):e}function Qw(){function e(r,n,i,a){const l={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=ji(i,u)||{};return m?m(l):$r(l,n,g=>{let f=Ni(h,d,g);return g===f&&typeof g=="string"&&(f=Ni(h,d,`${r}${g==="default"?"":pe(g)}`,g)),c===!1?f:{[c]:f}})}function t(r){const{sx:n,theme:i={},nested:a}=r||{};if(!n)return null;const l=i.unstable_sxConfig??Gn;function s(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=pw(i.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(y=>{const g=Zw(u[y],i);if(g!=null)if(typeof g=="object")if(l[y])h=Wn(h,e(y,g,i,l));else{const f=$r({theme:i},g,b=>({[y]:b}));Xw(f,g)?h[y]=t({sx:g,theme:i,nested:!0}):h=Wn(h,f)}else h=Wn(h,e(y,g,i,l))}),!a&&i.modularCssLayers?{"@layer sx":ey(i,ry(m,h))}:ey(i,ry(m,h))}return Array.isArray(n)?n.map(s):s(n)}return t}const wn=Qw();wn.filterProps=["sx"];const eS=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Gn;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function tS(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=eS(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return mr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function rS(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 nS={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,scale: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};function oS(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var iS=/[A-Z]|^ms/g,aS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iy=function(t){return t.charCodeAt(1)===45},ay=function(t){return t!=null&&typeof t!="boolean"},Hc=oS(function(e){return iy(e)?e:e.replace(iS,"-$&").toLowerCase()}),sy=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aS,function(n,i,a){return zr={name:i,styles:a,next:zr},i})}return nS[t]!==1&&!iy(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vi(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return zr={name:i.name,styles:i.styles,next:zr},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)zr={name:l.name,styles:l.styles,next:zr},l=l.next;var s=a.styles+";";return s}return sS(e,t,r)}}var c=r;return c}function sS(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Vi(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;ay(s)&&(n+=Hc(a)+":"+sy(a,s)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)ay(l[c])&&(n+=Hc(a)+":"+sy(a,l[c])+";");else{var u=Vi(e,t,l);switch(a){case"animation":case"animationName":{n+=Hc(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var ly=/label:\s*([^\s;{]+)\s*(;|$)/g,zr;function lS(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";zr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Vi(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=Vi(r,t,e[s]),n){var c=a;i+=c[s]}ly.lastIndex=0;for(var u="",d;(d=ly.exec(i))!==null;)u+="-"+d[1];var m=rS(i)+u;return{name:m,styles:i,next:zr}}function cS(e){return e==null||Object.keys(e).length===0}function cy(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(cS(i)?r:i):t;return F.jsx(Or.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(cy.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function uS(e,t){const r=Yv(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
19
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function dS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const uy=[];function Vr(e){return uy[0]=e,lS(uy)}const fS=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function pS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=fS(t),l=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,y){const g=l.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:y)-n/100}${r})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):s(h)}function m(h){const y=l.indexOf(h);return y===0?s(l[1]):y===l.length-1?c(l[y]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:d,not:m,unit:r,...i}}const hS={borderRadius:4};function dy(e=8,t=Uc({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function mS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Kc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=pS(r),c=dy(i);let u=kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...hS,...a}},l);return u=dw(u),u.applyStyles=mS,u=t.reduce((d,m)=>kt(d,m),u),u.unstable_sxConfig={...Gn,...l?.unstable_sxConfig},u.unstable_sx=function(m){return wn({sx:m,theme:this})},u}function yS(e){return Object.keys(e).length===0}function gS(e=null){const t=A.useContext(Or.ThemeContext);return!t||yS(t)?e:t}const vS=Kc();function fy(e=vS){return gS(e)}function Gc(e){const t=Vr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function py({styles:e,themeId:t,defaultTheme:r={}}){const n=fy(r),i=t&&n[t]||n;let a=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>Gc(typeof l=="function"?l(i):l)):a=Gc(a)),F.jsx(cy,{styles:a})}process.env.NODE_ENV!=="production"&&(py.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const hy=e=>e,bS=(()=>{let e=hy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hy}}})(),_S={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 Fe(e,t,r="Mui"){const n=_S[t];return n?`${r}-${n}`:`${bS.generate(e)}-${t}`}function Le(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Fe(e,i,r)}),n}function my(e,t=""){return e.displayName||e.name||t}function yy(e,t,r){const n=my(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function wS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return my(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ki.ForwardRef:return yy(e,e.render,"ForwardRef");case ki.Memo:return yy(e,e.type,"memo");default:return}}}function gy(e){const{variants:t,...r}=e,n={variants:t,style:Vr(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Vr(i.style))}),n}const SS=Kc();function Yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ES(e){return e?(t,r)=>r[e]:null}function OS(e,t,r){e.theme=TS(e.theme)?r:e.theme[t]||e.theme}function Bi(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Bi(e,i,r));if(Array.isArray(n?.variants)){let i;if(n.isProcessed)i=r?rn(n.style,r):n.style;else{const{variants:a,...l}=n;i=r?rn(Vr(l),r):l}return vy(e,n.variants,[i],r)}return n?.isProcessed?r?rn(Vr(n.style),r):n.style:r?rn(Vr(n),r):n}function vy(e,t,r=[],n=void 0){let i;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(i))continue}else for(const s in l.props)if(e[s]!==l.props[s]&&e.ownerState?.[s]!==l.props[s])continue e;typeof l.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?rn(Vr(l.style(i)),n):l.style(i))):r.push(n?rn(Vr(l.style),n):l.style)}return r}function by(e={}){const{themeId:t,defaultTheme:r=SS,rootShouldForwardProp:n=Yc,slotShouldForwardProp:i=Yc}=e;function a(s){OS(s,t,r)}return(s,c={})=>{dS(s,E=>E.filter(x=>x!==wn));const{name:u,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:y=ES(_y(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",b=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,v=h||!1;let p=Yc;d==="Root"||d==="root"?p=n:d?p=i:PS(s)&&(p=void 0);const _=uS(s,{shouldForwardProp:p,label:CS(u,d),...g}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(P){return Bi(P,E,P.theme.modularCssLayers?f:void 0)};if(mr(E)){const x=gy(E);return function(k){return x.variants?Bi(k,x,k.theme.modularCssLayers?f:void 0):k.theme.modularCssLayers?rn(x.style,f):x.style}}return E},w=(...E)=>{const x=[],P=E.map(S),k=[];if(x.push(a),u&&y&&k.push(function(D){const U=D.theme.components?.[u]?.styleOverrides;if(!U)return null;const W={};for(const le in U)W[le]=Bi(D,U[le],D.theme.modularCssLayers?"theme":void 0);return y(D,W)}),u&&!b&&k.push(function(D){const U=D.theme?.components?.[u]?.variants;return U?vy(D,U,[],D.theme.modularCssLayers?"theme":void 0):null}),v||k.push(wn),Array.isArray(P[0])){const O=P.shift(),D=new Array(x.length).fill(""),N=new Array(k.length).fill("");let U;U=[...D,...O,...N],U.raw=[...D,...O.raw,...N],x.unshift(U)}const j=[...x,...P,...k],R=_(...j);return s.muiName&&(R.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=xS(u,d,s)),R};return _.withConfig&&(w.withConfig=_.withConfig),w}}function xS(e,t,r){return e?`${e}${pe(t||"")}`:`Styled(${wS(r)})`}function CS(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${_y(t||"Root")}`),r}function TS(e){for(const t in e)return!1;return!0}function PS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _y(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ui=by();function Wi(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const l=e[a],s=t[a];if(!s)n[a]=l||{};else if(!l)n[a]=s;else{n[a]={...s};for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c)){const u=c;n[a][u]=Wi(l[u],s[u],r)}}}else a==="className"&&r&&t.className?n.className=xe(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}const yr=typeof window<"u"?A.useLayoutEffect:A.useEffect;function $S(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Jc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),$S(e,t,r)}function RS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Br(e){if(e.type)return e;if(e.charAt(0)==="#")return Br(RS(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
20
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:hr(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
21
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const kS=e=>{const t=Br(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Yn=(e,t)=>{try{return kS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function wy(e){e=Br(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),l=(u,d=(u+r/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Hi({type:s,values:c})}function Xc(e){e=Br(e);let t=e.type==="hsl"||e.type==="hsla"?Br(wy(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Sy(e,t){const r=Xc(e),n=Xc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ki(e,t){return e=Br(e),t=Jc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hi(e)}function nn(e,t,r){try{return Ki(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Gi(e,t){if(e=Br(e),t=Jc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Hi(e)}function rt(e,t,r){try{return Gi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yi(e,t){if(e=Br(e),t=Jc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Hi(e)}function nt(e,t,r){try{return Yi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function IS(e,t=.15){return Xc(e)>.5?Gi(e,t):Yi(e,t)}function Ji(e,t,r){try{return IS(e,t)}catch{return e}}const jS="exact-prop: ​";function Ey(e){return process.env.NODE_ENV==="production"?e:{...e,[jS]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const NS=A.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Oy=()=>A.useContext(NS)??!1,AS=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function MS(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Wi(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Wi(i,n,t.components.mergeClassNameAndStyle):n}function DS({props:e,name:t}){const r=A.useContext(AS);return MS({props:e,name:t,theme:{components:r}})}const xy={theme:void 0};function qS(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(xy.theme=i.theme,a=gy(e(xy)),t=a,r=i.theme),a}}function LS(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Cy=(e,t,r,n=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},FS=(e,t,r)=>{function n(i,a=[],l=[]){Object.entries(i).forEach(([s,c])=>{(!r||r&&!r([...a,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...a,s],Array.isArray(c)?[...l,s]:l):t([...a,s],c,l))})}n(e)},zS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Zc(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return FS(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const d=`--${r?`${r}-`:""}${s.join("-")}`,m=zS(s,c);Object.assign(i,{[d]:m}),Cy(a,s,`var(${d})`,u),Cy(l,s,`var(${d}, ${m})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function VS(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:l={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=Zc(u,t);let y=h;const g={},{[c]:f,...b}=l;if(Object.entries(b||{}).forEach(([S,w])=>{const{vars:E,css:x,varsWithDefaults:P}=Zc(w,t);y=kt(y,P),g[S]={css:x,vars:E}}),f){const{css:S,vars:w,varsWithDefaults:E}=Zc(f,t);y=kt(y,E),g[c]={css:S,vars:w}}function v(S,w){let E=i;if(i==="class"&&(E=".%s"),i==="data"&&(E="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(E=`[${i}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${l[S]?.palette?.mode||S})`]:{":root":w}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...d};return Object.entries(g).forEach(([,{vars:w}])=>{S=kt(S,w)}),S},generateStyleSheets:()=>{const S=[],w=e.defaultColorScheme||"light";function E(k,j){Object.keys(j).length&&S.push(typeof k=="string"?{[k]:{...j}}:k)}E(r(void 0,{...m}),m);const{[w]:x,...P}=g;if(x){const{css:k}=x,j=l[w]?.palette?.mode,R=!n&&j?{colorScheme:j,...k}:{...k};E(r(w,{...R}),R)}return Object.entries(P).forEach(([k,{css:j}])=>{const R=l[k]?.palette?.mode,O=!n&&R?{colorScheme:R,...j}:{...j};E(r(k,{...O}),O)}),a&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function BS(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Qc(e,t){return A.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Jn={black:"#000",white:"#fff"},US={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"},Sn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},En={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},On={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ty(){return{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:Jn.white,default:Jn.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}}}const Py=Ty();function $y(){return{text:{primary:Jn.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:Jn.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}}}const eu=$y();function Ry(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Yi(e.main,i):t==="dark"&&(e.dark=Gi(e.main,a)))}function ky(e,t,r,n,i){const a=i.light||i,l=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function WS(e="light"){return e==="dark"?{main:On[200],light:On[50],dark:On[400]}:{main:On[700],light:On[400],dark:On[800]}}function HS(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function KS(e="light"){return e==="dark"?{main:En[500],light:En[300],dark:En[700]}:{main:En[700],light:En[400],dark:En[800]}}function GS(e="light"){return e==="dark"?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[500],dark:xn[900]}}function YS(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function JS(e="light"){return e==="dark"?{main:Xn[400],light:Xn[300],dark:Xn[700]}:{main:"#ed6c02",light:Xn[500],dark:Xn[900]}}function XS(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,l=e.primary||WS(t),s=e.secondary||HS(t),c=e.error||KS(t),u=e.info||GS(t),d=e.success||YS(t),m=e.warning||JS(t);function h(b){if(i)return XS(b);const v=Sy(b,eu.text.primary)>=r?eu.text.primary:Py.text.primary;if(process.env.NODE_ENV!=="production"){const p=Sy(b,v);p<3&&console.error([`MUI: The contrast ratio of ${p}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
22
+ `))}return v}const y=({color:b,name:v,mainShade:p=500,lightShade:_=300,darkShade:S=700})=>{if(b={...b},!b.main&&b[p]&&(b.main=b[p]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
23
+ The color object needs to have a \`main\` property or a \`${p}\` property.`:hr(11,v?` (${v})`:"",p));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
24
+ \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
93
25
 
94
26
  Did you intend to use one of the following approaches?
95
27
 
@@ -101,46 +33,40 @@ const theme1 = createTheme({ palette: {
101
33
 
102
34
  const theme2 = createTheme({ palette: {
103
35
  primary: { main: green[500] },
104
- } });`:qr(12,y?` (${y})`:"",JSON.stringify(f.main)));return Lb(f,"light",p,o),Lb(f,"dark",b,o),f.contrastText||(f.contrastText=h(f.main)),f};let g;return t==="light"?g=Ab():t==="dark"&&(g=Vb()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Zt({common:{...Ho},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:i,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:u,name:"success"}),grey:qO,contrastThreshold:r,getContrastText:h,augmentColor:m,tonalOffset:o,...g},s)}function GO(e){const t={};return Object.entries(e).forEach(o=>{const[s,a]=o;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function XO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function JO(e){return Math.round(e*1e5)/1e5}const qb={textTransform:"uppercase"},Bb='"Roboto", "Helvetica", "Arial", sans-serif';function ZO(e,t){const{fontFamily:r=Bb,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:i=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=o/14,g=d||(y=>`${y/c*m}rem`),w=(y,v,p,b,x)=>({fontFamily:r,fontWeight:y,fontSize:g(v),lineHeight:p,...r===Bb?{letterSpacing:`${JO(b/v)}em`}:{},...x,...u}),f={h1:w(s,96,1.167,-1.5),h2:w(s,60,1.2,-.5),h3:w(a,48,1.167,0),h4:w(a,34,1.235,.25),h5:w(a,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(a,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(a,16,1.5,.15),body2:w(a,14,1.43,.15),button:w(l,14,1.75,.4,qb),caption:w(a,12,1.66,.4),overline:w(a,12,2.66,1,qb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zt({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:i,...f},h,{clone:!1})}const QO=.2,eP=.14,tP=.12;function jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${QO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${eP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tP})`].join(",")}const rP=["none",jt(0,2,1,-1,0,1,1,0,0,1,3,0),jt(0,3,1,-2,0,2,2,0,0,1,5,0),jt(0,3,3,-2,0,3,4,0,0,1,8,0),jt(0,2,4,-1,0,4,5,0,0,1,10,0),jt(0,3,5,-1,0,5,8,0,0,1,14,0),jt(0,3,5,-1,0,6,10,0,0,1,18,0),jt(0,4,5,-2,0,7,10,1,0,2,16,1),jt(0,5,5,-3,0,8,10,1,0,3,14,2),jt(0,5,6,-3,0,9,12,1,0,3,16,2),jt(0,6,6,-3,0,10,14,1,0,4,18,3),jt(0,6,7,-4,0,11,15,1,0,4,20,3),jt(0,7,8,-4,0,12,17,2,0,5,22,4),jt(0,7,8,-4,0,13,19,2,0,5,24,4),jt(0,7,9,-4,0,14,21,2,0,5,26,4),jt(0,8,9,-5,0,15,22,2,0,6,28,5),jt(0,8,10,-5,0,16,24,2,0,6,30,5),jt(0,8,11,-5,0,17,26,2,0,6,32,5),jt(0,9,11,-5,0,18,28,2,0,7,34,6),jt(0,9,12,-6,0,19,29,2,0,7,36,6),jt(0,10,13,-6,0,20,31,3,0,8,38,7),jt(0,10,13,-6,0,21,33,3,0,8,40,7),jt(0,10,14,-6,0,22,35,3,0,8,42,7),jt(0,11,14,-7,0,23,36,3,0,9,44,8),jt(0,11,15,-7,0,24,38,3,0,9,46,8)],nP={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)"},oP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zb(e){return`${Math.round(e)}ms`}function sP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function aP(e){const t={...nP,...e.easing},r={...oP,...e.duration};return{getAutoHeightDuration:sP,create:(s=["all"],a={})=>{const{duration:l=r.standard,easing:i=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",h=m=>!Number.isNaN(parseFloat(m));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(i)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
105
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof l=="string"?l:zb(l)} ${i} ${typeof c=="string"?c:zb(c)}`).join(",")},...e,easing:t,duration:r}}const iP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lP(e){return Br(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ub(e={}){const t={...e};function r(o){const s=Object.entries(o);for(let a=0;a<s.length;a++){const[l,i]=s[a];!lP(i)||l.startsWith("unstable_")?delete o[l]:Br(i)&&(o[l]={...i},r(o[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
36
+ } });`:hr(12,v?` (${v})`:"",JSON.stringify(b.main)));return i?(ky(i,b,"light",_,n),ky(i,b,"dark",S,n)):(Ry(b,"light",_,n),Ry(b,"dark",S,n)),b.contrastText||(b.contrastText=h(b.main)),b};let g;return t==="light"?g=Ty():t==="dark"&&(g=$y()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),kt({common:{...Jn},mode:t,primary:y({color:l,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:m,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:US,contrastThreshold:r,getContrastText:h,augmentColor:y,tonalOffset:n,...g},a)}function ZS(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function QS(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function eE(e){return Math.round(e*1e5)/1e5}const Iy={textTransform:"uppercase"},jy='"Roboto", "Helvetica", "Arial", sans-serif';function tE(e,t){const{fontFamily:r=jy,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=n/14,y=d||(b=>`${b/c*h}rem`),g=(b,v,p,_,S)=>({fontFamily:r,fontWeight:b,fontSize:y(v),lineHeight:p,...r===jy?{letterSpacing:`${eE(_/v)}em`}:{},...S,...u}),f={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Iy),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Iy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kt({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s,...f},m,{clone:!1})}const rE=.2,nE=.14,oE=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oE})`].join(",")}const iE=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],aE={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)"},sE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ny(e){return`${Math.round(e)}ms`}function lE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function cE(e){const t={...aE,...e.easing},r={...sE,...e.duration};return{getAutoHeightDuration:lE,create:(i=["all"],a={})=>{const{duration:l=r.standard,easing:s=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",m=h=>!Number.isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(s)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
37
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof l=="string"?l:Ny(l)} ${s} ${typeof c=="string"?c:Ny(c)}`).join(",")},...e,easing:t,duration:r}}const uE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function dE(e){return mr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ay(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[l,s]=i[a];!dE(s)||l.startsWith("unstable_")?delete n[l]:mr(s)&&(n[l]={...s},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
106
38
 
107
39
  const theme = ${JSON.stringify(t,null,2)};
108
40
 
109
41
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
110
42
  theme.transitions = createTransitions(theme.transitions || {});
111
43
 
112
- export default theme;`}function jd(e={},...t){const{breakpoints:r,mixins:o={},spacing:s,palette:a={},transitions:l={},typography:i={},shape:c,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":qr(20));const d=Md(a),h=Cd(e);let m=Zt(h,{mixins:XO(h.breakpoints,o),palette:d,shadows:rP.slice(),typography:ZO(d,i),transitions:aP(l),zIndex:{...iP}});if(m=Zt(m,u),m=t.reduce((g,w)=>Zt(g,w),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],w=(f,y)=>{let v;for(v in f){const p=f[v];if(g.includes(v)&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const b=Ie("",v);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
113
- `))}f[v]={}}}};Object.keys(m.components).forEach(f=>{const y=m.components[f].styleOverrides;y&&f.startsWith("Mui")&&w(y,f)})}return m.unstable_sxConfig={...Fo,...u==null?void 0:u.unstable_sxConfig},m.unstable_sx=function(w){return to({sx:w,theme:this})},m.toRuntimeSource=Ub,m}function Nd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const cP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Nd(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Wb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Hb(e){return e==="dark"?cP:[]}function uP(e){const{palette:t={mode:"light"},opacity:r,overlays:o,...s}=e,a=Md(t);return{palette:a,opacity:{...Wb(a.mode),...r},overlays:o||Hb(a.mode),...s}}function dP(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const fP=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pP=e=>(t,r)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return fP(e.cssVarPrefix).forEach(i=>{l[i]=r[i],delete r[i]}),a==="media"?{[o]:r,"@media (prefers-color-scheme: dark)":{[o]:l}}:a?{[a.replace("%s",t)]:l,[`${o}, ${a.replace("%s",t)}`]:r}:{[o]:{...r,...l}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:r}};if(a)return a.replace("%s",String(t))}return o};function hP(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ve(e,t,r){!e[t]&&r&&(e[t]=r)}function Ko(e){return typeof e!="string"||!e.startsWith("hsl")?e:vb(e)}function sn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=qo(Ko(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
114
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function mP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zr=e=>{try{return e()}catch{}},gP=(e="mui")=>NO(e);function Ad(e,t,r,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!r){e[o]=uP({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...l}=jd({...r,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...Wb(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Hb(s)},l}function yP(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=dP,colorSchemeSelector:i=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(r)[0],h=o||(r.light&&d!=="light"?"light":d),m=gP(a),{[h]:g,light:w,dark:f,...y}=r,v={...y};let p=g;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(p=!0),!p)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:qr(21,h));const b=Ad(v,p,u,h);w&&!v.light&&Ad(v,w,void 0,"light"),f&&!v.dark&&Ad(v,f,void 0,"dark");let x={defaultColorScheme:h,...b,cssVarPrefix:a,colorSchemeSelector:i,rootSelector:c,getCssVar:m,colorSchemes:v,font:{...GO(b.typography),...b.font},spacing:mP(u.spacing)};Object.keys(x.colorSchemes).forEach(_=>{const T=x.colorSchemes[_].palette,P=D=>{const V=D.split("-"),M=V[1],N=V[2];return m(D,T[M][N])};if(T.mode==="light"&&(ve(T.common,"background","#fff"),ve(T.common,"onBackground","#000")),T.mode==="dark"&&(ve(T.common,"background","#000"),ve(T.common,"onBackground","#fff")),hP(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){ve(T.Alert,"errorColor",_t(T.error.light,.6)),ve(T.Alert,"infoColor",_t(T.info.light,.6)),ve(T.Alert,"successColor",_t(T.success.light,.6)),ve(T.Alert,"warningColor",_t(T.warning.light,.6)),ve(T.Alert,"errorFilledBg",P("palette-error-main")),ve(T.Alert,"infoFilledBg",P("palette-info-main")),ve(T.Alert,"successFilledBg",P("palette-success-main")),ve(T.Alert,"warningFilledBg",P("palette-warning-main")),ve(T.Alert,"errorFilledColor",zr(()=>T.getContrastText(T.error.main))),ve(T.Alert,"infoFilledColor",zr(()=>T.getContrastText(T.info.main))),ve(T.Alert,"successFilledColor",zr(()=>T.getContrastText(T.success.main))),ve(T.Alert,"warningFilledColor",zr(()=>T.getContrastText(T.warning.main))),ve(T.Alert,"errorStandardBg",It(T.error.light,.9)),ve(T.Alert,"infoStandardBg",It(T.info.light,.9)),ve(T.Alert,"successStandardBg",It(T.success.light,.9)),ve(T.Alert,"warningStandardBg",It(T.warning.light,.9)),ve(T.Alert,"errorIconColor",P("palette-error-main")),ve(T.Alert,"infoIconColor",P("palette-info-main")),ve(T.Alert,"successIconColor",P("palette-success-main")),ve(T.Alert,"warningIconColor",P("palette-warning-main")),ve(T.AppBar,"defaultBg",P("palette-grey-100")),ve(T.Avatar,"defaultBg",P("palette-grey-400")),ve(T.Button,"inheritContainedBg",P("palette-grey-300")),ve(T.Button,"inheritContainedHoverBg",P("palette-grey-A100")),ve(T.Chip,"defaultBorder",P("palette-grey-400")),ve(T.Chip,"defaultAvatarColor",P("palette-grey-700")),ve(T.Chip,"defaultIconColor",P("palette-grey-700")),ve(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(T.LinearProgress,"primaryBg",It(T.primary.main,.62)),ve(T.LinearProgress,"secondaryBg",It(T.secondary.main,.62)),ve(T.LinearProgress,"errorBg",It(T.error.main,.62)),ve(T.LinearProgress,"infoBg",It(T.info.main,.62)),ve(T.LinearProgress,"successBg",It(T.success.main,.62)),ve(T.LinearProgress,"warningBg",It(T.warning.main,.62)),ve(T.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),ve(T.Slider,"primaryTrack",It(T.primary.main,.62)),ve(T.Slider,"secondaryTrack",It(T.secondary.main,.62)),ve(T.Slider,"errorTrack",It(T.error.main,.62)),ve(T.Slider,"infoTrack",It(T.info.main,.62)),ve(T.Slider,"successTrack",It(T.success.main,.62)),ve(T.Slider,"warningTrack",It(T.warning.main,.62));const D=si(T.background.default,.8);ve(T.SnackbarContent,"bg",D),ve(T.SnackbarContent,"color",zr(()=>T.getContrastText(D))),ve(T.SpeedDialAction,"fabHoverBg",si(T.background.paper,.15)),ve(T.StepConnector,"border",P("palette-grey-400")),ve(T.StepContent,"border",P("palette-grey-400")),ve(T.Switch,"defaultColor",P("palette-common-white")),ve(T.Switch,"defaultDisabledColor",P("palette-grey-100")),ve(T.Switch,"primaryDisabledColor",It(T.primary.main,.62)),ve(T.Switch,"secondaryDisabledColor",It(T.secondary.main,.62)),ve(T.Switch,"errorDisabledColor",It(T.error.main,.62)),ve(T.Switch,"infoDisabledColor",It(T.info.main,.62)),ve(T.Switch,"successDisabledColor",It(T.success.main,.62)),ve(T.Switch,"warningDisabledColor",It(T.warning.main,.62)),ve(T.TableCell,"border",It(oi(T.divider,1),.88)),ve(T.Tooltip,"bg",oi(T.grey[700],.92))}if(T.mode==="dark"){ve(T.Alert,"errorColor",It(T.error.light,.6)),ve(T.Alert,"infoColor",It(T.info.light,.6)),ve(T.Alert,"successColor",It(T.success.light,.6)),ve(T.Alert,"warningColor",It(T.warning.light,.6)),ve(T.Alert,"errorFilledBg",P("palette-error-dark")),ve(T.Alert,"infoFilledBg",P("palette-info-dark")),ve(T.Alert,"successFilledBg",P("palette-success-dark")),ve(T.Alert,"warningFilledBg",P("palette-warning-dark")),ve(T.Alert,"errorFilledColor",zr(()=>T.getContrastText(T.error.dark))),ve(T.Alert,"infoFilledColor",zr(()=>T.getContrastText(T.info.dark))),ve(T.Alert,"successFilledColor",zr(()=>T.getContrastText(T.success.dark))),ve(T.Alert,"warningFilledColor",zr(()=>T.getContrastText(T.warning.dark))),ve(T.Alert,"errorStandardBg",_t(T.error.light,.9)),ve(T.Alert,"infoStandardBg",_t(T.info.light,.9)),ve(T.Alert,"successStandardBg",_t(T.success.light,.9)),ve(T.Alert,"warningStandardBg",_t(T.warning.light,.9)),ve(T.Alert,"errorIconColor",P("palette-error-main")),ve(T.Alert,"infoIconColor",P("palette-info-main")),ve(T.Alert,"successIconColor",P("palette-success-main")),ve(T.Alert,"warningIconColor",P("palette-warning-main")),ve(T.AppBar,"defaultBg",P("palette-grey-900")),ve(T.AppBar,"darkBg",P("palette-background-paper")),ve(T.AppBar,"darkColor",P("palette-text-primary")),ve(T.Avatar,"defaultBg",P("palette-grey-600")),ve(T.Button,"inheritContainedBg",P("palette-grey-800")),ve(T.Button,"inheritContainedHoverBg",P("palette-grey-700")),ve(T.Chip,"defaultBorder",P("palette-grey-700")),ve(T.Chip,"defaultAvatarColor",P("palette-grey-300")),ve(T.Chip,"defaultIconColor",P("palette-grey-300")),ve(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(T.LinearProgress,"primaryBg",_t(T.primary.main,.5)),ve(T.LinearProgress,"secondaryBg",_t(T.secondary.main,.5)),ve(T.LinearProgress,"errorBg",_t(T.error.main,.5)),ve(T.LinearProgress,"infoBg",_t(T.info.main,.5)),ve(T.LinearProgress,"successBg",_t(T.success.main,.5)),ve(T.LinearProgress,"warningBg",_t(T.warning.main,.5)),ve(T.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),ve(T.Slider,"primaryTrack",_t(T.primary.main,.5)),ve(T.Slider,"secondaryTrack",_t(T.secondary.main,.5)),ve(T.Slider,"errorTrack",_t(T.error.main,.5)),ve(T.Slider,"infoTrack",_t(T.info.main,.5)),ve(T.Slider,"successTrack",_t(T.success.main,.5)),ve(T.Slider,"warningTrack",_t(T.warning.main,.5));const D=si(T.background.default,.98);ve(T.SnackbarContent,"bg",D),ve(T.SnackbarContent,"color",zr(()=>T.getContrastText(D))),ve(T.SpeedDialAction,"fabHoverBg",si(T.background.paper,.15)),ve(T.StepConnector,"border",P("palette-grey-600")),ve(T.StepContent,"border",P("palette-grey-600")),ve(T.Switch,"defaultColor",P("palette-grey-300")),ve(T.Switch,"defaultDisabledColor",P("palette-grey-600")),ve(T.Switch,"primaryDisabledColor",_t(T.primary.main,.55)),ve(T.Switch,"secondaryDisabledColor",_t(T.secondary.main,.55)),ve(T.Switch,"errorDisabledColor",_t(T.error.main,.55)),ve(T.Switch,"infoDisabledColor",_t(T.info.main,.55)),ve(T.Switch,"successDisabledColor",_t(T.success.main,.55)),ve(T.Switch,"warningDisabledColor",_t(T.warning.main,.55)),ve(T.TableCell,"border",_t(oi(T.divider,1),.68)),ve(T.Tooltip,"bg",oi(T.grey[700],.92))}sn(T.background,"default"),sn(T.background,"paper"),sn(T.common,"background"),sn(T.common,"onBackground"),sn(T,"divider"),Object.keys(T).forEach(D=>{const V=T[D];D!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&ve(T[D],"mainChannel",qo(Ko(V.main))),V.light&&ve(T[D],"lightChannel",qo(Ko(V.light))),V.dark&&ve(T[D],"darkChannel",qo(Ko(V.dark))),V.contrastText&&ve(T[D],"contrastTextChannel",qo(Ko(V.contrastText))),D==="text"&&(sn(T[D],"primary"),sn(T[D],"secondary")),D==="action"&&(V.active&&sn(T[D],"active"),V.selected&&sn(T[D],"selected")))})}),x=t.reduce((_,T)=>Zt(_,T),x);const S={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:pP(x)},{vars:C,generateThemeVars:O,generateStyleSheets:k}=FO(x,S);return x.vars=C,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([_,T])=>{x[_]=T}),x.generateThemeVars=O,x.generateStyleSheets=k,x.generateSpacing=function(){return ab(u.spacing,wd(this))},x.getColorSchemeSelector=LO(i),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=l,x.unstable_sxConfig={...Fo,...u==null?void 0:u.unstable_sxConfig},x.unstable_sx=function(T){return to({sx:T,theme:this})},x.toRuntimeSource=Ub,x}function Yb(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Md({...r===!0?{}:r.palette,mode:t})})}function bP(e={},...t){const{palette:r,cssVariables:o=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...l}=e,i=a||"light",c=s==null?void 0:s[i],u={...s,...r?{[i]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(o===!1){if(!("colorSchemes"in e))return jd(e,...t);let d=r;"palette"in e||u[i]&&(u[i]!==!0?d=u[i].palette:i==="dark"&&(d={mode:"dark"}));const h=jd({...e,palette:d},...t);return h.defaultColorScheme=i,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},Yb(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},Yb(h,"light",u.light)),h}return!r&&!("light"in u)&&i==="light"&&(u.light=!0),yP({...l,colorSchemes:u,defaultColorScheme:i,...typeof o!="boolean"&&o},...t)}const ci=bP(),Go="$$material";function jn(){const e=Td(ci);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[Go]||e}function Kb(e){return R.jsx(lb,{...e,defaultTheme:ci,themeId:Go})}process.env.NODE_ENV!=="production"&&(Kb.propTypes={styles:n.oneOfType([n.array,n.func,n.number,n.object,n.string,n.bool])});function Gb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const er=e=>Gb(e)&&e!=="classes",se=hb({themeId:Go,defaultTheme:ci,rootShouldForwardProp:er});function vP(e){return function(r){return R.jsx(Kb,{styles:typeof e=="function"?o=>e({theme:o,...r}):e})}}function wP(){return q1}process.env.NODE_ENV!=="production"&&(n.node,n.object.isRequired);function tt(e){return MO(e)}function ui(e){return parseInt(e,10)||0}const xP={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function SP(e){for(const t in e)return!1;return!0}function CP(e){return SP(e)||e.outerHeightStyle===0&&!e.overflowing}const Xb=E.forwardRef(function(t,r){const{onChange:o,maxRows:s,minRows:a=1,style:l,value:i,...c}=t,{current:u}=E.useRef(i!=null),d=E.useRef(null),h=ft(r,d),m=E.useRef(null),g=E.useRef(null),w=E.useCallback(()=>{const p=d.current,b=g.current;if(!p||!b)return;const S=Nr(p).getComputedStyle(p);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=S.width,b.value=p.value||t.placeholder||"x",b.value.slice(-1)===`
115
- `&&(b.value+=" ");const C=S.boxSizing,O=ui(S.paddingBottom)+ui(S.paddingTop),k=ui(S.borderBottomWidth)+ui(S.borderTopWidth),_=b.scrollHeight;b.value="x";const T=b.scrollHeight;let P=_;a&&(P=Math.max(Number(a)*T,P)),s&&(P=Math.min(Number(s)*T,P)),P=Math.max(P,T);const D=P+(C==="border-box"?O+k:0),V=Math.abs(P-_)<=1;return{outerHeightStyle:D,overflowing:V}},[s,a,t.placeholder]),f=E.useCallback(()=>{const p=d.current,b=w();if(!p||!b||CP(b))return;const x=b.outerHeightStyle;m.current!==x&&(m.current=x,p.style.height=`${x}px`),p.style.overflow=b.overflowing?"hidden":""},[w]),y=E.useRef(-1);qt(()=>{const p=ii(()=>f()),b=d==null?void 0:d.current;if(!b)return;const x=Nr(b);x.addEventListener("resize",p);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{S.unobserve(b),cancelAnimationFrame(y.current),f(),y.current=requestAnimationFrame(()=>{S.observe(b)})}),S.observe(b)),()=>{p.clear(),cancelAnimationFrame(y.current),x.removeEventListener("resize",p),S&&S.disconnect()}},[w,f]),qt(()=>{f()});const v=p=>{u||f(),o&&o(p)};return R.jsxs(E.Fragment,{children:[R.jsx("textarea",{value:i,onChange:v,ref:h,rows:a,style:l,...c}),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...xP.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Xb.propTypes={className:n.string,maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),onChange:n.func,placeholder:n.string,style:n.object,value:n.oneOfType([n.arrayOf(n.string),n.number,n.string])});function Xo(e){return typeof e=="string"}function yn({props:e,states:t,muiFormControl:r}){return t.reduce((o,s)=>(o[s]=e[s],r&&typeof e[s]>"u"&&(o[s]=r[s]),o),{})}const Jo=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jo.displayName="FormControlContext");function or(){return E.useContext(Jo)}const Ze=jO;function Jb(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function di(e,t=!1){return e&&(Jb(e.value)&&e.value!==""||t&&Jb(e.defaultValue)&&e.defaultValue!=="")}function TP(e){return e.startAdornment}function OP(e){return Ie("MuiInputBase",e)}const yr=ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Zb;const fi=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Oe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},pi=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},PP=e=>{const{classes:t,color:r,disabled:o,error:s,endAdornment:a,focused:l,formControl:i,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:h,size:m,startAdornment:g,type:w}=e,f={root:["root",`color${Oe(r)}`,o&&"disabled",s&&"error",c&&"fullWidth",l&&"focused",i&&"formControl",m&&m!=="medium"&&`size${Oe(m)}`,d&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",o&&"disabled",w==="search"&&"inputTypeSearch",d&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return _e(f,OP,t)},hi=se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:fi})(Ze(({theme:e})=>({...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",[`&.${yr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),mi=se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:pi})(Ze(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${yr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Qb=vP({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),gi=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:l,className:i,color:c,components:u={},componentsProps:d={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:g,endAdornment:w,error:f,fullWidth:y=!1,id:v,inputComponent:p="input",inputProps:b={},inputRef:x,margin:S,maxRows:C,minRows:O,multiline:k=!1,name:_,onBlur:T,onChange:P,onClick:D,onFocus:V,onKeyDown:M,onKeyUp:N,placeholder:F,readOnly:K,renderSuffix:H,rows:Z,size:L,slotProps:j={},slots:Y={},startAdornment:q,type:$="text",value:I,...U}=o,Q=b.value!=null?b.value:I,{current:W}=E.useRef(Q!=null),ee=E.useRef(),ne=E.useCallback(We=>{process.env.NODE_ENV!=="production"&&We&&We.nodeName!=="INPUT"&&!We.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
116
- `))},[]),B=ft(ee,x,b.ref,ne),[A,z]=E.useState(!1),X=or();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(X)return X.registerEffect()},[X]);const te=yn({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=X?X.focused:A,E.useEffect(()=>{!X&&m&&A&&(z(!1),T&&T())},[X,m,A,T]);const ae=X&&X.onFilled,J=X&&X.onEmpty,fe=E.useCallback(We=>{di(We)?ae&&ae():J&&J()},[ae,J]);qt(()=>{W&&fe({value:Q})},[Q,fe,W]);const le=We=>{V&&V(We),b.onFocus&&b.onFocus(We),X&&X.onFocus?X.onFocus(We):z(!0)},ge=We=>{T&&T(We),b.onBlur&&b.onBlur(We),X&&X.onBlur?X.onBlur(We):z(!1)},Se=(We,...gt)=>{if(!W){const mt=We.target||ee.current;if(mt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":qr(1));fe({value:mt.value})}b.onChange&&b.onChange(We,...gt),P&&P(We,...gt)};E.useEffect(()=>{fe(ee.current)},[]);const Ce=We=>{ee.current&&We.currentTarget===We.target&&ee.current.focus(),D&&D(We)};let Fe=p,Ye=b;k&&Fe==="input"&&(Z?(process.env.NODE_ENV!=="production"&&(O||C)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ye={type:void 0,minRows:Z,maxRows:Z,...Ye}):Ye={type:void 0,maxRows:C,minRows:O,...Ye},Fe=Xb);const He=We=>{fe(We.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};E.useEffect(()=>{X&&X.setAdornedStart(!!q)},[X,q]);const Qe={...o,color:te.color||"primary",disabled:te.disabled,endAdornment:w,error:te.error,focused:te.focused,formControl:X,fullWidth:y,hiddenLabel:te.hiddenLabel,multiline:k,size:te.size,startAdornment:q,type:$},ut=PP(Qe),dt=Y.root||u.Root||hi,st=j.root||d.root||{},Ge=Y.input||u.Input||mi;return Ye={...Ye,...j.input??d.input},R.jsxs(E.Fragment,{children:[!g&&typeof Qb=="function"&&(Zb||(Zb=R.jsx(Qb,{}))),R.jsxs(dt,{...st,ref:r,onClick:Ce,...U,...!Xo(dt)&&{ownerState:{...Qe,...st.ownerState}},className:Te(ut.root,st.className,i,K&&"MuiInputBase-readOnly"),children:[q,R.jsx(Jo.Provider,{value:null,children:R.jsx(Ge,{"aria-invalid":te.error,"aria-describedby":s,autoComplete:a,autoFocus:l,defaultValue:h,disabled:te.disabled,id:v,onAnimationStart:He,name:_,placeholder:F,readOnly:K,required:te.required,rows:Z,value:Q,onKeyDown:M,onKeyUp:N,type:$,...Ye,...!Xo(Ge)&&{as:Fe,ownerState:{...Qe,...Ye.ownerState}},ref:B,className:Te(ut.input,Ye.className,K&&"MuiInputBase-readOnly"),onBlur:ge,onChange:Se,onFocus:le})}),w,H?H({...te,startAdornment:q}):null]})]})});process.env.NODE_ENV!=="production"&&(gi.propTypes={"aria-describedby":n.string,autoComplete:n.string,autoFocus:n.bool,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),componentsProps:n.shape({input:n.object,root:n.object}),defaultValue:n.any,disabled:n.bool,disableInjectingGlobalStyles:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:ai,inputProps:n.object,inputRef:Mt,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onClick:n.func,onFocus:n.func,onInvalid:n.func,onKeyDown:n.func,onKeyUp:n.func,placeholder:n.string,readOnly:n.bool,renderSuffix:n.func,required:n.bool,rows:n.oneOfType([n.number,n.string]),size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any});function EP(e){return typeof e.main=="string"}function kP(e,t=[]){if(!EP(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Kt(e=[]){return([,t])=>t&&kP(t,e)}function RP(e){return Ie("MuiInput",e)}const bn={...yr,...ke("MuiInput",["root","underline","input"])},$P=e=>{const{classes:t,disableUnderline:r}=e,s=_e({root:["root",!r&&"underline"],input:["input"]},RP,t);return{...t,...s}},_P=se(hi,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...fi(e,t),!r.disableUnderline&&t.underline]}})(Ze(({theme:e})=>{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})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{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"},[`&.${bn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bn.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(.${bn.disabled}, .${bn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${bn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),IP=se(mi,{name:"MuiInput",slot:"Input",overridesResolver:pi})({}),yi=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:i=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:h={},type:m="text",...g}=o,w=$P(o),y={root:{ownerState:{disableUnderline:s}}},v=d??l?Zt(d??l,y):y,p=h.root??a.Root??_P,b=h.input??a.Input??IP;return R.jsx(gi,{slots:{root:p,input:b},slotProps:v,fullWidth:i,inputComponent:c,multiline:u,ref:r,type:m,...g,classes:w})});process.env.NODE_ENV!=="production"&&(yi.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),componentsProps:n.shape({input:n.object,root:n.object}),defaultValue:n.any,disabled:n.bool,disableUnderline:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:Mt,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),yi.muiName="Input";function DP(e){return Ie("MuiFilledInput",e)}const br={...yr,...ke("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function MP(e){return Ie("MuiSvgIcon",e)}ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jP=e=>{const{color:t,fontSize:r,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return _e(s,MP,o)},NP=se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(Ze(({theme:e})=>{var t,r,o,s,a,l,i,c,u,d,h,m,g,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:o.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:c.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var y,v;return{props:{color:f},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y[f])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(w=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),bi=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:l="inherit",component:i="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24",...g}=o,w=E.isValidElement(s)&&s.type==="svg",f={...o,color:l,component:i,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:w},y={};d||(y.viewBox=m);const v=jP(f);return R.jsxs(NP,{as:i,className:Te(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...y,...g,...w&&s.props,ownerState:f,children:[w?s.props.children:s,h?R.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(bi.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,fontSize:n.oneOfType([n.oneOf(["inherit","large","medium","small"]),n.string]),htmlColor:n.string,inheritViewBox:n.bool,shapeRendering:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleAccess:n.string,viewBox:n.string}),bi.muiName="SvgIcon";function kt(e,t){function r(o,s){return R.jsx(bi,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=bi.muiName,E.memo(E.forwardRef(r))}const AP=e=>{const{classes:t,disableUnderline:r,startAdornment:o,endAdornment:s,size:a,hiddenLabel:l,multiline:i}=e,c={root:["root",!r&&"underline",o&&"adornedStart",s&&"adornedEnd",a==="small"&&`size${Oe(a)}`,l&&"hiddenLabel",i&&"multiline"],input:["input"]},u=_e(c,DP,t);return{...t,...u}},VP=se(hi,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...fi(e,t),!r.disableUnderline&&t.underline]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${br.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${br.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{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"},[`&.${br.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${br.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})`: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(.${br.disabled}, .${br.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${br.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Kt()).map(([l])=>{var i;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(i=(e.vars||e).palette[l])==null?void 0:i.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:i})=>l.multiline&&i==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),FP=se(mi,{name:"MuiFilledInput",slot:"Input",overridesResolver:pi})(Ze(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),vi=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:i=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:h,slots:m={},type:g="text",...w}=o,f={...o,disableUnderline:s,fullWidth:i,inputComponent:u,multiline:d,type:g},y=AP(o),v={root:{ownerState:f},input:{ownerState:f}},p=h??l?Zt(v,h??l):v,b=m.root??a.Root??VP,x=m.input??a.Input??FP;return R.jsx(gi,{slots:{root:b,input:x},slotProps:p,fullWidth:i,inputComponent:u,multiline:d,ref:r,type:g,...w,classes:y})});process.env.NODE_ENV!=="production"&&(vi.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),componentsProps:n.shape({input:n.object,root:n.object}),defaultValue:n.any,disabled:n.bool,disableUnderline:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,hiddenLabel:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:Mt,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slotProps:n.shape({input:n.object,root:n.object}),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),vi.muiName="Input";var ev;const LP=se("fieldset",{shouldForwardProp:er})({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%"}),qP=se("legend",{shouldForwardProp:er})(Ze(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function tv(e){const{children:t,classes:r,className:o,label:s,notched:a,...l}=e,i=s!=null&&s!=="",c={...e,notched:a,withLabel:i};return R.jsx(LP,{"aria-hidden":!0,className:o,ownerState:c,...l,children:R.jsx(qP,{ownerState:c,children:i?R.jsx("span",{children:s}):ev||(ev=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(tv.propTypes={children:n.node,classes:n.object,className:n.string,label:n.node,notched:n.bool.isRequired,style:n.object});function BP(e){return Ie("MuiOutlinedInput",e)}const Tr={...yr,...ke("MuiOutlinedInput",["root","notchedOutline","input"])},zP=e=>{const{classes:t}=e,o=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},BP,t);return{...t,...o}},UP=se(hi,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:fi})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Tr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Tr.focused} .${Tr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r},style:{[`&.${Tr.focused} .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Tr.error} .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Tr.disabled} .${Tr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:o})=>r.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),WP=se(tv,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ze(({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}})),HP=se(mi,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:pi})(Ze(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),wi=E.forwardRef(function(t,r){var o;const s=tt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:i="input",label:c,multiline:u=!1,notched:d,slots:h={},type:m="text",...g}=s,w=zP(s),f=or(),y=yn({props:s,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...s,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:f,fullWidth:l,hiddenLabel:y.hiddenLabel,multiline:u,size:y.size,type:m},p=h.root??a.Root??UP,b=h.input??a.Input??HP;return R.jsx(gi,{slots:{root:p,input:b},renderSuffix:x=>R.jsx(WP,{ownerState:v,className:w.notchedOutline,label:c!=null&&c!==""&&y.required?o||(o=R.jsxs(E.Fragment,{children:[c," ","*"]})):c,notched:typeof d<"u"?d:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:l,inputComponent:i,multiline:u,ref:r,type:m,...g,classes:{...w,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(wi.propTypes={autoComplete:n.string,autoFocus:n.bool,classes:n.object,color:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),components:n.shape({Input:n.elementType,Root:n.elementType}),defaultValue:n.any,disabled:n.bool,endAdornment:n.node,error:n.bool,fullWidth:n.bool,id:n.string,inputComponent:n.elementType,inputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,notched:n.bool,onChange:n.func,placeholder:n.string,readOnly:n.bool,required:n.bool,rows:n.oneOfType([n.number,n.string]),slots:n.shape({input:n.elementType,root:n.elementType}),startAdornment:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any}),wi.muiName="Input";function YP(e){return Ie("MuiFormLabel",e)}const Zo=ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),KP=e=>{const{classes:t,color:r,focused:o,disabled:s,error:a,filled:l,required:i}=e,c={root:["root",`color${Oe(r)}`,s&&"disabled",a&&"error",l&&"filled",o&&"focused",i&&"required"],asterisk:["asterisk",a&&"error"]};return _e(c,YP,t)},GP=se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{[`&.${Zo.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Zo.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),XP=se("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ze(({theme:e})=>({[`&.${Zo.error}`]:{color:(e.vars||e).palette.error.main}}))),vn=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiFormLabel"}),{children:s,className:a,color:l,component:i="label",disabled:c,error:u,filled:d,focused:h,required:m,...g}=o,w=or(),f=yn({props:o,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:f.color||"primary",component:i,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=KP(y);return R.jsxs(GP,{as:i,ownerState:y,className:Te(v.root,a),ref:r,...g,children:[s,f.required&&R.jsxs(XP,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(vn.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["error","info","primary","secondary","success","warning"]),n.string]),component:n.elementType,disabled:n.bool,error:n.bool,filled:n.bool,focused:n.bool,required:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function JP(e){return Ie("MuiInputLabel",e)}ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ZP=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:a,variant:l,required:i}=e,c={root:["root",r&&"formControl",!a&&"animated",s&&"shrink",o&&o!=="normal"&&`size${Oe(o)}`,l],asterisk:[i&&"asterisk"]},u=_e(c,JP,t);return{...t,...u}},QP=se(vn,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zo.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Ze(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Qo=E.forwardRef(function(t,r){const o=tt({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:a,shrink:l,variant:i,className:c,...u}=o,d=or();let h=l;typeof h>"u"&&d&&(h=d.filled||d.focused||d.adornedStart);const m=yn({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:d,shrink:h,size:m.size,variant:m.variant,required:m.required,focused:m.focused},w=ZP(g);return R.jsx(QP,{"data-shrink":h,ref:r,className:Te(w.root,c),...u,ownerState:g,classes:w})});process.env.NODE_ENV!=="production"&&(Qo.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["error","info","primary","secondary","success","warning"]),n.string]),disableAnimation:n.bool,disabled:n.bool,error:n.bool,focused:n.bool,margin:n.oneOf(["dense"]),required:n.bool,shrink:n.bool,size:n.oneOfType([n.oneOf(["normal","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});function eE(e){return Ie("MuiFormControl",e)}ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const tE=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${Oe(r)}`,o&&"fullWidth"]};return _e(s,eE,t)},rE=se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${Oe(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Nn=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiFormControl"}),{children:s,className:a,color:l="primary",component:i="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:h=!1,hiddenLabel:m=!1,margin:g="none",required:w=!1,size:f="medium",variant:y="outlined",...v}=o,p={...o,color:l,component:i,disabled:c,error:u,fullWidth:h,hiddenLabel:m,margin:g,required:w,size:f,variant:y},b=tE(p),[x,S]=E.useState(()=>{let F=!1;return s&&E.Children.forEach(s,K=>{if(!zo(K,["Input","Select"]))return;const H=zo(K,["Select"])?K.props.input:K;H&&TP(H.props)&&(F=!0)}),F}),[C,O]=E.useState(()=>{let F=!1;return s&&E.Children.forEach(s,K=>{zo(K,["Input","Select"])&&(di(K.props,!0)||di(K.props.inputProps,!0))&&(F=!0)}),F}),[k,_]=E.useState(!1);c&&k&&_(!1);const T=d!==void 0&&!c?d:k;let P;const D=E.useRef(!1);process.env.NODE_ENV!=="production"&&(P=()=>(D.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
117
- `)),D.current=!0,()=>{D.current=!1}));const V=E.useCallback(()=>{O(!0)},[]),M=E.useCallback(()=>{O(!1)},[]),N=E.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:l,disabled:c,error:u,filled:C,focused:T,fullWidth:h,hiddenLabel:m,size:f,onBlur:()=>{_(!1)},onFocus:()=>{_(!0)},onEmpty:M,onFilled:V,registerEffect:P,required:w,variant:y}),[x,l,c,u,C,T,h,m,P,M,V,w,f,y]);return R.jsx(Jo.Provider,{value:N,children:R.jsx(rE,{as:i,ownerState:p,className:Te(b.root,a),ref:r,...v,children:s})})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,disabled:n.bool,error:n.bool,focused:n.bool,fullWidth:n.bool,hiddenLabel:n.bool,margin:n.oneOf(["dense","none","normal"]),required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});function nE(e){return Ie("MuiFormHelperText",e)}const rv=ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var nv;const oE=e=>{const{classes:t,contained:r,size:o,disabled:s,error:a,filled:l,focused:i,required:c}=e,u={root:["root",s&&"disabled",a&&"error",o&&`size${Oe(o)}`,r&&"contained",i&&"focused",l&&"filled",c&&"required"]};return _e(u,nE,t)},sE=se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Oe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rv.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),io=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiFormHelperText"}),{children:s,className:a,component:l="p",disabled:i,error:c,filled:u,focused:d,margin:h,required:m,variant:g,...w}=o,f=or(),y=yn({props:o,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...o,component:l,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete v.ownerState;const p=oE(v);return R.jsx(sE,{as:l,className:Te(p.root,a),ref:r,...w,ownerState:v,children:s===" "?nv||(nv=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(io.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,disabled:n.bool,error:n.bool,filled:n.bool,focused:n.bool,margin:n.oneOf(["dense"]),required:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["filled","outlined","standard"]),n.string])});var xi={exports:{}},Rt={};/**
118
- * @license React
119
- * react-is.production.js
120
- *
121
- * Copyright (c) Meta Platforms, Inc. and affiliates.
122
- *
123
- * This source code is licensed under the MIT license found in the
124
- * LICENSE file in the root directory of this source tree.
125
- */var ov;function aE(){if(ov)return Rt;ov=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function w(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case r:case s:case o:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case l:case i:case h:case d:return f;case a:return f;default:return y}}case t:return y}}}return Rt.ContextConsumer=a,Rt.ContextProvider=l,Rt.Element=e,Rt.ForwardRef=i,Rt.Fragment=r,Rt.Lazy=h,Rt.Memo=d,Rt.Portal=t,Rt.Profiler=s,Rt.StrictMode=o,Rt.Suspense=c,Rt.SuspenseList=u,Rt.isContextConsumer=function(f){return w(f)===a},Rt.isContextProvider=function(f){return w(f)===l},Rt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Rt.isForwardRef=function(f){return w(f)===i},Rt.isFragment=function(f){return w(f)===r},Rt.isLazy=function(f){return w(f)===h},Rt.isMemo=function(f){return w(f)===d},Rt.isPortal=function(f){return w(f)===t},Rt.isProfiler=function(f){return w(f)===s},Rt.isStrictMode=function(f){return w(f)===o},Rt.isSuspense=function(f){return w(f)===c},Rt.isSuspenseList=function(f){return w(f)===u},Rt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===o||f===c||f===u||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===i||f.$$typeof===g||f.getModuleId!==void 0)},Rt.typeOf=w,Rt}var $t={};/**
126
- * @license React
127
- * react-is.development.js
128
- *
129
- * Copyright (c) Meta Platforms, Inc. and affiliates.
130
- *
131
- * This source code is licensed under the MIT license found in the
132
- * LICENSE file in the root directory of this source tree.
133
- */var sv;function iE(){return sv||(sv=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case t:switch(f=f.type,f){case o:case a:case s:case u:case d:return f;default:switch(f=f&&f.$$typeof,f){case i:case c:case m:case h:return f;case l:return f;default:return y}}case r:return y}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.for("react.client.reference");$t.ContextConsumer=l,$t.ContextProvider=i,$t.Element=t,$t.ForwardRef=c,$t.Fragment=o,$t.Lazy=m,$t.Memo=h,$t.Portal=r,$t.Profiler=a,$t.StrictMode=s,$t.Suspense=u,$t.SuspenseList=d,$t.isContextConsumer=function(f){return e(f)===l},$t.isContextProvider=function(f){return e(f)===i},$t.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},$t.isForwardRef=function(f){return e(f)===c},$t.isFragment=function(f){return e(f)===o},$t.isLazy=function(f){return e(f)===m},$t.isMemo=function(f){return e(f)===h},$t.isPortal=function(f){return e(f)===r},$t.isProfiler=function(f){return e(f)===a},$t.isStrictMode=function(f){return e(f)===s},$t.isSuspense=function(f){return e(f)===u},$t.isSuspenseList=function(f){return e(f)===d},$t.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===a||f===s||f===u||f===d||f===g||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===h||f.$$typeof===i||f.$$typeof===l||f.$$typeof===c||f.$$typeof===w||f.getModuleId!==void 0)},$t.typeOf=e}()),$t}var av;function lE(){return av||(av=1,process.env.NODE_ENV==="production"?xi.exports=aE():xi.exports=iE()),xi.exports}var Si=lE();const wn=E.createContext({});process.env.NODE_ENV!=="production"&&(wn.displayName="ListContext");function cE(e){return Ie("MuiList",e)}ke("MuiList",["root","padding","dense","subheader"]);const uE=e=>{const{classes:t,disablePadding:r,dense:o,subheader:s}=e;return _e({root:["root",!r&&"padding",o&&"dense",s&&"subheader"]},cE,t)},dE=se("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Vd=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiList"}),{children:s,className:a,component:l="ul",dense:i=!1,disablePadding:c=!1,subheader:u,...d}=o,h=E.useMemo(()=>({dense:i}),[i]),m={...o,component:l,dense:i,disablePadding:c},g=uE(m);return R.jsx(wn.Provider,{value:h,children:R.jsxs(dE,{as:l,className:Te(g.root,a),ref:r,ownerState:m,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(Vd.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disablePadding:n.bool,subheader:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function Fd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function iv(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function lv(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function es(e,t,r,o,s,a){let l=!1,i=s(e,t,t?r:!1);for(;i;){if(i===e.firstChild){if(l)return!1;l=!0}const c=o?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!lv(i,a)||c)i=s(e,i,r);else return i.focus(),!0}return!1}const Ci=E.forwardRef(function(t,r){const{actions:o,autoFocus:s=!1,autoFocusItem:a=!1,children:l,className:i,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:h="selectedMenu",...m}=t,g=E.useRef(null),w=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qt(()=>{s&&g.current.focus()},[s]),E.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(b,{direction:x})=>{const S=!g.current.style.width;if(b.clientHeight<g.current.clientHeight&&S){const C=`${kb(Nr(b))}px`;g.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=C,g.current.style.width=`calc(100% + ${C})`}return g.current}}),[]);const f=b=>{const x=g.current,S=b.key;if(b.ctrlKey||b.metaKey||b.altKey){d&&d(b);return}const O=Yt(x).activeElement;if(S==="ArrowDown")b.preventDefault(),es(x,O,u,c,Fd);else if(S==="ArrowUp")b.preventDefault(),es(x,O,u,c,iv);else if(S==="Home")b.preventDefault(),es(x,null,u,c,Fd);else if(S==="End")b.preventDefault(),es(x,null,u,c,iv);else if(S.length===1){const k=w.current,_=S.toLowerCase(),T=performance.now();k.keys.length>0&&(T-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&_!==k.keys[0]&&(k.repeating=!1)),k.lastTime=T,k.keys.push(_);const P=O&&!k.repeating&&lv(O,k);k.previousKeyMatched&&(P||es(x,O,!1,c,Fd,k))?b.preventDefault():k.previousKeyMatched=!1}d&&d(b)},y=ft(g,r);let v=-1;E.Children.forEach(l,(b,x)=>{if(!E.isValidElement(b)){v===x&&(v+=1,v>=l.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Si.isFragment(b)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
134
- `)),b.props.disabled||(h==="selectedMenu"&&b.props.selected||v===-1)&&(v=x),v===x&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=l.length&&(v=-1))});const p=E.Children.map(l,(b,x)=>{if(x===v){const S={};return a&&(S.autoFocus=!0),b.props.tabIndex===void 0&&h==="selectedMenu"&&(S.tabIndex=0),E.cloneElement(b,S)}return b});return R.jsx(Vd,{role:"menu",ref:y,className:i,onKeyDown:f,tabIndex:s?0:-1,...m,children:p})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={autoFocus:n.bool,autoFocusItem:n.bool,children:n.node,className:n.string,disabledItemsFocusable:n.bool,disableListWrap:n.bool,onKeyDown:n.func,variant:n.oneOf(["menu","selectedMenu"])});function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},re.apply(null,arguments)}function Ue(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Ld(e,t){return Ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ld(e,t)}function qd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ld(e,t)}function fE(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function pE(e,t){e.classList?e.classList.add(t):fE(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function cv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function hE(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=cv(e.className,t):e.setAttribute("class",cv(e.className&&e.className.baseVal||"",t))}const uv={disabled:!1};var mE=process.env.NODE_ENV!=="production"?n.oneOfType([n.number,n.shape({enter:n.number,exit:n.number,appear:n.number}).isRequired]):null,gE=process.env.NODE_ENV!=="production"?n.oneOfType([n.string,n.shape({enter:n.string,exit:n.string,active:n.string}),n.shape({enter:n.string,enterDone:n.string,enterActive:n.string,exit:n.string,exitDone:n.string,exitActive:n.string})]):null;const Ti=Be.createContext(null);var dv=function(t){return t.scrollTop},ts="unmounted",An="exited",Vn="entering",lo="entered",Bd="exiting",Or=function(e){qd(t,e);function t(o,s){var a;a=e.call(this,o,s)||this;var l=s,i=l&&!l.isMounting?o.enter:o.appear,c;return a.appearStatus=null,o.in?i?(c=An,a.appearStatus=Vn):c=lo:o.unmountOnExit||o.mountOnEnter?c=ts:c=An,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var l=s.in;return l&&a.status===ts?{status:An}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(s){var a=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==Vn&&l!==lo&&(a=Vn):(l===Vn||l===lo)&&(a=Bd)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var s=this.props.timeout,a,l,i;return a=l=i=s,s!=null&&typeof s!="number"&&(a=s.exit,l=s.enter,i=s.appear!==void 0?s.appear:l),{exit:a,enter:l,appear:i}},r.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===Vn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Oo.findDOMNode(this);l&&dv(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===An&&this.setState({status:ts})},r.performEnter=function(s){var a=this,l=this.props.enter,i=this.context?this.context.isMounting:s,c=this.props.nodeRef?[i]:[Oo.findDOMNode(this),i],u=c[0],d=c[1],h=this.getTimeouts(),m=i?h.appear:h.enter;if(!s&&!l||uv.disabled){this.safeSetState({status:lo},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Vn},function(){a.props.onEntering(u,d),a.onTransitionEnd(m,function(){a.safeSetState({status:lo},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var s=this,a=this.props.exit,l=this.getTimeouts(),i=this.props.nodeRef?void 0:Oo.findDOMNode(this);if(!a||uv.disabled){this.safeSetState({status:An},function(){s.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Bd},function(){s.props.onExiting(i),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:An},function(){s.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},r.setNextCallback=function(s){var a=this,l=!0;return this.nextCallback=function(i){l&&(l=!1,a.nextCallback=null,s(i))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(s,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Oo.findDOMNode(this),i=s==null&&!this.props.addEndListener;if(!l||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},r.render=function(){var s=this.state.status;if(s===ts)return null;var a=this.props,l=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 i=Ue(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Be.createElement(Ti.Provider,{value:null},typeof l=="function"?l(s,i):Be.cloneElement(Be.Children.only(l),i))},t}(Be.Component);Or.contextType=Ti,Or.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:n.shape({current:typeof Element>"u"?n.any:function(e,t,r,o,s,a){var l=e[t];return n.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,o,s,a)}}),children:n.oneOfType([n.func.isRequired,n.element.isRequired]).isRequired,in:n.bool,mountOnEnter:n.bool,unmountOnExit:n.bool,appear:n.bool,enter:n.bool,exit:n.bool,timeout:function(t){var r=mE;t.addEndListener||(r=r.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.apply(void 0,[t].concat(s))},addEndListener:n.func,onEnter:n.func,onEntering:n.func,onEntered:n.func,onExit:n.func,onExiting:n.func,onExited:n.func}:{};function co(){}Or.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:co,onEntering:co,onEntered:co,onExit:co,onExiting:co,onExited:co},Or.UNMOUNTED=ts,Or.EXITED=An,Or.ENTERING=Vn,Or.ENTERED=lo,Or.EXITING=Bd;var yE=function(t,r){return t&&r&&r.split(" ").forEach(function(o){return pE(t,o)})},zd=function(t,r){return t&&r&&r.split(" ").forEach(function(o){return hE(t,o)})},Ud=function(e){qd(t,e);function t(){for(var o,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return o=e.call.apply(e,[this].concat(a))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(i,c){var u=o.resolveArguments(i,c),d=u[0],h=u[1];o.removeClasses(d,"exit"),o.addClass(d,h?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(i,c)},o.onEntering=function(i,c){var u=o.resolveArguments(i,c),d=u[0],h=u[1],m=h?"appear":"enter";o.addClass(d,m,"active"),o.props.onEntering&&o.props.onEntering(i,c)},o.onEntered=function(i,c){var u=o.resolveArguments(i,c),d=u[0],h=u[1],m=h?"appear":"enter";o.removeClasses(d,m),o.addClass(d,m,"done"),o.props.onEntered&&o.props.onEntered(i,c)},o.onExit=function(i){var c=o.resolveArguments(i),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(i)},o.onExiting=function(i){var c=o.resolveArguments(i),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(i)},o.onExited=function(i){var c=o.resolveArguments(i),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(i)},o.resolveArguments=function(i,c){return o.props.nodeRef?[o.props.nodeRef.current,i]:[i,c]},o.getClassNames=function(i){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",h=u?""+d+i:c[i],m=u?h+"-active":c[i+"Active"],g=u?h+"-done":c[i+"Done"];return{baseClassName:h,activeClassName:m,doneClassName:g}},o}var r=t.prototype;return r.addClass=function(s,a,l){var i=this.getClassNames(a)[l+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;a==="appear"&&l==="done"&&u&&(i+=" "+u),l==="active"&&s&&dv(s),i&&(this.appliedClasses[a][l]=i,yE(s,i))},r.removeClasses=function(s,a){var l=this.appliedClasses[a],i=l.base,c=l.active,u=l.done;this.appliedClasses[a]={},i&&zd(s,i),c&&zd(s,c),u&&zd(s,u)},r.render=function(){var s=this.props;s.classNames;var a=Ue(s,["classNames"]);return Be.createElement(Or,re({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Be.Component);Ud.defaultProps={classNames:""},Ud.propTypes=process.env.NODE_ENV!=="production"?re({},Or.propTypes,{classNames:gE,onEnter:n.func,onEntering:n.func,onEntered:n.func,onExit:n.func,onExiting:n.func,onExited:n.func}):{};function bE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wd(e,t){var r=function(a){return t&&Be.isValidElement(a)?t(a):a},o=Object.create(null);return e&&Be.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=r(s)}),o}function vE(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var a in e)a in t?s.length&&(o[a]=s,s=[]):s.push(a);var l,i={};for(var c in t){if(o[c])for(l=0;l<o[c].length;l++){var u=o[c][l];i[o[c][l]]=r(u)}i[c]=r(c)}for(l=0;l<s.length;l++)i[s[l]]=r(s[l]);return i}function Fn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function wE(e,t){return Wd(e.children,function(r){return Be.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Fn(r,"appear",e),enter:Fn(r,"enter",e),exit:Fn(r,"exit",e)})})}function xE(e,t,r){var o=Wd(e.children),s=vE(t,o);return Object.keys(s).forEach(function(a){var l=s[a];if(Be.isValidElement(l)){var i=a in t,c=a in o,u=t[a],d=Be.isValidElement(u)&&!u.props.in;c&&(!i||d)?s[a]=Be.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Fn(l,"exit",e),enter:Fn(l,"enter",e)}):!c&&i&&!d?s[a]=Be.cloneElement(l,{in:!1}):c&&i&&Be.isValidElement(u)&&(s[a]=Be.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Fn(l,"exit",e),enter:Fn(l,"enter",e)}))}}),s}var SE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CE={component:"div",childFactory:function(t){return t}},rs=function(e){qd(t,e);function t(o,s){var a;a=e.call(this,o,s)||this;var l=a.handleExited.bind(bE(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,a){var l=a.children,i=a.handleExited,c=a.firstRender;return{children:c?wE(s,i):xE(s,l,i),firstRender:!1}},r.handleExited=function(s,a){var l=Wd(this.props.children);s.key in l||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(i){var c=re({},i.children);return delete c[s.key],{children:c}}))},r.render=function(){var s=this.props,a=s.component,l=s.childFactory,i=Ue(s,["component","childFactory"]),c=this.state.contextValue,u=SE(this.state.children).map(l);return delete i.appear,delete i.enter,delete i.exit,a===null?Be.createElement(Ti.Provider,{value:c},u):Be.createElement(Ti.Provider,{value:c},Be.createElement(a,i,u))},t}(Be.Component);rs.propTypes=process.env.NODE_ENV!=="production"?{component:n.any,children:n.node,appear:n.bool,enter:n.bool,exit:n.bool,childFactory:n.func}:{},rs.defaultProps=CE;const fv=e=>e.scrollTop;function Oi(e,t){const{timeout:r,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function Hd(e){return`scale(${e}, ${e**2})`}const TE={entering:{opacity:1,transform:Hd(1)},entered:{opacity:1,transform:"none"}},Yd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ns=E.forwardRef(function(t,r){const{addEndListener:o,appear:s=!0,children:a,easing:l,in:i,onEnter:c,onEntered:u,onEntering:d,onExit:h,onExited:m,onExiting:g,style:w,timeout:f="auto",TransitionComponent:y=Or,...v}=t,p=Pb(),b=E.useRef(),x=jn(),S=E.useRef(null),C=ft(S,Wo(a),r),O=N=>F=>{if(N){const K=S.current;F===void 0?N(K):N(K,F)}},k=O(d),_=O((N,F)=>{fv(N);const{duration:K,delay:H,easing:Z}=Oi({style:w,timeout:f,easing:l},{mode:"enter"});let L;f==="auto"?(L=x.transitions.getAutoHeightDuration(N.clientHeight),b.current=L):L=K,N.style.transition=[x.transitions.create("opacity",{duration:L,delay:H}),x.transitions.create("transform",{duration:Yd?L:L*.666,delay:H,easing:Z})].join(","),c&&c(N,F)}),T=O(u),P=O(g),D=O(N=>{const{duration:F,delay:K,easing:H}=Oi({style:w,timeout:f,easing:l},{mode:"exit"});let Z;f==="auto"?(Z=x.transitions.getAutoHeightDuration(N.clientHeight),b.current=Z):Z=F,N.style.transition=[x.transitions.create("opacity",{duration:Z,delay:K}),x.transitions.create("transform",{duration:Yd?Z:Z*.666,delay:Yd?K:K||Z*.333,easing:H})].join(","),N.style.opacity=0,N.style.transform=Hd(.75),h&&h(N)}),V=O(m),M=N=>{f==="auto"&&p.start(b.current||0,N),o&&o(S.current,N)};return R.jsx(y,{appear:s,in:i,nodeRef:S,onEnter:_,onEntered:T,onEntering:k,onExit:D,onExited:V,onExiting:P,addEndListener:M,timeout:f==="auto"?null:f,...v,children:(N,{ownerState:F,...K})=>E.cloneElement(a,{style:{opacity:0,transform:Hd(.75),visibility:N==="exited"&&!i?"hidden":void 0,...TE[N],...w,...a.props.style},ref:C,...K})})});process.env.NODE_ENV!=="production"&&(ns.propTypes={addEndListener:n.func,appear:n.bool,children:Bo.isRequired,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])}),ns&&(ns.muiSupportAuto=!0);function OE(e){const t=Yt(e);return t.body===e?Nr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function os(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function pv(e){return parseInt(Nr(e).getComputedStyle(e).paddingRight,10)||0}function PE(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function hv(e,t,r,o,s){const a=[t,r,...o];[].forEach.call(e.children,l=>{const i=!a.includes(l),c=!PE(l);i&&c&&os(l,s)})}function Kd(e,t){let r=-1;return e.some((o,s)=>t(o)?(r=s,!0):!1),r}function EE(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(OE(o)){const l=kb(Nr(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${pv(o)+l}px`;const i=Yt(o).querySelectorAll(".mui-fixed");[].forEach.call(i,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${pv(c)+l}px`})}let a;if(o.parentNode instanceof DocumentFragment)a=Yt(o).body;else{const l=o.parentElement,i=Nr(o);a=(l==null?void 0:l.nodeName)==="HTML"&&i.getComputedStyle(l).overflowY==="scroll"?l:o}r.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()=>{r.forEach(({value:a,el:l,property:i})=>{a?l.style.setProperty(i,a):l.style.removeProperty(i)})}}function kE(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class RE{constructor(){this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&os(t.modalRef,!1);const s=kE(r);hv(r,t.mount,t.modalRef,s,!0);const a=Kd(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:s}),o)}mount(t,r){const o=Kd(this.containers,a=>a.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=EE(s,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=Kd(this.containers,l=>l.modals.includes(t)),a=this.containers[s];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(o,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&os(t.modalRef,r),hv(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&os(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const $E=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _E(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function IE(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function DE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||IE(e))}function ME(e){const t=[],r=[];return Array.from(e.querySelectorAll($E)).forEach((o,s)=>{const a=_E(o);a===-1||!DE(o)||(a===0?t.push(o):r.push({documentOrder:s,tabIndex:a,node:o}))}),r.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function jE(){return!0}function ss(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:a=ME,isEnabled:l=jE,open:i}=e,c=E.useRef(!1),u=E.useRef(null),d=E.useRef(null),h=E.useRef(null),m=E.useRef(null),g=E.useRef(!1),w=E.useRef(null),f=ft(Wo(t),w),y=E.useRef(null);E.useEffect(()=>{!i||!w.current||(g.current=!r)},[r,i]),E.useEffect(()=>{if(!i||!w.current)return;const b=Yt(w.current);return w.current.contains(b.activeElement)||(w.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
135
- `)),w.current.setAttribute("tabIndex","-1")),g.current&&w.current.focus()),()=>{s||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[i]),E.useEffect(()=>{if(!i||!w.current)return;const b=Yt(w.current),x=O=>{y.current=O,!(o||!l()||O.key!=="Tab")&&b.activeElement===w.current&&O.shiftKey&&(c.current=!0,d.current&&d.current.focus())},S=()=>{var _,T;const O=w.current;if(O===null)return;if(!b.hasFocus()||!l()||c.current){c.current=!1;return}if(O.contains(b.activeElement)||o&&b.activeElement!==u.current&&b.activeElement!==d.current)return;if(b.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!g.current)return;let k=[];if((b.activeElement===u.current||b.activeElement===d.current)&&(k=a(w.current)),k.length>0){const P=!!((_=y.current)!=null&&_.shiftKey&&((T=y.current)==null?void 0:T.key)==="Tab"),D=k[0],V=k[k.length-1];typeof D!="string"&&typeof V!="string"&&(P?V.focus():D.focus())}else O.focus()};b.addEventListener("focusin",S),b.addEventListener("keydown",x,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",S),b.removeEventListener("keydown",x,!0)}},[r,o,s,l,i,a]);const v=b=>{h.current===null&&(h.current=b.relatedTarget),g.current=!0,m.current=b.target;const x=t.props.onFocus;x&&x(b)},p=b=>{h.current===null&&(h.current=b.relatedTarget),g.current=!0};return R.jsxs(E.Fragment,{children:[R.jsx("div",{tabIndex:i?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:f,onFocus:v}),R.jsx("div",{tabIndex:i?0:-1,onFocus:p,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ss.propTypes={children:Bo,disableAutoFocus:n.bool,disableEnforceFocus:n.bool,disableRestoreFocus:n.bool,getTabbable:n.func,isEnabled:n.func,open:n.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ss.propTypes=Sb(ss.propTypes));function NE(e){return typeof e=="function"?e():e}const as=E.forwardRef(function(t,r){const{children:o,container:s,disablePortal:a=!1}=t,[l,i]=E.useState(null),c=ft(E.isValidElement(o)?Wo(o):null,r);if(qt(()=>{a||i(NE(s)||document.body)},[s,a]),qt(()=>{if(l&&!a)return li(r,l),()=>{li(r,null)}},[r,l,a]),a){if(E.isValidElement(o)){const u={ref:c};return E.cloneElement(o,u)}return o}return l&&_x.createPortal(o,l)});process.env.NODE_ENV!=="production"&&(as.propTypes={children:n.node,container:n.oneOfType([on,n.func]),disablePortal:n.bool}),process.env.NODE_ENV!=="production"&&(as.propTypes=Sb(as.propTypes));function Bt(e,t){const{className:r,elementType:o,ownerState:s,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:i=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:h={[e]:void 0},...m}=a,g=d[e]||o,w=Uo(h[e],s),{props:{component:f,...y},internalRef:v}=Mb({className:r,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:w}),p=ft(v,w==null?void 0:w.ref,t.ref),b=e==="root"?f||u:f,x=_b(g,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...y,...b&&!i&&{as:b},...b&&i&&{component:b},ref:p},s);return[g,x]}const AE={entering:{opacity:1},entered:{opacity:1}},xn=E.forwardRef(function(t,r){const o=jn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:i,easing:c,in:u,onEnter:d,onEntered:h,onEntering:m,onExit:g,onExited:w,onExiting:f,style:y,timeout:v=s,TransitionComponent:p=Or,...b}=t,x=E.useRef(null),S=ft(x,Wo(i),r),C=M=>N=>{if(M){const F=x.current;N===void 0?M(F):M(F,N)}},O=C(m),k=C((M,N)=>{fv(M);const F=Oi({style:y,timeout:v,easing:c},{mode:"enter"});M.style.webkitTransition=o.transitions.create("opacity",F),M.style.transition=o.transitions.create("opacity",F),d&&d(M,N)}),_=C(h),T=C(f),P=C(M=>{const N=Oi({style:y,timeout:v,easing:c},{mode:"exit"});M.style.webkitTransition=o.transitions.create("opacity",N),M.style.transition=o.transitions.create("opacity",N),g&&g(M)}),D=C(w),V=M=>{a&&a(x.current,M)};return R.jsx(p,{appear:l,in:u,nodeRef:x,onEnter:k,onEntered:_,onEntering:O,onExit:P,onExited:D,onExiting:T,addEndListener:V,timeout:v,...b,children:(M,{ownerState:N,...F})=>E.cloneElement(i,{style:{opacity:0,visibility:M==="exited"&&!u?"hidden":void 0,...AE[M],...y,...i.props.style},ref:S,...F})})});process.env.NODE_ENV!=="production"&&(xn.propTypes={addEndListener:n.func,appear:n.bool,children:Bo.isRequired,easing:n.oneOfType([n.shape({enter:n.string,exit:n.string}),n.string]),in:n.bool,onEnter:n.func,onEntered:n.func,onEntering:n.func,onExit:n.func,onExited:n.func,onExiting:n.func,style:n.object,timeout:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function VE(e){return Ie("MuiBackdrop",e)}ke("MuiBackdrop",["root","invisible"]);const FE=e=>{const{classes:t,invisible:r}=e;return _e({root:["root",r&&"invisible"]},VE,t)},LE=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Gd=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",invisible:i=!1,open:c,components:u={},componentsProps:d={},slotProps:h={},slots:m={},TransitionComponent:g,transitionDuration:w,...f}=o,y={...o,component:l,invisible:i},v=FE(y),p={transition:g,root:u.Root,...m},b={...d,...h},x={slots:p,slotProps:b},[S,C]=Bt("root",{elementType:LE,externalForwardedProps:x,className:Te(v.root,a),ownerState:y}),[O,k]=Bt("transition",{elementType:xn,externalForwardedProps:x,ownerState:y});return R.jsx(O,{in:c,timeout:w,...f,...k,children:R.jsx(S,{"aria-hidden":!0,...C,classes:v,ref:r,children:s})})});process.env.NODE_ENV!=="production"&&(Gd.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.object}),invisible:n.bool,open:n.bool.isRequired,slotProps:n.shape({root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})])});function qE(e){return typeof e=="function"?e():e}function BE(e){return e?e.props.hasOwnProperty("in"):!1}const mv=()=>{},Pi=new RE;function zE(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:i,onClose:c,open:u,rootRef:d}=e,h=E.useRef({}),m=E.useRef(null),g=E.useRef(null),w=ft(g,d),[f,y]=E.useState(!u),v=BE(i);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const b=()=>Yt(m.current),x=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),S=()=>{Pi.mount(x(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},C=Re(()=>{const N=qE(t)||b().body;Pi.add(x(),N),g.current&&S()}),O=()=>Pi.isTopModal(x()),k=Re(N=>{m.current=N,N&&(u&&O()?S():g.current&&os(g.current,p))}),_=E.useCallback(()=>{Pi.remove(x(),p)},[p]);E.useEffect(()=>()=>{_()},[_]),E.useEffect(()=>{u?C():(!v||!s)&&_()},[u,_,v,s,C]);const T=N=>F=>{var K;(K=N.onKeyDown)==null||K.call(N,F),!(F.key!=="Escape"||F.which===229||!O())&&(r||(F.stopPropagation(),c&&c(F,"escapeKeyDown")))},P=N=>F=>{var K;(K=N.onClick)==null||K.call(N,F),F.target===F.currentTarget&&c&&c(F,"backdropClick")};return{getRootProps:(N={})=>{const F=Ib(e);delete F.onTransitionEnter,delete F.onTransitionExited;const K={...F,...N};return{role:"presentation",...K,onKeyDown:T(K),ref:w}},getBackdropProps:(N={})=>{const F=N;return{"aria-hidden":!0,...F,onClick:P(F),open:u}},getTransitionProps:()=>{const N=()=>{y(!1),a&&a()},F=()=>{y(!0),l&&l(),s&&_()};return{onEnter:Rd(N,(i==null?void 0:i.props.onEnter)??mv),onExited:Rd(F,(i==null?void 0:i.props.onExited)??mv)}},rootRef:w,portalRef:k,isTopModal:O,exited:f,hasTransition:v}}function UE(e){return Ie("MuiModal",e)}ke("MuiModal",["root","hidden","backdrop"]);const WE=e=>{const{open:t,exited:r,classes:o}=e;return _e({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},UE,o)},HE=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ze(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),YE=se(Gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Xd=E.forwardRef(function(t,r){const o=tt({name:"MuiModal",props:t}),{BackdropComponent:s=YE,BackdropProps:a,classes:l,className:i,closeAfterTransition:c=!1,children:u,container:d,component:h,components:m={},componentsProps:g={},disableAutoFocus:w=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:y=!1,disablePortal:v=!1,disableRestoreFocus:p=!1,disableScrollLock:b=!1,hideBackdrop:x=!1,keepMounted:S=!1,onBackdropClick:C,onClose:O,onTransitionEnter:k,onTransitionExited:_,open:T,slotProps:P={},slots:D={},theme:V,...M}=o,N={...o,closeAfterTransition:c,disableAutoFocus:w,disableEnforceFocus:f,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:p,disableScrollLock:b,hideBackdrop:x,keepMounted:S},{getRootProps:F,getBackdropProps:K,getTransitionProps:H,portalRef:Z,isTopModal:L,exited:j,hasTransition:Y}=zE({...N,rootRef:r}),q={...N,exited:j},$=WE(q),I={};if(u.props.tabIndex===void 0&&(I.tabIndex="-1"),Y){const{onEnter:A,onExited:z}=H();I.onEnter=A,I.onExited=z}const U={...M,slots:{root:m.Root,backdrop:m.Backdrop,...D},slotProps:{...g,...P}},[Q,W]=Bt("root",{elementType:HE,externalForwardedProps:U,getSlotProps:F,additionalProps:{ref:r,as:h},ownerState:q,className:Te(i,$==null?void 0:$.root,!q.open&&q.exited&&($==null?void 0:$.hidden))}),[ee,ne]=Bt("backdrop",{elementType:s,externalForwardedProps:U,additionalProps:a,getSlotProps:A=>K({...A,onClick:z=>{C&&C(z),A!=null&&A.onClick&&A.onClick(z)}}),className:Te(a==null?void 0:a.className,$==null?void 0:$.backdrop),ownerState:q}),B=ft(a==null?void 0:a.ref,ne.ref);return!S&&!T&&(!Y||j)?null:R.jsx(as,{ref:Z,container:d,disablePortal:v,children:R.jsxs(Q,{...W,children:[!x&&s?R.jsx(ee,{...ne,ref:B}):null,R.jsx(ss,{disableEnforceFocus:f,disableAutoFocus:w,disableRestoreFocus:p,isEnabled:L,open:T,children:E.cloneElement(u,I)})]})})});process.env.NODE_ENV!=="production"&&(Xd.propTypes={BackdropComponent:n.elementType,BackdropProps:n.object,children:Bo.isRequired,classes:n.object,className:n.string,closeAfterTransition:n.bool,component:n.elementType,components:n.shape({Backdrop:n.elementType,Root:n.elementType}),componentsProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([on,n.func]),disableAutoFocus:n.bool,disableEnforceFocus:n.bool,disableEscapeKeyDown:n.bool,disablePortal:n.bool,disableRestoreFocus:n.bool,disableScrollLock:n.bool,hideBackdrop:n.bool,keepMounted:n.bool,onBackdropClick:n.func,onClose:n.func,onTransitionEnter:n.func,onTransitionExited:n.func,open:n.bool.isRequired,slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function KE(e){return Ie("MuiPaper",e)}ke("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 GE=e=>{const{square:t,elevation:r,variant:o,classes:s}=e,a={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return _e(a,KE,s)},XE=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Sn=E.forwardRef(function(t,r){var g;const o=tt({props:t,name:"MuiPaper"}),s=jn(),{className:a,component:l="div",elevation:i=1,square:c=!1,variant:u="elevation",...d}=o,h={...o,component:l,elevation:i,square:c,variant:u},m=GE(h);return process.env.NODE_ENV!=="production"&&s.shadows[i]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
136
- `)),R.jsx(XE,{as:l,ownerState:h,className:Te(m.root,a),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[i],...s.vars&&{"--Paper-overlay":(g=s.vars.overlays)==null?void 0:g[i]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${nt("#fff",Nd(i))}, ${nt("#fff",Nd(i))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Sn.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,elevation:Cr(Id,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["elevation","outlined"]),n.string])});function JE(e){return Ie("MuiPopover",e)}ke("MuiPopover",["root","paper"]);function gv(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function yv(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function bv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ei(e){return typeof e=="function"?e():e}const ZE=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},JE,t)},QE=se(Xd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vv=se(Sn,{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}),wv=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:c="anchorEl",children:u,className:d,container:h,elevation:m=8,marginThreshold:g=16,open:w,PaperProps:f={},slots:y={},slotProps:v={},transformOrigin:p={vertical:"top",horizontal:"left"},TransitionComponent:b=ns,transitionDuration:x="auto",TransitionProps:{onEntering:S,...C}={},disableScrollLock:O=!1,...k}=o,_=(v==null?void 0:v.paper)??f,T=E.useRef(),P={...o,anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:g,externalPaperSlotProps:_,transformOrigin:p,TransitionComponent:b,transitionDuration:x,TransitionProps:C},D=ZE(P),V=E.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(i||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),i;const ne=Ei(a),B=ne&&ne.nodeType===1?ne:Yt(T.current).body,A=B.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const z=B.getBoundingClientRect();process.env.NODE_ENV!=="test"&&z.top===0&&z.left===0&&z.right===0&&z.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
137
- `))}return{top:A.top+gv(A,l.vertical),left:A.left+yv(A,l.horizontal)}},[a,l.horizontal,l.vertical,i,c]),M=E.useCallback(ne=>({vertical:gv(ne,p.vertical),horizontal:yv(ne,p.horizontal)}),[p.horizontal,p.vertical]),N=E.useCallback(ne=>{const B={width:ne.offsetWidth,height:ne.offsetHeight},A=M(B);if(c==="none")return{top:null,left:null,transformOrigin:bv(A)};const z=V();let X=z.top-A.vertical,te=z.left-A.horizontal;const ae=X+B.height,J=te+B.width,fe=Nr(Ei(a)),le=fe.innerHeight-g,ge=fe.innerWidth-g;if(g!==null&&X<g){const Se=X-g;X-=Se,A.vertical+=Se}else if(g!==null&&ae>le){const Se=ae-le;X-=Se,A.vertical+=Se}if(process.env.NODE_ENV!=="production"&&B.height>le&&B.height&&le&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${B.height-le}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
138
- `)),g!==null&&te<g){const Se=te-g;te-=Se,A.horizontal+=Se}else if(J>ge){const Se=J-ge;te-=Se,A.horizontal+=Se}return{top:`${Math.round(X)}px`,left:`${Math.round(te)}px`,transformOrigin:bv(A)}},[a,c,V,M,g]),[F,K]=E.useState(w),H=E.useCallback(()=>{const ne=T.current;if(!ne)return;const B=N(ne);B.top!==null&&ne.style.setProperty("top",B.top),B.left!==null&&(ne.style.left=B.left),ne.style.transformOrigin=B.transformOrigin,K(!0)},[N]);E.useEffect(()=>(O&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,O,H]);const Z=(ne,B)=>{S&&S(ne,B),H()},L=()=>{K(!1)};E.useEffect(()=>{w&&H()}),E.useImperativeHandle(s,()=>w?{updatePosition:()=>{H()}}:null,[w,H]),E.useEffect(()=>{if(!w)return;const ne=ii(()=>{H()}),B=Nr(a);return B.addEventListener("resize",ne),()=>{ne.clear(),B.removeEventListener("resize",ne)}},[a,w,H]);let j=x;x==="auto"&&!b.muiSupportAuto&&(j=void 0);const Y=h||(a?Yt(Ei(a)).body:void 0),q={slots:y,slotProps:{...v,paper:_}},[$,I]=Bt("paper",{elementType:vv,externalForwardedProps:q,additionalProps:{elevation:m,className:Te(D.paper,_==null?void 0:_.className),style:F?_.style:{..._.style,opacity:0}},ownerState:P}),[U,{slotProps:Q,...W}]=Bt("root",{elementType:QE,externalForwardedProps:q,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Y,open:w},ownerState:P,className:Te(D.root,d)}),ee=ft(T,I.ref);return R.jsx(U,{...W,...!Xo(U)&&{slotProps:Q,disableScrollLock:O},...k,ref:r,children:R.jsx(b,{appear:!0,in:w,onEntering:Z,onExited:L,timeout:j,...C,children:R.jsx($,{...I,ref:ee,children:u})})})});process.env.NODE_ENV!=="production"&&(wv.propTypes={action:Mt,anchorEl:Cr(n.oneOfType([on,n.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ei(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
44
+ export default theme;`}function My(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const fE=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function pE(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Ki(t,fE(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${My(r)})`:Yi(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${My(r)})`:Gi(t,r)}})}function ru(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:l={},typography:s={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":hr(20));const m=tu({...a,colorSpace:u}),h=Kc(e);let y=kt(h,{mixins:QS(h.breakpoints,n),palette:m,shadows:iE.slice(),typography:tE(m,s),transitions:cE(l),zIndex:{...uE}});if(y=kt(y,d),y=t.reduce((g,f)=>kt(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(b,v)=>{let p;for(p in b){const _=b[p];if(g.includes(p)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const S=Fe("",p);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${p}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
45
+ `))}b[p]={}}}};Object.keys(y.components).forEach(b=>{const v=y.components[b].styleOverrides;v&&b.startsWith("Mui")&&f(v,b)})}return y.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},y.unstable_sx=function(f){return wn({sx:f,theme:this})},y.toRuntimeSource=Ay,pE(y),y}function nu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const hE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=nu(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Dy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function qy(e){return e==="dark"?hE:[]}function mE(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,l=tu({...t,colorSpace:i});return{palette:l,opacity:{...Dy(l.mode),...r},overlays:n||qy(l.mode),...a}}function yE(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const gE=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],vE=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return gE(e.cssVarPrefix).forEach(s=>{l[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:a?{[a.replace("%s",t)]:l,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...l}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function bE(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ne(e,t,r){!e[t]&&r&&(e[t]=r)}function Zn(e){return typeof e!="string"||!e.startsWith("hsl")?e:wy(e)}function Rr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Yn(Zn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
46
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function _E(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gr=e=>{try{return e()}catch{}},wE=(e="mui")=>LS(e);function ou(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=mE({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:l,...s}=ru({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:l,opacity:{...Dy(a),...r?.opacity},overlays:r?.overlays||qy(a)},s}function SE(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:l=!1,shouldSkipGeneratingVar:s=yE,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),y=wE(a),{[h]:g,light:f,dark:b,...v}=r,p={...v};let _=g;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:hr(21,h));let S;l&&(S="oklch");const w=ou(S,p,_,d,h);f&&!p.light&&ou(S,p,f,void 0,"light"),b&&!p.dark&&ou(S,p,b,void 0,"dark");let E={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:p,font:{...ZS(w.typography),...w.font},spacing:_E(d.spacing)};Object.keys(E.colorSchemes).forEach(R=>{const O=E.colorSchemes[R].palette,D=U=>{const W=U.split("-"),le=W[1],ce=W[2];return y(U,O[le][ce])};O.mode==="light"&&(ne(O.common,"background","#fff"),ne(O.common,"onBackground","#000")),O.mode==="dark"&&(ne(O.common,"background","#000"),ne(O.common,"onBackground","#fff"));function N(U,W,le){if(S){let ce;return U===nn&&(ce=`transparent ${((1-le)*100).toFixed(0)}%`),U===rt&&(ce=`#000 ${(le*100).toFixed(0)}%`),U===nt&&(ce=`#fff ${(le*100).toFixed(0)}%`),`color-mix(in ${S}, ${W}, ${ce})`}return U(W,le)}if(bE(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){ne(O.Alert,"errorColor",N(rt,O.error.light,.6)),ne(O.Alert,"infoColor",N(rt,O.info.light,.6)),ne(O.Alert,"successColor",N(rt,O.success.light,.6)),ne(O.Alert,"warningColor",N(rt,O.warning.light,.6)),ne(O.Alert,"errorFilledBg",D("palette-error-main")),ne(O.Alert,"infoFilledBg",D("palette-info-main")),ne(O.Alert,"successFilledBg",D("palette-success-main")),ne(O.Alert,"warningFilledBg",D("palette-warning-main")),ne(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.main))),ne(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.main))),ne(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.main))),ne(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.main))),ne(O.Alert,"errorStandardBg",N(nt,O.error.light,.9)),ne(O.Alert,"infoStandardBg",N(nt,O.info.light,.9)),ne(O.Alert,"successStandardBg",N(nt,O.success.light,.9)),ne(O.Alert,"warningStandardBg",N(nt,O.warning.light,.9)),ne(O.Alert,"errorIconColor",D("palette-error-main")),ne(O.Alert,"infoIconColor",D("palette-info-main")),ne(O.Alert,"successIconColor",D("palette-success-main")),ne(O.Alert,"warningIconColor",D("palette-warning-main")),ne(O.AppBar,"defaultBg",D("palette-grey-100")),ne(O.Avatar,"defaultBg",D("palette-grey-400")),ne(O.Button,"inheritContainedBg",D("palette-grey-300")),ne(O.Button,"inheritContainedHoverBg",D("palette-grey-A100")),ne(O.Chip,"defaultBorder",D("palette-grey-400")),ne(O.Chip,"defaultAvatarColor",D("palette-grey-700")),ne(O.Chip,"defaultIconColor",D("palette-grey-700")),ne(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(O.LinearProgress,"primaryBg",N(nt,O.primary.main,.62)),ne(O.LinearProgress,"secondaryBg",N(nt,O.secondary.main,.62)),ne(O.LinearProgress,"errorBg",N(nt,O.error.main,.62)),ne(O.LinearProgress,"infoBg",N(nt,O.info.main,.62)),ne(O.LinearProgress,"successBg",N(nt,O.success.main,.62)),ne(O.LinearProgress,"warningBg",N(nt,O.warning.main,.62)),ne(O.Skeleton,"bg",S?N(nn,O.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),ne(O.Slider,"primaryTrack",N(nt,O.primary.main,.62)),ne(O.Slider,"secondaryTrack",N(nt,O.secondary.main,.62)),ne(O.Slider,"errorTrack",N(nt,O.error.main,.62)),ne(O.Slider,"infoTrack",N(nt,O.info.main,.62)),ne(O.Slider,"successTrack",N(nt,O.success.main,.62)),ne(O.Slider,"warningTrack",N(nt,O.warning.main,.62));const U=S?N(rt,O.background.default,.6825):Ji(O.background.default,.8);ne(O.SnackbarContent,"bg",U),ne(O.SnackbarContent,"color",gr(()=>S?eu.text.primary:O.getContrastText(U))),ne(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),ne(O.StepConnector,"border",D("palette-grey-400")),ne(O.StepContent,"border",D("palette-grey-400")),ne(O.Switch,"defaultColor",D("palette-common-white")),ne(O.Switch,"defaultDisabledColor",D("palette-grey-100")),ne(O.Switch,"primaryDisabledColor",N(nt,O.primary.main,.62)),ne(O.Switch,"secondaryDisabledColor",N(nt,O.secondary.main,.62)),ne(O.Switch,"errorDisabledColor",N(nt,O.error.main,.62)),ne(O.Switch,"infoDisabledColor",N(nt,O.info.main,.62)),ne(O.Switch,"successDisabledColor",N(nt,O.success.main,.62)),ne(O.Switch,"warningDisabledColor",N(nt,O.warning.main,.62)),ne(O.TableCell,"border",N(nt,N(nn,O.divider,1),.88)),ne(O.Tooltip,"bg",N(nn,O.grey[700],.92))}if(O.mode==="dark"){ne(O.Alert,"errorColor",N(nt,O.error.light,.6)),ne(O.Alert,"infoColor",N(nt,O.info.light,.6)),ne(O.Alert,"successColor",N(nt,O.success.light,.6)),ne(O.Alert,"warningColor",N(nt,O.warning.light,.6)),ne(O.Alert,"errorFilledBg",D("palette-error-dark")),ne(O.Alert,"infoFilledBg",D("palette-info-dark")),ne(O.Alert,"successFilledBg",D("palette-success-dark")),ne(O.Alert,"warningFilledBg",D("palette-warning-dark")),ne(O.Alert,"errorFilledColor",gr(()=>O.getContrastText(O.error.dark))),ne(O.Alert,"infoFilledColor",gr(()=>O.getContrastText(O.info.dark))),ne(O.Alert,"successFilledColor",gr(()=>O.getContrastText(O.success.dark))),ne(O.Alert,"warningFilledColor",gr(()=>O.getContrastText(O.warning.dark))),ne(O.Alert,"errorStandardBg",N(rt,O.error.light,.9)),ne(O.Alert,"infoStandardBg",N(rt,O.info.light,.9)),ne(O.Alert,"successStandardBg",N(rt,O.success.light,.9)),ne(O.Alert,"warningStandardBg",N(rt,O.warning.light,.9)),ne(O.Alert,"errorIconColor",D("palette-error-main")),ne(O.Alert,"infoIconColor",D("palette-info-main")),ne(O.Alert,"successIconColor",D("palette-success-main")),ne(O.Alert,"warningIconColor",D("palette-warning-main")),ne(O.AppBar,"defaultBg",D("palette-grey-900")),ne(O.AppBar,"darkBg",D("palette-background-paper")),ne(O.AppBar,"darkColor",D("palette-text-primary")),ne(O.Avatar,"defaultBg",D("palette-grey-600")),ne(O.Button,"inheritContainedBg",D("palette-grey-800")),ne(O.Button,"inheritContainedHoverBg",D("palette-grey-700")),ne(O.Chip,"defaultBorder",D("palette-grey-700")),ne(O.Chip,"defaultAvatarColor",D("palette-grey-300")),ne(O.Chip,"defaultIconColor",D("palette-grey-300")),ne(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(O.LinearProgress,"primaryBg",N(rt,O.primary.main,.5)),ne(O.LinearProgress,"secondaryBg",N(rt,O.secondary.main,.5)),ne(O.LinearProgress,"errorBg",N(rt,O.error.main,.5)),ne(O.LinearProgress,"infoBg",N(rt,O.info.main,.5)),ne(O.LinearProgress,"successBg",N(rt,O.success.main,.5)),ne(O.LinearProgress,"warningBg",N(rt,O.warning.main,.5)),ne(O.Skeleton,"bg",S?N(nn,O.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),ne(O.Slider,"primaryTrack",N(rt,O.primary.main,.5)),ne(O.Slider,"secondaryTrack",N(rt,O.secondary.main,.5)),ne(O.Slider,"errorTrack",N(rt,O.error.main,.5)),ne(O.Slider,"infoTrack",N(rt,O.info.main,.5)),ne(O.Slider,"successTrack",N(rt,O.success.main,.5)),ne(O.Slider,"warningTrack",N(rt,O.warning.main,.5));const U=S?N(nt,O.background.default,.985):Ji(O.background.default,.98);ne(O.SnackbarContent,"bg",U),ne(O.SnackbarContent,"color",gr(()=>S?Py.text.primary:O.getContrastText(U))),ne(O.SpeedDialAction,"fabHoverBg",Ji(O.background.paper,.15)),ne(O.StepConnector,"border",D("palette-grey-600")),ne(O.StepContent,"border",D("palette-grey-600")),ne(O.Switch,"defaultColor",D("palette-grey-300")),ne(O.Switch,"defaultDisabledColor",D("palette-grey-600")),ne(O.Switch,"primaryDisabledColor",N(rt,O.primary.main,.55)),ne(O.Switch,"secondaryDisabledColor",N(rt,O.secondary.main,.55)),ne(O.Switch,"errorDisabledColor",N(rt,O.error.main,.55)),ne(O.Switch,"infoDisabledColor",N(rt,O.info.main,.55)),ne(O.Switch,"successDisabledColor",N(rt,O.success.main,.55)),ne(O.Switch,"warningDisabledColor",N(rt,O.warning.main,.55)),ne(O.TableCell,"border",N(rt,N(nn,O.divider,1),.68)),ne(O.Tooltip,"bg",N(nn,O.grey[700],.92))}Rr(O.background,"default"),Rr(O.background,"paper"),Rr(O.common,"background"),Rr(O.common,"onBackground"),Rr(O,"divider"),Object.keys(O).forEach(U=>{const W=O[U];U!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&ne(O[U],"mainChannel",Yn(Zn(W.main))),W.light&&ne(O[U],"lightChannel",Yn(Zn(W.light))),W.dark&&ne(O[U],"darkChannel",Yn(Zn(W.dark))),W.contrastText&&ne(O[U],"contrastTextChannel",Yn(Zn(W.contrastText))),U==="text"&&(Rr(O[U],"primary"),Rr(O[U],"secondary")),U==="action"&&(W.active&&Rr(O[U],"active"),W.selected&&Rr(O[U],"selected")))})}),E=t.reduce((R,O)=>kt(R,O),E);const x={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:vE(E),enableContrastVars:l},{vars:P,generateThemeVars:k,generateStyleSheets:j}=VS(E,x);return E.vars=P,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([R,O])=>{E[R]=O}),E.generateThemeVars=k,E.generateStyleSheets=j,E.generateSpacing=function(){return dy(d.spacing,Uc(this))},E.getColorSchemeSelector=BS(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...Gn,...d?.unstable_sxConfig},E.unstable_sx=function(O){return wn({sx:O,theme:this})},E.toRuntimeSource=Ay,E}function Ly(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:tu({...r===!0?{}:r.palette,mode:t})})}function EE(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...l}=e,s=a||"light",c=i?.[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return ru(e,...t);let d=r;"palette"in e||u[s]&&(u[s]!==!0?d=u[s].palette:s==="dark"&&(d={mode:"dark"}));const m=ru({...e,palette:d},...t);return m.defaultColorScheme=s,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Ly(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Ly(m,"light",u.light)),m}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),SE({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const iu=EE(),au="$$material";function su(){const e=fy(iu);return process.env.NODE_ENV!=="production"&&A.useDebugValue(e),e[au]||e}function Fy(e){return F.jsx(py,{...e,defaultTheme:iu,themeId:au})}process.env.NODE_ENV!=="production"&&(Fy.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function zy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const It=e=>zy(e)&&e!=="classes",me=by({themeId:au,defaultTheme:iu,rootShouldForwardProp:It});function OE(e){return function(r){return F.jsx(Fy,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function xE(){return tS}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function We(e){return DS(e)}function cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function CE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TE(e,t,r,n,i){const a=e[t],l=i||t;if(a==null||typeof window>"u")return null;let s;return typeof a=="function"&&!CE(a)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const lu=cr(o.elementType,TE);function Xi(e){return typeof e=="string"}function Vy(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function St(...e){const t=A.useRef(void 0),r=A.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,s=l(n);return typeof s=="function"?s:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a?.())}},e);return A.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function ur(e){const t=A.useRef(e);return yr(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function Kt(e){return e&&e.ownerDocument||document}function kr(e){return Kt(e).defaultView||window}function Zi(e){return parseInt(e,10)||0}const PE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $E(e){for(const t in e)return!1;return!0}function By(e){return $E(e)||e.outerHeightStyle===0&&!e.overflowing}const Uy=A.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=A.useRef(s!=null),d=A.useRef(null),m=St(r,d),h=A.useRef(null),y=A.useRef(null),g=A.useCallback(()=>{const _=d.current,S=y.current;if(!_||!S)return;const E=kr(_).getComputedStyle(_);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=E.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===`
47
+ `&&(S.value+=" ");const x=E.boxSizing,P=Zi(E.paddingBottom)+Zi(E.paddingTop),k=Zi(E.borderBottomWidth)+Zi(E.borderTopWidth),j=S.scrollHeight;S.value="x";const R=S.scrollHeight;let O=j;a&&(O=Math.max(Number(a)*R,O)),i&&(O=Math.min(Number(i)*R,O)),O=Math.max(O,R);const D=O+(x==="border-box"?P+k:0),N=Math.abs(O-j)<=1;return{outerHeightStyle:D,overflowing:N}},[i,a,t.placeholder]),f=ur(()=>{const _=d.current,S=g();if(!_||!S||By(S))return!1;const w=S.outerHeightStyle;return h.current!=null&&h.current!==w}),b=A.useCallback(()=>{const _=d.current,S=g();if(!_||!S||By(S))return;const w=S.outerHeightStyle;h.current!==w&&(h.current=w,_.style.height=`${w}px`),_.style.overflow=S.overflowing?"hidden":""},[g]),v=A.useRef(-1);yr(()=>{const _=Vy(b),S=d?.current;if(!S)return;const w=kr(S);w.addEventListener("resize",_);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{f()&&(E.unobserve(S),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{E.observe(S)}))}),E.observe(S)),()=>{_.clear(),cancelAnimationFrame(v.current),w.removeEventListener("resize",_),E&&E.disconnect()}},[g,b,f]),yr(()=>{b()});const p=_=>{u||b();const S=_.target,w=S.value.length,E=S.value.endsWith(`
48
+ `),x=S.selectionStart===w;E&&x&&S.setSelectionRange(w,w),n&&n(_)};return F.jsxs(A.Fragment,{children:[F.jsx("textarea",{value:s,onChange:p,ref:m,rows:a,style:l,...c}),F.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...PE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Uy.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Ur({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Qi=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qi.displayName="FormControlContext");function vr(){return A.useContext(Qi)}const ze=qS;function Wy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ea(e,t=!1){return e&&(Wy(e.value)&&e.value!==""||t&&Wy(e.defaultValue)&&e.defaultValue!=="")}function RE(e){return e.startAdornment}function kE(e){return Fe("MuiInputBase",e)}const Gt=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Hy;const ta=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${pe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ra=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},IE=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:l,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:m,size:h,startAdornment:y,type:g}=e,f={root:["root",`color${pe(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",s&&"formControl",h&&h!=="medium"&&`size${pe(h)}`,d&&"multiline",y&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return Be(f,kE,t)},na=me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ta})(ze(({theme:e})=>({...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",[`&.${Gt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),oa=me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ra})(ze(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gt.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Gt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ky=OE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ia=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,color:c,components:u={},componentsProps:d={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:b=!1,id:v,inputComponent:p="input",inputProps:_={},inputRef:S,margin:w,maxRows:E,minRows:x,multiline:P=!1,name:k,onBlur:j,onChange:R,onClick:O,onFocus:D,onKeyDown:N,onKeyUp:U,placeholder:W,readOnly:le,renderSuffix:ce,rows:ue,size:z,slotProps:C={},slots:V={},startAdornment:M,type:T="text",value:$,...q}=n,K=_.value!=null?_.value:$,{current:re}=A.useRef(K!=null),ie=A.useRef(),te=A.useCallback(Oe=>{process.env.NODE_ENV!=="production"&&Oe&&Oe.nodeName!=="INPUT"&&!Oe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
49
+ `))},[]),L=St(ie,S,_.ref,te),[I,G]=A.useState(!1),X=vr();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(X)return X.registerEffect()},[X]);const oe=Ur({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=X?X.focused:I,A.useEffect(()=>{!X&&h&&I&&(G(!1),j&&j())},[X,h,I,j]);const ye=X&&X.onFilled,ve=X&&X.onEmpty,fe=A.useCallback(Oe=>{ea(Oe)?ye&&ye():ve&&ve()},[ye,ve]);yr(()=>{re&&fe({value:K})},[K,fe,re]);const Te=Oe=>{D&&D(Oe),_.onFocus&&_.onFocus(Oe),X&&X.onFocus?X.onFocus(Oe):G(!0)},be=Oe=>{j&&j(Oe),_.onBlur&&_.onBlur(Oe),X&&X.onBlur?X.onBlur(Oe):G(!1)},Ee=(Oe,...He)=>{if(!re){const ft=Oe.target||ie.current;if(ft==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":hr(1));fe({value:ft.value})}_.onChange&&_.onChange(Oe,...He),R&&R(Oe,...He)};A.useEffect(()=>{fe(ie.current)},[]);const he=Oe=>{ie.current&&Oe.currentTarget===Oe.target&&ie.current.focus(),O&&O(Oe)};let $e=p,Ie=_;P&&$e==="input"&&(ue?(process.env.NODE_ENV!=="production"&&(x||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:ue,maxRows:ue,...Ie}):Ie={type:void 0,maxRows:E,minRows:x,...Ie},$e=Uy);const ot=Oe=>{fe(Oe.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};A.useEffect(()=>{X&&X.setAdornedStart(!!M)},[X,M]);const Qe={...n,color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:X,fullWidth:b,hiddenLabel:oe.hiddenLabel,multiline:P,size:oe.size,startAdornment:M,type:T},_t=IE(Qe),et=V.root||u.Root||na,Tt=C.root||d.root||{},Je=V.input||u.Input||oa;return Ie={...Ie,...C.input??d.input},F.jsxs(A.Fragment,{children:[!y&&typeof Ky=="function"&&(Hy||(Hy=F.jsx(Ky,{}))),F.jsxs(et,{...Tt,ref:r,onClick:he,...q,...!Xi(et)&&{ownerState:{...Qe,...Tt.ownerState}},className:xe(_t.root,Tt.className,s,le&&"MuiInputBase-readOnly"),children:[M,F.jsx(Qi.Provider,{value:null,children:F.jsx(Je,{"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:oe.disabled,id:v,onAnimationStart:ot,name:k,placeholder:W,readOnly:le,required:oe.required,rows:ue,value:K,onKeyDown:N,onKeyUp:U,type:T,...Ie,...!Xi(Je)&&{as:$e,ownerState:{...Qe,...Ie.ownerState}},ref:L,className:xe(_t.input,Ie.className,le&&"MuiInputBase-readOnly"),onBlur:be,onChange:Ee,onFocus:Te})}),g,ce?ce({...oe,startAdornment:M}):null]})]})});process.env.NODE_ENV!=="production"&&(ia.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:lu,inputProps:o.object,inputRef:zt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function jE(e){return typeof e.main=="string"}function NE(e,t=[]){if(!jE(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function $t(e=[]){return([,t])=>t&&NE(t,e)}function AE(e){return Fe("MuiInput",e)}const Wr={...Gt,...Le("MuiInput",["root","underline","input"])},ME=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},AE,t);return{...t,...i}},DE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{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"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.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(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),qE=me(oa,{name:"MuiInput",slot:"Input",overridesResolver:ra})({}),aa=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:m={},type:h="text",...y}=n,g=ME(n),b={root:{ownerState:{disableUnderline:i}}},v=d??l?kt(d??l,b):b,p=m.root??a.Root??DE,_=m.input??a.Input??qE;return F.jsx(ia,{slots:{root:p,input:_},slotProps:v,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:h,...y,classes:g})});process.env.NODE_ENV!=="production"&&(aa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:zt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),aa.muiName="Input";function LE(e){return Fe("MuiFilledInput",e)}const Yt={...Gt,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function cu(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function FE(e){return Fe("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zE=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(r)}`]};return Be(i,FE,n)},VE=me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pe(r.color)}`],t[`fontSize${pe(r.fontSize)}`]]}})(ze(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),sa=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...y}=n,g=A.isValidElement(i)&&i.type==="svg",f={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},b={};d||(b.viewBox=h);const v=zE(f);return F.jsxs(VE,{as:s,className:xe(v.root,a),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...b,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,m?F.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(sa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),sa.muiName="SvgIcon";function Ct(e,t){function r(n,i){return F.jsx(sa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=sa.muiName,A.memo(A.forwardRef(r))}function uu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function BE(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=i||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function on(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:a}=A.useRef(t!==void 0),[l,s]=A.useState(r),c=a?t:l;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
50
+ `))},[i,n,t]);const{current:d}=A.useRef(r);A.useEffect(()=>{!a&&JSON.stringify(r)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
51
+ `))},[JSON.stringify(r)])}const u=A.useCallback(d=>{a||s(d)},[]);return[c,u]}function UE(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Gy(e,t){if(!e)return t;function r(l,s){const c={};return Object.keys(s).forEach(u=>{UE(u,s[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),s[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const s=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...s}):e,u=xe(l?.className,s?.className,c?.className),d=r(c,s);return{...s,...c,...d,...!!u&&{className:u},...s?.style&&c?.style&&{style:{...s.style,...c.style}},...s?.sx&&c?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,i=r(e,n),a=xe(n?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const WE=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:a,hiddenLabel:l,multiline:s}=e,c={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${pe(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Be(c,LE,t);return{...t,...u}},HE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ta(e,t),!r.disableUnderline&&t.underline]}})(ze(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:n}},[`&.${Yt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Yt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{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"},[`&.${Yt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):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(.${Yt.disabled}, .${Yt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:s})=>l.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),KE=me(oa,{name:"MuiFilledInput",slot:"Input",overridesResolver:ra})(ze(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),la=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:m,slots:h={},type:y="text",...g}=n,f={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:d,type:y},b=WE(n),v={root:{ownerState:f},input:{ownerState:f}},p=m??l?kt(v,m??l):v,_=h.root??a.Root??HE,S=h.input??a.Input??KE;return F.jsx(ia,{slots:{root:_,input:S},slotProps:p,fullWidth:s,inputComponent:u,multiline:d,ref:r,type:y,...g,classes:b})});process.env.NODE_ENV!=="production"&&(la.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:zt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),la.muiName="Input";var Yy;const GE=me("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:It})({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%"}),YE=me("legend",{name:"MuiNotchedOutlined",shouldForwardProp:It})(ze(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Jy(e){const{children:t,classes:r,className:n,label:i,notched:a,...l}=e,s=i!=null&&i!=="",c={...e,notched:a,withLabel:s};return F.jsx(GE,{"aria-hidden":!0,className:n,ownerState:c,...l,children:F.jsx(YE,{ownerState:c,children:s?F.jsx("span",{children:i}):Yy||(Yy=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Jy.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function JE(e){return Fe("MuiOutlinedInput",e)}const er={...Gt,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function Xy(e,t,r){return e===void 0||Xi(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Zy(e,t,r){return typeof e=="function"?e(t,r):e}function Qy(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function eg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function tg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const y=xe(r?.className,a,i?.className,n?.className),g={...r?.style,...i?.style,...n?.style},f={...r,...i,...n};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const l=Qy({...i,...n}),s=eg(n),c=eg(i),u=t(l),d=xe(u?.className,r?.className,a,i?.className,n?.className),m={...u?.style,...r?.style,...i?.style,...n?.style},h={...u,...r,...c,...s};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function dt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:s=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=a,y=d[e]||n,g=Zy(m[e],i),{props:{component:f,...b},internalRef:v}=tg({className:r,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),p=St(v,g?.ref,t.ref),_=e==="root"?f||u:f,S=Xy(y,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...b,..._&&!s&&{as:_},..._&&s&&{component:_},ref:p},i);return[y,S]}const XE=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},JE,t);return{...t,...n}},ZE=me(na,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ta})(ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${er.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${er.focused} .${er.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($t()).map(([r])=>({props:{color:r},style:{[`&.${er.focused} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${er.error} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${er.disabled} .${er.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),QE=me(Jy,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),e1=me(oa,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ra})(ze(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),ca=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:s,multiline:c=!1,notched:u,slots:d={},slotProps:m={},type:h="text",...y}=n,g=XE(n),f=vr(),b=Ur({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:f,fullWidth:a,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:h},p=d.root??i.Root??ZE,_=d.input??i.Input??e1,[S,w]=dt("notchedOutline",{elementType:QE,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:m},additionalProps:{label:s!=null&&s!==""&&b.required?F.jsxs(A.Fragment,{children:[s," ","*"]}):s}});return F.jsx(ia,{slots:{root:p,input:_},slotProps:m,renderSuffix:E=>F.jsx(S,{...w,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:l,multiline:c,ref:r,type:h,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ca.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:zt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),ca.muiName="Input";function t1(e){return Fe("MuiFormLabel",e)}const Qn=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),r1=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${pe(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Be(c,t1,t)},n1=me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${Qn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Qn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),o1=me("span",{name:"MuiFormLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${Qn.error}`]:{color:(e.vars||e).palette.error.main}}))),Hr=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:d,focused:m,required:h,...y}=n,g=vr(),f=Ur({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),b={...n,color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=r1(b);return F.jsxs(n1,{as:s,ownerState:b,className:xe(v.root,a),ref:r,...y,children:[i,f.required&&F.jsxs(o1,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Hr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function i1(e){return Fe("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const a1=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:l,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="medium"&&`size${pe(n)}`,l],asterisk:[s&&"asterisk"]},u=Be(c,i1,t);return{...t,...u}},s1=me(Hr,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qn.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(ze(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ua=A.forwardRef(function(t,r){const n=We({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,d=vr();let m=l;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=Ur({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:i,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=a1(y);return F.jsx(s1,{"data-shrink":m,ref:r,className:xe(g.root,c),...u,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(ua.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function l1(e){return Fe("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const c1=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${pe(r)}`,n&&"fullWidth"]};return Be(i,l1,t)},u1=me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${pe(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Tn=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:f="medium",variant:b="outlined",...v}=n,p={...n,color:l,component:s,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:y,required:g,size:f,variant:b},_=c1(p),[S,w]=A.useState(()=>{let W=!1;return i&&A.Children.forEach(i,le=>{if(!Qc(le,["Input","Select"]))return;const ce=Qc(le,["Select"])?le.props.input:le;ce&&RE(ce.props)&&(W=!0)}),W}),[E,x]=A.useState(()=>{let W=!1;return i&&A.Children.forEach(i,le=>{Qc(le,["Input","Select"])&&(ea(le.props,!0)||ea(le.props.inputProps,!0))&&(W=!0)}),W}),[P,k]=A.useState(!1);c&&P&&k(!1);const j=d!==void 0&&!c?d:P;let R;const O=A.useRef(!1);process.env.NODE_ENV!=="production"&&(R=()=>(O.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
52
+ `)),O.current=!0,()=>{O.current=!1}));const D=A.useCallback(()=>{x(!0)},[]),N=A.useCallback(()=>{x(!1)},[]),U=A.useMemo(()=>({adornedStart:S,setAdornedStart:w,color:l,disabled:c,error:u,filled:E,focused:j,fullWidth:m,hiddenLabel:h,size:f,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:N,onFilled:D,registerEffect:R,required:g,variant:b}),[S,l,c,u,E,j,m,h,R,N,D,g,f,b]);return F.jsx(Qi.Provider,{value:U,children:F.jsx(u1,{as:s,ownerState:p,className:xe(_.root,a),ref:r,...v,children:i})})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function d1(e){return Fe("MuiFormHelperText",e)}const rg=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ng;const f1=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:l,focused:s,required:c}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${pe(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Be(u,d1,t)},p1=me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),eo=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:d,margin:m,required:h,variant:y,...g}=n,f=vr(),b=Ur({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...n,component:l,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const p=f1(v);return F.jsx(p1,{as:l,className:xe(p.root,a),ref:r,...g,ownerState:v,children:i===" "?ng||(ng=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function to(e){return parseInt(A.version,10)>=19?e?.props?.ref||null:e?.ref||null}var da={exports:{}},st={};var og;function h1(){if(og)return st;og=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case e:switch(f=f.type,f){case r:case i:case n:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case l:case s:case m:case d:return f;case a:return f;default:return b}}case t:return b}}}return st.ContextConsumer=a,st.ContextProvider=l,st.Element=e,st.ForwardRef=s,st.Fragment=r,st.Lazy=m,st.Memo=d,st.Portal=t,st.Profiler=i,st.StrictMode=n,st.Suspense=c,st.SuspenseList=u,st.isContextConsumer=function(f){return g(f)===a},st.isContextProvider=function(f){return g(f)===l},st.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},st.isForwardRef=function(f){return g(f)===s},st.isFragment=function(f){return g(f)===r},st.isLazy=function(f){return g(f)===m},st.isMemo=function(f){return g(f)===d},st.isPortal=function(f){return g(f)===t},st.isProfiler=function(f){return g(f)===i},st.isStrictMode=function(f){return g(f)===n},st.isSuspense=function(f){return g(f)===c},st.isSuspenseList=function(f){return g(f)===u},st.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===s||f.$$typeof===y||f.getModuleId!==void 0)},st.typeOf=g,st}var lt={};var ig;function m1(){return ig||(ig=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var b=f.$$typeof;switch(b){case t:switch(f=f.type,f){case n:case a:case i:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case s:case c:case h:case m:return f;case l:return f;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");lt.ContextConsumer=l,lt.ContextProvider=s,lt.Element=t,lt.ForwardRef=c,lt.Fragment=n,lt.Lazy=h,lt.Memo=m,lt.Portal=r,lt.Profiler=a,lt.StrictMode=i,lt.Suspense=u,lt.SuspenseList=d,lt.isContextConsumer=function(f){return e(f)===l},lt.isContextProvider=function(f){return e(f)===s},lt.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},lt.isForwardRef=function(f){return e(f)===c},lt.isFragment=function(f){return e(f)===n},lt.isLazy=function(f){return e(f)===h},lt.isMemo=function(f){return e(f)===m},lt.isPortal=function(f){return e(f)===r},lt.isProfiler=function(f){return e(f)===a},lt.isStrictMode=function(f){return e(f)===i},lt.isSuspense=function(f){return e(f)===u},lt.isSuspenseList=function(f){return e(f)===d},lt.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===a||f===i||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===l||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},lt.typeOf=e})()),lt}var ag;function y1(){return ag||(ag=1,process.env.NODE_ENV==="production"?da.exports=h1():da.exports=m1()),da.exports}var du=y1();function Ir(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function sg(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Zy(r,n),{props:s,internalRef:c}=tg({...a,externalSlotProps:l}),u=St(c,l?.ref,e.additionalProps?.ref);return Xy(t,{...s,ref:u},n)}const fa=A.createContext({});process.env.NODE_ENV!=="production"&&(fa.displayName="ListContext");function g1(e){return Fe("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const v1=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Be({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},g1,t)},b1=me("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),lg=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...d}=n,m=A.useMemo(()=>({dense:s}),[s]),h={...n,component:l,dense:s,disablePadding:c},y=v1(h);return F.jsx(fa.Provider,{value:m,children:F.jsxs(b1,{as:l,className:xe(y.root,a),ref:r,ownerState:h,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ro(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function fu(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ug(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function dg(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function no(e,t,r,n,i,a){let l=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(l)return!1;l=!0}const c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!dg(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const fg=A.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,y=A.useRef(null),g=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yr(()=>{i&&y.current.focus()},[i]),A.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:S})=>{const w=!y.current.style.width;if(_.clientHeight<y.current.clientHeight&&w){const E=`${cg(kr(_))}px`;y.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=E,y.current.style.width=`calc(100% + ${E})`}return y.current}}),[]);const f=_=>{const S=y.current,w=_.key;if(_.ctrlKey||_.metaKey||_.altKey){d&&d(_);return}const x=ro(Kt(S));if(w==="ArrowDown")_.preventDefault(),no(S,x,u,c,fu);else if(w==="ArrowUp")_.preventDefault(),no(S,x,u,c,ug);else if(w==="Home")_.preventDefault(),no(S,null,u,c,fu);else if(w==="End")_.preventDefault(),no(S,null,u,c,ug);else if(w.length===1){const P=g.current,k=w.toLowerCase(),j=performance.now();P.keys.length>0&&(j-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=j,P.keys.push(k);const R=x&&!P.repeating&&dg(x,P);P.previousKeyMatched&&(R||no(S,x,!1,c,fu,P))?_.preventDefault():P.previousKeyMatched=!1}d&&d(_)},b=St(y,r);let v=-1;A.Children.forEach(l,(_,S)=>{if(!A.isValidElement(_)){v===S&&(v+=1,v>=l.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&du.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
53
+ `)),_.props.disabled||(m==="selectedMenu"&&_.props.selected||v===-1)&&(v=S),v===S&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(v+=1,v>=l.length&&(v=-1))});const p=A.Children.map(l,(_,S)=>{if(S===v){const w={};return a&&(w.autoFocus=!0),_.props.tabIndex===void 0&&m==="selectedMenu"&&(w.tabIndex=0),A.cloneElement(_,w)}return _});return F.jsx(lg,{role:"menu",ref:b,className:s,onKeyDown:f,tabIndex:i?0:-1,...h,children:p})});process.env.NODE_ENV!=="production"&&(fg.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function _1(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function pg(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=_1(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function hg(e,t,r,n){return e[t]===void 0?null:pg(e,t,r,n)}function pu(){return null}hg.isRequired=pg,pu.isRequired=pu;const hu=process.env.NODE_ENV==="production"?pu:hg,mg={};function yg(e,t){const r=A.useRef(mg);return r.current===mg&&(r.current=e(t)),r}const w1=[];function S1(e){A.useEffect(e,w1)}class mu{static create(){return new mu}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function gg(){const e=yg(mu.create).current;return S1(e.disposeEffect),e}function E1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vg(e,t,r,n,i){const a=e[t],l=i||t;if(a==null||typeof window>"u")return null;let s;const c=a.type;return typeof c=="function"&&!E1(c)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oo=cr(o.element,vg);oo.isRequired=cr(o.element.isRequired,vg);function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yu.apply(null,arguments)}function bg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},gu(e,t)}function _g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}const wg={disabled:!1};var O1=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const pa=ke.createContext(null);var x1=function(t){return t.scrollTop},io="unmounted",an="exited",sn="entering",Pn="entered",vu="exiting",br=(function(e){_g(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=i,s=l&&!l.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=an,a.appearStatus=sn):c=Pn:n.unmountOnExit||n.mountOnEnter?c=io:c=an,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===io?{status:an}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==sn&&l!==Pn&&(a=sn):(l===sn||l===Pn)&&(a=vu)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,l,s;return a=l=s=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,s=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this);l&&x1(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===an&&this.setState({status:io})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Nn.findDOMNode(this),s],u=c[0],d=c[1],m=this.getTimeouts(),h=s?m.appear:m.enter;if(!i&&!l||wg.disabled){this.safeSetState({status:Pn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:sn},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Pn},function(){a.props.onEntered(u,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:Nn.findDOMNode(this);if(!a||wg.disabled){this.safeSetState({status:an},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:vu},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:an},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(s){l&&(l=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Nn.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!l||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===io)return null;var a=this.props,l=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=bg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(pa.Provider,{value:null},typeof l=="function"?l(i,s):ke.cloneElement(ke.Children.only(l),s))},t})(ke.Component);br.contextType=pa,br.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,r,n,i,a){var l=e[t];return o.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var r=O1;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function $n(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$n,onEntering:$n,onEntered:$n,onExit:$n,onExiting:$n,onExited:$n},br.UNMOUNTED=io,br.EXITED=an,br.ENTERING=sn,br.ENTERED=Pn,br.EXITING=vu;function C1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t){var r=function(a){return t&&ke.isValidElement(a)?t(a):a},n=Object.create(null);return e&&ke.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function T1(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var l,s={};for(var c in t){if(n[c])for(l=0;l<n[c].length;l++){var u=n[c][l];s[n[c][l]]=r(u)}s[c]=r(c)}for(l=0;l<i.length;l++)s[i[l]]=r(i[l]);return s}function ln(e,t,r){return r[t]!=null?r[t]:e.props[t]}function P1(e,t){return bu(e.children,function(r){return ke.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ln(r,"appear",e),enter:ln(r,"enter",e),exit:ln(r,"exit",e)})})}function $1(e,t,r){var n=bu(e.children),i=T1(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(ke.isValidElement(l)){var s=a in t,c=a in n,u=t[a],d=ke.isValidElement(u)&&!u.props.in;c&&(!s||d)?i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}):!c&&s&&!d?i[a]=ke.cloneElement(l,{in:!1}):c&&s&&ke.isValidElement(u)&&(i[a]=ke.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:ln(l,"exit",e),enter:ln(l,"enter",e)}))}}),i}var R1=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},k1={component:"div",childFactory:function(t){return t}},_u=(function(e){_g(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(C1(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var l=a.children,s=a.handleExited,c=a.firstRender;return{children:c?P1(i,s):$1(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=bu(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=yu({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=bg(i,["component","childFactory"]),c=this.state.contextValue,u=R1(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?ke.createElement(pa.Provider,{value:c},u):ke.createElement(pa.Provider,{value:c},ke.createElement(a,s,u))},t})(ke.Component);_u.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},_u.defaultProps=k1;const Sg=e=>e.scrollTop;function ha(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function wu(e){return`scale(${e}, ${e**2})`}const I1={entering:{opacity:1,transform:wu(1)},entered:{opacity:1,transform:"none"}},Su=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ma=A.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:y,style:g,timeout:f="auto",TransitionComponent:b=br,...v}=t,p=gg(),_=A.useRef(),S=su(),w=A.useRef(null),E=St(w,to(a),r),x=U=>W=>{if(U){const le=w.current;W===void 0?U(le):U(le,W)}},P=x(d),k=x((U,W)=>{Sg(U);const{duration:le,delay:ce,easing:ue}=ha({style:g,timeout:f,easing:l},{mode:"enter"});let z;f==="auto"?(z=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=z):z=le,U.style.transition=[S.transitions.create("opacity",{duration:z,delay:ce}),S.transitions.create("transform",{duration:Su?z:z*.666,delay:ce,easing:ue})].join(","),c&&c(U,W)}),j=x(u),R=x(y),O=x(U=>{const{duration:W,delay:le,easing:ce}=ha({style:g,timeout:f,easing:l},{mode:"exit"});let ue;f==="auto"?(ue=S.transitions.getAutoHeightDuration(U.clientHeight),_.current=ue):ue=W,U.style.transition=[S.transitions.create("opacity",{duration:ue,delay:le}),S.transitions.create("transform",{duration:Su?ue:ue*.666,delay:Su?le:le||ue*.333,easing:ce})].join(","),U.style.opacity=0,U.style.transform=wu(.75),m&&m(U)}),D=x(h),N=U=>{f==="auto"&&p.start(_.current||0,U),n&&n(w.current,U)};return F.jsx(b,{appear:i,in:s,nodeRef:w,onEnter:k,onEntered:j,onEntering:P,onExit:O,onExited:D,onExiting:R,addEndListener:N,timeout:f==="auto"?null:f,...v,children:(U,{ownerState:W,...le})=>A.cloneElement(a,{style:{opacity:0,transform:wu(.75),visibility:U==="exited"&&!s?"hidden":void 0,...I1[U],...g,...a.props.style},ref:E,...le})})});process.env.NODE_ENV!=="production"&&(ma.propTypes={addEndListener:o.func,appear:o.bool,children:oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),ma&&(ma.muiSupportAuto=!0);function j1(e){const t=Kt(e);return t.body===e?kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ao(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Eg(e){return parseInt(kr(e).getComputedStyle(e).paddingRight,10)||0}function N1(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Og(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!N1(l);s&&c&&ao(l,i)})}function Eu(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function A1(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(j1(n)){const l=cg(kr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Eg(n)+l}px`;const s=Kt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Eg(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Kt(n).body;else{const l=n.parentElement,s=kr(n);a=l?.nodeName==="HTML"&&s.getComputedStyle(l).overflowY==="scroll"?l:n}r.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()=>{r.forEach(({value:a,el:l,property:s})=>{a?l.style.setProperty(s,a):l.style.removeProperty(s)})}}function M1(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class D1{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&ao(t.modalRef,!1);const i=M1(r);Og(r,t.mount,t.modalRef,i,!0);const a=Eu(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Eu(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=A1(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Eu(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ao(t.modalRef,r),Og(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&ao(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const q1=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function L1(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 F1(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function z1(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||F1(e))}function V1(e){const t=[],r=[];return Array.from(e.querySelectorAll(q1)).forEach((n,i)=>{const a=L1(n);a===-1||!z1(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function B1(){return!0}function ya(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=V1,isEnabled:l=B1,open:s}=e,c=A.useRef(!1),u=A.useRef(null),d=A.useRef(null),m=A.useRef(null),h=A.useRef(null),y=A.useRef(!1),g=A.useRef(null),f=St(to(t),g),b=A.useRef(null);A.useEffect(()=>{!s||!g.current||(y.current=!r)},[r,s]),A.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=ro(_);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
54
+ `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[s]),A.useEffect(()=>{if(!s||!g.current)return;const _=Kt(g.current),S=ro(_),w=P=>{b.current=P,!(n||!l()||P.key!=="Tab")&&S===g.current&&P.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{const P=g.current;if(P===null)return;const k=ro(_);if(!_.hasFocus()||!l()||c.current){c.current=!1;return}if(P.contains(k)||n&&k!==u.current&&k!==d.current)return;if(k!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let j=[];if((k===u.current||k===d.current)&&(j=a(g.current)),j.length>0){const R=!!(b.current?.shiftKey&&b.current?.key==="Tab"),O=j[0],D=j[j.length-1];typeof O!="string"&&typeof D!="string"&&(R?D.focus():O.focus())}else P.focus()};_.addEventListener("focusin",E),_.addEventListener("keydown",w,!0);const x=setInterval(()=>{const P=ro(_);P&&P.tagName==="BODY"&&E()},50);return()=>{clearInterval(x),_.removeEventListener("focusin",E),_.removeEventListener("keydown",w,!0)}},[r,n,i,l,s,a]);const v=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0,h.current=_.target;const S=t.props.onFocus;S&&S(_)},p=_=>{m.current===null&&(m.current=_.relatedTarget),y.current=!0};return F.jsxs(A.Fragment,{children:[F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:f,onFocus:v}),F.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:oo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ya.propTypes=Ey(ya.propTypes));function U1(e){return typeof e=="function"?e():e}const so=A.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=A.useState(null),c=St(A.isValidElement(n)?to(n):null,r);if(yr(()=>{a||s(U1(i)||document.body)},[i,a]),yr(()=>{if(l&&!a)return uu(r,l),()=>{uu(r,null)}},[r,l,a]),a){if(A.isValidElement(n)){const u={ref:c};return A.cloneElement(n,u)}return n}return l&&Xv.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(so.propTypes={children:o.node,container:o.oneOfType([Ir,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(so.propTypes=Ey(so.propTypes));const W1={entering:{opacity:1},entered:{opacity:1}},xg=A.forwardRef(function(t,r){const n=su(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:y,onExited:g,onExiting:f,style:b,timeout:v=i,TransitionComponent:p=br,..._}=t,S=A.useRef(null),w=St(S,to(s),r),E=N=>U=>{if(N){const W=S.current;U===void 0?N(W):N(W,U)}},x=E(h),P=E((N,U)=>{Sg(N);const W=ha({style:b,timeout:v,easing:c},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",W),N.style.transition=n.transitions.create("opacity",W),d&&d(N,U)}),k=E(m),j=E(f),R=E(N=>{const U=ha({style:b,timeout:v,easing:c},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",U),N.style.transition=n.transitions.create("opacity",U),y&&y(N)}),O=E(g),D=N=>{a&&a(S.current,N)};return F.jsx(p,{appear:l,in:u,nodeRef:S,onEnter:P,onEntered:k,onEntering:x,onExit:R,onExited:O,onExiting:j,addEndListener:D,timeout:v,..._,children:(N,{ownerState:U,...W})=>A.cloneElement(s,{style:{opacity:0,visibility:N==="exited"&&!u?"hidden":void 0,...W1[N],...b,...s.props.style},ref:w,...W})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={addEndListener:o.func,appear:o.bool,children:oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function H1(e){return Fe("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const K1=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},H1,t)},G1=me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Cg=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:y,transitionDuration:g,...f}=n,b={...n,component:l,invisible:s},v=K1(b),p={transition:y,root:u.Root,...h},_={...d,...m},S={component:l,slots:p,slotProps:_},[w,E]=dt("root",{elementType:G1,externalForwardedProps:S,className:xe(v.root,a),ownerState:b}),[x,P]=dt("transition",{elementType:xg,externalForwardedProps:S,ownerState:b});return F.jsx(x,{in:c,timeout:g,...f,...P,children:F.jsx(w,{"aria-hidden":!0,...E,classes:v,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(Cg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Y1(e){return typeof e=="function"?e():e}function J1(e){return e?e.props.hasOwnProperty("in"):!1}const Tg=()=>{},ga=new D1;function X1(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,m=A.useRef({}),h=A.useRef(null),y=A.useRef(null),g=St(y,d),[f,b]=A.useState(!u),v=J1(s);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const _=()=>Kt(h.current),S=()=>(m.current.modalRef=y.current,m.current.mount=h.current,m.current),w=()=>{ga.mount(S(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},E=ur(()=>{const U=Y1(t)||_().body;ga.add(S(),U),y.current&&w()}),x=()=>ga.isTopModal(S()),P=ur(U=>{h.current=U,U&&(u&&x()?w():y.current&&ao(y.current,p))}),k=A.useCallback(()=>{ga.remove(S(),p)},[p]);A.useEffect(()=>()=>{k()},[k]),A.useEffect(()=>{u?E():(!v||!i)&&k()},[u,k,v,i,E]);const j=U=>W=>{U.onKeyDown?.(W),!(W.key!=="Escape"||W.which===229||!x())&&(r||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},R=U=>W=>{U.onClick?.(W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(U={})=>{const W=Qy(e);delete W.onTransitionEnter,delete W.onTransitionExited;const le={...W,...U};return{role:"presentation",...le,onKeyDown:j(le),ref:g}},getBackdropProps:(U={})=>{const W=U;return{"aria-hidden":!0,...W,onClick:R(W),open:u}},getTransitionProps:()=>{const U=()=>{b(!1),a&&a()},W=()=>{b(!0),l&&l(),i&&k()};return{onEnter:cu(U,s?.props.onEnter??Tg),onExited:cu(W,s?.props.onExited??Tg)}},rootRef:g,portalRef:P,isTopModal:x,exited:f,hasTransition:v}}function Z1(e){return Fe("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const Q1=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Z1,n)},eO=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ze(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),tO=me(Cg,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Pg=A.forwardRef(function(t,r){const n=We({name:"MuiModal",props:t}),{BackdropComponent:i=tO,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:p=!1,disableScrollLock:_=!1,hideBackdrop:S=!1,keepMounted:w=!1,onClose:E,onTransitionEnter:x,onTransitionExited:P,open:k,slotProps:j={},slots:R={},theme:O,...D}=n,N={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:p,disableScrollLock:_,hideBackdrop:S,keepMounted:w},{getRootProps:U,getBackdropProps:W,getTransitionProps:le,portalRef:ce,isTopModal:ue,exited:z,hasTransition:C}=X1({...N,rootRef:r}),V={...N,exited:z},M=Q1(V),T={};if(u.props.tabIndex===void 0&&(T.tabIndex="-1"),C){const{onEnter:te,onExited:L}=le();T.onEnter=te,T.onExited=L}const $={slots:{root:h.Root,backdrop:h.Backdrop,...R},slotProps:{...y,...j}},[q,K]=dt("root",{ref:r,elementType:eO,externalForwardedProps:{...$,...D,component:m},getSlotProps:U,ownerState:V,className:xe(s,M?.root,!V.open&&V.exited&&M?.hidden)}),[re,ie]=dt("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:te=>W({...te,onClick:L=>{te?.onClick&&te.onClick(L)}}),className:xe(a?.className,M?.backdrop),ownerState:V});return!w&&!k&&(!C||z)?null:F.jsx(so,{ref:ce,container:d,disablePortal:v,children:F.jsxs(q,{...K,children:[!S&&i?F.jsx(re,{...ie}):null,F.jsx(ya,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:p,isEnabled:ue,open:k,children:A.cloneElement(u,T)})]})})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:oo.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Ir,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rO(e){return Fe("MuiPaper",e)}Le("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 nO=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Be(a,rO,i)},oO=me("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),lo=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiPaper"}),i=su(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...d}=n,m={...n,component:l,elevation:s,square:c,variant:u},h=nO(m);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
55
+ `)),F.jsx(oO,{as:l,ownerState:m,className:xe(h.root,a),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ki("#fff",nu(s))}, ${Ki("#fff",nu(s))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(lo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:cr(hu,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});function iO(e){return Fe("MuiPopover",e)}Le("MuiPopover",["root","paper"]);function $g(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Rg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function kg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function co(e){return typeof e=="function"?e():e}const aO=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},iO,t)},sO=me(Pg,{name:"MuiPopover",slot:"Root"})({}),Ig=me(lo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jg=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:m,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:b={},slotProps:v={},transformOrigin:p={vertical:"top",horizontal:"left"},TransitionComponent:_,transitionDuration:S="auto",TransitionProps:w={},disableScrollLock:E=!1,...x}=n,P=A.useRef(),k={...n,anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:y,transformOrigin:p,TransitionComponent:_,transitionDuration:S,TransitionProps:w},j=aO(k),R=A.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const te=co(a),L=te&&te.nodeType===1?te:Kt(P.current).body,I=L.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const G=L.getBoundingClientRect();process.env.NODE_ENV!=="test"&&G.top===0&&G.left===0&&G.right===0&&G.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
56
+ `))}return{top:I.top+$g(I,l.vertical),left:I.left+Rg(I,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),O=A.useCallback(te=>({vertical:$g(te,p.vertical),horizontal:Rg(te,p.horizontal)}),[p.horizontal,p.vertical]),D=A.useCallback(te=>{const L={width:te.offsetWidth,height:te.offsetHeight},I=O(L);if(c==="none")return{top:null,left:null,transformOrigin:kg(I)};const G=R();let X=G.top-I.vertical,oe=G.left-I.horizontal;const ye=X+L.height,ve=oe+L.width,fe=kr(co(a)),Te=fe.innerHeight-y,be=fe.innerWidth-y;if(y!==null&&X<y){const Ee=X-y;X-=Ee,I.vertical+=Ee}else if(y!==null&&ye>Te){const Ee=ye-Te;X-=Ee,I.vertical+=Ee}if(process.env.NODE_ENV!=="production"&&L.height>Te&&L.height&&Te&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${L.height-Te}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
57
+ `)),y!==null&&oe<y){const Ee=oe-y;oe-=Ee,I.horizontal+=Ee}else if(ve>be){const Ee=ve-be;oe-=Ee,I.horizontal+=Ee}return{top:`${Math.round(X)}px`,left:`${Math.round(oe)}px`,transformOrigin:kg(I)}},[a,c,R,O,y]),[N,U]=A.useState(g),W=A.useCallback(()=>{const te=P.current;if(!te)return;const L=D(te);L.top!==null&&te.style.setProperty("top",L.top),L.left!==null&&(te.style.left=L.left),te.style.transformOrigin=L.transformOrigin,U(!0)},[D]);A.useEffect(()=>(E&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,E,W]);const le=()=>{W()},ce=()=>{U(!1)};A.useEffect(()=>{g&&W()}),A.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),A.useEffect(()=>{if(!g)return;const te=Vy(()=>{W()}),L=kr(co(a));return L.addEventListener("resize",te),()=>{te.clear(),L.removeEventListener("resize",te)}},[a,g,W]);let ue=S;const z={slots:{transition:_,...b},slotProps:{transition:w,paper:f,...v}},[C,V]=dt("transition",{elementType:ma,externalForwardedProps:z,ownerState:k,getSlotProps:te=>({...te,onEntering:(L,I)=>{te.onEntering?.(L,I),le()},onExited:L=>{te.onExited?.(L),ce()}}),additionalProps:{appear:!0,in:g}});S==="auto"&&!C.muiSupportAuto&&(ue=void 0);const M=m||(a?Kt(co(a)).body:void 0),[T,{slots:$,slotProps:q,...K}]=dt("root",{ref:r,elementType:sO,externalForwardedProps:{...z,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Gy(typeof v.backdrop=="function"?v.backdrop(k):v.backdrop,{invisible:!0})},container:M,open:g},ownerState:k,className:xe(j.root,d)}),[re,ie]=dt("paper",{ref:P,className:j.paper,elementType:Ig,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:N?void 0:{opacity:0}},ownerState:k});return F.jsx(T,{...K,...!Xi(T)&&{slots:$,slotProps:q,disableScrollLock:E},children:F.jsx(C,{...V,timeout:ue,children:F.jsx(re,{...ie,children:u})})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={action:zt,anchorEl:cr(o.oneOfType([Ir,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=co(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
139
58
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
140
- `))}return null}),anchorOrigin:n.shape({horizontal:n.oneOfType([n.oneOf(["center","left","right"]),n.number]).isRequired,vertical:n.oneOfType([n.oneOf(["bottom","center","top"]),n.number]).isRequired}),anchorPosition:n.shape({left:n.number.isRequired,top:n.number.isRequired}),anchorReference:n.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:n.elementType,BackdropProps:n.object,children:n.node,classes:n.object,className:n.string,container:n.oneOfType([on,n.func]),disableScrollLock:n.bool,elevation:Id,marginThreshold:n.number,onClose:n.func,open:n.bool.isRequired,PaperProps:n.shape({component:ai}),slotProps:n.shape({paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({paper:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transformOrigin:n.shape({horizontal:n.oneOfType([n.oneOf(["center","left","right"]),n.number]).isRequired,vertical:n.oneOfType([n.oneOf(["bottom","center","top"]),n.number]).isRequired}),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object});function ek(e){return Ie("MuiMenu",e)}ke("MuiMenu",["root","paper","list"]);const tk={vertical:"top",horizontal:"right"},rk={vertical:"top",horizontal:"left"},nk=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},ek,t)},ok=se(wv,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sk=se(vv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ak=se(Ci,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xv=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:i=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:h={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:w,...f}={},variant:y="selectedMenu",slots:v={},slotProps:p={},...b}=o,x=Qt(),S={...o,autoFocus:s,disableAutoFocusItem:i,MenuListProps:c,onEntering:w,PaperProps:h,transitionDuration:g,TransitionProps:f,variant:y},C=nk(S),O=s&&!i&&d,k=E.useRef(null),_=(F,K)=>{k.current&&k.current.adjustStyleForScrollbar(F,{direction:x?"rtl":"ltr"}),w&&w(F,K)},T=F=>{F.key==="Tab"&&(F.preventDefault(),u&&u(F,"tabKeyDown"))};let P=-1;E.Children.map(a,(F,K)=>{E.isValidElement(F)&&(process.env.NODE_ENV!=="production"&&Si.isFragment(F)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
141
- `)),F.props.disabled||(y==="selectedMenu"&&F.props.selected||P===-1)&&(P=K))});const D=v.paper??sk,V=p.paper??h,M=lt({elementType:v.root,externalSlotProps:p.root,ownerState:S,className:[C.root,l]}),N=lt({elementType:D,externalSlotProps:V,ownerState:S,className:C.paper});return R.jsx(ok,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?tk:rk,slots:{paper:D,root:v.root},slotProps:{root:M,paper:N},open:d,ref:r,transitionDuration:g,TransitionProps:{onEntering:_,...f},ownerState:S,...b,classes:m,children:R.jsx(ak,{onKeyDown:T,actions:k,autoFocus:s&&(P===-1||i),autoFocusItem:O,variant:y,...c,className:Te(C.list,c.className),children:a})})});process.env.NODE_ENV!=="production"&&(xv.propTypes={anchorEl:n.oneOfType([on,n.func]),autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,disableAutoFocusItem:n.bool,MenuListProps:n.object,onClose:n.func,open:n.bool.isRequired,PaperProps:n.object,PopoverClasses:n.object,slotProps:n.shape({paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object])}),slots:n.shape({paper:n.elementType,root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transitionDuration:n.oneOfType([n.oneOf(["auto"]),n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object,variant:n.oneOf(["menu","selectedMenu"])});function ik(e){return Ie("MuiNativeSelect",e)}const Jd=ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lk=e=>{const{classes:t,variant:r,disabled:o,multiple:s,open:a,error:l}=e,i={select:["select",r,o&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${Oe(r)}`,a&&"iconOpen",o&&"disabled"]};return _e(i,ik,t)},Sv=se("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Jd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ck=se(Sv,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:er,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Jd.multiple}`]:t.multiple}]}})({}),Cv=se("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Jd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),uk=se(Cv,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Oe(r.variant)}`],r.open&&t.iconOpen]}})({}),Tv=E.forwardRef(function(t,r){const{className:o,disabled:s,error:a,IconComponent:l,inputRef:i,variant:c="standard",...u}=t,d={...t,disabled:s,variant:c,error:a},h=lk(d);return R.jsxs(E.Fragment,{children:[R.jsx(ck,{ownerState:d,className:Te(h.select,o),disabled:s,ref:i||r,...u}),t.multiple?null:R.jsx(uk,{as:l,ownerState:d,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Tv.propTypes={children:n.node,classes:n.object,className:n.string,disabled:n.bool,error:n.bool,IconComponent:n.elementType.isRequired,inputRef:Mt,multiple:n.bool,name:n.string,onChange:n.func,value:n.any,variant:n.oneOf(["standard","outlined","filled"])});function Ov(e){return Ie("MuiSelect",e)}const is=ke("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Pv;const dk=se(Sv,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${is.select}`]:t.select},{[`&.${is.select}`]:t[r.variant]},{[`&.${is.error}`]:t.error},{[`&.${is.multiple}`]:t.multiple}]}})({[`&.${is.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fk=se(Cv,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Oe(r.variant)}`],r.open&&t.iconOpen]}})({}),pk=se("input",{shouldForwardProp:e=>Gb(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 Ev(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function hk(e){return e==null||typeof e=="string"&&!e.trim()}const mk=e=>{const{classes:t,variant:r,disabled:o,multiple:s,open:a,error:l}=e,i={select:["select",r,o&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${Oe(r)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return _e(i,Ov,t)},kv=E.forwardRef(function(t,r){var De;const{"aria-describedby":o,"aria-label":s,autoFocus:a,autoWidth:l,children:i,className:c,defaultOpen:u,defaultValue:d,disabled:h,displayEmpty:m,error:g=!1,IconComponent:w,inputRef:f,labelId:y,MenuProps:v={},multiple:p,name:b,onBlur:x,onChange:S,onClose:C,onFocus:O,onOpen:k,open:_,readOnly:T,renderValue:P,required:D,SelectDisplayProps:V={},tabIndex:M,type:N,value:F,variant:K="standard",...H}=t,[Z,L]=cr({controlled:F,default:d,name:"Select"}),[j,Y]=cr({controlled:_,default:u,name:"Select"}),q=E.useRef(null),$=E.useRef(null),[I,U]=E.useState(null),{current:Q}=E.useRef(_!=null),[W,ee]=E.useState(),ne=ft(r,f),B=E.useCallback(me=>{$.current=me,me&&U(me)},[]),A=I==null?void 0:I.parentNode;E.useImperativeHandle(ne,()=>({focus:()=>{$.current.focus()},node:q.current,value:Z}),[Z]),E.useEffect(()=>{u&&j&&I&&!Q&&(ee(l?null:A.clientWidth),$.current.focus())},[I,l]),E.useEffect(()=>{a&&$.current.focus()},[a]),E.useEffect(()=>{if(!y)return;const me=Yt($.current).getElementById(y);if(me){const $e=()=>{getSelection().isCollapsed&&$.current.focus()};return me.addEventListener("click",$e),()=>{me.removeEventListener("click",$e)}}},[y]);const z=(me,$e)=>{me?k&&k($e):C&&C($e),Q||(ee(l?null:A.clientWidth),Y(me))},X=me=>{me.button===0&&(me.preventDefault(),$.current.focus(),z(!0,me))},te=me=>{z(!1,me)},ae=E.Children.toArray(i),J=me=>{const $e=ae.find(je=>je.props.value===me.target.value);$e!==void 0&&(L($e.props.value),S&&S(me,$e))},fe=me=>$e=>{let je;if($e.currentTarget.hasAttribute("tabindex")){if(p){je=Array.isArray(Z)?Z.slice():[];const Ve=Z.indexOf(me.props.value);Ve===-1?je.push(me.props.value):je.splice(Ve,1)}else je=me.props.value;if(me.props.onClick&&me.props.onClick($e),Z!==je&&(L(je),S)){const Ve=$e.nativeEvent||$e,Xe=new Ve.constructor(Ve.type,Ve);Object.defineProperty(Xe,"target",{writable:!0,value:{value:je,name:b}}),S(Xe,me)}p||z(!1,$e)}},le=me=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),z(!0,me))},ge=I!==null&&j,Se=me=>{!ge&&x&&(Object.defineProperty(me,"target",{writable:!0,value:{value:Z,name:b}}),x(me))};delete H["aria-invalid"];let Ce,Fe;const Ye=[];let He=!1,Qe=!1;(di({value:Z})||m)&&(P?Ce=P(Z):He=!0);const ut=ae.map(me=>{if(!E.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Si.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
142
- `));let $e;if(p){if(!Array.isArray(Z))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":qr(2));$e=Z.some(je=>Ev(je,me.props.value)),$e&&He&&Ye.push(me.props.children)}else $e=Ev(Z,me.props.value),$e&&He&&(Fe=me.props.children);return $e&&(Qe=!0),E.cloneElement(me,{"aria-selected":$e?"true":"false",onClick:fe(me),onKeyUp:je=>{je.key===" "&&je.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(je)},role:"option",selected:$e,value:void 0,"data-value":me.props.value})});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(!Qe&&!p&&Z!==""){const me=ae.map($e=>$e.props.value);console.warn([`MUI: You have provided an out-of-range value \`${Z}\` for the select ${b?`(name="${b}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter($e=>$e!=null).map($e=>`\`${$e}\``).join(", ")||'""'}.`].join(`
143
- `))}},[Qe,ae,p,b,Z]),He&&(p?Ye.length===0?Ce=null:Ce=Ye.reduce((me,$e,je)=>(me.push($e),je<Ye.length-1&&me.push(", "),me),[]):Ce=Fe);let dt=W;!l&&Q&&I&&(dt=A.clientWidth);let st;typeof M<"u"?st=M:st=h?null:0;const Ge=V.id||(b?`mui-component-select-${b}`:void 0),We={...t,variant:K,value:Z,open:ge,error:g},gt=mk(We),mt={...v.PaperProps,...(De=v.slotProps)==null?void 0:De.paper},Dt=mr();return R.jsxs(E.Fragment,{children:[R.jsx(dk,{as:"div",ref:B,tabIndex:st,role:"combobox","aria-controls":ge?Dt:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ge?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[y,Ge].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":D?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:le,onMouseDown:h||T?null:X,onBlur:Se,onFocus:O,...V,ownerState:We,className:Te(V.className,gt.select,c),id:Ge,children:hk(Ce)?Pv||(Pv=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ce}),R.jsx(pk,{"aria-invalid":g,value:Array.isArray(Z)?Z.join(","):Z,name:b,ref:q,"aria-hidden":!0,onChange:J,tabIndex:-1,disabled:h,className:gt.nativeInput,autoFocus:a,required:D,...H,ownerState:We}),R.jsx(fk,{as:w,className:gt.icon,ownerState:We}),R.jsx(xv,{id:`menu-${b||""}`,anchorEl:A,open:ge,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,MenuListProps:{"aria-labelledby":y,role:"listbox","aria-multiselectable":p?"true":void 0,disableListWrap:!0,id:Dt,...v.MenuListProps},slotProps:{...v.slotProps,paper:{...mt,style:{minWidth:dt,...mt!=null?mt.style:null}}},children:ut})]})});process.env.NODE_ENV!=="production"&&(kv.propTypes={"aria-describedby":n.string,"aria-label":n.string,autoFocus:n.bool,autoWidth:n.bool,children:n.node,classes:n.object,className:n.string,defaultOpen:n.bool,defaultValue:n.any,disabled:n.bool,displayEmpty:n.bool,error:n.bool,IconComponent:n.elementType.isRequired,inputRef:Mt,labelId:n.string,MenuProps:n.object,multiple:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onClose:n.func,onFocus:n.func,onOpen:n.func,open:n.bool,readOnly:n.bool,renderValue:n.func,required:n.bool,SelectDisplayProps:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.any,value:n.any,variant:n.oneOf(["standard","outlined","filled"])});const Rv=kt(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gk=e=>{const{classes:t}=e,o=_e({root:["root"]},Ov,t);return{...t,...o}},Zd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>er(e)&&e!=="variant",slot:"Root"},yk=se(yi,Zd)(""),bk=se(wi,Zd)(""),vk=se(vi,Zd)(""),ls=E.forwardRef(function(t,r){const o=tt({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:a,classes:l={},className:i,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Rv,id:h,input:m,inputProps:g,label:w,labelId:f,MenuProps:y,multiple:v=!1,native:p=!1,onClose:b,onOpen:x,open:S,renderValue:C,SelectDisplayProps:O,variant:k="outlined",..._}=o,T=p?Tv:kv,P=or(),D=yn({props:o,muiFormControl:P,states:["variant","error"]}),V=D.variant||k,M={...o,variant:V,classes:l},N=gk(M),{root:F,...K}=N,H=m||{standard:R.jsx(yk,{ownerState:M}),outlined:R.jsx(bk,{label:w,ownerState:M}),filled:R.jsx(vk,{ownerState:M})}[V],Z=ft(r,Wo(H));return R.jsx(E.Fragment,{children:E.cloneElement(H,{inputComponent:T,inputProps:{children:a,error:D.error,IconComponent:d,variant:V,type:void 0,multiple:v,...p?{id:h}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:y,onClose:b,onOpen:x,open:S,renderValue:C,SelectDisplayProps:{id:h,...O}},...g,classes:g?Zt(K,g.classes):K,...m?m.props.inputProps:{}},...(v&&p||u)&&V==="outlined"?{notched:!0}:{},ref:Z,className:Te(H.props.className,i,N.root),...!m&&{variant:V},..._})})});process.env.NODE_ENV!=="production"&&(ls.propTypes={autoWidth:n.bool,children:n.node,classes:n.object,className:n.string,defaultOpen:n.bool,defaultValue:n.any,displayEmpty:n.bool,IconComponent:n.elementType,id:n.string,input:n.element,inputProps:n.object,label:n.node,labelId:n.string,MenuProps:n.object,multiple:n.bool,native:n.bool,onChange:n.func,onClose:n.func,onOpen:n.func,open:n.bool,renderValue:n.func,SelectDisplayProps:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.oneOfType([n.oneOf([""]),n.any]),variant:n.oneOf(["filled","outlined","standard"])}),ls.muiName="Select";function wk(e){return Ie("MuiTextField",e)}ke("MuiTextField",["root"]);const xk={standard:yi,filled:vi,outlined:wi},Sk=e=>{const{classes:t}=e;return _e({root:["root"]},wk,t)},Ck=se(Nn,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ki=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:a=!1,children:l,className:i,color:c="primary",defaultValue:u,disabled:d=!1,error:h=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:w,id:f,InputLabelProps:y,inputProps:v,InputProps:p,inputRef:b,label:x,maxRows:S,minRows:C,multiline:O=!1,name:k,onBlur:_,onChange:T,onFocus:P,placeholder:D,required:V=!1,rows:M,select:N=!1,SelectProps:F,slots:K={},slotProps:H={},type:Z,value:L,variant:j="outlined",...Y}=o,q={...o,autoFocus:a,color:c,disabled:d,error:h,fullWidth:g,multiline:O,required:V,select:N,variant:j},$=Sk(q);process.env.NODE_ENV!=="production"&&N&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const I=mr(f),U=w&&I?`${I}-helper-text`:void 0,Q=x&&I?`${I}-label`:void 0,W=xk[j],ee={slots:K,slotProps:{input:p,inputLabel:y,htmlInput:v,formHelperText:m,select:F,...H}},ne={},B=ee.slotProps.inputLabel;j==="outlined"&&(B&&typeof B.shrink<"u"&&(ne.notched=B.shrink),ne.label=x),N&&((!F||!F.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const[A,z]=Bt("input",{elementType:W,externalForwardedProps:ee,additionalProps:ne,ownerState:q}),[X,te]=Bt("inputLabel",{elementType:Qo,externalForwardedProps:ee,ownerState:q}),[ae,J]=Bt("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:q}),[fe,le]=Bt("formHelperText",{elementType:io,externalForwardedProps:ee,ownerState:q}),[ge,Se]=Bt("select",{elementType:ls,externalForwardedProps:ee,ownerState:q}),Ce=R.jsx(A,{"aria-describedby":U,autoComplete:s,autoFocus:a,defaultValue:u,fullWidth:g,multiline:O,name:k,rows:M,maxRows:S,minRows:C,type:Z,value:L,id:I,inputRef:b,onBlur:_,onChange:T,onFocus:P,placeholder:D,inputProps:J,slots:{input:K.htmlInput?ae:void 0},...z});return R.jsxs(Ck,{className:Te($.root,i),disabled:d,error:h,fullWidth:g,ref:r,required:V,color:c,variant:j,ownerState:q,...Y,children:[x!=null&&x!==""&&R.jsx(X,{htmlFor:I,id:Q,...te,children:x}),N?R.jsx(ge,{"aria-describedby":U,id:I,labelId:Q,value:L,input:Ce,...Se,children:l}):Ce,w&&R.jsx(fe,{id:U,...le,children:w})]})});process.env.NODE_ENV!=="production"&&(ki.propTypes={autoComplete:n.string,autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","error","info","success","warning"]),n.string]),defaultValue:n.any,disabled:n.bool,error:n.bool,FormHelperTextProps:n.object,fullWidth:n.bool,helperText:n.node,id:n.string,InputLabelProps:n.object,inputProps:n.object,InputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),maxRows:n.oneOfType([n.number,n.string]),minRows:n.oneOfType([n.number,n.string]),multiline:n.bool,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,placeholder:n.string,required:n.bool,rows:n.oneOfType([n.number,n.string]),select:n.bool,SelectProps:n.object,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),slotProps:n.shape({formHelperText:n.oneOfType([n.func,n.object]),htmlInput:n.oneOfType([n.func,n.object]),input:n.oneOfType([n.func,n.object]),inputLabel:n.oneOfType([n.func,n.object]),select:n.oneOfType([n.func,n.object])}),slots:n.shape({formHelperText:n.elementType,htmlInput:n.elementType,input:n.elementType,inputLabel:n.elementType,select:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.string,value:n.any,variant:n.oneOf(["filled","outlined","standard"])});class $v extends Be.Component{constructor(t){super(t);const{model:r,form:o,value:s,setDefault:a}=this.props,{key:l}=o;a(l,r,o,s)}render(){const{form:t,error:r,value:o,onChangeValidate:s,localization:{getLocalizedString:a},otherProps:l}=this.props;return R.jsx(ki,{type:t.type,label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:s,value:o||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...l,...t.otherProps})}}$v.defaultProps={otherProps:void 0};const cs=Jt($v),Tk=Jt(e=>{const{form:t,value:r,localization:{getLocalizedNumber:o},onChangeValidate:s}=e;let a=r||r===0?r:"";t.useLocalizer&&(a=o(a));const l=i=>{const c=t.schema?t.schema.type:t.type;let u=null;if(c==="integer")u=parseInt(i.target.value,10);else if(c==="number"){const d=i.target.value.split(".");d.length<2?u=parseInt(i.target.value,10):d.length>1&&(d[1].length>0?u=parseFloat(i.target.value):u=`${parseInt(d[0],10)}.`)}s(u)};return R.jsx(cs,{...e,form:{...t,type:"string"},value:a,otherProps:{onChange:l}})}),Ok=Jt(e=>{const{form:t}=e;return R.jsx(cs,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})}),Pk=Jt(e=>{const{model:t,form:r,value:o,error:s,setDefault:a,onChangeValidate:l}=e,{key:i,title:c}=r;a(i,t,r,o);const[u,d]=Be.useState("write"),[h,m]=Be.useState(o);return Be.useEffect(()=>{l({target:{value:h}})},[h]),R.jsxs(Be.Fragment,{children:[R.jsx(vn,{required:r.required,children:c}),R.jsx($x,{value:o,height:r.height,onChange:g=>m(g)}),s?R.jsx(io,{error:!0,children:s}):null]})}),_v={text:"name",value:"value"};class Ek extends Be.Component{constructor(){super(...arguments);zt(this,"handleUpdate",(r,o)=>{const{key:s}=this.props.form,{type:a}=this.props.form.schema;return this.props.onChange(s,r[_v.value],a,this.props.form)});zt(this,"handleInit",r=>{if(!this.props.form.schema||!this.props.form.schema.enum)return r.toString();const o=this.props.form.schema.enumNames||this.props.form.schema.enum,s=this.props.form.schema.enum;return o[s.indexOf(r)]||r.toString()})}render(){const r=(s=>{switch(s){case"fuzzy":return AutoComplete.fuzzyFilter;default:return AutoComplete.caseInsensitiveFilter}})(this.props.form.filter),o=this.props.value&&this.handleInit(this.props.value);return R.jsx("div",{className:this.props.form.htmlClass,children:R.jsx(AutoComplete,{type:this.props.form.type,floatingLabelText:this.props.form.title,hintText:this.props.form.placeholder,errorText:this.props.error,onNewRequest:this.handleUpdate,disabled:this.props.form.readonly,style:this.props.form.style||{width:"100%"},openOnFocus:!0,searchText:o,dataSource:this.props.form.titleMap||["Loading..."],filter:r,maxSearchResults:this.props.form.maxSearchResults||5,dataSourceConfig:_v})})}}const kk=Jt(Ek);class Ri{constructor(){zt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ri}static use(){const t=Ob(Ri.create).current,[r,o]=E.useState(!1);return t.shouldMount=r,t.setShouldMount=o,E.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=$k(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function Rk(){return Ri.use()}function $k(){let e,t;const r=new Promise((o,s)=>{e=o,t=s});return r.resolve=e,r.reject=t,r}function Iv(e){const{className:t,classes:r,pulsate:o=!1,rippleX:s,rippleY:a,rippleSize:l,in:i,onExited:c,timeout:u}=e,[d,h]=E.useState(!1),m=Te(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),g={width:l,height:l,top:-(l/2)+a,left:-(l/2)+s},w=Te(r.child,d&&r.childLeaving,o&&r.childPulsate);return!i&&!d&&h(!0),E.useEffect(()=>{if(!i&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,i,u]),R.jsx("span",{className:m,style:g,children:R.jsx("span",{className:w})})}process.env.NODE_ENV!=="production"&&(Iv.propTypes={classes:n.object.isRequired,className:n.string,in:n.bool,onExited:n.func,pulsate:n.bool,rippleSize:n.number,rippleX:n.number,rippleY:n.number,timeout:n.number.isRequired});const Pr=ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qd=550,_k=80,Ik=Zr.keyframes`
59
+ `))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Ir,o.func]),disableScrollLock:o.bool,elevation:hu,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:lu}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function lO(e){return Fe("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const cO={vertical:"top",horizontal:"right"},uO={vertical:"top",horizontal:"left"},dO=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},lO,t)},fO=me(jg,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pO=me(Ig,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hO=me(fg,{name:"MuiMenu",slot:"List"})({outline:0}),Ng=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:m={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:b="selectedMenu",slots:v={},slotProps:p={},..._}=n,S=Oy(),w={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:g,PaperProps:m,transitionDuration:y,TransitionProps:f,variant:b},E=dO(w),x=i&&!s&&d,P=A.useRef(null),k=(ue,z)=>{P.current&&P.current.adjustStyleForScrollbar(ue,{direction:S?"rtl":"ltr"}),g&&g(ue,z)},j=ue=>{ue.key==="Tab"&&(ue.preventDefault(),u&&u(ue,"tabKeyDown"))};let R=-1;A.Children.map(a,(ue,z)=>{A.isValidElement(ue)&&(process.env.NODE_ENV!=="production"&&du.isFragment(ue)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
60
+ `)),ue.props.disabled||(b==="selectedMenu"&&ue.props.selected||R===-1)&&(R=z))});const O={slots:v,slotProps:{list:c,transition:f,paper:m,...p}},D=sg({elementType:v.root,externalSlotProps:p.root,ownerState:w,className:[E.root,l]}),[N,U]=dt("paper",{className:E.paper,elementType:pO,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:w}),[W,le]=dt("list",{className:xe(E.list,c.className),elementType:hO,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ue=>({...ue,onKeyDown:z=>{j(z),ue.onKeyDown?.(z)}}),ownerState:w}),ce=typeof O.slotProps.transition=="function"?O.slotProps.transition(w):O.slotProps.transition;return F.jsx(fO,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?cO:uO,slots:{root:v.root,paper:N,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:D,paper:U,backdrop:typeof p.backdrop=="function"?p.backdrop(w):p.backdrop,transition:{...ce,onEntering:(...ue)=>{k(...ue),ce?.onEntering?.(...ue)}}},open:d,ref:r,transitionDuration:y,ownerState:w,..._,classes:h,children:F.jsx(W,{actions:P,autoFocus:i&&(R===-1||s),autoFocusItem:x,variant:b,...le,children:a})})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={anchorEl:o.oneOfType([Ir,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function mO(e){return Fe("MuiNativeSelect",e)}const Ou=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yO=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:l}=e,s={select:["select",r,n&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${pe(r)}`,a&&"iconOpen",n&&"disabled"]};return Be(s,mO,t)},Ag=me("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ou.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),gO=me(Ag,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:It,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Ou.multiple}`]:t.multiple}]}})({}),Mg=me("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ou.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),vO=me(Mg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pe(r.variant)}`],r.open&&t.iconOpen]}})({}),Dg=A.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:l,inputRef:s,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:a},m=yO(d);return F.jsxs(A.Fragment,{children:[F.jsx(gO,{ownerState:d,className:xe(m.select,n),disabled:i,ref:s||r,...u}),t.multiple?null:F.jsx(vO,{as:l,ownerState:d,className:m.icon})]})});process.env.NODE_ENV!=="production"&&(Dg.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:zt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function qg(e){return Fe("MuiSelect",e)}const uo=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Lg;const bO=me(Ag,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${uo.select}`]:t.select},{[`&.${uo.select}`]:t[r.variant]},{[`&.${uo.error}`]:t.error},{[`&.${uo.multiple}`]:t.multiple}]}})({[`&.${uo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_O=me(Mg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pe(r.variant)}`],r.open&&t.iconOpen]}})({}),wO=me("input",{shouldForwardProp:e=>zy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function SO(e){return e==null||typeof e=="string"&&!e.trim()}const EO=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:l}=e,s={select:["select",r,n&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${pe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Be(s,qg,t)},zg=A.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:m,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:f,labelId:b,MenuProps:v={},multiple:p,name:_,onBlur:S,onChange:w,onClose:E,onFocus:x,onKeyDown:P,onMouseDown:k,onOpen:j,open:R,readOnly:O,renderValue:D,required:N,SelectDisplayProps:U={},tabIndex:W,type:le,value:ce,variant:ue="standard",...z}=t,[C,V]=on({controlled:ce,default:d,name:"Select"}),[M,T]=on({controlled:R,default:u,name:"Select"}),$=A.useRef(null),q=A.useRef(null),[K,re]=A.useState(null),{current:ie}=A.useRef(R!=null),[te,L]=A.useState(),I=St(r,f),G=A.useCallback(we=>{q.current=we,we&&re(we)},[]),X=K?.parentNode;A.useImperativeHandle(I,()=>({focus:()=>{q.current.focus()},node:$.current,value:C}),[C]),A.useEffect(()=>{u&&M&&K&&!ie&&(L(l?null:X.clientWidth),q.current.focus())},[K,l]),A.useEffect(()=>{a&&q.current.focus()},[a]),A.useEffect(()=>{if(!b)return;const we=Kt(q.current).getElementById(b);if(we){const Me=()=>{getSelection().isCollapsed&&q.current.focus()};return we.addEventListener("click",Me),()=>{we.removeEventListener("click",Me)}}},[b]);const oe=(we,Me)=>{we?j&&j(Me):E&&E(Me),ie||(L(l?null:X.clientWidth),T(we))},ye=we=>{k?.(we),we.button===0&&(we.preventDefault(),q.current.focus(),oe(!0,we))},ve=we=>{oe(!1,we)},fe=A.Children.toArray(s),Te=we=>{const Me=fe.find(pt=>pt.props.value===we.target.value);Me!==void 0&&(V(Me.props.value),w&&w(we,Me))},be=we=>Me=>{let pt;if(Me.currentTarget.hasAttribute("tabindex")){if(p){pt=Array.isArray(C)?C.slice():[];const xt=C.indexOf(we.props.value);xt===-1?pt.push(we.props.value):pt.splice(xt,1)}else pt=we.props.value;if(we.props.onClick&&we.props.onClick(Me),C!==pt&&(V(pt),w)){const xt=Me.nativeEvent||Me,Lt=new xt.constructor(xt.type,xt);Object.defineProperty(Lt,"target",{writable:!0,value:{value:pt,name:_}}),w(Lt,we)}p||oe(!1,Me)}},Ee=we=>{O||([" ","ArrowUp","ArrowDown","Enter"].includes(we.key)&&(we.preventDefault(),oe(!0,we)),P?.(we))},he=K!==null&&M,$e=we=>{!he&&S&&(Object.defineProperty(we,"target",{writable:!0,value:{value:C,name:_}}),S(we))};delete z["aria-invalid"];let Ie,ot;const Qe=[];let _t=!1,et=!1;(ea({value:C})||h)&&(D?Ie=D(C):_t=!0);const Tt=fe.map(we=>{if(!A.isValidElement(we))return null;process.env.NODE_ENV!=="production"&&du.isFragment(we)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
61
+ `));let Me;if(p){if(!Array.isArray(C))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":hr(2));Me=C.some(pt=>Fg(pt,we.props.value)),Me&&_t&&Qe.push(we.props.children)}else Me=Fg(C,we.props.value),Me&&_t&&(ot=we.props.children);return Me&&(et=!0),A.cloneElement(we,{"aria-selected":Me?"true":"false",onClick:be(we),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),we.props.onKeyUp&&we.props.onKeyUp(pt)},role:"option",selected:Me,value:void 0,"data-value":we.props.value})});process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(!et&&!p&&C!==""){const we=fe.map(Me=>Me.props.value);console.warn([`MUI: You have provided an out-of-range value \`${C}\` for the select ${_?`(name="${_}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${we.filter(Me=>Me!=null).map(Me=>`\`${Me}\``).join(", ")||'""'}.`].join(`
62
+ `))}},[et,fe,p,_,C]),_t&&(p?Qe.length===0?Ie=null:Ie=Qe.reduce((we,Me,pt)=>(we.push(Me),pt<Qe.length-1&&we.push(", "),we),[]):Ie=ot);let Je=te;!l&&ie&&K&&(Je=X.clientWidth);let Oe;typeof W<"u"?Oe=W:Oe=m?null:0;const He=U.id||(_?`mui-component-select-${_}`:void 0),ft={...t,variant:ue,value:C,open:he,error:y},ct=EO(ft),Ar={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(ft):v.slotProps?.paper},Et={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(ft):v.slotProps?.list},Ot=bn();return F.jsxs(A.Fragment,{children:[F.jsx(bO,{as:"div",ref:G,tabIndex:Oe,role:"combobox","aria-controls":he?Ot:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":he?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,He].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Ee,onMouseDown:m||O?null:ye,onBlur:$e,onFocus:x,...U,ownerState:ft,className:xe(U.className,ct.select,c),id:He,children:SO(Ie)?Lg||(Lg=F.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ie}),F.jsx(wO,{"aria-invalid":y,value:Array.isArray(C)?C.join(","):C,name:_,ref:$,"aria-hidden":!0,onChange:Te,tabIndex:-1,disabled:m,className:ct.nativeInput,autoFocus:a,required:N,...z,ownerState:ft}),F.jsx(_O,{as:g,className:ct.icon,ownerState:ft}),F.jsx(Ng,{id:`menu-${_||""}`,anchorEl:X,open:he,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":p?"true":void 0,disableListWrap:!0,id:Ot,...Et},paper:{...Ar,style:{minWidth:Je,...Ar!=null?Ar.style:null}}},children:Tt})]})});process.env.NODE_ENV!=="production"&&(zg.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:zt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Vg=Ct(F.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),OO=e=>{const{classes:t}=e,n=Be({root:["root"]},qg,t);return{...t,...n}},xu={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>It(e)&&e!=="variant"},xO=me(aa,xu)(""),CO=me(ca,xu)(""),TO=me(la,xu)(""),fo=A.forwardRef(function(t,r){const n=We({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Vg,id:m,input:h,inputProps:y,label:g,labelId:f,MenuProps:b,multiple:v=!1,native:p=!1,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:x,variant:P="outlined",...k}=n,j=p?Dg:zg,R=vr(),O=Ur({props:n,muiFormControl:R,states:["variant","error"]}),D=O.variant||P,N={...n,variant:D,classes:l},U=OO(N),{root:W,...le}=U,ce=h||{standard:F.jsx(xO,{ownerState:N}),outlined:F.jsx(CO,{label:g,ownerState:N}),filled:F.jsx(TO,{ownerState:N})}[D],ue=St(r,to(ce));return F.jsx(A.Fragment,{children:A.cloneElement(ce,{inputComponent:j,inputProps:{children:a,error:O.error,IconComponent:d,variant:D,type:void 0,multiple:v,...p?{id:m}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:b,onClose:_,onOpen:S,open:w,renderValue:E,SelectDisplayProps:{id:m,...x}},...y,classes:y?kt(le,y.classes):le,...h?h.props.inputProps:{}},...(v&&p||u)&&D==="outlined"?{notched:!0}:{},ref:ue,className:xe(ce.props.className,s,U.root),...!h&&{variant:D},...k})})});process.env.NODE_ENV!=="production"&&(fo.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),fo.muiName="Select";function PO(e){return Fe("MuiTextField",e)}Le("MuiTextField",["root"]);const $O={standard:aa,filled:la,outlined:ca},RO=e=>{const{classes:t}=e;return Be({root:["root"]},PO,t)},kO=me(Tn,{name:"MuiTextField",slot:"Root"})({}),va=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:m=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:b,inputProps:v,InputProps:p,inputRef:_,label:S,maxRows:w,minRows:E,multiline:x=!1,name:P,onBlur:k,onChange:j,onFocus:R,placeholder:O,required:D=!1,rows:N,select:U=!1,SelectProps:W,slots:le={},slotProps:ce={},type:ue,value:z,variant:C="outlined",...V}=n,M={...n,autoFocus:a,color:c,disabled:d,error:m,fullWidth:y,multiline:x,required:D,select:U,variant:C},T=RO(M);process.env.NODE_ENV!=="production"&&U&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const $=bn(f),q=g&&$?`${$}-helper-text`:void 0,K=S&&$?`${$}-label`:void 0,re=$O[C],ie={slots:le,slotProps:{input:p,inputLabel:b,htmlInput:v,formHelperText:h,select:W,...ce}},te={},L=ie.slotProps.inputLabel;C==="outlined"&&(L&&typeof L.shrink<"u"&&(te.notched=L.shrink),te.label=S),U&&((!W||!W.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[I,G]=dt("root",{elementType:kO,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...V},ownerState:M,className:xe(T.root,s),ref:r,additionalProps:{disabled:d,error:m,fullWidth:y,required:D,color:c,variant:C}}),[X,oe]=dt("input",{elementType:re,externalForwardedProps:ie,additionalProps:te,ownerState:M}),[ye,ve]=dt("inputLabel",{elementType:ua,externalForwardedProps:ie,ownerState:M}),[fe,Te]=dt("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:M}),[be,Ee]=dt("formHelperText",{elementType:eo,externalForwardedProps:ie,ownerState:M}),[he,$e]=dt("select",{elementType:fo,externalForwardedProps:ie,ownerState:M}),Ie=F.jsx(X,{"aria-describedby":q,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:y,multiline:x,name:P,rows:N,maxRows:w,minRows:E,type:ue,value:z,id:$,inputRef:_,onBlur:k,onChange:j,onFocus:R,placeholder:O,inputProps:Te,slots:{input:le.htmlInput?fe:void 0},...oe});return F.jsxs(I,{...G,children:[S!=null&&S!==""&&F.jsx(ye,{htmlFor:$,id:K,...ve,children:S}),U?F.jsx(he,{"aria-describedby":q,id:$,labelId:K,value:z,input:Ie,...$e,children:l}):Ie,g&&F.jsx(be,{id:q,...Ee,children:g})]})});process.env.NODE_ENV!=="production"&&(va.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:zt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const IO=e=>{let t;return e.form&&e.form.key&&(t=lr.selectOrSet(e.form.key,e.model)),t==null&&(e.form.default?t=e.form.default:e.form.schema&&e.form.schema.default&&(t=e.form.schema.default)),t},Bg=e=>{const{errorText:t,form:r,showErrors:n}=e,i=IO(e);if(!n)return{value:i,valid:!0,error:""};const a=lr.validate(r,i||void 0),l=a.valid?void 0:a.error;return{value:i,valid:a.valid,error:(a.valid?null:l)||t}};function qt(e){const{form:t,onChange:r}=e,[n,i]=ke.useState(()=>Bg(e));return ke.useEffect(()=>{i(Bg(e))},[e.model,e.form,e.showErrors,e.errorText]),{...n,onChangeValidate:(l,s)=>{let c=null;const u=t.schema?t.schema.type:t.type;if(s!==void 0)c=s;else switch(u){case"integer":case"number":{c=l;break}case"boolean":c=l.target.checked;break;case"array":c=l;break;case"object":if(t.type==="date"){l.target.value.length>0?c=new Date(l.target.value):c="";break}({value:c}=l.target);break;case"string":t.type==="timestamp"?c=l:{value:c}=l.target;break;default:console.log("type = ",u),l&&l.target?{value:c}=l.target:c=l}const d=lr.validate(t,c);i({value:c,valid:d.valid,error:d.valid?null:d.error}),r(t.key,c)}}}function cn(e){const{form:t,setDefault:r,model:n,localization:{getLocalizedString:i},otherProps:a}=e,l=qt(e),s=e.value!==void 0?e.value:l.value,c=e.valid!==void 0?e.valid:l.valid,u=e.error!==void 0?e.error:l.error,d=e.onChangeValidate!==void 0?e.onChangeValidate:l.onChangeValidate,{key:m}=t;return r(m,n,t,l.value),F.jsx(va,{type:t.type,label:t.title&&i(t.title),placeholder:t.placeholder&&i(t.placeholder),helperText:(u||t.description)&&i(u||t.description),error:!c,onChange:d,value:s||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...a,...t.otherProps})}cn.defaultProps={otherProps:void 0};const jO=e=>{const{form:t,localization:{getLocalizedNumber:r}}=e,{value:n,valid:i,error:a,onChangeValidate:l}=qt(e);let s=n||n===0?n:"";t.useLocalizer&&(s=r(s));const c=u=>{const d=t.schema?t.schema.type:t.type;let m=null;if(d==="integer")m=parseInt(u.target.value,10);else if(d==="number"){const h=u.target.value.split(".");h.length<2?m=parseInt(u.target.value,10):h.length>1&&(h[1].length>0?m=parseFloat(u.target.value):m=`${parseInt(h[0],10)}.`)}l(m)};return F.jsx(cn,{...e,form:{...t,type:"string"},value:s,valid:i,error:a,onChangeValidate:c})},NO=e=>{const{form:t}=e;return F.jsx(cn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})},AO=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d}=r;return ke.useEffect(()=>{n(u,t,r,a)},[]),F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(Jv,{value:a||"",height:r.height,onChange:m=>c(null,m)}),l?null:F.jsx(eo,{error:!0,children:s})]})};function MO(e){const t=A.useRef({});return A.useEffect(()=>{t.current=e}),t.current}function Ug({array1:e,array2:t,parser:r=n=>n}){return e&&t&&e.length===t.length&&e.every((n,i)=>r(n)===r(t[i]))}function Wg(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function DO(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:a,trim:l=!1}=e;return(s,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;r&&(d=d.toLowerCase()),t&&(d=Wg(d));const m=d?s.filter(h=>{let y=(a||u)(h);return r&&(y=y.toLowerCase()),t&&(y=Wg(y)),i==="start"?y.startsWith(d):y.includes(d)}):s;return typeof n=="number"?m.slice(0,n):m}}const qO=DO(),Hg=5,LO=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),FO=[];function Kg(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function zO(e){const{unstable_isActiveElementInListbox:t=LO,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?FO:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:g=!1,disableListWrap:f=!1,filterOptions:b=qO,filterSelectedOptions:v=!1,freeSolo:p=!1,getOptionDisabled:_,getOptionKey:S,getOptionLabel:w=ae=>ae.label??ae,groupBy:E,handleHomeEndKeys:x=!e.freeSolo,id:P,includeInputInList:k=!1,inputValue:j,isOptionEqualToValue:R=(ae,ee)=>ae===ee,multiple:O=!1,onChange:D,onClose:N,onHighlightChange:U,onInputChange:W,onOpen:le,open:ce,openOnFocus:ue=!1,options:z,readOnly:C=!1,renderValue:V,selectOnFocus:M=!e.freeSolo,value:T}=e,$=bn(P);let q=w;q=ae=>{const ee=w(ae);if(typeof ee!="string"){if(process.env.NODE_ENV!=="production"){const ge=ee===void 0?"undefined":`${typeof ee} (${ee})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${ge} instead of a string for ${JSON.stringify(ae)}.`)}return String(ee)}return ee};const K=A.useRef(!1),re=A.useRef(!0),ie=A.useRef(null),te=A.useRef(null),[L,I]=A.useState(null),[G,X]=A.useState(-1),oe=i?0:-1,ye=A.useRef(oe),ve=A.useRef(Kg(d??T,O,q)).current,[fe,Te]=on({controlled:T,default:d,name:u}),[be,Ee]=on({controlled:j,default:ve,name:u,state:"inputValue"}),[he,$e]=A.useState(!1),Ie=A.useCallback((ae,ee,ge)=>{if(!(O?fe.length<ee.length:ee!==null)&&!s)return;const Pe=Kg(ee,O,q,V);be!==Pe&&(Ee(Pe),W&&W(ae,Pe,ge))},[q,be,O,W,Ee,s,fe,V]),[ot,Qe]=on({controlled:ce,default:!1,name:u,state:"open"}),[_t,et]=A.useState(!0),Tt=!O&&fe!=null&&be===q(fe),Je=ot&&!C,Oe=Je?b(z.filter(ae=>!(v&&(O?fe:[fe]).some(ee=>ee!==null&&R(ae,ee)))),{inputValue:Tt&&_t?"":be,getOptionLabel:q}):[],He=MO({filteredOptions:Oe,value:fe,inputValue:be});A.useEffect(()=>{const ae=fe!==He.value;he&&!ae||p&&!ae||Ie(null,fe,"reset")},[fe,Ie,he,He.value,p]);const ft=ot&&Oe.length>0&&!C,ct=ur(ae=>{if(ae===-1)ie.current.focus();else{const ee=V?"data-item-index":"data-tag-index";L.querySelector(`[${ee}="${ae}"]`).focus()}});A.useEffect(()=>{O&&G>fe.length-1&&(X(-1),ct(-1))},[fe,O,G,ct]);function Ar(ae,ee){if(!te.current||ae<0||ae>=Oe.length)return-1;let ge=ae;for(;;){const Ce=te.current.querySelector(`[data-option-index="${ge}"]`),Pe=g?!1:!Ce||Ce.disabled||Ce.getAttribute("aria-disabled")==="true";if(Ce&&Ce.hasAttribute("tabindex")&&!Pe)return ge;if(ee==="next"?ge=(ge+1)%Oe.length:ge=(ge-1+Oe.length)%Oe.length,ge===ae)return-1}}const Et=ur(({event:ae,index:ee,reason:ge})=>{if(ye.current=ee,ee===-1?ie.current.removeAttribute("aria-activedescendant"):ie.current.setAttribute("aria-activedescendant",`${$}-option-${ee}`),U&&["mouse","keyboard","touch"].includes(ge)&&U(ae,ee===-1?null:Oe[ee],ge),!te.current)return;const Ce=te.current.querySelector(`[role="option"].${r}-focused`);Ce&&(Ce.classList.remove(`${r}-focused`),Ce.classList.remove(`${r}-focusVisible`));let Pe=te.current;if(te.current.getAttribute("role")!=="listbox"&&(Pe=te.current.parentElement.querySelector('[role="listbox"]')),!Pe)return;if(ee===-1){Pe.scrollTop=0;return}const ht=te.current.querySelector(`[data-option-index="${ee}"]`);if(ht&&(ht.classList.add(`${r}-focused`),ge==="keyboard"&&ht.classList.add(`${r}-focusVisible`),Pe.scrollHeight>Pe.clientHeight&&ge!=="mouse"&&ge!=="touch")){const Ue=ht,Nt=Pe.clientHeight+Pe.scrollTop,At=Ue.offsetTop+Ue.offsetHeight;At>Nt?Pe.scrollTop=At-Pe.clientHeight:Ue.offsetTop-Ue.offsetHeight*(E?1.3:0)<Pe.scrollTop&&(Pe.scrollTop=Ue.offsetTop-Ue.offsetHeight*(E?1.3:0))}}),Ot=ur(({event:ae,diff:ee,direction:ge="next",reason:Ce})=>{if(!Je)return;const ht=Ar((()=>{const Ue=Oe.length-1;if(ee==="reset")return oe;if(ee==="start")return 0;if(ee==="end")return Ue;const Nt=ye.current+ee;return Nt<0?Nt===-1&&k?-1:f&&ye.current!==-1||Math.abs(ee)>1?0:Ue:Nt>Ue?Nt===Ue+1&&k?-1:f||Math.abs(ee)>1?Ue:0:Nt})(),ge);if(Et({index:ht,reason:Ce,event:ae}),n&&ee!=="reset")if(ht===-1)ie.current.value=be;else{const Ue=q(Oe[ht]);ie.current.value=Ue,Ue.toLowerCase().indexOf(be.toLowerCase())===0&&be.length>0&&ie.current.setSelectionRange(be.length,Ue.length)}}),we=!Ug({array1:He.filteredOptions,array2:Oe,parser:q}),Me=()=>{const ae=(ee,ge)=>{const Ce=ee?q(ee):"",Pe=ge?q(ge):"";return Ce===Pe};if(ye.current!==-1&&!Ug({array1:He.filteredOptions,array2:Oe,parser:q})&&He.inputValue===be&&(O?fe.length===He.value.length&&He.value.every((ee,ge)=>q(fe[ge])===q(ee)):ae(He.value,fe))){const ee=He.filteredOptions[ye.current];if(ee)return Oe.findIndex(ge=>q(ge)===q(ee))}return-1},pt=A.useCallback(()=>{if(!Je)return;const ae=Me();if(ae!==-1){ye.current=ae;return}const ee=O?fe[0]:fe;if(Oe.length===0||ee==null){Ot({diff:"reset"});return}if(te.current){if(ee!=null){const ge=Oe[ye.current];if(O&&ge&&fe.findIndex(Pe=>R(ge,Pe))!==-1)return;const Ce=Oe.findIndex(Pe=>R(Pe,ee));Ce===-1?Ot({diff:"reset"}):Et({index:Ce});return}if(ye.current>=Oe.length-1){Et({index:Oe.length-1});return}Et({index:ye.current})}},[Oe.length,O?!1:fe,Ot,Et,Je,be,O]),xt=ur(ae=>{uu(te,ae),ae&&pt()});process.env.NODE_ENV!=="production"&&A.useEffect(()=>{(!ie.current||ie.current.nodeName!=="INPUT")&&(ie.current&&ie.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
63
+ `)):console.error([`MUI: Unable to find the input element. It was resolved to ${ie.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
64
+ `)))},[u]),A.useEffect(()=>{(we||Je)&&pt()},[pt,we,Je]);const Lt=ae=>{ot||(Qe(!0),et(!0),le&&le(ae))},Mr=(ae,ee)=>{ot&&(Qe(!1),N&&N(ae,ee))},Y=(ae,ee,ge,Ce)=>{if(O){if(fe.length===ee.length&&fe.every((Pe,ht)=>Pe===ee[ht]))return}else if(fe===ee)return;D&&D(ae,ee,ge,Ce),Te(ee)},B=A.useRef(!1),Q=(ae,ee,ge="selectOption",Ce="options")=>{let Pe=ge,ht=ee;if(O){if(ht=Array.isArray(fe)?fe.slice():[],process.env.NODE_ENV!=="production"){const Nt=ht.filter(At=>R(ee,At));Nt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Nt.length} matches.`].join(`
65
+ `))}const Ue=ht.findIndex(Nt=>R(ee,Nt));Ue===-1?ht.push(ee):Ce!=="freeSolo"&&(ht.splice(Ue,1),Pe="removeOption")}Ie(ae,ht,Pe),Y(ae,ht,Pe,{option:ee}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Mr(ae,Pe),(l===!0||l==="touch"&&B.current||l==="mouse"&&!B.current)&&ie.current.blur()};function J(ae,ee){if(ae===-1)return-1;let ge=ae;for(;;){if(ee==="next"&&ge===fe.length||ee==="previous"&&ge===-1)return-1;const Ce=V?"data-item-index":"data-tag-index",Pe=L.querySelector(`[${Ce}="${ge}"]`);if(!Pe||!Pe.hasAttribute("tabindex")||Pe.disabled||Pe.getAttribute("aria-disabled")==="true")ge+=ee==="next"?1:-1;else return ge}}const Se=(ae,ee)=>{if(!O)return;be===""&&Mr(ae,"toggleInput");let ge=G;G===-1?be===""&&ee==="previous"&&(ge=fe.length-1):(ge+=ee==="next"?1:-1,ge<0&&(ge=0),ge===fe.length&&(ge=-1)),ge=J(ge,ee),X(ge),ct(ge)},Re=ae=>{K.current=!0,Ee(""),W&&W(ae,"","clear"),Y(ae,O?[]:null,"clear")},je=ae=>ee=>{if(ae.onKeyDown&&ae.onKeyDown(ee),!ee.defaultMuiPrevented&&(G!==-1&&!["ArrowLeft","ArrowRight"].includes(ee.key)&&(X(-1),ct(-1)),ee.which!==229))switch(ee.key){case"Home":Je&&x&&(ee.preventDefault(),Ot({diff:"start",direction:"next",reason:"keyboard",event:ee}));break;case"End":Je&&x&&(ee.preventDefault(),Ot({diff:"end",direction:"previous",reason:"keyboard",event:ee}));break;case"PageUp":ee.preventDefault(),Ot({diff:-Hg,direction:"previous",reason:"keyboard",event:ee}),Lt(ee);break;case"PageDown":ee.preventDefault(),Ot({diff:Hg,direction:"next",reason:"keyboard",event:ee}),Lt(ee);break;case"ArrowDown":ee.preventDefault(),Ot({diff:1,direction:"next",reason:"keyboard",event:ee}),Lt(ee);break;case"ArrowUp":ee.preventDefault(),Ot({diff:-1,direction:"previous",reason:"keyboard",event:ee}),Lt(ee);break;case"ArrowLeft":!O&&V&&fe!=null?(X(0),ct(0)):Se(ee,"previous");break;case"ArrowRight":!O&&V?(X(-1),ct(-1)):Se(ee,"next");break;case"Enter":if(ye.current!==-1&&Je){const ge=Oe[ye.current],Ce=_?_(ge):!1;if(ee.preventDefault(),Ce)return;Q(ee,ge,"selectOption"),n&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else p&&be!==""&&Tt===!1&&(O&&ee.preventDefault(),Q(ee,be,"createOption","freeSolo"));break;case"Escape":Je?(ee.preventDefault(),ee.stopPropagation(),Mr(ee,"escape")):c&&(be!==""||O&&fe.length>0||V)&&(ee.preventDefault(),ee.stopPropagation(),Re(ee));break;case"Backspace":if(O&&!C&&be===""&&fe.length>0){const ge=G===-1?fe.length-1:G,Ce=fe.slice();Ce.splice(ge,1),Y(ee,Ce,"removeOption",{option:fe[ge]})}!O&&V&&!C&&(Te(null),X(-1),ct(-1));break;case"Delete":if(O&&!C&&be===""&&fe.length>0&&G!==-1){const ge=G,Ce=fe.slice();Ce.splice(ge,1),Y(ee,Ce,"removeOption",{option:fe[ge]})}!O&&V&&!C&&(Te(null),X(-1),ct(-1));break}},se=ae=>{$e(!0),G!==-1&&(X(-1),ct(-1)),ue&&!K.current&&Lt(ae)},H=ae=>{if(t(te)){ie.current.focus();return}$e(!1),re.current=!0,K.current=!1,a&&ye.current!==-1&&Je?Q(ae,Oe[ye.current],"blur"):a&&p&&be!==""?Q(ae,be,"blur","freeSolo"):s&&Ie(ae,fe,"blur"),Mr(ae,"blur")},Z=ae=>{const ee=ae.target.value;be!==ee&&(Ee(ee),et(!1),W&&W(ae,ee,"input")),ee===""?!m&&!O&&Y(ae,null,"clear"):Lt(ae)},de=ae=>{const ee=Number(ae.currentTarget.getAttribute("data-option-index"));ye.current!==ee&&Et({event:ae,index:ee,reason:"mouse"})},_e=ae=>{Et({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),B.current=!0},Ne=ae=>{const ee=Number(ae.currentTarget.getAttribute("data-option-index"));Q(ae,Oe[ee],"selectOption"),B.current=!1},yt=ae=>ee=>{const ge=fe.slice();ge.splice(ae,1),Y(ee,ge,"removeOption",{option:fe[ae]})},gt=ae=>{Y(ae,null,"removeOption",{option:fe})},Ke=ae=>{ot?Mr(ae,"toggleInput"):Lt(ae)},ut=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==$&&ae.preventDefault()},jt=ae=>{ae.currentTarget.contains(ae.target)&&(ie.current.focus(),M&&re.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),re.current=!1)},hn=ae=>{!y&&(be===""||!ot)&&Ke(ae)};let ir=p&&be.length>0;ir=ir||(O?fe.length>0:fe!==null);let fr=Oe;if(E){const ae=new Map;let ee=!1;fr=Oe.reduce((ge,Ce,Pe)=>{const ht=E(Ce);return ge.length>0&&ge[ge.length-1].group===ht?ge[ge.length-1].options.push(Ce):(process.env.NODE_ENV!=="production"&&(ae.get(ht)&&!ee&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),ee=!0),ae.set(ht,!0)),ge.push({key:Pe,index:Pe,group:ht,options:[Ce]})),ge},[])}return y&&he&&H(),{getRootProps:(ae={})=>({...ae,onKeyDown:je(ae),onMouseDown:ut,onClick:jt}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:be,onBlur:H,onFocus:se,onChange:Z,onMouseDown:hn,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ft?`${$}-listbox`:void 0,"aria-expanded":ft,autoComplete:"off",ref:ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:ae=0}={})=>({...O&&{key:ae},...V?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!C&&{onDelete:O?yt(ae):gt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ke}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!C&&{onDelete:yt(ae)}}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:xt,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ee})=>{const ge=(O?fe:[fe]).some(Pe=>Pe!=null&&R(ee,Pe)),Ce=_?_(ee):!1;return{key:S?.(ee)??q(ee),tabIndex:-1,role:"option",id:`${$}-option-${ae}`,onMouseMove:de,onClick:Ne,onTouchStart:_e,"data-option-index":ae,"aria-disabled":Ce,"aria-selected":ge}},id:$,inputValue:be,value:fe,dirty:ir,expanded:Je&&L,popupOpen:Je,focused:he||G!==-1,anchorEl:L,setAnchorEl:I,focusedItem:G,focusedTag:G,groupedOptions:fr}}var Vt="top",tr="bottom",rr="right",Bt="left",Cu="auto",po=[Vt,tr,rr,Bt],Rn="start",ho="end",VO="clippingParents",Gg="viewport",mo="popper",BO="reference",Yg=po.reduce(function(e,t){return e.concat([t+"-"+Rn,t+"-"+ho])},[]),Jg=[].concat(po,[Cu]).reduce(function(e,t){return e.concat([t,t+"-"+Rn,t+"-"+ho])},[]),UO="beforeRead",WO="read",HO="afterRead",KO="beforeMain",GO="main",YO="afterMain",JO="beforeWrite",XO="write",ZO="afterWrite",QO=[UO,WO,HO,KO,GO,YO,JO,XO,ZO];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function Jt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function un(e){var t=Jt(e).Element;return e instanceof t||e instanceof Element}function nr(e){var t=Jt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tu(e){if(typeof ShadowRoot>"u")return!1;var t=Jt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ex(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!nr(a)||!_r(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(l){var s=i[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function tx(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=l.reduce(function(c,u){return c[u]="",c},{});!nr(i)||!_r(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const rx={name:"applyStyles",enabled:!0,phase:"write",fn:ex,effect:tx,requires:["computeStyles"]};function wr(e){return e.split("-")[0]}var dn=Math.max,ba=Math.min,kn=Math.round;function Pu(){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 Xg(){return!/^((?!chrome|android).)*safari/i.test(Pu())}function In(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&nr(e)&&(i=e.offsetWidth>0&&kn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kn(n.height)/e.offsetHeight||1);var l=un(e)?Jt(e):window,s=l.visualViewport,c=!Xg()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,d=(n.top+(c&&s?s.offsetTop:0))/a,m=n.width/i,h=n.height/a;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function $u(e){var t=In(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Tu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jr(e){return Jt(e).getComputedStyle(e)}function nx(e){return["table","td","th"].indexOf(_r(e))>=0}function Kr(e){return((un(e)?e.ownerDocument:e.document)||window.document).documentElement}function _a(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(Tu(e)?e.host:null)||Kr(e)}function Qg(e){return!nr(e)||jr(e).position==="fixed"?null:e.offsetParent}function ox(e){var t=/firefox/i.test(Pu()),r=/Trident/i.test(Pu());if(r&&nr(e)){var n=jr(e);if(n.position==="fixed")return null}var i=_a(e);for(Tu(i)&&(i=i.host);nr(i)&&["html","body"].indexOf(_r(i))<0;){var a=jr(i);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 i;i=i.parentNode}return null}function yo(e){for(var t=Jt(e),r=Qg(e);r&&nx(r)&&jr(r).position==="static";)r=Qg(r);return r&&(_r(r)==="html"||_r(r)==="body"&&jr(r).position==="static")?t:r||ox(e)||t}function Ru(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function go(e,t,r){return dn(e,ba(t,r))}function ix(e,t,r){var n=go(e,t,r);return n>r?r:n}function ev(){return{top:0,right:0,bottom:0,left:0}}function tv(e){return Object.assign({},ev(),e)}function rv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ax=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,tv(typeof t!="number"?t:rv(t,po))};function sx(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=wr(r.placement),c=Ru(s),u=[Bt,rr].indexOf(s)>=0,d=u?"height":"width";if(!(!a||!l)){var m=ax(i.padding,r),h=$u(a),y=c==="y"?Vt:Bt,g=c==="y"?tr:rr,f=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],b=l[c]-r.rects.reference[c],v=yo(a),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,_=f/2-b/2,S=m[y],w=p-h[d]-m[g],E=p/2-h[d]/2+_,x=go(S,E,w),P=c;r.modifiersData[n]=(t={},t[P]=x,t.centerOffset=x-E,t)}}function lx(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Zg(t.elements.popper,i)&&(t.elements.arrow=i))}const cx={name:"arrow",enabled:!0,phase:"main",fn:sx,effect:lx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jn(e){return e.split("-")[1]}var ux={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dx(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:kn(r*i)/i||0,y:kn(n*i)/i||0}}function nv(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,l=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=l.x,y=h===void 0?0:h,g=l.y,f=g===void 0?0:g,b=typeof d=="function"?d({x:y,y:f}):{x:y,y:f};y=b.x,f=b.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),_=Bt,S=Vt,w=window;if(u){var E=yo(r),x="clientHeight",P="clientWidth";if(E===Jt(r)&&(E=Kr(r),jr(E).position!=="static"&&s==="absolute"&&(x="scrollHeight",P="scrollWidth")),E=E,i===Vt||(i===Bt||i===rr)&&a===ho){S=tr;var k=m&&E===w&&w.visualViewport?w.visualViewport.height:E[x];f-=k-n.height,f*=c?1:-1}if(i===Bt||(i===Vt||i===tr)&&a===ho){_=rr;var j=m&&E===w&&w.visualViewport?w.visualViewport.width:E[P];y-=j-n.width,y*=c?1:-1}}var R=Object.assign({position:s},u&&ux),O=d===!0?dx({x:y,y:f},Jt(r)):{x:y,y:f};if(y=O.x,f=O.y,c){var D;return Object.assign({},R,(D={},D[S]=p?"0":"",D[_]=v?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",D))}return Object.assign({},R,(t={},t[S]=p?f+"px":"",t[_]=v?y+"px":"",t.transform="",t))}function fx(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,u={placement:wr(t.placement),variation:jn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const px={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fx,data:{}};var wa={passive:!0};function hx(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,l=n.resize,s=l===void 0?!0:l,c=Jt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,wa)}),s&&c.addEventListener("resize",r.update,wa),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,wa)}),s&&c.removeEventListener("resize",r.update,wa)}}const mx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hx,data:{}};var yx={left:"right",right:"left",bottom:"top",top:"bottom"};function Sa(e){return e.replace(/left|right|bottom|top/g,function(t){return yx[t]})}var gx={start:"end",end:"start"};function ov(e){return e.replace(/start|end/g,function(t){return gx[t]})}function ku(e){var t=Jt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Iu(e){return In(Kr(e)).left+ku(e).scrollLeft}function vx(e,t){var r=Jt(e),n=Kr(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=Xg();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+Iu(e),y:c}}function bx(e){var t,r=Kr(e),n=ku(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=dn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=dn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Iu(e),c=-n.scrollTop;return jr(i||r).direction==="rtl"&&(s+=dn(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function ju(e){var t=jr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function iv(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:nr(e)&&ju(e)?e:iv(_a(e))}function vo(e,t){var r;t===void 0&&(t=[]);var n=iv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Jt(n),l=i?[a].concat(a.visualViewport||[],ju(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(vo(_a(l)))}function Nu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _x(e,t){var r=In(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function av(e,t,r){return t===Gg?Nu(vx(e,r)):un(t)?_x(t,r):Nu(bx(Kr(e)))}function wx(e){var t=vo(_a(e)),r=["absolute","fixed"].indexOf(jr(e).position)>=0,n=r&&nr(e)?yo(e):e;return un(n)?t.filter(function(i){return un(i)&&Zg(i,n)&&_r(i)!=="body"}):[]}function Sx(e,t,r,n){var i=t==="clippingParents"?wx(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var d=av(e,u,n);return c.top=dn(d.top,c.top),c.right=ba(d.right,c.right),c.bottom=ba(d.bottom,c.bottom),c.left=dn(d.left,c.left),c},av(e,l,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sv(e){var t=e.reference,r=e.element,n=e.placement,i=n?wr(n):null,a=n?jn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case Vt:c={x:l,y:t.y-r.height};break;case tr:c={x:l,y:t.y+t.height};break;case rr:c={x:t.x+t.width,y:s};break;case Bt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?Ru(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Rn:c[u]=c[u]-(t[d]/2-r[d]/2);break;case ho:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function bo(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?VO:s,u=r.rootBoundary,d=u===void 0?Gg:u,m=r.elementContext,h=m===void 0?mo:m,y=r.altBoundary,g=y===void 0?!1:y,f=r.padding,b=f===void 0?0:f,v=tv(typeof b!="number"?b:rv(b,po)),p=h===mo?BO:mo,_=e.rects.popper,S=e.elements[g?p:h],w=Sx(un(S)?S:S.contextElement||Kr(e.elements.popper),c,d,l),E=In(e.elements.reference),x=sv({reference:E,element:_,placement:i}),P=Nu(Object.assign({},_,x)),k=h===mo?P:E,j={top:w.top-k.top+v.top,bottom:k.bottom-w.bottom+v.bottom,left:w.left-k.left+v.left,right:k.right-w.right+v.right},R=e.modifiersData.offset;if(h===mo&&R){var O=R[i];Object.keys(j).forEach(function(D){var N=[rr,tr].indexOf(D)>=0?1:-1,U=[Vt,tr].indexOf(D)>=0?"y":"x";j[D]+=O[U]*N})}return j}function Ex(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,l=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?Jg:c,d=jn(n),m=d?s?Yg:Yg.filter(function(g){return jn(g)===d}):po,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var y=h.reduce(function(g,f){return g[f]=bo(e,{placement:f,boundary:i,rootBoundary:a,padding:l})[wr(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function Ox(e){if(wr(e)===Cu)return[];var t=Sa(e);return[ov(e),t,ov(t)]}function xx(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!0:l,c=r.fallbackPlacements,u=r.padding,d=r.boundary,m=r.rootBoundary,h=r.altBoundary,y=r.flipVariations,g=y===void 0?!0:y,f=r.allowedAutoPlacements,b=t.options.placement,v=wr(b),p=v===b,_=c||(p||!g?[Sa(b)]:Ox(b)),S=[b].concat(_).reduce(function(T,$){return T.concat(wr($)===Cu?Ex(t,{placement:$,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:f}):$)},[]),w=t.rects.reference,E=t.rects.popper,x=new Map,P=!0,k=S[0],j=0;j<S.length;j++){var R=S[j],O=wr(R),D=jn(R)===Rn,N=[Vt,tr].indexOf(O)>=0,U=N?"width":"height",W=bo(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),le=N?D?rr:Bt:D?tr:Vt;w[U]>E[U]&&(le=Sa(le));var ce=Sa(le),ue=[];if(a&&ue.push(W[O]<=0),s&&ue.push(W[le]<=0,W[ce]<=0),ue.every(function(T){return T})){k=R,P=!1;break}x.set(R,ue)}if(P)for(var z=g?3:1,C=function($){var q=S.find(function(K){var re=x.get(K);if(re)return re.slice(0,$).every(function(ie){return ie})});if(q)return k=q,"break"},V=z;V>0;V--){var M=C(V);if(M==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const Cx={name:"flip",enabled:!0,phase:"main",fn:xx,requiresIfExists:["offset"],data:{_skip:!1}};function lv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function cv(e){return[Vt,rr,tr,Bt].some(function(t){return e[t]>=0})}function Tx(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=bo(t,{elementContext:"reference"}),s=bo(t,{altBoundary:!0}),c=lv(l,n),u=lv(s,i,a),d=cv(c),m=cv(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const Px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tx};function $x(e,t,r){var n=wr(e),i=[Bt,Vt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],s=a[1];return l=l||0,s=(s||0)*i,[Bt,rr].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function Rx(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=Jg.reduce(function(d,m){return d[m]=$x(m,t.rects,a),d},{}),s=l[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=l}const kx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rx};function Ix(e){var t=e.state,r=e.name;t.modifiersData[r]=sv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jx={name:"popperOffsets",enabled:!0,phase:"read",fn:Ix,data:{}};function Nx(e){return e==="x"?"y":"x"}function Ax(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,l=r.altAxis,s=l===void 0?!1:l,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,m=r.padding,h=r.tether,y=h===void 0?!0:h,g=r.tetherOffset,f=g===void 0?0:g,b=bo(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),v=wr(t.placement),p=jn(t.placement),_=!p,S=Ru(v),w=Nx(S),E=t.modifiersData.popperOffsets,x=t.rects.reference,P=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,j=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(a){var D,N=S==="y"?Vt:Bt,U=S==="y"?tr:rr,W=S==="y"?"height":"width",le=E[S],ce=le+b[N],ue=le-b[U],z=y?-P[W]/2:0,C=p===Rn?x[W]:P[W],V=p===Rn?-P[W]:-x[W],M=t.elements.arrow,T=y&&M?$u(M):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ev(),q=$[N],K=$[U],re=go(0,x[W],T[W]),ie=_?x[W]/2-z-re-q-j.mainAxis:C-re-q-j.mainAxis,te=_?-x[W]/2+z+re+K+j.mainAxis:V+re+K+j.mainAxis,L=t.elements.arrow&&yo(t.elements.arrow),I=L?S==="y"?L.clientTop||0:L.clientLeft||0:0,G=(D=R?.[S])!=null?D:0,X=le+ie-G-I,oe=le+te-G,ye=go(y?ba(ce,X):ce,le,y?dn(ue,oe):ue);E[S]=ye,O[S]=ye-le}if(s){var ve,fe=S==="x"?Vt:Bt,Te=S==="x"?tr:rr,be=E[w],Ee=w==="y"?"height":"width",he=be+b[fe],$e=be-b[Te],Ie=[Vt,Bt].indexOf(v)!==-1,ot=(ve=R?.[w])!=null?ve:0,Qe=Ie?he:be-x[Ee]-P[Ee]-ot+j.altAxis,_t=Ie?be+x[Ee]+P[Ee]-ot-j.altAxis:$e,et=y&&Ie?ix(Qe,be,_t):go(y?Qe:he,be,y?_t:$e);E[w]=et,O[w]=et-be}t.modifiersData[n]=O}}const Mx={name:"preventOverflow",enabled:!0,phase:"main",fn:Ax,requiresIfExists:["offset"]};function Dx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qx(e){return e===Jt(e)||!nr(e)?ku(e):Dx(e)}function Lx(e){var t=e.getBoundingClientRect(),r=kn(t.width)/e.offsetWidth||1,n=kn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Fx(e,t,r){r===void 0&&(r=!1);var n=nr(t),i=nr(t)&&Lx(t),a=Kr(t),l=In(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((_r(t)!=="body"||ju(a))&&(s=qx(t)),nr(t)?(c=In(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Iu(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function zx(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Vx(e){var t=zx(e);return QO.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Bx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ux(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var uv={placement:"bottom",modifiers:[],strategy:"absolute"};function dv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Wx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?uv:i;return function(s,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uv,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},m=[],h=!1,y={state:d,setOptions:function(v){var p=typeof v=="function"?v(d.options):v;f(),d.options=Object.assign({},a,d.options,p),d.scrollParents={reference:un(s)?vo(s):s.contextElement?vo(s.contextElement):[],popper:vo(c)};var _=Vx(Ux([].concat(n,d.options.modifiers)));return d.orderedModifiers=_.filter(function(S){return S.enabled}),g(),y.update()},forceUpdate:function(){if(!h){var v=d.elements,p=v.reference,_=v.popper;if(dv(p,_)){d.rects={reference:Fx(p,yo(_),d.options.strategy==="fixed"),popper:$u(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(j){return d.modifiersData[j.name]=Object.assign({},j.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var w=d.orderedModifiers[S],E=w.fn,x=w.options,P=x===void 0?{}:x,k=w.name;typeof E=="function"&&(d=E({state:d,options:P,name:k,instance:y})||d)}}}},update:Bx(function(){return new Promise(function(b){y.forceUpdate(),b(d)})}),destroy:function(){f(),h=!0}};if(!dv(s,c))return y;y.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var v=b.name,p=b.options,_=p===void 0?{}:p,S=b.effect;if(typeof S=="function"){var w=S({state:d,name:v,instance:y,options:_}),E=function(){};m.push(w||E)}})}function f(){m.forEach(function(b){return b()}),m=[]}return y}}var Hx=[mx,jx,px,rx,kx,Cx,Mx,cx,Px],Kx=Wx({defaultModifiers:Hx});function Gx(e){return Fe("MuiPopper",e)}Le("MuiPopper",["root"]);function Yx(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 Ea(e){return typeof e=="function"?e():e}function Oa(e){return e.nodeType!==void 0}function Jx(e){return!Oa(e)}const Xx=e=>{const{classes:t}=e;return Be({root:["root"]},Gx,t)},Zx={},Qx=A.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:y={},TransitionProps:g,ownerState:f,...b}=t,v=A.useRef(null),p=St(v,r),_=A.useRef(null),S=St(_,m),w=A.useRef(S);yr(()=>{w.current=S},[S]),A.useImperativeHandle(m,()=>_.current,[]);const E=Yx(u,a),[x,P]=A.useState(E),[k,j]=A.useState(Ea(n));A.useEffect(()=>{_.current&&_.current.forceUpdate()}),A.useEffect(()=>{n&&j(Ea(n))},[n]),yr(()=>{if(!k||!c)return;const U=ce=>{P(ce.placement)};if(process.env.NODE_ENV!=="production"&&k&&Oa(k)&&k.nodeType===1){const ce=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
66
+ `))}let W=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ce})=>{U(ce)}}];s!=null&&(W=W.concat(s)),d&&d.modifiers!=null&&(W=W.concat(d.modifiers));const le=Kx(k,v.current,{placement:E,...d,modifiers:W});return w.current(le),()=>{le.destroy(),w.current(null)}},[k,l,s,c,d,E]);const R={placement:x};g!==null&&(R.TransitionProps=g);const O=Xx(t),D=y.root??"div",N=sg({elementType:D,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:O.root});return F.jsx(D,{...N,children:typeof i=="function"?i(R):i})}),fv=A.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:h=Zx,popperRef:y,style:g,transition:f=!1,slotProps:b={},slots:v={},...p}=t,[_,S]=A.useState(!0),w=()=>{S(!1)},E=()=>{S(!0)};if(!c&&!d&&(!f||_))return null;let x;if(a)x=a;else if(n){const j=Ea(n);x=j&&Oa(j)?Kt(j).body:Kt(null).body}const P=!d&&c&&(!f||_)?"none":void 0,k=f?{in:d,onEnter:w,onExited:E}:void 0;return F.jsx(so,{disablePortal:s,container:x,children:F.jsx(Qx,{anchorEl:n,direction:l,disablePortal:s,modifiers:u,ref:r,open:f?!_:d,placement:m,popperOptions:h,popperRef:y,slotProps:b,slots:v,...p,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(fv.propTypes={anchorEl:cr(o.oneOfType([Ir,o.object,o.func]),e=>{if(e.open){const t=Ea(e.anchorEl);if(t&&Oa(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
67
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||Jx(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
68
+ `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Ir,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const eC=me(fv,{name:"MuiPopper",slot:"Root"})({}),Au=A.forwardRef(function(t,r){const n=Oy(),i=We({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:f,popperRef:b,transition:v,slots:p,slotProps:_,...S}=i,w=p?.root??s?.Root,E={anchorEl:a,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:y,placement:g,popperOptions:f,popperRef:b,transition:v,...S};return F.jsx(eC,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:_??c,...E,ref:r})});process.env.NODE_ENV!=="production"&&(Au.propTypes={anchorEl:o.oneOfType([Ir,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Ir,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function tC(e){return Fe("MuiListSubheader",e)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rC=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${pe(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Be(l,tC,t)},nC=me("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${pe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(ze(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),xa=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...d}=n,m={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},h=rC(m);return F.jsx(nC,{as:l,className:xe(h.root,i),ref:r,ownerState:m,...d})});xa&&(xa.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(xa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function pv(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
69
+ `))}return!1}class Ca{static create(){return new Ca}static use(){const t=yg(Ca.create).current,[r,n]=A.useState(!1);return t.shouldMount=r,t.setShouldMount=n,A.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=iC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function oC(){return Ca.use()}function iC(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function hv(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[d,m]=A.useState(!1),h=xe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},g=xe(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&m(!0),A.useEffect(()=>{if(!s&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,s,u]),F.jsx("span",{className:h,style:y,children:F.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(hv.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const or=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mu=550,aC=80,sC=Or.keyframes`
144
70
  0% {
145
71
  transform: scale(0);
146
72
  opacity: 0.1;
@@ -150,7 +76,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
150
76
  transform: scale(1);
151
77
  opacity: 0.3;
152
78
  }
153
- `,Dk=Zr.keyframes`
79
+ `,lC=Or.keyframes`
154
80
  0% {
155
81
  opacity: 1;
156
82
  }
@@ -158,7 +84,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
158
84
  100% {
159
85
  opacity: 0;
160
86
  }
161
- `,Mk=Zr.keyframes`
87
+ `,cC=Or.keyframes`
162
88
  0% {
163
89
  transform: scale(1);
164
90
  }
@@ -170,23 +96,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
170
96
  100% {
171
97
  transform: scale(1);
172
98
  }
173
- `,jk=se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nk=se(Iv,{name:"MuiTouchRipple",slot:"Ripple"})`
99
+ `,uC=me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dC=me(hv,{name:"MuiTouchRipple",slot:"Ripple"})`
174
100
  opacity: 0;
175
101
  position: absolute;
176
102
 
177
- &.${Pr.rippleVisible} {
103
+ &.${or.rippleVisible} {
178
104
  opacity: 0.3;
179
105
  transform: scale(1);
180
- animation-name: ${Ik};
181
- animation-duration: ${Qd}ms;
106
+ animation-name: ${sC};
107
+ animation-duration: ${Mu}ms;
182
108
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
183
109
  }
184
110
 
185
- &.${Pr.ripplePulsate} {
111
+ &.${or.ripplePulsate} {
186
112
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
187
113
  }
188
114
 
189
- & .${Pr.child} {
115
+ & .${or.child} {
190
116
  opacity: 1;
191
117
  display: block;
192
118
  width: 100%;
@@ -195,32 +121,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
195
121
  background-color: currentColor;
196
122
  }
197
123
 
198
- & .${Pr.childLeaving} {
124
+ & .${or.childLeaving} {
199
125
  opacity: 0;
200
- animation-name: ${Dk};
201
- animation-duration: ${Qd}ms;
126
+ animation-name: ${lC};
127
+ animation-duration: ${Mu}ms;
202
128
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
203
129
  }
204
130
 
205
- & .${Pr.childPulsate} {
131
+ & .${or.childPulsate} {
206
132
  position: absolute;
207
133
  /* @noflip */
208
134
  left: 0px;
209
135
  top: 0;
210
- animation-name: ${Mk};
136
+ animation-name: ${cC};
211
137
  animation-duration: 2500ms;
212
138
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
213
139
  animation-iteration-count: infinite;
214
140
  animation-delay: 200ms;
215
141
  }
216
- `,Dv=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:l,...i}=o,[c,u]=E.useState([]),d=E.useRef(0),h=E.useRef(null);E.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=E.useRef(!1),g=Pb(),w=E.useRef(null),f=E.useRef(null),y=E.useCallback(x=>{const{pulsate:S,rippleX:C,rippleY:O,rippleSize:k,cb:_}=x;u(T=>[...T,R.jsx(Nk,{classes:{ripple:Te(a.ripple,Pr.ripple),rippleVisible:Te(a.rippleVisible,Pr.rippleVisible),ripplePulsate:Te(a.ripplePulsate,Pr.ripplePulsate),child:Te(a.child,Pr.child),childLeaving:Te(a.childLeaving,Pr.childLeaving),childPulsate:Te(a.childPulsate,Pr.childPulsate)},timeout:Qd,pulsate:S,rippleX:C,rippleY:O,rippleSize:k},d.current)]),d.current+=1,h.current=_},[a]),v=E.useCallback((x={},S={},C=()=>{})=>{const{pulsate:O=!1,center:k=s||S.pulsate,fakeElement:_=!1}=S;if((x==null?void 0:x.type)==="mousedown"&&m.current){m.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(m.current=!0);const T=_?null:f.current,P=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,V,M;if(k||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(P.width/2),V=Math.round(P.height/2);else{const{clientX:N,clientY:F}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(N-P.left),V=Math.round(F-P.top)}if(k)M=Math.sqrt((2*P.width**2+P.height**2)/3),M%2===0&&(M+=1);else{const N=Math.max(Math.abs((T?T.clientWidth:0)-D),D)*2+2,F=Math.max(Math.abs((T?T.clientHeight:0)-V),V)*2+2;M=Math.sqrt(N**2+F**2)}x!=null&&x.touches?w.current===null&&(w.current=()=>{y({pulsate:O,rippleX:D,rippleY:V,rippleSize:M,cb:C})},g.start(_k,()=>{w.current&&(w.current(),w.current=null)})):y({pulsate:O,rippleX:D,rippleY:V,rippleSize:M,cb:C})},[s,y,g]),p=E.useCallback(()=>{v({},{pulsate:!0})},[v]),b=E.useCallback((x,S)=>{if(g.clear(),(x==null?void 0:x.type)==="touchend"&&w.current){w.current(),w.current=null,g.start(0,()=>{b(x,S)});return}w.current=null,u(C=>C.length>0?C.slice(1):C),h.current=S},[g]);return E.useImperativeHandle(r,()=>({pulsate:p,start:v,stop:b}),[p,v,b]),R.jsx(jk,{className:Te(Pr.root,a.root,l),ref:f,...i,children:R.jsx(rs,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Dv.propTypes={center:n.bool,classes:n.object,className:n.string});function Ak(e){return Ie("MuiButtonBase",e)}const Vk=ke("MuiButtonBase",["root","disabled","focusVisible"]),Fk=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:o,classes:s}=e,l=_e({root:["root",t&&"disabled",r&&"focusVisible"]},Ak,s);return r&&o&&(l.root+=` ${o}`),l},Lk=se("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"},[`&.${Vk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ur=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:l,className:i,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:m=!1,focusVisibleClassName:g,LinkComponent:w="a",onBlur:f,onClick:y,onContextMenu:v,onDragLeave:p,onFocus:b,onFocusVisible:x,onKeyDown:S,onKeyUp:C,onMouseDown:O,onMouseLeave:k,onMouseUp:_,onTouchEnd:T,onTouchMove:P,onTouchStart:D,tabIndex:V=0,TouchRippleProps:M,touchRippleRef:N,type:F,...K}=o,H=E.useRef(null),Z=Rk(),L=ft(Z.ref,N),[j,Y]=E.useState(!1);u&&j&&Y(!1),E.useImperativeHandle(s,()=>({focusVisible:()=>{Y(!0),H.current.focus()}}),[]);const q=Z.shouldMount&&!d&&!u;E.useEffect(()=>{j&&m&&!d&&Z.pulsate()},[d,m,j,Z]);const $=an(Z,"start",O,h),I=an(Z,"stop",v,h),U=an(Z,"stop",p,h),Q=an(Z,"stop",_,h),W=an(Z,"stop",Ce=>{j&&Ce.preventDefault(),k&&k(Ce)},h),ee=an(Z,"start",D,h),ne=an(Z,"stop",T,h),B=an(Z,"stop",P,h),A=an(Z,"stop",Ce=>{Eb(Ce.target)||Y(!1),f&&f(Ce)},!1),z=Re(Ce=>{H.current||(H.current=Ce.currentTarget),Eb(Ce.target)&&(Y(!0),x&&x(Ce)),b&&b(Ce)}),X=()=>{const Ce=H.current;return c&&c!=="button"&&!(Ce.tagName==="A"&&Ce.href)},te=Re(Ce=>{m&&!Ce.repeat&&j&&Ce.key===" "&&Z.stop(Ce,()=>{Z.start(Ce)}),Ce.target===Ce.currentTarget&&X()&&Ce.key===" "&&Ce.preventDefault(),S&&S(Ce),Ce.target===Ce.currentTarget&&X()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),y&&y(Ce))}),ae=Re(Ce=>{m&&Ce.key===" "&&j&&!Ce.defaultPrevented&&Z.stop(Ce,()=>{Z.pulsate(Ce)}),C&&C(Ce),y&&Ce.target===Ce.currentTarget&&X()&&Ce.key===" "&&!Ce.defaultPrevented&&y(Ce)});let J=c;J==="button"&&(K.href||K.to)&&(J=w);const fe={};J==="button"?(fe.type=F===void 0?"button":F,fe.disabled=u):(!K.href&&!K.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u));const le=ft(r,H),ge={...o,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:h,focusRipple:m,tabIndex:V,focusVisible:j},Se=Fk(ge);return R.jsxs(Lk,{as:J,className:Te(Se.root,i),ownerState:ge,onBlur:A,onClick:y,onContextMenu:I,onFocus:z,onKeyDown:te,onKeyUp:ae,onMouseDown:$,onMouseLeave:W,onMouseUp:Q,onDragLeave:U,onTouchEnd:ne,onTouchMove:B,onTouchStart:ee,ref:le,tabIndex:u?-1:V,type:F,...fe,...K,children:[l,q?R.jsx(Dv,{ref:L,center:a,...M}):null]})});function an(e,t,r,o=!1){return Re(s=>(r&&r(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Ur.propTypes={action:Mt,centerRipple:n.bool,children:n.node,classes:n.object,className:n.string,component:ai,disabled:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,href:n.any,LinkComponent:n.elementType,onBlur:n.func,onClick:n.func,onContextMenu:n.func,onDragLeave:n.func,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onKeyUp:n.func,onMouseDown:n.func,onMouseLeave:n.func,onMouseUp:n.func,onTouchEnd:n.func,onTouchMove:n.func,onTouchStart:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string])});function qk(e){return Ie("MuiDivider",e)}const Mv=ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bk=e=>{const{absolute:t,children:r,classes:o,flexItem:s,light:a,orientation:l,textAlign:i,variant:c}=e;return _e({root:["root",t&&"absolute",c,a&&"light",l==="vertical"&&"vertical",s&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",i==="right"&&l!=="vertical"&&"textAlignRight",i==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},qk,o)},zk=se("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Ze(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:nt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Uk=se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Ze(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),us=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiDivider"}),{absolute:s=!1,children:a,className:l,orientation:i="horizontal",component:c=a||i==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:h=c!=="hr"?"separator":void 0,textAlign:m="center",variant:g="fullWidth",...w}=o,f={...o,absolute:s,component:c,flexItem:u,light:d,orientation:i,role:h,textAlign:m,variant:g},y=Bk(f);return R.jsx(zk,{as:c,className:Te(y.root,l),role:h,ref:r,ownerState:f,"aria-orientation":h==="separator"&&(c!=="hr"||i==="vertical")?i:void 0,...w,children:a?R.jsx(Uk,{className:y.wrapper,ownerState:f,children:a}):null})});us&&(us.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(us.propTypes={absolute:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,flexItem:n.bool,light:n.bool,orientation:n.oneOf(["horizontal","vertical"]),role:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),textAlign:n.oneOf(["center","left","right"]),variant:n.oneOfType([n.oneOf(["fullWidth","inset","middle"]),n.string])});const jv=ke("MuiListItemIcon",["root","alignItemsFlexStart"]);function Wk(e){return Ie("MuiTypography",e)}ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Yk=wP(),Kk=e=>{const{align:t,gutterBottom:r,noWrap:o,paragraph:s,variant:a,classes:l}=e,i={root:["root",a,e.align!=="inherit"&&`align${Oe(t)}`,r&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return _e(i,Wk,l)},Gk=se("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Oe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ze(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,o])=>r!=="inherit"&&o&&typeof o=="object").map(([r,o])=>({props:{variant:r},style:o})),...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Oe(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Nv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Er=E.forwardRef(function(t,r){const{color:o,...s}=tt({props:t,name:"MuiTypography"}),a=!Hk[o],l=Yk({...s,...a&&{color:o}}),{align:i="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:h=!1,paragraph:m=!1,variant:g="body1",variantMapping:w=Nv,...f}=l,y={...l,align:i,color:o,className:c,component:u,gutterBottom:d,noWrap:h,paragraph:m,variant:g,variantMapping:w},v=u||(m?"p":w[g]||Nv[g])||"span",p=Kk(y);return R.jsx(Gk,{as:v,ref:r,className:Te(p.root,c),...f,ownerState:y,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...f.style}})});process.env.NODE_ENV!=="production"&&(Er.propTypes={align:n.oneOf(["center","inherit","justify","left","right"]),children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),n.string]),component:n.elementType,gutterBottom:n.bool,noWrap:n.bool,paragraph:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOfType([n.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),n.string]),variantMapping:n.object});const Av=ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Xk(e){return Ie("MuiMenuItem",e)}const ds=ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Zk=e=>{const{disabled:t,dense:r,divider:o,disableGutters:s,selected:a,classes:l}=e,c=_e({root:["root",r&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",a&&"selected"]},Xk,l);return{...l,...c}},Qk=se(Ur,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Jk})(Ze(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mv.inset}`]:{marginLeft:52},[`& .${Av.root}`]:{marginTop:0,marginBottom:0},[`& .${Av.inset}`]:{paddingLeft:36},[`& .${jv.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${jv.root} svg`]:{fontSize:"1.25rem"}}}]}))),uo=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:a="li",dense:l=!1,divider:i=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:h,className:m,...g}=o,w=E.useContext(wn),f=E.useMemo(()=>({dense:l||w.dense||!1,disableGutters:c}),[w.dense,l,c]),y=E.useRef(null);qt(()=>{s&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const v={...o,dense:f.dense,divider:i,disableGutters:c},p=Zk(o),b=ft(y,r);let x;return o.disabled||(x=h!==void 0?h:-1),R.jsx(wn.Provider,{value:f,children:R.jsx(Qk,{ref:b,role:d,tabIndex:x,component:a,focusVisibleClassName:Te(p.focusVisible,u),className:Te(p.root,m),...g,ownerState:v,classes:p})})});process.env.NODE_ENV!=="production"&&(uo.propTypes={autoFocus:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,dense:n.bool,disabled:n.bool,disableGutters:n.bool,divider:n.bool,focusVisibleClassName:n.string,role:n.string,selected:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number});function eR(e){const{model:t,form:r,error:o,setDefault:s,onChange:a,onChangeValidate:l,localization:{getLocalizedString:i},form:{key:c,schema:{isObject:u,enum:d,findFn:h,displayFn:m,noLocalization:g}}}=e;let w=r&&r.selectProps&&r.selectProps.multiple?[]:"";e.form.default?w=e.form.default:e.form.schema&&e.form.schema.default&&(w=e.form.schema.default);const[f,y]=Be.useState(Xt.getValueFromModel(t,r.key)||w);Be.useEffect(()=>{s(c,t,r,f)},[]);const v=x=>{const S=x.target.value;if(y(S),u){const C=d.find(O=>h?h(O,S):O===S);a(c,C)}else l(x)},p=x=>m?m(x):g?x.name:i(x.name);let b=[];return u?b=r.schema.enum.map((x,S)=>R.jsx(uo,{value:x,children:p(x)},S)):b=r.titleMap.map((x,S)=>R.jsx(uo,{value:x.value,children:p(x)},S)),R.jsxs(Nn,{fullWidth:!0,error:!!o,...r.otherProps,children:[R.jsx(Qo,{required:r.required,...r.labelProps,children:r.title&&i(r.title)}),R.jsx(ls,{value:f,placeholder:r.placeholder&&i(r.placeholder),disabled:r.readonly,onChange:v,...r.selectProps,children:b}),R.jsx(io,{...r.helperTextProps,children:(o||r.description)&&i(o||r.description)})]})}const tR=Jt(eR),rR=kt(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function nR(e){return Ie("MuiChip",e)}const ct=ke("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),oR=e=>{const{classes:t,disabled:r,size:o,color:s,iconColor:a,onDelete:l,clickable:i,variant:c}=e,u={root:["root",c,r&&"disabled",`size${Oe(o)}`,`color${Oe(s)}`,i&&"clickable",i&&`clickableColor${Oe(s)}`,l&&"deletable",l&&`deletableColor${Oe(s)}`,`${c}${Oe(s)}`],label:["label",`label${Oe(o)}`],avatar:["avatar",`avatar${Oe(o)}`,`avatarColor${Oe(s)}`],icon:["icon",`icon${Oe(o)}`,`iconColor${Oe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Oe(o)}`,`deleteIconColor${Oe(s)}`,`deleteIcon${Oe(c)}Color${Oe(s)}`]};return _e(u,nR,t)},sR=se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:o,iconColor:s,clickable:a,onDelete:l,size:i,variant:c}=r;return[{[`& .${ct.avatar}`]:t.avatar},{[`& .${ct.avatar}`]:t[`avatar${Oe(i)}`]},{[`& .${ct.avatar}`]:t[`avatarColor${Oe(o)}`]},{[`& .${ct.icon}`]:t.icon},{[`& .${ct.icon}`]:t[`icon${Oe(i)}`]},{[`& .${ct.icon}`]:t[`iconColor${Oe(s)}`]},{[`& .${ct.deleteIcon}`]:t.deleteIcon},{[`& .${ct.deleteIcon}`]:t[`deleteIcon${Oe(i)}`]},{[`& .${ct.deleteIcon}`]:t[`deleteIconColor${Oe(o)}`]},{[`& .${ct.deleteIcon}`]:t[`deleteIcon${Oe(c)}Color${Oe(o)}`]},t.root,t[`size${Oe(i)}`],t[`color${Oe(o)}`],a&&t.clickable,a&&o!=="default"&&t[`clickableColor${Oe(o)})`],l&&t.deletable,l&&o!=="default"&&t[`deletableColor${Oe(o)}`],t[c],t[`${c}${Oe(o)}`]]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{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",[`&.${ct.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ct.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ct.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ct.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ct.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ct.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ct.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:nt(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)`:nt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ct.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ct.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Kt(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:nt(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${ct.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${ct.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${ct.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{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}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Kt(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${ct.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ct.avatar}`]:{marginLeft:4},[`& .${ct.avatarSmall}`]:{marginLeft:2},[`& .${ct.icon}`]:{marginLeft:4},[`& .${ct.iconSmall}`]:{marginLeft:2},[`& .${ct.deleteIcon}`]:{marginRight:5},[`& .${ct.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Kt()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:nt(e.palette[r].main,.7)}`,[`&.${ct.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:nt(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:nt(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),aR=se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${Oe(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Vv(e){return e.key==="Backspace"||e.key==="Delete"}const $i=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiChip"}),{avatar:s,className:a,clickable:l,color:i="default",component:c,deleteIcon:u,disabled:d=!1,icon:h,label:m,onClick:g,onDelete:w,onKeyDown:f,onKeyUp:y,size:v="medium",variant:p="filled",tabIndex:b,skipFocusWhenDisabled:x=!1,...S}=o,C=E.useRef(null),O=ft(C,r),k=Z=>{Z.stopPropagation(),w&&w(Z)},_=Z=>{Z.currentTarget===Z.target&&Vv(Z)&&Z.preventDefault(),f&&f(Z)},T=Z=>{Z.currentTarget===Z.target&&w&&Vv(Z)&&w(Z),y&&y(Z)},P=l!==!1&&g?!0:l,D=P||w?Ur:c||"div",V={...o,component:D,disabled:d,size:v,color:i,iconColor:E.isValidElement(h)&&h.props.color||i,onDelete:!!w,clickable:P,variant:p},M=oR(V),N=D===Ur?{component:c||"div",focusVisibleClassName:M.focusVisible,...w&&{disableRipple:!0}}:{};let F=null;w&&(F=u&&E.isValidElement(u)?E.cloneElement(u,{className:Te(u.props.className,M.deleteIcon),onClick:k}):R.jsx(rR,{className:Te(M.deleteIcon),onClick:k}));let K=null;s&&E.isValidElement(s)&&(K=E.cloneElement(s,{className:Te(M.avatar,s.props.className)}));let H=null;return h&&E.isValidElement(h)&&(H=E.cloneElement(h,{className:Te(M.icon,h.props.className)})),process.env.NODE_ENV!=="production"&&K&&H&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),R.jsxs(sR,{as:D,className:Te(M.root,a),disabled:P&&d?!0:void 0,onClick:g,onKeyDown:_,onKeyUp:T,ref:O,tabIndex:x&&d?-1:b,ownerState:V,...N,...S,children:[K||H,R.jsx(aR,{className:Te(M.label),ownerState:V,children:m}),F]})});process.env.NODE_ENV!=="production"&&($i.propTypes={avatar:n.element,children:Cb,classes:n.object,className:n.string,clickable:n.bool,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),component:n.elementType,deleteIcon:n.element,disabled:n.bool,icon:n.element,label:n.node,onClick:n.func,onDelete:n.func,onKeyDown:n.func,onKeyUp:n.func,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),skipFocusWhenDisabled:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,variant:n.oneOfType([n.oneOf(["filled","outlined"]),n.string])});const fs="MultiSelect",Wr={root:`${fs}-root`,chips:`${fs}-chips`,chip:`${fs}-chip`,menuItem:`${fs}-menuItem`,selectedMenuItem:`${fs}-selectedMenuItem`},iR=ri("div")(({theme:e})=>({[`&.${Wr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Wr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Wr.chip}`]:{margin:e.spacing(.25)},[`& .${Wr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Wr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),lR={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}};class cR extends Be.Component{constructor(r){super(r);zt(this,"onSelected",r=>{const{onChangeValidate:o}=this.props,s=r.target.value;this.setState({currentValue:s}),o(s)});const{model:o,form:s}=this.props;this.state={currentValue:Xt.getValueFromModel(o,s.key)||[]}}static getDerivedStateFromProps(r){const{model:o,form:s}=r;return o&&s.key?{currentValue:Xt.getValueFromModel(o,s.key)||[]}:null}render(){const{form:r,localization:{getLocalizedString:o}}=this.props,{currentValue:s}=this.state,a=Xt.getTitleByValue.bind(this,r.titleMap),l=r.titleMap.map(i=>R.jsx(uo,{value:i.value,className:s.indexOf(i.value)===-1?Wr.menuItem:Wr.selectedMenuItem,children:i.name&&o(i.name)},i.value));return R.jsx(iR,{className:Wr.root,children:R.jsxs(Nn,{fullWidth:!0,...r.otherProps,children:[R.jsx(Qo,{required:r.required,children:r.title&&o(r.title)}),R.jsx(ls,{multiple:!0,value:s||"",placeholder:r.placeholder&&o(r.placeholder),disabled:r.readonly,onChange:this.onSelected,MenuProps:lR,renderValue:i=>R.jsx("div",{className:Wr.chips,children:i.map(c=>R.jsx($i,{label:a(c)&&o(a(c)),className:Wr.chip},c))}),children:l})]})})}}const uR=Jt(cR);function dR(e){return Ie("MuiFormControlLabel",e)}const ps=ke("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fR=e=>{const{classes:t,disabled:r,labelPlacement:o,error:s,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${Oe(o)}`,s&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",s&&"error"]};return _e(l,dR,t)},pR=se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ps.label}`]:t.label},t.root,t[`labelPlacement${Oe(r.labelPlacement)}`]]}})(Ze(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ps.disabled}`]:{cursor:"default"},[`& .${ps.label}`]:{[`&.${ps.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),hR=se("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ze(({theme:e})=>({[`&.${ps.error}`]:{color:(e.vars||e).palette.error.main}}))),ef=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiFormControlLabel"}),{checked:s,className:a,componentsProps:l={},control:i,disabled:c,disableTypography:u,inputRef:d,label:h,labelPlacement:m="end",name:g,onChange:w,required:f,slots:y={},slotProps:v={},value:p,...b}=o,x=or(),S=c??i.props.disabled??(x==null?void 0:x.disabled),C=f??i.props.required,O={disabled:S,required:C};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof i.props[N]>"u"&&typeof o[N]<"u"&&(O[N]=o[N])});const k=yn({props:o,muiFormControl:x,states:["error"]}),_={...o,disabled:S,labelPlacement:m,required:C,error:k.error},T=fR(_),P={slots:y,slotProps:{...l,...v}},[D,V]=Bt("typography",{elementType:Er,externalForwardedProps:P,ownerState:_});let M=h;return M!=null&&M.type!==Er&&!u&&(M=R.jsx(D,{component:"span",...V,className:Te(T.label,V==null?void 0:V.className),children:M})),R.jsxs(pR,{className:Te(T.root,a),ownerState:_,ref:r,...b,children:[E.cloneElement(i,O),C?R.jsxs("div",{children:[M,R.jsxs(hR,{ownerState:_,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):M]})});process.env.NODE_ENV!=="production"&&(ef.propTypes={checked:n.bool,classes:n.object,className:n.string,componentsProps:n.shape({typography:n.object}),control:n.element.isRequired,disabled:n.bool,disableTypography:n.bool,inputRef:Mt,label:n.node,labelPlacement:n.oneOf(["bottom","end","start","top"]),name:n.string,onChange:n.func,required:n.bool,slotProps:n.shape({typography:n.oneOfType([n.func,n.object])}),slots:n.shape({typography:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function mR(e){return Ie("MuiFormGroup",e)}ke("MuiFormGroup",["root","row","error"]);const gR=e=>{const{classes:t,row:r,error:o}=e;return _e({root:["root",r&&"row",o&&"error"]},mR,t)},yR=se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),tf=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiFormGroup"}),{className:s,row:a=!1,...l}=o,i=or(),c=yn({props:o,muiFormControl:i,states:["error"]}),u={...o,row:a,error:c.error},d=gR(u);return R.jsx(yR,{className:Te(d.root,s),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(tf.propTypes={children:n.node,classes:n.object,className:n.string,row:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function bR(e){return Ie("MuiRadioGroup",e)}ke("MuiRadioGroup",["root","row","error"]);const rf=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(rf.displayName="RadioGroupContext");const vR=e=>{const{classes:t,row:r,error:o}=e;return _e({root:["root",r&&"row",o&&"error"]},bR,t)},Fv=E.forwardRef(function(t,r){const{actions:o,children:s,className:a,defaultValue:l,name:i,onChange:c,value:u,...d}=t,h=E.useRef(null),m=vR(t),[g,w]=cr({controlled:u,default:l,name:"RadioGroup"});E.useImperativeHandle(o,()=>({focus:()=>{let p=h.current.querySelector("input:not(:disabled):checked");p||(p=h.current.querySelector("input:not(:disabled)")),p&&p.focus()}}),[]);const f=ft(r,h),y=mr(i),v=E.useMemo(()=>({name:y,onChange(p){w(p.target.value),c&&c(p,p.target.value)},value:g}),[y,c,w,g]);return R.jsx(rf.Provider,{value:v,children:R.jsx(tf,{role:"radiogroup",ref:f,className:Te(m.root,a),...d,children:s})})});process.env.NODE_ENV!=="production"&&(Fv.propTypes={children:n.node,className:n.string,defaultValue:n.any,name:n.string,onChange:n.func,value:n.any});function wR(){return E.useContext(rf)}function xR(e){return Ie("PrivateSwitchBase",e)}ke("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SR=e=>{const{classes:t,checked:r,disabled:o,edge:s}=e,a={root:["root",r&&"checked",o&&"disabled",s&&`edge${Oe(s)}`],input:["input"]};return _e(a,xR,t)},CR=se(Ur)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),TR=se("input",{shouldForwardProp:er})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),nf=E.forwardRef(function(t,r){const{autoFocus:o,checked:s,checkedIcon:a,className:l,defaultChecked:i,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:h,id:m,inputProps:g,inputRef:w,name:f,onBlur:y,onChange:v,onFocus:p,readOnly:b,required:x=!1,tabIndex:S,type:C,value:O,...k}=t,[_,T]=cr({controlled:s,default:!!i,name:"SwitchBase",state:"checked"}),P=or(),D=Z=>{p&&p(Z),P&&P.onFocus&&P.onFocus(Z)},V=Z=>{y&&y(Z),P&&P.onBlur&&P.onBlur(Z)},M=Z=>{if(Z.nativeEvent.defaultPrevented)return;const L=Z.target.checked;T(L),v&&v(Z,L)};let N=c;P&&typeof N>"u"&&(N=P.disabled);const F=C==="checkbox"||C==="radio",K={...t,checked:_,disabled:N,disableFocusRipple:u,edge:d},H=SR(K);return R.jsxs(CR,{component:"span",className:Te(H.root,l),centerRipple:!0,focusRipple:!u,disabled:N,tabIndex:null,role:void 0,onFocus:D,onBlur:V,ownerState:K,ref:r,...k,children:[R.jsx(TR,{autoFocus:o,checked:s,defaultChecked:i,className:H.input,disabled:N,id:F?m:void 0,name:f,onChange:M,readOnly:b,ref:w,required:x,ownerState:K,tabIndex:S,type:C,...C==="checkbox"&&O===void 0?{}:{value:O},...g}),_?a:h]})});process.env.NODE_ENV!=="production"&&(nf.propTypes={autoFocus:n.bool,checked:n.bool,checkedIcon:n.node.isRequired,classes:n.object,className:n.string,defaultChecked:n.bool,disabled:n.bool,disableFocusRipple:n.bool,edge:n.oneOf(["end","start",!1]),icon:n.node.isRequired,id:n.string,inputProps:n.object,inputRef:Mt,name:n.string,onBlur:n.func,onChange:n.func,onFocus:n.func,readOnly:n.bool,required:n.bool,sx:n.object,tabIndex:n.oneOfType([n.number,n.string]),type:n.string.isRequired,value:n.any});const OR=kt(R.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),PR=kt(R.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),ER=se("span",{shouldForwardProp:er})({position:"relative",display:"flex"}),kR=se(OR)({transform:"scale(1)"}),RR=se(PR)(Ze(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function of(e){const{checked:t=!1,classes:r={},fontSize:o}=e,s={...e,checked:t};return R.jsxs(ER,{className:r.root,ownerState:s,children:[R.jsx(kR,{fontSize:o,className:r.background,ownerState:s}),R.jsx(RR,{fontSize:o,className:r.dot,ownerState:s})]})}process.env.NODE_ENV!=="production"&&(of.propTypes={checked:n.bool,classes:n.object,fontSize:n.oneOf(["small","medium"])});function $R(e){return Ie("MuiRadio",e)}const Lv=ke("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_R=e=>{const{classes:t,color:r,size:o}=e,s={root:["root",`color${Oe(r)}`,o!=="medium"&&`size${Oe(o)}`]};return{...t,..._e(s,$R,t)}},IR=se(nf,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${Oe(r.size)}`],t[`color${Oe(r.color)}`]]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Lv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Lv.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function DR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const qv=R.jsx(of,{checked:!0}),Bv=R.jsx(of,{}),zv=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=qv,color:l="primary",icon:i=Bv,name:c,onChange:u,size:d="medium",className:h,disabled:m,disableRipple:g=!1,...w}=o,f=or();let y=m;f&&typeof y>"u"&&(y=f.disabled),y??(y=!1);const v={...o,disabled:y,disableRipple:g,color:l,size:d},p=_R(v),b=wR();let x=s;const S=Rd(u,b&&b.onChange);let C=c;return b&&(typeof x>"u"&&(x=DR(b.value,o.value)),typeof C>"u"&&(C=b.name)),R.jsx(IR,{type:"radio",icon:E.cloneElement(i,{fontSize:Bv.props.fontSize??d}),checkedIcon:E.cloneElement(a,{fontSize:qv.props.fontSize??d}),disabled:y,ownerState:v,classes:p,name:C,checked:x,onChange:S,ref:r,className:Te(p.root,h),...w})});process.env.NODE_ENV!=="production"&&(zv.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,inputProps:n.object,inputRef:Mt,name:n.string,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});const Uv="Radios",_i={formControl:`${Uv}-formControl`,group:`${Uv}-group`},MR=ri(Nn)(({theme:e})=>({[`&.${_i.formControl}`]:{marginTop:e.spacing(1)},[`& .${_i.group}`]:{margin:e.spacing(1,0)}}));class jR extends Be.Component{constructor(){super(...arguments);zt(this,"renderItems",r=>{const{localization:{getLocalizedString:o}}=this.props;return r.titleMap.map((s,a)=>R.jsx(ef,{control:R.jsx(zv,{}),label:s.name&&o(s.name),value:s.value,disabled:r.readonly},a))})}render(){const{form:r,value:o,onChangeValidate:s,localization:{getLocalizedString:a}}=this.props;return R.jsxs(MR,{component:"fieldset",className:_i.formControl,...r.otherProps,children:[R.jsx(vn,{component:"legend",required:r.required,children:r.title&&a(r.title)}),R.jsx(Fv,{value:o,name:r.title,onChange:s,className:_i.group,children:this.renderItems(r)})]})}}const NR=Jt(jR),AR=Jt(e=>{const{value:t,localization:{getLocalizedDate:r},form:o,type:s}=e;return R.jsx(cs,{...e,form:{...o,type:s},value:r(t),otherProps:{InputLabelProps:{shrink:!0}},...o.otherProps})},{type:"date"}),Wv=bb({themeId:Go});function ht({props:e,name:t}){return hO({props:e,name:t,defaultTheme:ci,themeId:Go})}const Hr=(e,t)=>e.length!==t.length?!1:t.every(r=>e.includes(r)),VR=({openTo:e,defaultOpenTo:t,views:r,defaultViews:o})=>{const s=r??o;let a;if(e!=null)a=e;else if(s.includes(t))a=t;else if(s.length>0)a=s[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:s,openTo:a}},Ii=(e,t,r)=>{let o=t;return o=e.setHours(o,e.getHours(r)),o=e.setMinutes(o,e.getMinutes(r)),o=e.setSeconds(o,e.getSeconds(r)),o=e.setMilliseconds(o,e.getMilliseconds(r)),o},hs=({date:e,disableFuture:t,disablePast:r,maxDate:o,minDate:s,isDateDisabled:a,utils:l,timezone:i})=>{const c=Ii(l,l.date(void 0,i),e);r&&l.isBefore(s,c)&&(s=c),t&&l.isAfter(o,c)&&(o=c);let u=e,d=e;for(l.isBefore(e,s)&&(u=s,d=null),l.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&l.isAfter(u,o)&&(u=null),d&&l.isBefore(d,s)&&(d=null),u){if(!a(u))return u;u=l.addDays(u,1)}if(d){if(!a(d))return d;d=l.addDays(d,-1)}}return null},FR=(e,t)=>t==null||!e.isValid(t)?null:t,kr=(e,t,r)=>t==null||!e.isValid(t)?r:t,LR=(e,t,r)=>!e.isValid(t)&&t!=null&&!e.isValid(r)&&r!=null?!0:e.isEqual(t,r),sf=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},af=(e,t,r)=>r==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),ln=(e,t)=>{const r=e.setHours(e.date(),t==="am"?2:14);return e.format(r,"meridiem")},qR=["year","month","day"],fo=e=>qR.includes(e),Hv=(e,{format:t,views:r},o)=>{if(t!=null)return t;const s=e.formats;return Hr(r,["year"])?s.year:Hr(r,["month"])?s.month:Hr(r,["day"])?s.dayOfMonth:Hr(r,["month","year"])?`${s.month} ${s.year}`:Hr(r,["day","month"])?`${s.month} ${s.dayOfMonth}`:s.keyboardDate},BR=(e,t)=>{const r=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(r,o))},Yv=["hours","minutes","seconds"],po=e=>Yv.includes(e),ms=e=>Yv.includes(e)||e==="meridiem",zR=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,gs=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,UR=(e,t,r,o)=>{const s=gs(o.getHours(e),t,r);return o.setHours(e,s)},Kv=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ys=(e,t)=>(r,o)=>e?t.isAfter(r,o):Kv(r,t)>Kv(o,t),Gv=(e,{format:t,views:r,ampm:o})=>{if(t!=null)return t;const s=e.formats;return Hr(r,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:Hr(r,["minutes"])?s.minutes:Hr(r,["seconds"])?s.seconds:Hr(r,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:Hr(r,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},Ar={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},WR=e=>Math.max(...e.map(t=>Ar[t.type]??1)),bs=(e,t,r)=>{if(t===Ar.year)return e.startOfYear(r);if(t===Ar.month)return e.startOfMonth(r);if(t===Ar.day)return e.startOfDay(r);let o=r;return t<Ar.minutes&&(o=e.setMinutes(o,0)),t<Ar.seconds&&(o=e.setSeconds(o,0)),t<Ar.milliseconds&&(o=e.setMilliseconds(o,0)),o},HR=({props:e,utils:t,granularity:r,timezone:o,getTodayDate:s})=>{let a=s?s():bs(t,r,af(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=bs(t,r,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=bs(t,r,e.maxDate));const l=ys(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&l(e.minTime,a)&&(a=bs(t,r,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ii(t,a,e.minTime))),e.maxTime!=null&&l(a,e.maxTime)&&(a=bs(t,r,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ii(t,a,e.maxTime))),a},lf=(e,t)=>{const r=e.formatTokenMap[t];if(r==null)throw new Error([`MUI X: 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(`
217
- `));return typeof r=="string"?{type:r,contentType:r==="meridiem"?"letter":"digit",maxLength:void 0}:{type:r.sectionType,contentType:r.contentType,maxLength:r.maxLength}},YR=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Di=(e,t)=>{const r=[],o=e.date(void 0,"default"),s=e.startOfWeek(o),a=e.endOfWeek(o);let l=s;for(;e.isBefore(l,a);)r.push(l),l=e.addDays(l,1);return r.map(i=>e.formatByString(i,t))},Xv=(e,t,r,o)=>{switch(r){case"month":return sf(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return Di(e,o);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(a=>e.formatByString(a,o))}default:return[]}},Jv="s",KR=["0","1","2","3","4","5","6","7","8","9"],GR=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Jv)==="0"?KR:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),Jv))},Ln=(e,t)=>{if(t[0]==="0")return e;const r=[];let o="";for(let s=0;s<e.length;s+=1){o+=e[s];const a=t.indexOf(o);a>-1&&(r.push(a.toString()),o="")}return r.join("")},cf=(e,t)=>t[0]==="0"?e:e.split("").map(r=>t[Number(r)]).join(""),Zv=(e,t)=>{const r=Ln(e,t);return r!==" "&&!Number.isNaN(Number(r))},Qv=(e,t)=>{let r=e;for(r=Number(r).toString();r.length<t;)r=`0${r}`;return r},e0=(e,t,r,o,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
218
- This type of format is only supported for 'day' sections`].join(`
219
- `));if(s.type==="day"&&s.contentType==="digit-with-letter"){const l=e.setDate(r.longestMonth,t);return e.formatByString(l,s.format)}let a=t.toString();return s.hasLeadingZerosInInput&&(a=Qv(a,s.maxLength)),cf(a,o)},XR=(e,t,r,o,s,a,l,i)=>{const c=YR(o),u=o==="Home",d=o==="End",h=r.value===""||u||d,m=()=>{const w=s[r.type]({currentDate:l,format:r.format,contentType:r.contentType}),f=b=>e0(e,b,w,a,r),y=r.type==="minutes"&&(i!=null&&i.minutesStep)?i.minutesStep:1;let p=parseInt(Ln(r.value,a),10)+c*y;if(h){if(r.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),r.format);c>0||u?p=w.minimum:p=w.maximum}return p%y!==0&&((c<0||u)&&(p+=y-(y+p)%y),(c>0||d)&&(p-=p%y)),p>w.maximum?f(w.minimum+(p-w.maximum-1)%(w.maximum-w.minimum+1)):p<w.minimum?f(w.maximum-(w.minimum-p-1)%(w.maximum-w.minimum+1)):f(p)},g=()=>{const w=Xv(e,t,r.type,r.format);if(w.length===0)return r.value;if(h)return c>0||u?w[0]:w[w.length-1];const v=((w.indexOf(r.value)+c)%w.length+w.length)%w.length;return w[v]};return r.contentType==="digit"||r.contentType==="digit-with-letter"?m():g()},uf=(e,t,r)=>{let o=e.value||e.placeholder;const s=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Ln(o,r)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},t0=(e,t,r,o)=>{if(process.env.NODE_ENV!=="production"&&lf(e,r).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,r),o)},r0=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,n0=(e,t,r,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(r){case"year":return r0(e,o)?e.formatByString(e.setYear(s,1),o)==="0001":e.formatByString(e.setYear(s,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error("Invalid section type")}},JR=(e,t,r)=>{const o=t.some(c=>c.type==="day"),s=[],a=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),a.push(uf(u,"non-input",r)))}const l=s.join(" "),i=a.join(" ");return e.parse(i,l)},ZR=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),QR=(e,t,r)=>{const s=e.map(a=>{const l=uf(a,r?"input-rtl":"input-ltr",t);return`${a.startSeparator}${l}${a.endSeparator}`}).join("");return r?`⁦${s}⁩`:s},e$=(e,t,r)=>{const o=e.date(void 0,r),s=e.endOfYear(o),a=e.endOfDay(o),{maxDaysInMonth:l,longestMonth:i}=sf(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:r0(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:c!=null&&e.isValid(c)?e.getDaysInMonth(c):l,longestMonth:i}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=Di(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(a);return Ln(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Ln(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let o0=!1;const s0=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!o0){const r=["empty"];["date","date-time"].includes(t)&&r.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&r.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!r.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${r.join('", "')}"]\`.`),o0=!0)}},t$=(e,t,r,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const s=Di(e,t.format),a=e.formatByString(r,t.format),l=s.indexOf(a),c=s.indexOf(t.value)-l;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const s=e.getHours(r)<12,a=e.getHours(o);return s&&a>=12?e.addHours(o,-12):!s&&a<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}},a0={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},i0=(e,t,r,o,s)=>[...r].sort((a,l)=>a0[a.type]-a0[l.type]).reduce((a,l)=>!s||l.modified?t$(e,l,t,a):a,o),r$=()=>navigator.userAgent.toLowerCase().includes("android"),n$=(e,t)=>{const r={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,h=u===e.length-1?null:u+1;r[u]={leftIndex:d,rightIndex:h}}),{neighbors:r,startIndex:0,endIndex:e.length-1};const o={},s={};let a=0,l=0,i=e.length-1;for(;i>=0;){l=e.findIndex((c,u)=>{var d;return u>=a&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),l===-1&&(l=e.length-1);for(let c=l;c>=a;c-=1)s[c]=i,o[i]=c,i-=1;a=l+1}return e.forEach((c,u)=>{const d=s[u],h=d===0?null:o[d-1],m=d===e.length-1?null:o[d+1];r[u]={leftIndex:h,rightIndex:m}}),{neighbors:r,startIndex:o[0],endIndex:o[e.length-1]}},df=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const r=t.findIndex(o=>o.type===e);return r===-1?null:r}return e},o$=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const r=t.parse(e.value,e.format);return r?t.format(r,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},s$=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const r=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return r?t.getHours(r)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const r=t.parse(e.value,e.format);return r?t.getMonth(r)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},a$=["value","referenceDate"],tr={emptyValue:null,getTodayValue:af,getInitialReferenceValue:e=>{let{value:t,referenceDate:r}=e,o=Ue(e,a$);return t!=null&&o.utils.isValid(t)?t:r??HR(o)},cleanValue:FR,areValuesEqual:LR,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,r)=>r==null?null:e.setTimezone(r,t)},i$={updateReferenceValue:(e,t,r)=>t==null||!e.isValid(t)?r:t,getSectionsFromValue:(e,t,r,o)=>!e.isValid(t)&&!!r?r:o(t),getV7HiddenInputValueFromSections:ZR,getV6InputValueFromSections:QR,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:r=>r,getNewValuesFromNewActiveDate:r=>({value:r,referenceValue:r==null||!e.isValid(r)?t.referenceValue:r})}),parseValueStr:(e,t,r)=>r(e.trim(),t)},ff=({props:e,value:t,timezone:r,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:s,shouldDisableMonth:a,shouldDisableYear:l,disablePast:i,disableFuture:c}=e,u=o.utils.date(void 0,r),d=kr(o.utils,e.minDate,o.defaultDates.minDate),h=kr(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(s&&s(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(l&&l(t)):return"shouldDisableYear";case!!(c&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(i&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(d&&o.utils.isBeforeDay(t,d)):return"minDate";case!!(h&&o.utils.isAfterDay(t,h)):return"maxDate";default:return null}};ff.valueManager=tr;const l0=({adapter:e,value:t,timezone:r,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:a,minutesStep:l,shouldDisableTime:i,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,h=e.utils.date(void 0,r),m=ys(c,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(s&&m(s,t)):return"minTime";case!!(a&&m(t,a)):return"maxTime";case!!(d&&e.utils.isAfter(t,h)):return"disableFuture";case!!(u&&e.utils.isBefore(t,h)):return"disablePast";case!!(i&&i(t,"hours")):return"shouldDisableTime-hours";case!!(i&&i(t,"minutes")):return"shouldDisableTime-minutes";case!!(i&&i(t,"seconds")):return"shouldDisableTime-seconds";case!!(l&&e.utils.getMinutes(t)%l!==0):return"minutesStep";default:return null}};l0.valueManager=tr;const Mi=({adapter:e,value:t,timezone:r,props:o})=>{const s=ff({adapter:e,value:t,timezone:r,props:o});return s!==null?s:l0({adapter:e,value:t,timezone:r,props:o})};Mi.valueManager=tr;const c0=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],u0=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],d0=["minDateTime","maxDateTime"],l$=[...c0,...u0,...d0],f0=e=>l$.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{}),c$=["localeText"],ji=E.createContext(null);process.env.NODE_ENV!=="production"&&(ji.displayName="MuiPickersAdapterContext");const pf=function(t){const{localeText:r}=t,o=Ue(t,c$),{utils:s,localeText:a}=E.useContext(ji)??{utils:void 0,localeText:void 0},l=ht({props:o,name:"MuiLocalizationProvider"}),{children:i,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:h,localeText:m}=l,g=E.useMemo(()=>re({},m,a,r),[m,a,r]),w=E.useMemo(()=>{if(!c)return s||null;const v=new c({locale:h,formats:u,instance:d});if(!v.isMUIAdapter)throw new Error(["MUI X: 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(`
220
- `));return v},[c,h,u,d,s]),f=E.useMemo(()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null,[w]),y=E.useMemo(()=>({utils:w,defaultDates:f,localeText:g}),[f,w,g]);return R.jsx(ji.Provider,{value:y,children:i})};process.env.NODE_ENV!=="production"&&(pf.propTypes={adapterLocale:n.any,children:n.node,dateAdapter:n.func,dateFormats:n.shape({dayOfMonth:n.string,dayOfMonthFull:n.string,fullDate:n.string,fullTime:n.string,fullTime12h:n.string,fullTime24h:n.string,hours12h:n.string,hours24h:n.string,keyboardDate:n.string,keyboardDateTime:n.string,keyboardDateTime12h:n.string,keyboardDateTime24h:n.string,meridiem:n.string,minutes:n.string,month:n.string,monthShort:n.string,normalDate:n.string,normalDateWithWeekday:n.string,seconds:n.string,shortDate:n.string,weekday:n.string,weekdayShort:n.string,year:n.string}),dateLibInstance:n.any,localeText:n.object});const u$=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:re({},e)}}}}),p0=e=>{const{utils:t,formatKey:r,contextTranslation:o,propsTranslation:s}=e;return a=>{const l=a!==null&&t.isValid(a)?t.format(a,r):null;return(s??o)(a,t,l)}},h0={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",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",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,r,o)=>`Select ${e}. ${!o&&(t===null||!r.isValid(t))?"No time selected":`Selected time is ${o??r.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,r)=>r||e!==null&&t.isValid(e)?`Choose date, selected date is ${r??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,r)=>r||e!==null&&t.isValid(e)?`Choose time, selected time is ${r??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",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",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},d$=h0;u$(h0);const qn=()=>{const e=E.useContext(ji);if(e===null)throw new Error(["MUI X: 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(`
221
- `));if(e.utils===null)throw new Error(["MUI X: 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(`
222
- `));const t=E.useMemo(()=>re({},d$,e.localeText),[e.localeText]);return E.useMemo(()=>re({},e,{localeText:t}),[e,t])},xt=()=>qn().utils,vs=()=>qn().defaultDates,Bn=e=>{const t=xt(),r=E.useRef(void 0);return r.current===void 0&&(r.current=t.date(void 0,e)),r.current};function m0(e){const{props:t,validator:r,value:o,timezone:s,onError:a}=e,l=qn(),i=E.useRef(r.valueManager.defaultErrorState),c=r({adapter:l,value:o,timezone:s,props:t}),u=r.valueManager.hasError(c);E.useEffect(()=>{a&&!r.valueManager.isSameError(c,i.current)&&a(c,o),i.current=c},[r,a,c,o]);const d=Re(h=>r({adapter:l,value:h,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const ur=()=>qn().localeText,f$=({utils:e,format:t})=>{let r=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),r-=1,r<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return s},p$=({utils:e,expandedFormat:t})=>{const r=[],{start:o,end:s}=e.escapedCharacters,a=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let l=null;for(;l=a.exec(t);)r.push({start:l.index,end:a.lastIndex-1});return r},h$=(e,t,r,o)=>{switch(r.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:r.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:r.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},m$=({utils:e,date:t,shouldRespectLeadingZeros:r,localeText:o,localizedDigits:s,now:a,token:l,startSeparator:i})=>{if(l==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=lf(e,l),u=n0(e,c.contentType,c.type,l),d=r?u:c.contentType==="digit",h=t!=null&&e.isValid(t);let m=h?e.formatByString(t,l):"",g=null;if(d)if(u)g=m===""?e.formatByString(a,l).length:m.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${l} should have a 'maxDigitNumber' property on it's adapter`);g=c.maxLength,h&&(m=cf(Qv(Ln(m,s),g),s))}return re({},c,{format:l,maxLength:g,value:m,placeholder:h$(e,o,c,l),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:i,endSeparator:"",modified:!1})},g$=e=>{var g;const{utils:t,expandedFormat:r,escapedParts:o}=e,s=t.date(void 0),a=[];let l="";const i=Object.keys(t.formatTokenMap).sort((w,f)=>f.length-w.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${i.join("|")})*$`),d=new RegExp(`^(${i.join("|")})`),h=w=>o.find(f=>f.start<=w&&f.end>=w);let m=0;for(;m<r.length;){const w=h(m),f=w!=null,y=(g=c.exec(r.slice(m)))==null?void 0:g[1];if(!f&&y!=null&&u.test(y)){let v=y;for(;v.length>0;){const p=d.exec(v)[1];v=v.slice(p.length),a.push(m$(re({},e,{now:s,token:p,startSeparator:l}))),l=""}m+=y.length}else{const v=r[m];f&&(w==null?void 0:w.start)===m||(w==null?void 0:w.end)===m||(a.length===0?l+=v:a[a.length-1].endSeparator+=v),m+=1}}return a.length===0&&l.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:l,endSeparator:"",modified:!1}),a},y$=({isRtl:e,formatDensity:t,sections:r})=>r.map(o=>{const s=a=>{let l=a;return e&&l!==null&&l.includes(" ")&&(l=`⁩${l}⁦`),t==="spacious"&&["/",".","-"].includes(l)&&(l=` ${l} `),l};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),g0=e=>{let t=f$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const r=p$(re({},e,{expandedFormat:t})),o=g$(re({},e,{expandedFormat:t,escapedParts:r}));return y$(re({},e,{sections:o}))},hf=({timezone:e,value:t,defaultValue:r,referenceDate:o,onChange:s,valueManager:a})=>{const l=xt(),i=E.useRef(r),c=t??i.current??a.emptyValue,u=E.useMemo(()=>a.getTimezone(l,c),[l,a,c]),d=Re(w=>u==null?w:a.setTimezone(l,u,w));let h;e?h=e:u?h=u:o?h=l.getTimezone(o):h="default";const m=E.useMemo(()=>a.setTimezone(l,h,c),[a,l,h,c]),g=Re((w,...f)=>{const y=d(w);s==null||s(y,...f)});return{value:m,handleValueChange:g,timezone:h}},ho=({name:e,timezone:t,value:r,defaultValue:o,referenceDate:s,onChange:a,valueManager:l})=>{const[i,c]=cr({name:e,state:"value",controlled:r,default:o??l.emptyValue}),u=Re((d,...h)=>{c(d),a==null||a(d,...h)});return hf({timezone:t,value:i,defaultValue:void 0,referenceDate:s,onChange:u,valueManager:l})},b$=e=>{const t=xt(),r=ur(),o=qn(),s=Qt(),{valueManager:a,fieldValueManager:l,valueType:i,validator:c,internalProps:u,internalProps:{value:d,defaultValue:h,referenceDate:m,onChange:g,format:w,formatDensity:f="dense",selectedSections:y,onSelectedSectionsChange:v,shouldRespectLeadingZeros:p=!1,timezone:b,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:S,value:C,handleValueChange:O}=hf({timezone:b,value:d,defaultValue:h,referenceDate:m,onChange:g,valueManager:a}),k=E.useMemo(()=>GR(t),[t]),_=E.useMemo(()=>e$(t,k,S),[t,k,S]),T=E.useCallback((I,U=null)=>l.getSectionsFromValue(t,I,U,Q=>g0({utils:t,localeText:r,localizedDigits:k,format:w,date:Q,formatDensity:f,shouldRespectLeadingZeros:p,enableAccessibleFieldDOMStructure:x,isRtl:s})),[l,w,r,k,s,p,t,f,x]),[P,D]=E.useState(()=>{const I=T(C);s0(I,i);const U={sections:I,value:C,referenceValue:a.emptyValue,tempValueStrAndroid:null},Q=WR(I),W=a.getInitialReferenceValue({referenceDate:m,value:C,utils:t,props:u,granularity:Q,timezone:S});return re({},U,{referenceValue:W})}),[V,M]=cr({controlled:y,default:null,name:"useField",state:"selectedSections"}),N=I=>{M(I),v==null||v(I)},F=E.useMemo(()=>df(V,P.sections),[V,P.sections]),K=F==="all"?0:F,H=({value:I,referenceValue:U,sections:Q})=>{if(D(ee=>re({},ee,{sections:Q,value:I,referenceValue:U,tempValueStrAndroid:null})),a.areValuesEqual(t,P.value,I))return;const W={validationError:c({adapter:o,value:I,timezone:S,props:u})};O(I,W)},Z=(I,U)=>{const Q=[...P.sections];return Q[I]=re({},Q[I],{value:U,modified:!0}),Q},L=()=>{H({value:a.emptyValue,referenceValue:P.referenceValue,sections:T(a.emptyValue)})},j=()=>{if(K==null)return;const I=P.sections[K],U=l.getActiveDateManager(t,P,I),W=U.getSections(P.sections).filter(A=>A.value!=="").length===(I.value===""?0:1),ee=Z(K,""),ne=W?null:t.getInvalidDate(),B=U.getNewValuesFromNewActiveDate(ne);H(re({},B,{sections:ee}))},Y=I=>{const U=(ee,ne)=>{const B=t.parse(ee,w);if(B==null||!t.isValid(B))return null;const A=g0({utils:t,localeText:r,localizedDigits:k,format:w,date:B,formatDensity:f,shouldRespectLeadingZeros:p,enableAccessibleFieldDOMStructure:x,isRtl:s});return i0(t,B,A,ne,!1)},Q=l.parseValueStr(I,P.referenceValue,U),W=l.updateReferenceValue(t,Q,P.referenceValue);H({value:Q,referenceValue:W,sections:T(Q,P.sections)})},q=({activeSection:I,newSectionValue:U,shouldGoToNextSection:Q})=>{Q&&K<P.sections.length-1&&N(K+1);const W=l.getActiveDateManager(t,P,I),ee=Z(K,U),ne=W.getSections(ee),B=JR(t,ne,k);let A,z;if(B!=null&&t.isValid(B)){const X=i0(t,B,ne,W.referenceDate,!0);A=W.getNewValuesFromNewActiveDate(X),z=!0}else A=W.getNewValuesFromNewActiveDate(B),z=(B!=null&&!t.isValid(B))!=(W.date!=null&&!t.isValid(W.date));return z?H(re({},A,{sections:ee})):D(X=>re({},X,A,{sections:ee,tempValueStrAndroid:null}))},$=I=>D(U=>re({},U,{tempValueStrAndroid:I}));return E.useEffect(()=>{const I=T(P.value);s0(I,i),D(U=>re({},U,{sections:I}))},[w,t.locale,s]),E.useEffect(()=>{let I;a.areValuesEqual(t,P.value,C)?I=a.getTimezone(t,P.value)!==a.getTimezone(t,C):I=!0,I&&D(U=>re({},U,{value:C,referenceValue:l.updateReferenceValue(t,C,U.referenceValue),sections:T(C)}))},[C]),{state:P,activeSectionIndex:K,parsedSelectedSections:F,setSelectedSections:N,clearValue:L,clearActiveSection:j,updateSectionValue:q,updateValueFromValueStr:Y,setTempAndroidValueStr:$,getSectionsFromValue:T,sectionsValueBoundaries:_,localizedDigits:k,timezone:S}},v$=5e3,mo=e=>e.saveQuery!=null,w$=({sections:e,updateSectionValue:t,sectionsValueBoundaries:r,localizedDigits:o,setTempAndroidValueStr:s,timezone:a})=>{const l=xt(),[i,c]=E.useState(null),u=Re(()=>c(null));E.useEffect(()=>{var w;i!=null&&((w=e[i.sectionIndex])==null?void 0:w.type)!==i.sectionType&&u()},[e,i,u]),E.useEffect(()=>{if(i!=null){const w=setTimeout(()=>u(),v$);return()=>{clearTimeout(w)}}return()=>{}},[i,u]);const d=({keyPressed:w,sectionIndex:f},y,v)=>{const p=w.toLowerCase(),b=e[f];if(i!=null&&(!v||v(i.value))&&i.sectionIndex===f){const S=`${i.value}${p}`,C=y(S,b);if(!mo(C))return c({sectionIndex:f,value:S,sectionType:b.type}),C}const x=y(p,b);return mo(x)&&!x.saveQuery?(u(),null):(c({sectionIndex:f,value:p,sectionType:b.type}),mo(x)?null:x)},h=w=>{const f=(p,b,x)=>{const S=b.filter(C=>C.toLowerCase().startsWith(x));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},y=(p,b,x,S)=>{const C=O=>Xv(l,a,b.type,O);if(b.contentType==="letter")return f(b.format,C(b.format),p);if(x&&S!=null&&lf(l,x).contentType==="letter"){const O=C(x),k=f(x,O,p);return mo(k)?{saveQuery:!1}:re({},k,{sectionValue:S(k.sectionValue,O)})}return{saveQuery:!1}};return d(w,(p,b)=>{switch(b.type){case"month":{const x=S=>t0(l,S,l.formats.month,b.format);return y(p,b,l.formats.month,x)}case"weekDay":{const x=(S,C)=>C.indexOf(S).toString();return y(p,b,l.formats.weekday,x)}case"meridiem":return y(p,b);default:return{saveQuery:!1}}})},m=w=>{const f=(v,p)=>{const b=Ln(v,o),x=Number(b),S=r[p.type]({currentDate:null,format:p.format,contentType:p.contentType});if(x>S.maximum)return{saveQuery:!1};if(x<S.minimum)return{saveQuery:!0};const C=x*10>S.maximum||b.length===S.maximum.toString().length;return{sectionValue:e0(l,x,S,o,p),shouldGoToNextSection:C}};return d(w,(v,p)=>{if(p.contentType==="digit"||p.contentType==="digit-with-letter")return f(v,p);if(p.type==="month"){n0(l,"digit","month","MM");const b=f(v,{type:p.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(mo(b))return b;const x=t0(l,b.sectionValue,"MM",p.format);return re({},b,{sectionValue:x})}if(p.type==="weekDay"){const b=f(v,p);if(mo(b))return b;const x=Di(l,p.format)[Number(b.sectionValue)-1];return re({},b,{sectionValue:x})}return{saveQuery:!1}},v=>Zv(v,o))};return{applyCharacterEditing:Re(w=>{const f=e[w.sectionIndex],v=Zv(w.keyPressed,o)?m(re({},w,{keyPressed:cf(w.keyPressed,o)})):h(w);if(v==null){s(null);return}t({activeSection:f,newSectionValue:v.sectionValue,shouldGoToNextSection:v.shouldGoToNextSection})}),resetCharacterQuery:u}};function x$(e,t){return Array.isArray(t)?t.every(r=>e.indexOf(r)!==-1):e.indexOf(t)!==-1}const S$=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},sr=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?sr(t.shadowRoot):t:null},Ni=e=>Array.from(e.children).indexOf(sr(document)),C$="@media (pointer: fine)",T$=e=>{const{internalProps:{disabled:t,readOnly:r=!1},forwardedProps:{sectionListRef:o,onBlur:s,onClick:a,onFocus:l,onInput:i,onPaste:c,focused:u,autoFocus:d=!1},fieldValueManager:h,applyCharacterEditing:m,resetCharacterQuery:g,setSelectedSections:w,parsedSelectedSections:f,state:y,clearActiveSection:v,clearValue:p,updateSectionValue:b,updateValueFromValueStr:x,sectionOrder:S,areAllSectionsEmpty:C,sectionsValueBoundaries:O}=e,k=E.useRef(null),_=ft(o,k),T=ur(),P=xt(),D=mr(),[V,M]=E.useState(!1),N=E.useMemo(()=>({syncSelectionToDOM:()=>{if(!k.current)return;const z=document.getSelection();if(!z)return;if(f==null){z.rangeCount>0&&k.current.getRoot().contains(z.getRangeAt(0).startContainer)&&z.removeAllRanges(),V&&k.current.getRoot().blur();return}if(!k.current.getRoot().contains(sr(document)))return;const X=new window.Range;let te;f==="all"?te=k.current.getRoot():y.sections[f].type==="empty"?te=k.current.getSectionContainer(f):te=k.current.getSectionContent(f),X.selectNodeContents(te),te.focus(),z.removeAllRanges(),z.addRange(X)},getActiveSectionIndexFromDOM:()=>{const z=sr(document);return!z||!k.current||!k.current.getRoot().contains(z)?null:k.current.getSectionIndexFromDOMElement(z)},focusField:(z=0)=>{if(!k.current||N.getActiveSectionIndexFromDOM()!=null)return;const X=df(z,y.sections);M(!0),k.current.getSectionContent(X).focus()},setSelectedSections:z=>{if(!k.current)return;const X=df(z,y.sections);M((X==="all"?0:X)!==null),w(z)},isFieldFocused:()=>{const z=sr(document);return!!k.current&&k.current.getRoot().contains(z)}}),[f,w,y.sections,V]),F=Re(z=>{if(!k.current)return;const X=y.sections[z];k.current.getSectionContent(z).innerHTML=X.value||X.placeholder,N.syncSelectionToDOM()}),K=Re((z,...X)=>{z.isDefaultPrevented()||!k.current||(M(!0),a==null||a(z,...X),f==="all"?setTimeout(()=>{const te=document.getSelection().getRangeAt(0).startOffset;if(te===0){w(S.startIndex);return}let ae=0,J=0;for(;J<te&&ae<y.sections.length;){const fe=y.sections[ae];ae+=1,J+=`${fe.startSeparator}${fe.value||fe.placeholder}${fe.endSeparator}`.length}w(ae-1)}):V?k.current.getRoot().contains(z.target)||w(S.startIndex):(M(!0),w(S.startIndex)))}),H=Re(z=>{if(i==null||i(z),!k.current||f!=="all")return;const te=z.target.textContent??"";k.current.getRoot().innerHTML=y.sections.map(ae=>`${ae.startSeparator}${ae.value||ae.placeholder}${ae.endSeparator}`).join(""),N.syncSelectionToDOM(),te.length===0||te.charCodeAt(0)===10?(g(),p(),w("all")):te.length>1?x(te):(f==="all"&&w(0),m({keyPressed:te,sectionIndex:0}))}),Z=Re(z=>{if(c==null||c(z),r||f!=="all"){z.preventDefault();return}const X=z.clipboardData.getData("text");z.preventDefault(),g(),x(X)}),L=Re((...z)=>{if(l==null||l(...z),V||!k.current)return;M(!0),k.current.getSectionIndexFromDOMElement(sr(document))!=null||w(S.startIndex)}),j=Re((...z)=>{s==null||s(...z),setTimeout(()=>{if(!k.current)return;const X=sr(document);!k.current.getRoot().contains(X)&&(M(!1),w(null))})}),Y=Re(z=>X=>{X.isDefaultPrevented()||w(z)}),q=Re(z=>{z.preventDefault()}),$=Re(z=>()=>{w(z)}),I=Re(z=>{if(z.preventDefault(),r||t||typeof f!="number")return;const X=y.sections[f],te=z.clipboardData.getData("text"),ae=/^[a-zA-Z]+$/.test(te),J=/^[0-9]+$/.test(te),fe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);X.contentType==="letter"&&ae||X.contentType==="digit"&&J||X.contentType==="digit-with-letter"&&fe?(g(),b({activeSection:X,newSectionValue:te,shouldGoToNextSection:!0})):!ae&&!J&&(g(),x(te))}),U=Re(z=>{z.preventDefault(),z.dataTransfer.dropEffect="none"}),Q=Re(z=>{if(!k.current)return;const X=z.target,te=X.textContent??"",ae=k.current.getSectionIndexFromDOMElement(X),J=y.sections[ae];if(r||!k.current){F(ae);return}if(te.length===0){if(J.value===""){F(ae);return}const fe=z.nativeEvent.inputType;if(fe==="insertParagraph"||fe==="insertLineBreak"){F(ae);return}g(),v();return}m({keyPressed:te,sectionIndex:ae}),F(ae)});qt(()=>{if(!(!V||!k.current)){if(f==="all")k.current.getRoot().focus();else if(typeof f=="number"){const z=k.current.getSectionContent(f);z&&z.focus()}}},[f,V]);const W=E.useMemo(()=>y.sections.reduce((z,X)=>(z[X.type]=O[X.type]({currentDate:null,contentType:X.contentType,format:X.format}),z),{}),[O,y.sections]),ee=f==="all",ne=E.useMemo(()=>y.sections.map((z,X)=>{const te=!ee&&!t&&!r;return{container:{"data-sectionindex":X,onClick:Y(X)},content:{tabIndex:ee||X>0?-1:0,contentEditable:!ee&&!t&&!r,role:"spinbutton",id:`${D}-${z.type}`,"aria-labelledby":`${D}-${z.type}`,"aria-readonly":r,"aria-valuenow":s$(z,P),"aria-valuemin":W[z.type].minimum,"aria-valuemax":W[z.type].maximum,"aria-valuetext":z.value?o$(z,P):T.empty,"aria-label":T[z.type],"aria-disabled":t,spellCheck:te?!1:void 0,autoCapitalize:te?"off":void 0,autoCorrect:te?"off":void 0,[parseInt(E.version,10)>=17?"enterKeyHint":"enterkeyhint"]:te?"next":void 0,children:z.value||z.placeholder,onInput:Q,onPaste:I,onFocus:$(X),onDragOver:U,onMouseUp:q,inputMode:z.contentType==="letter"?"text":"numeric"},before:{children:z.startSeparator},after:{children:z.endSeparator}}}),[y.sections,$,I,U,Q,Y,q,t,r,ee,T,P,W,D]),B=Re(z=>{x(z.target.value)}),A=E.useMemo(()=>C?"":h.getV7HiddenInputValueFromSections(y.sections),[C,y.sections,h]);return E.useEffect(()=>{if(k.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
223
- `));d&&k.current&&k.current.getSectionContent(S.startIndex).focus()},[]),{interactions:N,returnedValue:{autoFocus:d,readOnly:r,focused:u??V,sectionListRef:_,onBlur:j,onClick:K,onFocus:L,onInput:H,onPaste:Z,enableAccessibleFieldDOMStructure:!0,elements:ne,tabIndex:f===0?-1:0,contentEditable:ee,value:A,onChange:B,areAllSectionsEmpty:C}}},go=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),O$=(e,t,r)=>{let o=0,s=r?1:0;const a=[];for(let l=0;l<e.length;l+=1){const i=e[l],c=uf(i,r?"input-rtl":"input-ltr",t),u=`${i.startSeparator}${c}${i.endSeparator}`,d=go(u).length,h=u.length,m=go(c),g=s+(m===""?0:c.indexOf(m[0]))+i.startSeparator.length,w=g+m.length;a.push(re({},i,{start:o,end:o+d,startInInput:g,endInInput:w})),o+=d,s+=h}return a},P$=e=>{const t=Qt(),r=E.useRef(void 0),o=E.useRef(void 0),{forwardedProps:{onFocus:s,onClick:a,onPaste:l,onBlur:i,inputRef:c,placeholder:u},internalProps:{readOnly:d=!1,disabled:h=!1},parsedSelectedSections:m,activeSectionIndex:g,state:w,fieldValueManager:f,valueManager:y,applyCharacterEditing:v,resetCharacterQuery:p,updateSectionValue:b,updateValueFromValueStr:x,clearActiveSection:S,clearValue:C,setTempAndroidValueStr:O,setSelectedSections:k,getSectionsFromValue:_,areAllSectionsEmpty:T,localizedDigits:P}=e,D=E.useRef(null),V=ft(c,D),M=E.useMemo(()=>O$(w.sections,P,t),[w.sections,P,t]),N=E.useMemo(()=>({syncSelectionToDOM:()=>{if(!D.current)return;if(m==null){D.current.scrollLeft&&(D.current.scrollLeft=0);return}if(D.current!==sr(document))return;const Q=D.current.scrollTop;if(m==="all")D.current.select();else{const W=M[m],ee=W.type==="empty"?W.startInInput-W.startSeparator.length:W.startInInput,ne=W.type==="empty"?W.endInInput+W.endSeparator.length:W.endInInput;(ee!==D.current.selectionStart||ne!==D.current.selectionEnd)&&D.current===sr(document)&&D.current.setSelectionRange(ee,ne),clearTimeout(o.current),o.current=setTimeout(()=>{D.current&&D.current===sr(document)&&D.current.selectionStart===D.current.selectionEnd&&(D.current.selectionStart!==ee||D.current.selectionEnd!==ne)&&N.syncSelectionToDOM()})}D.current.scrollTop=Q},getActiveSectionIndexFromDOM:()=>{const Q=D.current.selectionStart??0,W=D.current.selectionEnd??0;if(Q===0&&W===0)return null;const ee=Q<=M[0].startInInput?1:M.findIndex(ne=>ne.startInInput-ne.startSeparator.length>Q);return ee===-1?M.length-1:ee-1},focusField:(Q=0)=>{var W;sr(document)!==D.current&&((W=D.current)==null||W.focus(),k(Q))},setSelectedSections:Q=>k(Q),isFieldFocused:()=>D.current===sr(document)}),[D,m,M,k]),F=()=>{const Q=D.current.selectionStart??0;let W;Q<=M[0].startInInput||Q>=M[M.length-1].endInInput?W=1:W=M.findIndex(ne=>ne.startInInput-ne.startSeparator.length>Q);const ee=W===-1?M.length-1:W-1;k(ee)},K=Re((...Q)=>{s==null||s(...Q);const W=D.current;clearTimeout(r.current),r.current=setTimeout(()=>{!W||W!==D.current||g==null&&(W.value.length&&Number(W.selectionEnd)-Number(W.selectionStart)===W.value.length?k("all"):F())})}),H=Re((Q,...W)=>{Q.isDefaultPrevented()||(a==null||a(Q,...W),F())}),Z=Re(Q=>{if(l==null||l(Q),Q.preventDefault(),d||h)return;const W=Q.clipboardData.getData("text");if(typeof m=="number"){const ee=w.sections[m],ne=/^[a-zA-Z]+$/.test(W),B=/^[0-9]+$/.test(W),A=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(W);if(ee.contentType==="letter"&&ne||ee.contentType==="digit"&&B||ee.contentType==="digit-with-letter"&&A){p(),b({activeSection:ee,newSectionValue:W,shouldGoToNextSection:!0});return}if(ne||B)return}p(),x(W)}),L=Re((...Q)=>{i==null||i(...Q),k(null)}),j=Re(Q=>{if(d)return;const W=Q.target.value;if(W===""){p(),C();return}const ee=Q.nativeEvent.data,ne=ee&&ee.length>1,B=ne?ee:W,A=go(B);if(m==="all"&&k(g),g==null||ne){x(ne?ee:A);return}let z;if(m==="all"&&A.length===1)z=A;else{const X=go(f.getV6InputValueFromSections(M,P,t));let te=-1,ae=-1;for(let ge=0;ge<X.length;ge+=1)te===-1&&X[ge]!==A[ge]&&(te=ge),ae===-1&&X[X.length-ge-1]!==A[A.length-ge-1]&&(ae=ge);const J=M[g];if(te<J.start||X.length-ae-1>J.end)return;const le=A.length-X.length+J.end-go(J.endSeparator||"").length;z=A.slice(J.start+go(J.startSeparator||"").length,le)}if(z.length===0){r$()&&O(B),p(),S();return}v({keyPressed:z,sectionIndex:g})}),Y=E.useMemo(()=>u!==void 0?u:f.getV6InputValueFromSections(_(y.emptyValue),P,t),[u,f,_,y.emptyValue,P,t]),q=E.useMemo(()=>w.tempValueStrAndroid??f.getV6InputValueFromSections(w.sections,P,t),[w.sections,f,w.tempValueStrAndroid,P,t]);E.useEffect(()=>(D.current&&D.current===sr(document)&&k("all"),()=>{clearTimeout(r.current),clearTimeout(o.current)}),[]);const $=E.useMemo(()=>g==null||w.sections[g].contentType==="letter"?"text":"numeric",[g,w.sections]),U=!(D.current&&D.current===sr(document))&&T;return{interactions:N,returnedValue:{readOnly:d,onBlur:L,onClick:H,onFocus:K,onPaste:Z,inputRef:V,enableAccessibleFieldDOMStructure:!1,placeholder:Y,inputMode:$,autoComplete:"off",value:U?"":q,onChange:j}}},E$=e=>{const t=xt(),{internalProps:r,internalProps:{unstableFieldRef:o,minutesStep:s,enableAccessibleFieldDOMStructure:a=!1,disabled:l=!1,readOnly:i=!1},forwardedProps:{onKeyDown:c,error:u,clearable:d,onClear:h},fieldValueManager:m,valueManager:g,validator:w}=e,f=Qt(),y=b$(e),{state:v,activeSectionIndex:p,parsedSelectedSections:b,setSelectedSections:x,clearValue:S,clearActiveSection:C,updateSectionValue:O,setTempAndroidValueStr:k,sectionsValueBoundaries:_,localizedDigits:T,timezone:P}=y,D=w$({sections:v.sections,updateSectionValue:O,sectionsValueBoundaries:_,localizedDigits:T,setTempAndroidValueStr:k,timezone:P}),{resetCharacterQuery:V}=D,M=g.areValuesEqual(t,v.value,g.emptyValue),N=a?T$:P$,F=E.useMemo(()=>n$(v.sections,f&&!a),[v.sections,f,a]),{returnedValue:K,interactions:H}=N(re({},e,y,D,{areAllSectionsEmpty:M,sectionOrder:F})),Z=Re(I=>{if(c==null||c(I),!l)switch(!0){case((I.ctrlKey||I.metaKey)&&String.fromCharCode(I.keyCode)==="A"&&!I.shiftKey&&!I.altKey):{I.preventDefault(),x("all");break}case I.key==="ArrowRight":{if(I.preventDefault(),b==null)x(F.startIndex);else if(b==="all")x(F.endIndex);else{const U=F.neighbors[b].rightIndex;U!==null&&x(U)}break}case I.key==="ArrowLeft":{if(I.preventDefault(),b==null)x(F.endIndex);else if(b==="all")x(F.startIndex);else{const U=F.neighbors[b].leftIndex;U!==null&&x(U)}break}case I.key==="Delete":{if(I.preventDefault(),i)break;b==null||b==="all"?S():C(),V();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(I.key):{if(I.preventDefault(),i||p==null)break;b==="all"&&x(p);const U=v.sections[p],Q=m.getActiveDateManager(t,v,U),W=XR(t,P,U,I.key,_,T,Q.date,{minutesStep:s});O({activeSection:U,newSectionValue:W,shouldGoToNextSection:!1});break}}});qt(()=>{H.syncSelectionToDOM()});const{hasValidationError:L}=m0({props:r,validator:w,timezone:P,value:v.value,onError:r.onError}),j=E.useMemo(()=>u!==void 0?u:L,[L,u]);E.useEffect(()=>{!j&&p==null&&V()},[v.referenceValue,p,j]),E.useEffect(()=>{v.tempValueStrAndroid!=null&&p!=null&&(V(),C())},[v.sections]),E.useImperativeHandle(o,()=>({getSections:()=>v.sections,getActiveSectionIndex:H.getActiveSectionIndexFromDOM,setSelectedSections:H.setSelectedSections,focusField:H.focusField,isFieldFocused:H.isFieldFocused}));const Y=Re((I,...U)=>{I.preventDefault(),h==null||h(I,...U),S(),H.isFieldFocused()?x(F.startIndex):H.focusField(0)}),q={onKeyDown:Z,onClear:Y,error:j,clearable:!!(d&&!M&&!i&&!l)},$={disabled:l,readOnly:i};return re({},e.forwardedProps,q,$,K)};function k$(e){return Ie("MuiCircularProgress",e)}ke("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Cn=44,mf=Zr.keyframes`
142
+ `,mv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=A.useState([]),d=A.useRef(0),m=A.useRef(null);A.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=A.useRef(!1),y=gg(),g=A.useRef(null),f=A.useRef(null),b=A.useCallback(S=>{const{pulsate:w,rippleX:E,rippleY:x,rippleSize:P,cb:k}=S;u(j=>[...j,F.jsx(dC,{classes:{ripple:xe(a.ripple,or.ripple),rippleVisible:xe(a.rippleVisible,or.rippleVisible),ripplePulsate:xe(a.ripplePulsate,or.ripplePulsate),child:xe(a.child,or.child),childLeaving:xe(a.childLeaving,or.childLeaving),childPulsate:xe(a.childPulsate,or.childPulsate)},timeout:Mu,pulsate:w,rippleX:E,rippleY:x,rippleSize:P},d.current)]),d.current+=1,m.current=k},[a]),v=A.useCallback((S={},w={},E=()=>{})=>{const{pulsate:x=!1,center:P=i||w.pulsate,fakeElement:k=!1}=w;if(S?.type==="mousedown"&&h.current){h.current=!1;return}S?.type==="touchstart"&&(h.current=!0);const j=k?null:f.current,R=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,D,N;if(P||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)O=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:U,clientY:W}=S.touches&&S.touches.length>0?S.touches[0]:S;O=Math.round(U-R.left),D=Math.round(W-R.top)}if(P)N=Math.sqrt((2*R.width**2+R.height**2)/3),N%2===0&&(N+=1);else{const U=Math.max(Math.abs((j?j.clientWidth:0)-O),O)*2+2,W=Math.max(Math.abs((j?j.clientHeight:0)-D),D)*2+2;N=Math.sqrt(U**2+W**2)}S?.touches?g.current===null&&(g.current=()=>{b({pulsate:x,rippleX:O,rippleY:D,rippleSize:N,cb:E})},y.start(aC,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:x,rippleX:O,rippleY:D,rippleSize:N,cb:E})},[i,b,y]),p=A.useCallback(()=>{v({},{pulsate:!0})},[v]),_=A.useCallback((S,w)=>{if(y.clear(),S?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{_(S,w)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),m.current=w},[y]);return A.useImperativeHandle(r,()=>({pulsate:p,start:v,stop:_}),[p,v,_]),F.jsx(uC,{className:xe(or.root,a.root,l),ref:f,...s,children:F.jsx(_u,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(mv.propTypes={center:o.bool,classes:o.object,className:o.string});function fC(e){return Fe("MuiButtonBase",e)}const pC=Le("MuiButtonBase",["root","disabled","focusVisible"]),hC=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Be({root:["root",t&&"disabled",r&&"focusVisible"]},fC,i);return r&&n&&(l.root+=` ${n}`),l},mC=me("button",{name:"MuiButtonBase",slot:"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"},[`&.${pC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fn=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:b,onContextMenu:v,onDragLeave:p,onFocus:_,onFocusVisible:S,onKeyDown:w,onKeyUp:E,onMouseDown:x,onMouseLeave:P,onMouseUp:k,onTouchEnd:j,onTouchMove:R,onTouchStart:O,tabIndex:D=0,TouchRippleProps:N,touchRippleRef:U,type:W,...le}=n,ce=A.useRef(null),ue=oC(),z=St(ue.ref,U),[C,V]=A.useState(!1);u&&C&&V(!1),A.useImperativeHandle(i,()=>({focusVisible:()=>{V(!0),ce.current.focus()}}),[]);const M=ue.shouldMount&&!d&&!u;A.useEffect(()=>{C&&h&&!d&&ue.pulsate()},[d,h,C,ue]);const T=Nr(ue,"start",x,m),$=Nr(ue,"stop",v,m),q=Nr(ue,"stop",p,m),K=Nr(ue,"stop",k,m),re=Nr(ue,"stop",he=>{C&&he.preventDefault(),P&&P(he)},m),ie=Nr(ue,"start",O,m),te=Nr(ue,"stop",j,m),L=Nr(ue,"stop",R,m),I=Nr(ue,"stop",he=>{pv(he.target)||V(!1),f&&f(he)},!1),G=ur(he=>{ce.current||(ce.current=he.currentTarget),pv(he.target)&&(V(!0),S&&S(he)),_&&_(he)}),X=()=>{const he=ce.current;return c&&c!=="button"&&!(he.tagName==="A"&&he.href)},oe=ur(he=>{h&&!he.repeat&&C&&he.key===" "&&ue.stop(he,()=>{ue.start(he)}),he.target===he.currentTarget&&X()&&he.key===" "&&he.preventDefault(),w&&w(he),he.target===he.currentTarget&&X()&&he.key==="Enter"&&!u&&(he.preventDefault(),b&&b(he))}),ye=ur(he=>{h&&he.key===" "&&C&&!he.defaultPrevented&&ue.stop(he,()=>{ue.pulsate(he)}),E&&E(he),b&&he.target===he.currentTarget&&X()&&he.key===" "&&!he.defaultPrevented&&b(he)});let ve=c;ve==="button"&&(le.href||le.to)&&(ve=g);const fe={};if(ve==="button"){const he=!!le.formAction;fe.type=W===void 0&&!he?"button":W,fe.disabled=u}else!le.href&&!le.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u);const Te=St(r,ce),be={...n,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:h,tabIndex:D,focusVisible:C},Ee=hC(be);return F.jsxs(mC,{as:ve,className:xe(Ee.root,s),ownerState:be,onBlur:I,onClick:b,onContextMenu:$,onFocus:G,onKeyDown:oe,onKeyUp:ye,onMouseDown:T,onMouseLeave:re,onMouseUp:K,onDragLeave:q,onTouchEnd:te,onTouchMove:L,onTouchStart:ie,ref:Te,tabIndex:u?-1:D,type:W,...fe,...le,children:[l,M?F.jsx(mv,{ref:z,center:a,...N}):null]})});function Nr(e,t,r,n=!1){return ur(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(fn.propTypes={action:zt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:lu,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function yC(e){return Fe("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const dr=44,Du=Or.keyframes`
224
143
  0% {
225
144
  transform: rotate(0deg);
226
145
  }
@@ -228,7 +147,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
228
147
  100% {
229
148
  transform: rotate(360deg);
230
149
  }
231
- `,gf=Zr.keyframes`
150
+ `,qu=Or.keyframes`
232
151
  0% {
233
152
  stroke-dasharray: 1px, 200px;
234
153
  stroke-dashoffset: 0;
@@ -243,36 +162,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
243
162
  stroke-dasharray: 1px, 200px;
244
163
  stroke-dashoffset: -126px;
245
164
  }
246
- `,R$=typeof mf!="string"?Zr.css`
247
- animation: ${mf} 1.4s linear infinite;
248
- `:null,$$=typeof gf!="string"?Zr.css`
249
- animation: ${gf} 1.4s ease-in-out infinite;
250
- `:null,_$=e=>{const{classes:t,variant:r,color:o,disableShrink:s}=e,a={root:["root",r,`color${Oe(o)}`],svg:["svg"],circle:["circle",`circle${Oe(r)}`,s&&"circleDisableShrink"]};return _e(a,k$,t)},I$=se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Oe(r.color)}`]]}})(Ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:R$||{animation:`${mf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),D$=se("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),M$=se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Oe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Ze(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:$$||{animation:`${gf} 1.4s ease-in-out infinite`}}]}))),yf=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:l=!1,size:i=40,style:c,thickness:u=3.6,value:d=0,variant:h="indeterminate",...m}=o,g={...o,color:a,disableShrink:l,size:i,thickness:u,value:d,variant:h},w=_$(g),f={},y={},v={};if(h==="determinate"){const p=2*Math.PI*((Cn-u)/2);f.strokeDasharray=p.toFixed(3),v["aria-valuenow"]=Math.round(d),f.strokeDashoffset=`${((100-d)/100*p).toFixed(3)}px`,y.transform="rotate(-90deg)"}return R.jsx(I$,{className:Te(w.root,s),style:{width:i,height:i,...y,...c},ownerState:g,ref:r,role:"progressbar",...v,...m,children:R.jsx(D$,{className:w.svg,ownerState:g,viewBox:`${Cn/2} ${Cn/2} ${Cn} ${Cn}`,children:R.jsx(M$,{className:w.circle,style:f,ownerState:g,cx:Cn,cy:Cn,r:(Cn-u)/2,fill:"none",strokeWidth:u})})})});process.env.NODE_ENV!=="production"&&(yf.propTypes={classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","error","info","success","warning"]),n.string]),disableShrink:Cr(n.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:n.oneOfType([n.number,n.string]),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thickness:n.number,value:n.number,variant:n.oneOf(["determinate","indeterminate"])});function j$(e){return Ie("MuiIconButton",e)}const y0=ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),N$=e=>{const{classes:t,disabled:r,color:o,edge:s,size:a,loading:l}=e,i={root:["root",l&&"loading",r&&"disabled",o!=="default"&&`color${Oe(o)}`,s&&`edge${Oe(s)}`,`size${Oe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return _e(i,j$,t)},A$=se(Ur,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Oe(r.color)}`],r.edge&&t[`edge${Oe(r.edge)}`],t[`size${Oe(r.size)}`]]}})(Ze(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${y0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${y0.loading}`]:{color:"transparent"}}))),V$=se("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Yr=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiIconButton"}),{edge:s=!1,children:a,className:l,color:i="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:h,loading:m=null,loadingIndicator:g,...w}=o,f=mr(h),y=g??R.jsx(yf,{"aria-labelledby":f,color:"inherit",size:16}),v={...o,edge:s,color:i,disabled:c,disableFocusRipple:u,loading:m,loadingIndicator:y,size:d},p=N$(v);return R.jsxs(A$,{id:m?f:h,className:Te(p.root,l),centerRipple:!0,focusRipple:!u,disabled:c||m,ref:r,...w,ownerState:v,children:[typeof m=="boolean"&&R.jsx("span",{className:p.loadingWrapper,style:{display:"contents"},children:R.jsx(V$,{className:p.loadingIndicator,ownerState:v,children:m&&y})}),a]})});process.env.NODE_ENV!=="production"&&(Yr.propTypes={children:Cr(n.node,e=>E.Children.toArray(e.children).some(r=>E.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
251
- `)):null),classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),n.string]),disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,edge:n.oneOf(["end","start",!1]),id:n.string,loading:n.bool,loadingIndicator:n.node,size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function F$(e){return Ie("MuiInputAdornment",e)}const b0=ke("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var v0;const L$=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Oe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},q$=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:o,position:s,size:a,variant:l}=e,i={root:["root",r&&"disablePointerEvents",s&&`position${Oe(s)}`,l,o&&"hiddenLabel",a&&`size${Oe(a)}`]};return _e(i,F$,t)},B$=se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:L$})(Ze(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${b0.positionStart}&:not(.${b0.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),bf=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiInputAdornment"}),{children:s,className:a,component:l="div",disablePointerEvents:i=!1,disableTypography:c=!1,position:u,variant:d,...h}=o,m=or()||{};let g=d;d&&m.variant&&process.env.NODE_ENV!=="production"&&d===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),m&&!g&&(g=m.variant);const w={...o,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:i,position:u,variant:g},f=q$(w);return R.jsx(Jo.Provider,{value:null,children:R.jsx(B$,{as:l,ownerState:w,className:Te(f.root,a),ref:r,...h,children:typeof s=="string"&&!c?R.jsx(Er,{color:"textSecondary",children:s}):R.jsxs(E.Fragment,{children:[u==="start"?v0||(v0=R.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(bf.propTypes={children:n.node,classes:n.object,className:n.string,component:n.elementType,disablePointerEvents:n.bool,disableTypography:n.bool,position:n.oneOf(["end","start"]).isRequired,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),variant:n.oneOf(["filled","outlined","standard"])});const z$=kt(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),U$=kt(R.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),W$=kt(R.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),H$=kt(R.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");kt(R.jsxs(E.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const Y$=kt(R.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),K$=kt(R.jsxs(E.Fragment,{children:[R.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),R.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),G$=kt(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),X$=["clearable","onClear","InputProps","sx","slots","slotProps"],J$=["ownerState"],Z$=e=>{const t=ur(),{clearable:r,onClear:o,InputProps:s,sx:a,slots:l,slotProps:i}=e,c=Ue(e,X$),u=(l==null?void 0:l.clearButton)??Yr,d=lt({elementType:u,externalSlotProps:i==null?void 0:i.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),h=Ue(d,J$),m=(l==null?void 0:l.clearIcon)??G$,g=lt({elementType:m,externalSlotProps:i==null?void 0:i.clearIcon,ownerState:{}});return re({},c,{InputProps:re({},s,{endAdornment:R.jsxs(E.Fragment,{children:[r&&R.jsx(bf,{position:"end",sx:{marginRight:s!=null&&s.endAdornment?-1:-1.5},children:R.jsx(u,re({},h,{onClick:o,children:R.jsx(m,re({fontSize:"small"},g))}))}),s==null?void 0:s.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})},Q$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],e_=(e,t)=>E.useMemo(()=>{const r=re({},e),o={},s=a=>{r.hasOwnProperty(a)&&(o[a]=r[a],delete r[a])};return Q$.forEach(s),c0.forEach(s),u0.forEach(s),d0.forEach(s),{forwardedProps:r,internalProps:o}},[e,t]),t_=E.createContext(null);function w0(e){const{contextValue:t,localeText:r,children:o}=e;return R.jsx(t_.Provider,{value:t,children:R.jsx(pf,{localeText:r,children:o})})}const r_=e=>{const t=xt(),r=vs(),s=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return re({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??s,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:kr(t,e.minDateTime??e.minDate,r.minDate),maxDate:kr(t,e.maxDateTime??e.maxDate,r.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},n_=e=>{const t=r_(e),{forwardedProps:r,internalProps:o}=e_(t,"date-time");return E$({forwardedProps:r,internalProps:o,valueManager:tr,fieldValueManager:i$,validator:Mi,valueType:"date-time"})};function o_(e){return Ie("MuiPickersTextField",e)}ke("MuiPickersTextField",["root","focused","disabled","error","required"]);function s_(e){return Ie("MuiPickersInputBase",e)}const yo=ke("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function a_(e){return Ie("MuiPickersSectionList",e)}const ws=ke("MuiPickersSectionList",["root","section","sectionContent"]),i_=["slots","slotProps","elements","sectionListRef"],x0=se("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),S0=se("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),C0=se("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),T0=se("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),l_=e=>{const{classes:t}=e;return _e({root:["root"],section:["section"],sectionContent:["sectionContent"]},a_,t)};function O0(e){const{slots:t,slotProps:r,element:o,classes:s}=e,a=(t==null?void 0:t.section)??S0,l=lt({elementType:a,externalSlotProps:r==null?void 0:r.section,externalForwardedProps:o.container,className:s.section,ownerState:{}}),i=(t==null?void 0:t.sectionContent)??T0,c=lt({elementType:i,externalSlotProps:r==null?void 0:r.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:{}}),u=(t==null?void 0:t.sectionSeparator)??C0,d=lt({elementType:u,externalSlotProps:r==null?void 0:r.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),h=lt({elementType:u,externalSlotProps:r==null?void 0:r.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return R.jsxs(a,re({},l,{children:[R.jsx(u,re({},d)),R.jsx(i,re({},c)),R.jsx(u,re({},h))]}))}process.env.NODE_ENV!=="production"&&(O0.propTypes={classes:n.object.isRequired,element:n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired}).isRequired,slotProps:n.object,slots:n.object});const P0=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:a,elements:l,sectionListRef:i}=o,c=Ue(o,i_),u=l_(o),d=E.useRef(null),h=ft(r,d),m=f=>{if(!d.current)throw new Error(`MUI X: Cannot call sectionListRef.${f} before the mount of the component.`);return d.current};E.useImperativeHandle(i,()=>({getRoot(){return m("getRoot")},getSectionContainer(f){return m("getSectionContainer").querySelector(`.${ws.section}[data-sectionindex="${f}"]`)},getSectionContent(f){return m("getSectionContent").querySelector(`.${ws.section}[data-sectionindex="${f}"] .${ws.sectionContent}`)},getSectionIndexFromDOMElement(f){const y=m("getSectionIndexFromDOMElement");if(f==null||!y.contains(f))return null;let v=null;return f.classList.contains(ws.section)?v=f:f.classList.contains(ws.sectionContent)&&(v=f.parentElement),v==null?null:Number(v.dataset.sectionindex)}}));const g=(s==null?void 0:s.root)??x0,w=lt({elementType:g,externalSlotProps:a==null?void 0:a.root,externalForwardedProps:c,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return R.jsx(g,re({},w,{children:w.contentEditable?l.map(({content:f,before:y,after:v})=>`${y.children}${f.children}${v.children}`).join(""):R.jsx(E.Fragment,{children:l.map((f,y)=>R.jsx(O0,{slots:s,slotProps:a,element:f,classes:u},y))})}))});process.env.NODE_ENV!=="production"&&(P0.propTypes={classes:n.object,contentEditable:n.bool.isRequired,elements:n.arrayOf(n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired})).isRequired,sectionListRef:n.oneOfType([n.func,n.shape({current:n.shape({getRoot:n.func.isRequired,getSectionContainer:n.func.isRequired,getSectionContent:n.func.isRequired,getSectionIndexFromDOMElement:n.func.isRequired})})]),slotProps:n.object,slots:n.object});const c_=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],u_=e=>Math.round(e*1e5)/1e5,Ai=se("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>re({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${u_(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),vf=se(x0,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:r,filled:o,label:s})=>!t&&!r&&!o&&s==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),d_=se(S0,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),f_=se(T0,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),p_=se(C0,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),h_=se("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(re({},kO)),m_=e=>{const{focused:t,disabled:r,error:o,classes:s,fullWidth:a,readOnly:l,color:i,size:c,endAdornment:u,startAdornment:d}=e,h={root:["root",t&&!r&&"focused",r&&"disabled",l&&"readOnly",o&&"error",a&&"fullWidth",`color${Oe(i)}`,c==="small"&&"inputSizeSmall",!!d&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return _e(h,s_,s)},Vi=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:a,value:l,onChange:i,id:c,endAdornment:u,startAdornment:d,renderSuffix:h,slots:m,slotProps:g,contentEditable:w,tabIndex:f,onInput:y,onPaste:v,onKeyDown:p,name:b,readOnly:x,inputProps:S,inputRef:C,sectionListRef:O}=o,k=Ue(o,c_),_=E.useRef(null),T=ft(r,_),P=ft(S==null?void 0:S.ref,C),D=Qt(),V=or();if(!V)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const M=L=>{var j;if(V.disabled){L.stopPropagation();return}(j=V.onFocus)==null||j.call(V,L)};E.useEffect(()=>{V&&V.setAdornedStart(!!d)},[V,d]),E.useEffect(()=>{V&&(a?V.onEmpty():V.onFilled())},[V,a]);const N=re({},o,V,{isRtl:D}),F=m_(N),K=(m==null?void 0:m.root)||Ai,H=lt({elementType:K,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:k,additionalProps:{"aria-invalid":V.error,ref:T},className:F.root,ownerState:N}),Z=(m==null?void 0:m.input)||vf;return R.jsxs(K,re({},H,{children:[d,R.jsx(P0,{sectionListRef:O,elements:s,contentEditable:w,tabIndex:f,className:F.sectionsContainer,onFocus:M,onBlur:V.onBlur,onInput:y,onPaste:v,onKeyDown:p,slots:{root:Z,section:d_,sectionContent:f_,sectionSeparator:p_},slotProps:{root:{ownerState:N},sectionContent:{className:yo.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?yo.sectionBefore:yo.sectionAfter})}}),u,h?h(re({},V)):null,R.jsx(h_,re({name:b,className:F.input,value:l,onChange:i,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:V.required,disabled:V.disabled},S,{ref:P}))]}))});process.env.NODE_ENV!=="production"&&(Vi.propTypes={areAllSectionsEmpty:n.bool.isRequired,className:n.string,component:n.elementType,contentEditable:n.bool.isRequired,elements:n.arrayOf(n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired})).isRequired,endAdornment:n.node,fullWidth:n.bool,id:n.string,inputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),name:n.string,onChange:n.func.isRequired,onClick:n.func.isRequired,onInput:n.func.isRequired,onKeyDown:n.func.isRequired,onPaste:n.func.isRequired,ownerState:n.any,readOnly:n.bool,renderSuffix:n.func,sectionListRef:n.oneOfType([n.func,n.shape({current:n.shape({getRoot:n.func.isRequired,getSectionContainer:n.func.isRequired,getSectionContent:n.func.isRequired,getSectionIndexFromDOMElement:n.func.isRequired})})]),slotProps:n.object,slots:n.object,startAdornment:n.node,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.string.isRequired});function g_(e){return Ie("MuiPickersOutlinedInput",e)}const Vr=re({},yo,ke("MuiPickersOutlinedInput",["root","notchedOutline","input"])),y_=["children","className","label","notched","shrink"],b_=se("fieldset",{name:"MuiPickersOutlinedInput",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{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),E0=se("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),v_=se("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function w_(e){const{className:t,label:r}=e,o=Ue(e,y_),s=r!=null&&r!=="",a=re({},e,{withLabel:s});return R.jsx(b_,re({"aria-hidden":!0,className:t},o,{ownerState:a,children:R.jsx(v_,{ownerState:a,children:s?R.jsx(E0,{children:r}):R.jsx(E0,{className:"notranslate",children:"​"})})}))}const x_=["label","autoFocus","ownerState","notched"],S_=se(Ai,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Vr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Vr.focused} .${Vr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Vr.disabled}`]:{[`& .${Vr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Vr.error} .${Vr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(r=>{var o;return((o=(e.vars??e).palette[r])==null?void 0:o.main)??!1}).map(r=>({props:{color:r},style:{[`&.${Vr.focused}:not(.${Vr.error}) .${Vr.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}}))}}),C_=se(vf,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),T_=e=>{const{classes:t}=e,o=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g_,t);return re({},t,o)},wf=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersOutlinedInput"}),{label:s,ownerState:a,notched:l}=o,i=Ue(o,x_),c=or(),u=re({},o,a,c,{color:(c==null?void 0:c.color)||"primary"}),d=T_(u);return R.jsx(Vi,re({slots:{root:S_,input:C_},renderSuffix:h=>R.jsx(w_,{shrink:!!(l||h.adornedStart||h.focused||h.filled),notched:!!(l||h.adornedStart||h.focused||h.filled),className:d.notchedOutline,label:s!=null&&s!==""&&(c!=null&&c.required)?R.jsxs(E.Fragment,{children:[s," ","*"]}):s,ownerState:u})},i,{label:s,classes:d,ref:r}))});process.env.NODE_ENV!=="production"&&(wf.propTypes={areAllSectionsEmpty:n.bool.isRequired,className:n.string,component:n.elementType,contentEditable:n.bool.isRequired,elements:n.arrayOf(n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired})).isRequired,endAdornment:n.node,fullWidth:n.bool,id:n.string,inputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),name:n.string,notched:n.bool,onChange:n.func.isRequired,onClick:n.func.isRequired,onInput:n.func.isRequired,onKeyDown:n.func.isRequired,onPaste:n.func.isRequired,ownerState:n.any,readOnly:n.bool,renderSuffix:n.func,sectionListRef:n.oneOfType([n.func,n.shape({current:n.shape({getRoot:n.func.isRequired,getSectionContainer:n.func.isRequired,getSectionContent:n.func.isRequired,getSectionIndexFromDOMElement:n.func.isRequired})})]),slotProps:n.object,slots:n.object,startAdornment:n.node,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.string.isRequired}),wf.muiName="Input";function O_(e){return Ie("MuiPickersFilledInput",e)}const zn=re({},yo,ke("MuiPickersFilledInput",["root","underline","input"])),P_=["label","autoFocus","disableUnderline","ownerState"],E_=se(Ai,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ei(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${zn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${zn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(l=>(e.vars??e).palette[l].main).map(l=>{var i;return{props:{color:l,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(i=(e.vars||e).palette[l])==null?void 0:i.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${zn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zn.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})`: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(.${zn.disabled}, .${zn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:l})=>!!l,style:{paddingLeft:12}},{props:({endAdornment:l})=>!!l,style:{paddingRight:12}}]}}),k_=se(vf,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),R_=e=>{const{classes:t,disableUnderline:r}=e,s=_e({root:["root",!r&&"underline"],input:["input"]},O_,t);return re({},t,s)},xf=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:a=!1,ownerState:l}=o,i=Ue(o,P_),c=or(),u=re({},o,l,c,{color:(c==null?void 0:c.color)||"primary"}),d=R_(u);return R.jsx(Vi,re({slots:{root:E_,input:k_},slotProps:{root:{disableUnderline:a}}},i,{label:s,classes:d,ref:r}))});process.env.NODE_ENV!=="production"&&(xf.propTypes={areAllSectionsEmpty:n.bool.isRequired,className:n.string,component:n.elementType,contentEditable:n.bool.isRequired,disableUnderline:n.bool,elements:n.arrayOf(n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired})).isRequired,endAdornment:n.node,fullWidth:n.bool,hiddenLabel:n.bool,id:n.string,inputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),name:n.string,onChange:n.func.isRequired,onClick:n.func.isRequired,onInput:n.func.isRequired,onKeyDown:n.func.isRequired,onPaste:n.func.isRequired,ownerState:n.any,readOnly:n.bool,renderSuffix:n.func,sectionListRef:n.oneOfType([n.func,n.shape({current:n.shape({getRoot:n.func.isRequired,getSectionContainer:n.func.isRequired,getSectionContent:n.func.isRequired,getSectionIndexFromDOMElement:n.func.isRequired})})]),slotProps:n.object,slots:n.object,startAdornment:n.node,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.string.isRequired}),xf.muiName="Input";function $_(e){return Ie("MuiPickersFilledInput",e)}const xs=re({},yo,ke("MuiPickersInput",["root","input"])),__=["label","autoFocus","disableUnderline","ownerState"],I_=se(Ai,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{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})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xs.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(.${xs.disabled}, .${xs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),D_=e=>{const{classes:t,disableUnderline:r}=e,s=_e({root:["root",!r&&"underline"],input:["input"]},$_,t);return re({},t,s)},Sf=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:a=!1,ownerState:l}=o,i=Ue(o,__),c=or(),u=re({},o,l,c,{disableUnderline:a,color:(c==null?void 0:c.color)||"primary"}),d=D_(u);return R.jsx(Vi,re({slots:{root:I_}},i,{label:s,classes:d,ref:r}))});process.env.NODE_ENV!=="production"&&(Sf.propTypes={areAllSectionsEmpty:n.bool.isRequired,className:n.string,component:n.elementType,contentEditable:n.bool.isRequired,disableUnderline:n.bool,elements:n.arrayOf(n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired})).isRequired,endAdornment:n.node,fullWidth:n.bool,id:n.string,inputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),name:n.string,onChange:n.func.isRequired,onClick:n.func.isRequired,onInput:n.func.isRequired,onKeyDown:n.func.isRequired,onPaste:n.func.isRequired,ownerState:n.any,readOnly:n.bool,renderSuffix:n.func,sectionListRef:n.oneOfType([n.func,n.shape({current:n.shape({getRoot:n.func.isRequired,getSectionContainer:n.func.isRequired,getSectionContent:n.func.isRequired,getSectionIndexFromDOMElement:n.func.isRequired})})]),slotProps:n.object,slots:n.object,startAdornment:n.node,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.string.isRequired}),Sf.muiName="Input";const M_=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],j_={standard:Sf,filled:xf,outlined:wf},N_=se(Nn,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A_=e=>{const{focused:t,disabled:r,classes:o,required:s}=e;return _e({root:["root",t&&!r&&"focused",r&&"disabled",s&&"required"]},o_,o)},k0=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersTextField"}),{onFocus:s,onBlur:a,className:l,color:i="primary",disabled:c=!1,error:u=!1,variant:d="outlined",required:h=!1,InputProps:m,inputProps:g,inputRef:w,sectionListRef:f,elements:y,areAllSectionsEmpty:v,onClick:p,onKeyDown:b,onKeyUp:x,onPaste:S,onInput:C,endAdornment:O,startAdornment:k,tabIndex:_,contentEditable:T,focused:P,value:D,onChange:V,fullWidth:M,id:N,name:F,helperText:K,FormHelperTextProps:H,label:Z,InputLabelProps:L}=o,j=Ue(o,M_),Y=E.useRef(null),q=ft(r,Y),$=mr(N),I=K&&$?`${$}-helper-text`:void 0,U=Z&&$?`${$}-label`:void 0,Q=re({},o,{color:i,disabled:c,error:u,focused:P,required:h,variant:d}),W=A_(Q),ee=j_[d];return R.jsxs(N_,re({className:Te(W.root,l),ref:q,focused:P,onFocus:s,onBlur:a,disabled:c,variant:d,error:u,color:i,fullWidth:M,required:h,ownerState:Q},j,{children:[R.jsx(Qo,re({htmlFor:$,id:U},L,{children:Z})),R.jsx(ee,re({elements:y,areAllSectionsEmpty:v,onClick:p,onKeyDown:b,onKeyUp:x,onInput:C,onPaste:S,endAdornment:O,startAdornment:k,tabIndex:_,contentEditable:T,value:D,onChange:V,id:$,fullWidth:M,inputProps:g,inputRef:w,sectionListRef:f,label:Z,name:F,role:"group","aria-labelledby":U},m)),K&&R.jsx(io,re({id:I},H,{children:K}))]}))});process.env.NODE_ENV!=="production"&&(k0.propTypes={areAllSectionsEmpty:n.bool.isRequired,className:n.string,color:n.oneOf(["error","info","primary","secondary","success","warning"]),component:n.elementType,contentEditable:n.bool.isRequired,disabled:n.bool.isRequired,elements:n.arrayOf(n.shape({after:n.object.isRequired,before:n.object.isRequired,container:n.object.isRequired,content:n.object.isRequired})).isRequired,endAdornment:n.node,error:n.bool.isRequired,focused:n.bool,FormHelperTextProps:n.object,fullWidth:n.bool,helperText:n.node,hiddenLabel:n.bool,id:n.string,InputLabelProps:n.object,inputProps:n.object,InputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),name:n.string,onBlur:n.func.isRequired,onChange:n.func.isRequired,onClick:n.func.isRequired,onFocus:n.func.isRequired,onInput:n.func.isRequired,onKeyDown:n.func.isRequired,onPaste:n.func.isRequired,readOnly:n.bool,required:n.bool,sectionListRef:n.oneOfType([n.func,n.shape({current:n.shape({getRoot:n.func.isRequired,getSectionContainer:n.func.isRequired,getSectionContent:n.func.isRequired,getSectionIndexFromDOMElement:n.func.isRequired})})]),size:n.oneOf(["medium","small"]),startAdornment:n.node,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.string.isRequired,variant:n.oneOf(["filled","outlined","standard"])});const V_=["enableAccessibleFieldDOMStructure"],F_=["InputProps","readOnly"],L_=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],q_=e=>{let{enableAccessibleFieldDOMStructure:t}=e,r=Ue(e,V_);if(t){const{InputProps:h,readOnly:m}=r,g=Ue(r,F_);return re({},g,{InputProps:re({},h??{},{readOnly:m})})}const{onPaste:o,onKeyDown:s,inputMode:a,readOnly:l,InputProps:i,inputProps:c,inputRef:u}=r,d=Ue(r,L_);return re({},d,{InputProps:re({},i??{},{readOnly:l}),inputProps:re({},c??{},{inputMode:a,onPaste:o,onKeyDown:s,ref:u})})},B_=["slots","slotProps","InputProps","inputProps"],Cf=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiDateTimeField"}),{slots:s,slotProps:a,InputProps:l,inputProps:i}=o,c=Ue(o,B_),u=o,d=(s==null?void 0:s.textField)??(t.enableAccessibleFieldDOMStructure?k0:ki),h=lt({elementType:d,externalSlotProps:a==null?void 0:a.textField,externalForwardedProps:c,ownerState:u,additionalProps:{ref:r}});h.inputProps=re({},i,h.inputProps),h.InputProps=re({},l,h.InputProps);const m=n_(h),g=q_(m),w=Z$(re({},g,{slots:s,slotProps:a}));return R.jsx(d,re({},w))});process.env.NODE_ENV!=="production"&&(Cf.propTypes={ampm:n.bool,autoFocus:n.bool,className:n.string,clearable:n.bool,color:n.oneOf(["error","info","primary","secondary","success","warning"]),component:n.elementType,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disablePast:n.bool,enableAccessibleFieldDOMStructure:n.bool,focused:n.bool,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),FormHelperTextProps:n.object,fullWidth:n.bool,helperText:n.node,hiddenLabel:n.bool,id:n.string,InputLabelProps:n.object,inputProps:n.object,InputProps:n.object,inputRef:Mt,label:n.node,margin:n.oneOf(["dense","none","normal"]),maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,name:n.string,onBlur:n.func,onChange:n.func,onClear:n.func,onError:n.func,onFocus:n.func,onSelectedSectionsChange:n.func,readOnly:n.bool,referenceDate:n.object,required:n.bool,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,shouldRespectLeadingZeros:n.bool,size:n.oneOf(["medium","small"]),slotProps:n.object,slots:n.object,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,unstableFieldRef:n.oneOfType([n.func,n.object]),value:n.object,variant:n.oneOf(["filled","outlined","standard"])});function z_(e){return Ie("MuiTab",e)}const Rr=ke("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),U_=e=>{const{classes:t,textColor:r,fullWidth:o,wrapped:s,icon:a,label:l,selected:i,disabled:c}=e,u={root:["root",a&&l&&"labelIcon",`textColor${Oe(r)}`,o&&"fullWidth",s&&"wrapped",i&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return _e(u,z_,t)},W_=se(Ur,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Oe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Rr.iconWrapper}`]:t.iconWrapper},{[`& .${Rr.icon}`]:t.icon}]}})(Ze(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${Rr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${Rr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${Rr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${Rr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Rr.selected}`]:{opacity:1},[`&.${Rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Rr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Rr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Rr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Rr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Tf=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiTab"}),{className:s,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:i,icon:c,iconPosition:u="top",indicator:d,label:h,onChange:m,onClick:g,onFocus:w,selected:f,selectionFollowsFocus:y,textColor:v="inherit",value:p,wrapped:b=!1,...x}=o,S={...o,disabled:a,disableFocusRipple:l,selected:f,icon:!!c,iconPosition:u,label:!!h,fullWidth:i,textColor:v,wrapped:b},C=U_(S),O=c&&h&&E.isValidElement(c)?E.cloneElement(c,{className:Te(C.icon,c.props.className)}):c,k=T=>{!f&&m&&m(T,p),g&&g(T)},_=T=>{y&&!f&&m&&m(T,p),w&&w(T)};return R.jsxs(W_,{focusRipple:!l,className:Te(C.root,s),ref:r,role:"tab","aria-selected":f,disabled:a,onClick:k,onFocus:_,ownerState:S,tabIndex:f?0:-1,...x,children:[u==="top"||u==="start"?R.jsxs(E.Fragment,{children:[O,h]}):R.jsxs(E.Fragment,{children:[h,O]}),d]})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={children:Cb,classes:n.object,className:n.string,disabled:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,icon:n.oneOfType([n.element,n.string]),iconPosition:n.oneOf(["bottom","end","start","top"]),label:n.node,onChange:n.func,onClick:n.func,onFocus:n.func,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any,wrapped:n.bool});function H_(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Y_(e,t,r,o={},s=()=>{}){const{ease:a=H_,duration:l=300}=o;let i=null;const c=t[e];let u=!1;const d=()=>{u=!0},h=m=>{if(u){s(new Error("Animation cancelled"));return}i===null&&(i=m);const g=Math.min(1,(m-i)/l);if(t[e]=a(g)*(r-c)+c,g>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(h)};return c===r?(s(new Error("Element already at target position")),d):(requestAnimationFrame(h),d)}const K_={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function R0(e){const{onChange:t,...r}=e,o=E.useRef(),s=E.useRef(null),a=()=>{o.current=s.current.offsetHeight-s.current.clientHeight};return qt(()=>{const l=ii(()=>{const c=o.current;a(),c!==o.current&&t(o.current)}),i=Nr(s.current);return i.addEventListener("resize",l),()=>{l.clear(),i.removeEventListener("resize",l)}},[t]),E.useEffect(()=>{a(),t(o.current)},[t]),R.jsx("div",{style:K_,...r,ref:s})}process.env.NODE_ENV!=="production"&&(R0.propTypes={onChange:n.func.isRequired});const G_=kt(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),X_=kt(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function J_(e){return Ie("MuiTabScrollButton",e)}const Z_=ke("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Q_=e=>{const{classes:t,orientation:r,disabled:o}=e;return _e({root:["root",r,o&&"disabled"]},J_,t)},eI=se(Ur,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Z_.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),$0=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:i,orientation:c,disabled:u,...d}=o,h=Qt(),m={isRtl:h,...o},g=Q_(m),w=a.StartScrollButtonIcon??G_,f=a.EndScrollButtonIcon??X_,y=lt({elementType:w,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),v=lt({elementType:f,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return R.jsx(eI,{component:"div",className:Te(g.root,s),ref:r,role:null,ownerState:m,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:i==="left"?R.jsx(w,{...y}):R.jsx(f,{...v})})});process.env.NODE_ENV!=="production"&&($0.propTypes={children:n.node,classes:n.object,className:n.string,direction:n.oneOf(["left","right"]).isRequired,disabled:n.bool,orientation:n.oneOf(["horizontal","vertical"]).isRequired,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({EndScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function tI(e){return Ie("MuiTabs",e)}const Fi=ke("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),_0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,I0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Li=(e,t,r)=>{let o=!1,s=r(e,t);for(;s;){if(s===e.firstChild){if(o)return;o=!0}const a=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||a)s=r(e,s);else{s.focus();return}}},rI=e=>{const{vertical:t,fixed:r,hideScrollbar:o,scrollableX:s,scrollableY:a,centered:l,scrollButtonsHideMobile:i,classes:c}=e;return _e({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",s&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},tI,c)},nI=se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Fi.scrollButtons}`]:t.scrollButtons},{[`& .${Fi.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Ze(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Fi.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),oI=se("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),sI=se("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),aI=se("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Ze(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),iI=se(R0)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),D0={};let M0=!1;const j0=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiTabs"}),s=jn(),a=Qt(),{"aria-label":l,"aria-labelledby":i,action:c,centered:u=!1,children:d,className:h,component:m="div",allowScrollButtonsMobile:g=!1,indicatorColor:w="primary",onChange:f,orientation:y="horizontal",ScrollButtonComponent:v=$0,scrollButtons:p="auto",selectionFollowsFocus:b,slots:x={},slotProps:S={},TabIndicatorProps:C={},TabScrollButtonProps:O={},textColor:k="primary",value:_,variant:T="standard",visibleScrollbar:P=!1,...D}=o,V=T==="scrollable",M=y==="vertical",N=M?"scrollTop":"scrollLeft",F=M?"top":"left",K=M?"bottom":"right",H=M?"clientHeight":"clientWidth",Z=M?"height":"width",L={...o,component:m,allowScrollButtonsMobile:g,indicatorColor:w,orientation:y,vertical:M,scrollButtons:p,textColor:k,variant:T,visibleScrollbar:P,fixed:!V,hideScrollbar:V&&!P,scrollableX:V&&!M,scrollableY:V&&M,centered:u&&!V,scrollButtonsHideMobile:!g},j=rI(L),Y=lt({elementType:x.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:L}),q=lt({elementType:x.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:L});process.env.NODE_ENV!=="production"&&u&&V&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[$,I]=E.useState(!1),[U,Q]=E.useState(D0),[W,ee]=E.useState(!1),[ne,B]=E.useState(!1),[A,z]=E.useState(!1),[X,te]=E.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,J=E.useRef(null),fe=E.useRef(null),le=()=>{const De=J.current;let me;if(De){const je=De.getBoundingClientRect();me={clientWidth:De.clientWidth,scrollLeft:De.scrollLeft,scrollTop:De.scrollTop,scrollWidth:De.scrollWidth,top:je.top,bottom:je.bottom,left:je.left,right:je.right}}let $e;if(De&&_!==!1){const je=fe.current.children;if(je.length>0){const Ve=je[ae.get(_)];process.env.NODE_ENV!=="production"&&(Ve||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${_}".`,ae.keys?`You can provide one of the following values: ${Array.from(ae.keys()).join(", ")}.`:null].join(`
252
- `))),$e=Ve?Ve.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!M0&&$e&&$e.width===0&&$e.height===0&&me.clientWidth!==0&&(me=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${_}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
253
- `)),M0=!0)}}return{tabsMeta:me,tabMeta:$e}},ge=Re(()=>{const{tabsMeta:De,tabMeta:me}=le();let $e=0,je;M?(je="top",me&&De&&($e=me.top-De.top+De.scrollTop)):(je=a?"right":"left",me&&De&&($e=(a?-1:1)*(me[je]-De[je]+De.scrollLeft)));const Ve={[je]:$e,[Z]:me?me[Z]:0};if(typeof U[je]!="number"||typeof U[Z]!="number")Q(Ve);else{const Xe=Math.abs(U[je]-Ve[je]),Tt=Math.abs(U[Z]-Ve[Z]);(Xe>=1||Tt>=1)&&Q(Ve)}}),Se=(De,{animation:me=!0}={})=>{me?Y_(N,J.current,De,{duration:s.transitions.duration.standard}):J.current[N]=De},Ce=De=>{let me=J.current[N];M?me+=De:me+=De*(a?-1:1),Se(me)},Fe=()=>{const De=J.current[H];let me=0;const $e=Array.from(fe.current.children);for(let je=0;je<$e.length;je+=1){const Ve=$e[je];if(me+Ve[H]>De){je===0&&(me=De);break}me+=Ve[H]}return me},Ye=()=>{Ce(-1*Fe())},He=()=>{Ce(Fe())},Qe=E.useCallback(De=>{te({overflow:null,scrollbarWidth:De})},[]),ut=()=>{const De={};De.scrollbarSizeListener=V?R.jsx(iI,{onChange:Qe,className:Te(j.scrollableX,j.hideScrollbar)}):null;const $e=V&&(p==="auto"&&(W||ne)||p===!0);return De.scrollButtonStart=$e?R.jsx(v,{slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:y,direction:a?"right":"left",onClick:Ye,disabled:!W,...O,className:Te(j.scrollButtons,O.className)}):null,De.scrollButtonEnd=$e?R.jsx(v,{slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:y,direction:a?"left":"right",onClick:He,disabled:!ne,...O,className:Te(j.scrollButtons,O.className)}):null,De},dt=Re(De=>{const{tabsMeta:me,tabMeta:$e}=le();if(!(!$e||!me)){if($e[F]<me[F]){const je=me[N]+($e[F]-me[F]);Se(je,{animation:De})}else if($e[K]>me[K]){const je=me[N]+($e[K]-me[K]);Se(je,{animation:De})}}}),st=Re(()=>{V&&p!==!1&&z(!A)});E.useEffect(()=>{const De=ii(()=>{J.current&&ge()});let me;const $e=Xe=>{Xe.forEach(Tt=>{Tt.removedNodes.forEach(St=>{me==null||me.unobserve(St)}),Tt.addedNodes.forEach(St=>{me==null||me.observe(St)})}),De(),st()},je=Nr(J.current);je.addEventListener("resize",De);let Ve;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(De),Array.from(fe.current.children).forEach(Xe=>{me.observe(Xe)})),typeof MutationObserver<"u"&&(Ve=new MutationObserver($e),Ve.observe(fe.current,{childList:!0})),()=>{De.clear(),je.removeEventListener("resize",De),Ve==null||Ve.disconnect(),me==null||me.disconnect()}},[ge,st]),E.useEffect(()=>{const De=Array.from(fe.current.children),me=De.length;if(typeof IntersectionObserver<"u"&&me>0&&V&&p!==!1){const $e=De[0],je=De[me-1],Ve={root:J.current,threshold:.99},Xe=ue=>{ee(!ue[0].isIntersecting)},Tt=new IntersectionObserver(Xe,Ve);Tt.observe($e);const St=ue=>{B(!ue[0].isIntersecting)},pr=new IntersectionObserver(St,Ve);return pr.observe(je),()=>{Tt.disconnect(),pr.disconnect()}}},[V,p,A,d==null?void 0:d.length]),E.useEffect(()=>{I(!0)},[]),E.useEffect(()=>{ge()}),E.useEffect(()=>{dt(D0!==U)},[dt,U]),E.useImperativeHandle(c,()=>({updateIndicator:ge,updateScrollButtons:st}),[ge,st]);const Ge=R.jsx(aI,{...C,className:Te(j.indicator,C.className),ownerState:L,style:{...U,...C.style}});let We=0;const gt=E.Children.map(d,De=>{if(!E.isValidElement(De))return null;process.env.NODE_ENV!=="production"&&Si.isFragment(De)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
254
- `));const me=De.props.value===void 0?We:De.props.value;ae.set(me,We);const $e=me===_;return We+=1,E.cloneElement(De,{fullWidth:T==="fullWidth",indicator:$e&&!$&&Ge,selected:$e,selectionFollowsFocus:b,onChange:f,textColor:k,value:me,...We===1&&_===!1&&!De.props.tabIndex?{tabIndex:0}:{}})}),mt=De=>{const me=fe.current,$e=Yt(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Ve=y==="horizontal"?"ArrowLeft":"ArrowUp",Xe=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(Ve="ArrowRight",Xe="ArrowLeft"),De.key){case Ve:De.preventDefault(),Li(me,$e,I0);break;case Xe:De.preventDefault(),Li(me,$e,_0);break;case"Home":De.preventDefault(),Li(me,null,_0);break;case"End":De.preventDefault(),Li(me,null,I0);break}},Dt=ut();return R.jsxs(nI,{className:Te(j.root,h),ownerState:L,ref:r,as:m,...D,children:[Dt.scrollButtonStart,Dt.scrollbarSizeListener,R.jsxs(oI,{className:j.scroller,ownerState:L,style:{overflow:X.overflow,[M?`margin${a?"Left":"Right"}`:"marginBottom"]:P?void 0:-X.scrollbarWidth},ref:J,children:[R.jsx(sI,{"aria-label":l,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,className:j.flexContainer,ownerState:L,onKeyDown:mt,ref:fe,role:"tablist",children:gt}),$&&Ge]}),Dt.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(j0.propTypes={action:Mt,allowScrollButtonsMobile:n.bool,"aria-label":n.string,"aria-labelledby":n.string,centered:n.bool,children:n.node,classes:n.object,className:n.string,component:n.elementType,indicatorColor:n.oneOfType([n.oneOf(["primary","secondary"]),n.string]),onChange:n.func,orientation:n.oneOf(["horizontal","vertical"]),ScrollButtonComponent:n.elementType,scrollButtons:n.oneOf(["auto",!1,!0]),selectionFollowsFocus:n.bool,slotProps:n.shape({endScrollButtonIcon:n.oneOfType([n.func,n.object]),startScrollButtonIcon:n.oneOfType([n.func,n.object])}),slots:n.shape({EndScrollButtonIcon:n.elementType,StartScrollButtonIcon:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TabIndicatorProps:n.object,TabScrollButtonProps:n.object,textColor:n.oneOf(["inherit","primary","secondary"]),value:n.any,variant:n.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:n.bool});function lI(e){return Ie("MuiDateTimePickerTabs",e)}ke("MuiDateTimePickerTabs",["root"]);const cI=e=>fo(e)?"date":"time",uI=e=>e==="date"?"day":"hours",dI=e=>{const{classes:t}=e;return _e({root:["root"]},lI,t)},fI=se(j0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Fi.indicator}`]:{bottom:"auto",top:0}}})),N0=function(t){const r=ht({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=R.jsx(Y$,{}),onViewChange:s,timeIcon:a=R.jsx(K$,{}),view:l,hidden:i=typeof window>"u"||window.innerHeight<667,className:c,sx:u}=r,d=ur(),h=dI(r),m=(g,w)=>{s(uI(w))};return i?null:R.jsxs(fI,{ownerState:r,variant:"fullWidth",value:cI(l),onChange:m,className:Te(c,h.root),sx:u,children:[R.jsx(Tf,{value:"date","aria-label":d.dateTableLabel,icon:R.jsx(E.Fragment,{children:o})}),R.jsx(Tf,{value:"time","aria-label":d.timeTableLabel,icon:R.jsx(E.Fragment,{children:a})})]})};process.env.NODE_ENV!=="production"&&(N0.propTypes={classes:n.object,className:n.string,dateIcon:n.node,hidden:n.bool,onViewChange:n.func.isRequired,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeIcon:n.node,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired});function pI(e){return Ie("MuiPickersToolbarText",e)}const Of=ke("MuiPickersToolbarText",["root","selected"]),hI=["className","selected","value"],mI=e=>{const{classes:t,selected:r}=e;return _e({root:["root",r&&"selected"]},pI,t)},gI=se(Er,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Of.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Of.selected}`]:{color:(e.vars||e).palette.text.primary}})),A0=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersToolbarText"}),{className:s,value:a}=o,l=Ue(o,hI),i=mI(o);return R.jsx(gI,re({ref:r,className:Te(i.root,s),component:"span"},l,{children:a}))});function V0(e){return Ie("MuiPickersToolbar",e)}const yI=ke("MuiPickersToolbar",["root","content"]),bI=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],vI=e=>{const{classes:t}=e;return _e({root:["root"],content:["content"]},V0,t)},wI=se("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),xI=se("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),SI=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersToolbar"}),{children:s,className:a,toolbarTitle:l,hidden:i,titleId:c}=o,u=Ue(o,bI),d=o,h=vI(d);return i?null:R.jsxs(wI,re({ref:r,className:Te(h.root,a),ownerState:d},u,{children:[R.jsx(Er,{color:"text.secondary",variant:"overline",id:c,children:l}),R.jsx(xI,{className:h.content,ownerState:d,children:s})]}))});function CI(e){return Ie("MuiButton",e)}const Un=ke("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),F0=E.createContext({});process.env.NODE_ENV!=="production"&&(F0.displayName="ButtonGroupContext");const L0=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(L0.displayName="ButtonGroupButtonContext");const TI=e=>{const{color:t,disableElevation:r,fullWidth:o,size:s,variant:a,loading:l,loadingPosition:i,classes:c}=e,u={root:["root",l&&"loading",a,`${a}${Oe(t)}`,`size${Oe(s)}`,`${a}Size${Oe(s)}`,`color${Oe(t)}`,r&&"disableElevation",o&&"fullWidth",l&&`loadingPosition${Oe(i)}`],startIcon:["icon","startIcon",`iconSize${Oe(s)}`],endIcon:["icon","endIcon",`iconSize${Oe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=_e(u,CI,c);return{...c,...d}},q0=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],OI=se(Ur,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Oe(r.color)}`],t[`size${Oe(r.size)}`],t[`${r.variant}Size${Oe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Un.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Un.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Un.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Un.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Kt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:nt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Un.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Un.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Un.loading}`]:{color:"transparent"}}}]}})),PI=se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Oe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...q0]})),EI=se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Oe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...q0]})),kI=se("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),B0=se("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Wn=E.forwardRef(function(t,r){const o=E.useContext(F0),s=E.useContext(L0),a=Lo(o,t),l=tt({props:a,name:"MuiButton"}),{children:i,color:c="primary",component:u="button",className:d,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:w,focusVisibleClassName:f,fullWidth:y=!1,id:v,loading:p=null,loadingIndicator:b,loadingPosition:x="center",size:S="medium",startIcon:C,type:O,variant:k="text",..._}=l,T=mr(v),P=b??R.jsx(yf,{"aria-labelledby":T,color:"inherit",size:16}),D={...l,color:c,component:u,disabled:h,disableElevation:m,disableFocusRipple:g,fullWidth:y,loading:p,loadingIndicator:P,loadingPosition:x,size:S,type:O,variant:k},V=TI(D),M=(C||p&&x==="start")&&R.jsx(PI,{className:V.startIcon,ownerState:D,children:C||R.jsx(B0,{className:V.loadingIconPlaceholder,ownerState:D})}),N=(w||p&&x==="end")&&R.jsx(EI,{className:V.endIcon,ownerState:D,children:w||R.jsx(B0,{className:V.loadingIconPlaceholder,ownerState:D})}),F=s||"",K=typeof p=="boolean"?R.jsx("span",{className:V.loadingWrapper,style:{display:"contents"},children:p&&R.jsx(kI,{className:V.loadingIndicator,ownerState:D,children:P})}):null;return R.jsxs(OI,{ownerState:D,className:Te(o.className,V.root,d,F),component:u,disabled:h||p,focusRipple:!g,focusVisibleClassName:Te(V.focusVisible,f),ref:r,type:O,id:p?T:v,..._,classes:V,children:[M,x!=="end"&&K,i,x==="end"&&K,N]})});process.env.NODE_ENV!=="production"&&(Wn.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["inherit","primary","secondary","success","error","info","warning"]),n.string]),component:n.elementType,disabled:n.bool,disableElevation:n.bool,disableFocusRipple:n.bool,disableRipple:n.bool,endIcon:n.node,focusVisibleClassName:n.string,fullWidth:n.bool,href:n.string,id:n.string,loading:n.bool,loadingIndicator:n.node,loadingPosition:n.oneOf(["center","end","start"]),size:n.oneOfType([n.oneOf(["small","medium","large"]),n.string]),startIcon:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),type:n.oneOfType([n.oneOf(["button","reset","submit"]),n.string]),variant:n.oneOfType([n.oneOf(["contained","outlined","text"]),n.string])});const RI=["align","className","selected","typographyClassName","value","variant","width"],$I=e=>{const{classes:t}=e;return _e({root:["root"]},V0,t)},_I=se(Wn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Tn=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:a,selected:l,typographyClassName:i,value:c,variant:u,width:d}=o,h=Ue(o,RI),m=$I(o);return R.jsx(_I,re({variant:"text",ref:r,className:Te(m.root,a)},d?{sx:{width:d}}:{},h,{children:R.jsx(A0,{align:s,className:i,variant:u,value:c,selected:l})}))});function II(e){return Ie("MuiDateTimePickerToolbar",e)}const Pf=ke("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function DI(e,{disableFuture:t,maxDate:r,timezone:o}){const s=xt();return E.useMemo(()=>{const a=s.date(void 0,o),l=s.startOfMonth(t&&s.isBefore(a,r)?a:r);return!s.isAfter(l,e)},[t,r,e,s,o])}function MI(e,{disablePast:t,minDate:r,timezone:o}){const s=xt();return E.useMemo(()=>{const a=s.date(void 0,o),l=s.startOfMonth(t&&s.isAfter(a,r)?a:r);return!s.isBefore(l,e)},[t,r,e,s,o])}function Ef(e,t,r,o){const s=xt(),a=zR(e,s),l=E.useCallback(i=>{const c=e==null?null:UR(e,i,!!t,s);r(c,o??"partial")},[t,e,r,o,s]);return{meridiemMode:a,handleMeridiemChange:l}}const Ss=36,qi=2,Bi=320,jI=280,zi=336,z0=232,Cs=48,NI=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],AI=e=>{const{classes:t,isLandscape:r,isRtl:o}=e;return _e({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",o&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",o&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]},II,t)},VI=se(SI,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${yI.content} .${Of.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),FI=se("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),LI=se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:r})=>e&&t!=="desktop"&&r,style:{flexDirection:"column-reverse"}}]}),qI=se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),U0=se(A0,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),BI=se("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Pf.ampmLabel}`]:t.ampmLabel},{[`&.${Pf.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Pf.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function W0(e){const t=ht({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:o,value:s,onChange:a,view:l,isLandscape:i,onViewChange:c,toolbarFormat:u,toolbarPlaceholder:d="––",views:h,disabled:m,readOnly:g,toolbarVariant:w="mobile",toolbarTitle:f,className:y}=t,v=Ue(t,NI),p=Qt(),b=re({},t,{isRtl:p}),x=xt(),{meridiemMode:S,handleMeridiemChange:C}=Ef(s,r,a),O=!!(r&&!o),k=w==="desktop",_=ur(),T=AI(b),P=f??_.dateTimePickerToolbarTitle,D=M=>r?x.format(M,"hours12h"):x.format(M,"hours24h"),V=E.useMemo(()=>s?u?x.formatByString(s,u):x.format(s,"shortDate"):d,[s,u,d,x]);return R.jsxs(VI,re({isLandscape:i,className:Te(T.root,y),toolbarTitle:P},v,{ownerState:b,children:[R.jsxs(FI,{className:T.dateContainer,ownerState:b,children:[h.includes("year")&&R.jsx(Tn,{tabIndex:-1,variant:"subtitle1",onClick:()=>c("year"),selected:l==="year",value:s?x.format(s,"year"):"–"}),h.includes("day")&&R.jsx(Tn,{tabIndex:-1,variant:k?"h5":"h4",onClick:()=>c("day"),selected:l==="day",value:V})]}),R.jsxs(LI,{className:T.timeContainer,ownerState:b,children:[R.jsxs(qI,{className:T.timeDigitsContainer,ownerState:b,children:[h.includes("hours")&&R.jsxs(E.Fragment,{children:[R.jsx(Tn,{variant:k?"h5":"h3",width:k&&!i?Cs:void 0,onClick:()=>c("hours"),selected:l==="hours",value:s?D(s):"--"}),R.jsx(U0,{variant:k?"h5":"h3",value:":",className:T.separator,ownerState:b}),R.jsx(Tn,{variant:k?"h5":"h3",width:k&&!i?Cs:void 0,onClick:()=>c("minutes"),selected:l==="minutes"||!h.includes("minutes")&&l==="hours",value:s?x.format(s,"minutes"):"--",disabled:!h.includes("minutes")})]}),h.includes("seconds")&&R.jsxs(E.Fragment,{children:[R.jsx(U0,{variant:k?"h5":"h3",value:":",className:T.separator,ownerState:b}),R.jsx(Tn,{variant:k?"h5":"h3",width:k&&!i?Cs:void 0,onClick:()=>c("seconds"),selected:l==="seconds",value:s?x.format(s,"seconds"):"--"})]})]}),O&&!k&&R.jsxs(BI,{className:T.ampmSelection,ownerState:b,children:[R.jsx(Tn,{variant:"subtitle2",selected:S==="am",typographyClassName:T.ampmLabel,value:ln(x,"am"),onClick:g?void 0:()=>C("am"),disabled:m}),R.jsx(Tn,{variant:"subtitle2",selected:S==="pm",typographyClassName:T.ampmLabel,value:ln(x,"pm"),onClick:g?void 0:()=>C("pm"),disabled:m})]}),r&&k&&R.jsx(Tn,{variant:"h5",onClick:()=>c("meridiem"),selected:l==="meridiem",value:s&&S?ln(x,S):"--",width:Cs})]})]}))}process.env.NODE_ENV!=="production"&&(W0.propTypes={ampm:n.bool,ampmInClock:n.bool,classes:n.object,className:n.string,disabled:n.bool,hidden:n.bool,isLandscape:n.bool.isRequired,onChange:n.func.isRequired,onViewChange:n.func.isRequired,readOnly:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),titleId:n.string,toolbarFormat:n.string,toolbarPlaceholder:n.node,toolbarTitle:n.node,toolbarVariant:n.oneOf(["desktop","mobile"]),value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:n.arrayOf(n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired});function H0(e,t){var i;const r=xt(),o=vs(),s=ht({props:e,name:t}),a=s.ampm??r.is12HourCycleInCurrentLocale(),l=E.useMemo(()=>{var c;return((c=s.localeText)==null?void 0:c.toolbarTitle)==null?s.localeText:re({},s.localeText,{dateTimePickerToolbarTitle:s.localeText.toolbarTitle})},[s.localeText]);return re({},s,VR({views:s.views,openTo:s.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:a,localeText:l,orientation:s.orientation??"portrait",disableIgnoringDatePartForTimeValidation:s.disableIgnoringDatePartForTimeValidation??!!(s.minDateTime||s.maxDateTime||s.disablePast||s.disableFuture),disableFuture:s.disableFuture??!1,disablePast:s.disablePast??!1,minDate:kr(r,s.minDateTime??s.minDate,o.minDate),maxDate:kr(r,s.maxDateTime??s.maxDate,o.maxDate),minTime:s.minDateTime??s.minTime,maxTime:s.maxDateTime??s.maxTime,slots:re({toolbar:W0,tabs:N0},s.slots),slotProps:re({},s.slotProps,{toolbar:re({ampm:a},(i=s.slotProps)==null?void 0:i.toolbar)})})}const Y0=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:o,maxDate:s,disableFuture:a,disablePast:l,timezone:i})=>{const c=qn();return E.useCallback(u=>ff({adapter:c,value:u,timezone:i,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:r,minDate:o,maxDate:s,disableFuture:a,disablePast:l}})!==null,[c,e,t,r,o,s,a,l,i])},zI=(e,t,r)=>(o,s)=>{switch(s.type){case"changeMonth":return re({},o,{slideDirection:s.direction,currentMonth:s.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const a=s.newTimezone;if(r.getTimezone(o.currentMonth)===a)return o;let l=r.setTimezone(o.currentMonth,a);return r.getMonth(l)!==r.getMonth(o.currentMonth)&&(l=r.setMonth(l,r.getMonth(o.currentMonth))),re({},o,{currentMonth:l})}case"finishMonthSwitchingAnimation":return re({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&s.focusedDay!=null&&r.isSameDay(s.focusedDay,o.focusedDay))return o;const a=s.focusedDay!=null&&!t&&!r.isSameMonth(o.currentMonth,s.focusedDay);return re({},o,{focusedDay:s.focusedDay,isMonthSwitchingAnimating:a&&!e&&!s.withoutMonthSwitchingAnimation,currentMonth:a?r.startOfMonth(s.focusedDay):o.currentMonth,slideDirection:s.focusedDay!=null&&r.isAfterDay(s.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},UI=e=>{const{value:t,referenceDate:r,disableFuture:o,disablePast:s,disableSwitchToMonthOnDayFocus:a=!1,maxDate:l,minDate:i,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:h}=e,m=xt(),g=E.useRef(zI(!!u,a,m)).current,w=E.useMemo(()=>tr.getInitialReferenceValue({value:t,utils:m,timezone:h,props:e,referenceDate:r,granularity:Ar.day}),[r,h]),[f,y]=E.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:w,currentMonth:m.startOfMonth(w),slideDirection:"left"});E.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:m.getTimezone(w)})},[w,m]);const v=E.useCallback(C=>{y(re({type:"changeMonth"},C)),c&&c(C.newMonth)},[c]),p=E.useCallback(C=>{const O=C;m.isSameMonth(O,f.currentMonth)||v({newMonth:m.startOfMonth(O),direction:m.isAfterDay(O,f.currentMonth)?"left":"right"})},[f.currentMonth,v,m]),b=Y0({shouldDisableDate:d,minDate:i,maxDate:l,disableFuture:o,disablePast:s,timezone:h}),x=E.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),S=Re((C,O)=>{b(C)||y({type:"changeFocusedDay",focusedDay:C,withoutMonthSwitchingAnimation:O})});return{referenceDate:w,calendarState:f,changeMonth:p,changeFocusedDay:S,isDateDisabled:b,onMonthSwitchingAnimationEnd:x,handleChangeMonth:v}},WI=e=>Ie("MuiPickersFadeTransitionGroup",e);ke("MuiPickersFadeTransitionGroup",["root"]);const HI=e=>{const{classes:t}=e;return _e({root:["root"]},WI,t)},YI=se(rs,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function K0(e){const t=ht({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:o,reduceAnimations:s,transKey:a}=t,l=HI(t),i=jn();return s?r:R.jsx(YI,{className:Te(l.root,o),children:R.jsx(xn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:i.transitions.duration.enteringScreen,enter:i.transitions.duration.enteringScreen,exit:0},children:r},a)})}function KI(e){return Ie("MuiPickersDay",e)}const Hn=ke("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),GI=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],XI=e=>{const{selected:t,disableMargin:r,disableHighlightToday:o,today:s,disabled:a,outsideCurrentMonth:l,showDaysOutsideCurrentMonth:i,classes:c}=e,u=l&&!i;return _e({root:["root",t&&!u&&"selected",a&&"disabled",!r&&"dayWithMargin",!o&&s&&"today",l&&i&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},KI,c)},G0=({theme:e})=>re({},e.typography.caption,{width:Ss,height:Ss,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})`:nt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:nt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Hn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Hn.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}},[`&.${Hn.disabled}:not(.${Hn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hn.disabled}&.${Hn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${qi}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Hn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),X0=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},JI=se(Ur,{name:"MuiPickersDay",slot:"Root",overridesResolver:X0})(G0),ZI=se("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:X0})(({theme:e})=>re({},G0({theme:e}),{opacity:0,pointerEvents:"none"})),Ts=()=>{},J0=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:a,day:l,disabled:i=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:h,onDaySelect:m,onFocus:g=Ts,onBlur:w=Ts,onKeyDown:f=Ts,onMouseDown:y=Ts,onMouseEnter:v=Ts,outsideCurrentMonth:p,selected:b=!1,showDaysOutsideCurrentMonth:x=!1,children:S,today:C=!1}=o,O=Ue(o,GI),k=re({},o,{autoFocus:s,disabled:i,disableHighlightToday:c,disableMargin:u,selected:b,showDaysOutsideCurrentMonth:x,today:C}),_=XI(k),T=xt(),P=E.useRef(null),D=ft(P,r);qt(()=>{s&&!i&&!d&&!p&&P.current.focus()},[s,i,d,p]);const V=N=>{y(N),p&&N.preventDefault()},M=N=>{i||m(l),p&&N.currentTarget.focus(),h&&h(N)};return p&&!x?R.jsx(ZI,{className:Te(_.root,_.hiddenDaySpacingFiller,a),ownerState:k,role:O.role}):R.jsx(JI,re({className:Te(_.root,a),ref:D,centerRipple:!0,disabled:i,tabIndex:b?0:-1,onKeyDown:N=>f(N,l),onFocus:N=>g(N,l),onBlur:N=>w(N,l),onMouseEnter:N=>v(N,l),onClick:M,onMouseDown:V},O,{ownerState:k,children:S||T.format(l,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(J0.propTypes={action:n.oneOfType([n.func,n.shape({current:n.shape({focusVisible:n.func.isRequired})})]),centerRipple:n.bool,classes:n.object,className:n.string,component:n.elementType,day:n.object.isRequired,disabled:n.bool,disableHighlightToday:n.bool,disableMargin:n.bool,disableRipple:n.bool,disableTouchRipple:n.bool,focusRipple:n.bool,focusVisibleClassName:n.string,isAnimating:n.bool,isFirstVisibleCell:n.bool.isRequired,isLastVisibleCell:n.bool.isRequired,onBlur:n.func,onDaySelect:n.func.isRequired,onFocus:n.func,onFocusVisible:n.func,onKeyDown:n.func,onMouseEnter:n.func,outsideCurrentMonth:n.bool.isRequired,selected:n.bool,showDaysOutsideCurrentMonth:n.bool,style:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),tabIndex:n.number,today:n.bool,TouchRippleProps:n.object,touchRippleRef:n.oneOfType([n.func,n.shape({current:n.shape({pulsate:n.func.isRequired,start:n.func.isRequired,stop:n.func.isRequired})})])});const QI=E.memo(J0),eD=e=>Ie("MuiPickersSlideTransition",e),$r=ke("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),tD=["children","className","reduceAnimations","slideDirection","transKey","classes"],rD=e=>{const{classes:t,slideDirection:r}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${r}`],exitActive:[`slideExitActiveLeft-${r}`]};return _e(o,eD,t)},nD=se(rs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${$r["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${$r["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${$r.slideEnterActive}`]:t.slideEnterActive},{[`.${$r.slideExit}`]:t.slideExit},{[`.${$r["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${$r["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},[`& .${$r["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${$r["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${$r.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${$r.slideExit}`]:{transform:"translate(0%)"},[`& .${$r["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${$r["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function oD(e){const t=ht({props:e,name:"MuiPickersSlideTransition"}),{children:r,className:o,reduceAnimations:s,transKey:a}=t,l=Ue(t,tD),i=rD(t),c=jn();if(s)return R.jsx("div",{className:Te(i.root,o),children:r});const u={exit:i.exit,enterActive:i.enterActive,enter:i.enter,exitActive:i.exitActive};return R.jsx(nD,{className:Te(i.root,o),childFactory:d=>E.cloneElement(d,{classNames:u}),role:"presentation",children:R.jsx(Ud,re({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:u},l,{children:r}),a)})}const sD=e=>Ie("MuiDayCalendar",e);ke("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const aD=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],iD=["ownerState"],lD=e=>{const{classes:t}=e;return _e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},sD,t)},Z0=(Ss+qi*2)*6,cD=se("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uD=se("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),dD=se(Er,{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})),fD=se(Er,{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})),pD=se(Er,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>re({},e.typography.caption,{width:Ss,height:Ss,padding:0,margin:`0 ${qi}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),hD=se("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Z0}),mD=se(oD,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Z0}),gD=se("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),yD=se("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${qi}px 0`,display:"flex",justifyContent:"center"});function bD(e){let{parentProps:t,day:r,focusableDay:o,selectedDays:s,isDateDisabled:a,currentMonthNumber:l,isViewFocused:i}=e,c=Ue(e,aD);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:m,slots:g,slotProps:w,timezone:f}=t,y=xt(),v=Bn(f),p=o!==null&&y.isSameDay(r,o),b=s.some(D=>y.isSameDay(D,r)),x=y.isSameDay(r,v),S=(g==null?void 0:g.day)??QI,C=lt({elementType:S,externalSlotProps:w==null?void 0:w.day,additionalProps:re({disableHighlightToday:d,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:h,"data-timestamp":y.toJsDate(r).valueOf()},c),ownerState:re({},t,{day:r,selected:b})}),O=Ue(C,iD),k=E.useMemo(()=>u||a(r),[u,a,r]),_=E.useMemo(()=>y.getMonth(r)!==l,[y,r,l]),T=E.useMemo(()=>{const D=y.startOfMonth(y.setMonth(r,l));return m?y.isSameDay(r,y.startOfWeek(D)):y.isSameDay(r,D)},[l,r,m,y]),P=E.useMemo(()=>{const D=y.endOfMonth(y.setMonth(r,l));return m?y.isSameDay(r,y.endOfWeek(D)):y.isSameDay(r,D)},[l,r,m,y]);return R.jsx(S,re({},O,{day:r,disabled:k,autoFocus:i&&p,today:x,outsideCurrentMonth:_,isFirstVisibleCell:T,isLastVisibleCell:P,selected:b,tabIndex:p?0:-1,"aria-selected":b,"aria-current":x?"date":void 0}))}function vD(e){const t=ht({props:e,name:"MuiDayCalendar"}),r=xt(),{onFocusedDayChange:o,className:s,currentMonth:a,selectedDays:l,focusedDay:i,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:h,reduceAnimations:m,renderLoading:g=()=>R.jsx("span",{children:"..."}),slideDirection:w,TransitionProps:f,disablePast:y,disableFuture:v,minDate:p,maxDate:b,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,dayOfWeekFormatter:O=ae=>r.format(ae,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:_,gridLabelId:T,displayWeekNumber:P,fixedWeekNumber:D,autoFocus:V,timezone:M}=t,N=Bn(M),F=lD(t),K=Qt(),H=Y0({shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,minDate:p,maxDate:b,disablePast:y,disableFuture:v,timezone:M}),Z=ur(),[L,j]=cr({name:"DayCalendar",state:"hasFocus",controlled:k,default:V??!1}),[Y,q]=E.useState(()=>i||N),$=Re(ae=>{h||u(ae)}),I=ae=>{H(ae)||(o(ae),q(ae),_==null||_(!0),j(!0))},U=Re((ae,J)=>{switch(ae.key){case"ArrowUp":I(r.addDays(J,-7)),ae.preventDefault();break;case"ArrowDown":I(r.addDays(J,7)),ae.preventDefault();break;case"ArrowLeft":{const fe=r.addDays(J,K?1:-1),le=r.addMonths(J,K?1:-1),ge=hs({utils:r,date:fe,minDate:K?fe:r.startOfMonth(le),maxDate:K?r.endOfMonth(le):fe,isDateDisabled:H,timezone:M});I(ge||fe),ae.preventDefault();break}case"ArrowRight":{const fe=r.addDays(J,K?-1:1),le=r.addMonths(J,K?-1:1),ge=hs({utils:r,date:fe,minDate:K?r.startOfMonth(le):fe,maxDate:K?fe:r.endOfMonth(le),isDateDisabled:H,timezone:M});I(ge||fe),ae.preventDefault();break}case"Home":I(r.startOfWeek(J)),ae.preventDefault();break;case"End":I(r.endOfWeek(J)),ae.preventDefault();break;case"PageUp":I(r.addMonths(J,1)),ae.preventDefault();break;case"PageDown":I(r.addMonths(J,-1)),ae.preventDefault();break}}),Q=Re((ae,J)=>I(J)),W=Re((ae,J)=>{L&&r.isSameDay(Y,J)&&(_==null||_(!1))}),ee=r.getMonth(a),ne=r.getYear(a),B=E.useMemo(()=>l.filter(ae=>!!ae).map(ae=>r.startOfDay(ae)),[r,l]),A=`${ne}-${ee}`,z=E.useMemo(()=>E.createRef(),[A]),X=E.useMemo(()=>{const ae=r.startOfMonth(a),J=r.endOfMonth(a);return H(Y)||r.isAfterDay(Y,J)||r.isBeforeDay(Y,ae)?hs({utils:r,date:Y,minDate:ae,maxDate:J,disablePast:y,disableFuture:v,isDateDisabled:H,timezone:M}):Y},[a,v,y,Y,H,r,M]),te=E.useMemo(()=>{const ae=r.getWeekArray(a);let J=r.addMonths(a,1);for(;D&&ae.length<D;){const fe=r.getWeekArray(J),le=r.isSameDay(ae[ae.length-1][0],fe[0][0]);fe.slice(le?1:0).forEach(ge=>{ae.length<D&&ae.push(ge)}),J=r.addMonths(J,1)}return ae},[a,D,r]);return R.jsxs(cD,{role:"grid","aria-labelledby":T,className:F.root,children:[R.jsxs(uD,{role:"row",className:F.header,children:[P&&R.jsx(fD,{variant:"caption",role:"columnheader","aria-label":Z.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:Z.calendarWeekNumberHeaderText}),BR(r,N).map((ae,J)=>R.jsx(dD,{variant:"caption",role:"columnheader","aria-label":r.format(ae,"weekday"),className:F.weekDayLabel,children:O(ae)},J.toString()))]}),c?R.jsx(hD,{className:F.loadingContainer,children:g()}):R.jsx(mD,re({transKey:A,onExited:d,reduceAnimations:m,slideDirection:w,className:Te(s,F.slideTransition)},f,{nodeRef:z,children:R.jsx(gD,{ref:z,role:"rowgroup",className:F.monthContainer,children:te.map((ae,J)=>R.jsxs(yD,{role:"row",className:F.weekContainer,"aria-rowindex":J+1,children:[P&&R.jsx(pD,{className:F.weekNumber,role:"rowheader","aria-label":Z.calendarWeekNumberAriaLabelText(r.getWeekNumber(ae[0])),children:Z.calendarWeekNumberText(r.getWeekNumber(ae[0]))}),ae.map((fe,le)=>R.jsx(bD,{parentProps:t,day:fe,selectedDays:B,focusableDay:X,onKeyDown:U,onFocus:Q,onBlur:W,onDaySelect:$,isDateDisabled:H,currentMonthNumber:ee,isViewFocused:L,"aria-colindex":le+1},fe.toString()))]},`week-${ae[0]}`))})}))]})}function wD(e){return Ie("MuiPickersMonth",e)}const Ui=ke("MuiPickersMonth",["root","monthButton","disabled","selected"]),xD=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],SD=e=>{const{disabled:t,selected:r,classes:o}=e;return _e({root:["root"],monthButton:["monthButton",t&&"disabled",r&&"selected"]},wD,o)},CD=se("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),TD=se("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ui.disabled}`]:t.disabled},{[`&.${Ui.selected}`]:t.selected}]})(({theme:e})=>re({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})`:nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ui.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),OD=E.memo(function(t){const r=ht({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:s,children:a,disabled:l,selected:i,value:c,tabIndex:u,onClick:d,onKeyDown:h,onFocus:m,onBlur:g,"aria-current":w,"aria-label":f,slots:y,slotProps:v}=r,p=Ue(r,xD),b=E.useRef(null),x=SD(r);qt(()=>{var O;o&&((O=b.current)==null||O.focus())},[o]);const S=(y==null?void 0:y.monthButton)??TD,C=lt({elementType:S,externalSlotProps:v==null?void 0:v.monthButton,additionalProps:{children:a,disabled:l,tabIndex:u,ref:b,type:"button",role:"radio","aria-current":w,"aria-checked":i,"aria-label":f,onClick:O=>d(O,c),onKeyDown:O=>h(O,c),onFocus:O=>m(O,c),onBlur:O=>g(O,c)},ownerState:r,className:x.monthButton});return R.jsx(CD,re({className:Te(x.root,s),ownerState:r},p,{children:R.jsx(S,re({},C))}))});function PD(e){return Ie("MuiMonthCalendar",e)}ke("MuiMonthCalendar",["root"]);const ED=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],kD=e=>{const{classes:t}=e;return _e({root:["root"]},PD,t)};function RD(e,t){const r=xt(),o=vs(),s=ht({props:e,name:t});return re({disableFuture:!1,disablePast:!1},s,{minDate:kr(r,s.minDate,o.minDate),maxDate:kr(r,s.maxDate,o.maxDate)})}const $D=se("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Bi,boxSizing:"border-box"}),Q0=E.forwardRef(function(t,r){const o=RD(t,"MuiMonthCalendar"),{className:s,value:a,defaultValue:l,referenceDate:i,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:m,onChange:g,shouldDisableMonth:w,readOnly:f,autoFocus:y=!1,onMonthFocus:v,hasFocus:p,onFocusedViewChange:b,monthsPerRow:x=3,timezone:S,gridLabelId:C,slots:O,slotProps:k}=o,_=Ue(o,ED),{value:T,handleValueChange:P,timezone:D}=ho({name:"MonthCalendar",timezone:S,value:a,defaultValue:l,referenceDate:i,onChange:g,valueManager:tr}),V=Bn(D),M=Qt(),N=xt(),F=E.useMemo(()=>tr.getInitialReferenceValue({value:T,utils:N,props:o,timezone:D,referenceDate:i,granularity:Ar.month}),[]),K=o,H=kD(K),Z=E.useMemo(()=>N.getMonth(V),[N,V]),L=E.useMemo(()=>T!=null?N.getMonth(T):null,[T,N]),[j,Y]=E.useState(()=>L||N.getMonth(F)),[q,$]=cr({name:"MonthCalendar",state:"hasFocus",controlled:p,default:y??!1}),I=Re(A=>{$(A),b&&b(A)}),U=E.useCallback(A=>{const z=N.startOfMonth(d&&N.isAfter(V,m)?V:m),X=N.startOfMonth(u&&N.isBefore(V,h)?V:h),te=N.startOfMonth(A);return N.isBefore(te,z)||N.isAfter(te,X)?!0:w?w(te):!1},[u,d,h,m,V,w,N]),Q=Re((A,z)=>{if(f)return;const X=N.setMonth(T??F,z);P(X)}),W=Re(A=>{U(N.setMonth(T??F,A))||(Y(A),I(!0),v&&v(A))});E.useEffect(()=>{Y(A=>L!==null&&A!==L?L:A)},[L]);const ee=Re((A,z)=>{switch(A.key){case"ArrowUp":W((12+z-3)%12),A.preventDefault();break;case"ArrowDown":W((12+z+3)%12),A.preventDefault();break;case"ArrowLeft":W((12+z+(M?1:-1))%12),A.preventDefault();break;case"ArrowRight":W((12+z+(M?-1:1))%12),A.preventDefault();break}}),ne=Re((A,z)=>{W(z)}),B=Re((A,z)=>{j===z&&I(!1)});return R.jsx($D,re({ref:r,className:Te(H.root,s),ownerState:K,role:"radiogroup","aria-labelledby":C},_,{children:sf(N,T??F).map(A=>{const z=N.getMonth(A),X=N.format(A,"monthShort"),te=N.format(A,"month"),ae=z===L,J=c||U(A);return R.jsx(OD,{selected:ae,value:z,onClick:Q,onKeyDown:ee,autoFocus:q&&z===j,disabled:J,tabIndex:z===j&&!J?0:-1,onFocus:ne,onBlur:B,"aria-current":Z===z?"date":void 0,"aria-label":te,monthsPerRow:x,slots:O,slotProps:k,children:X},X)})}))});process.env.NODE_ENV!=="production"&&(Q0.propTypes={autoFocus:n.bool,classes:n.object,className:n.string,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disablePast:n.bool,gridLabelId:n.string,hasFocus:n.bool,maxDate:n.object,minDate:n.object,monthsPerRow:n.oneOf([3,4]),onChange:n.func,onFocusedViewChange:n.func,onMonthFocus:n.func,readOnly:n.bool,referenceDate:n.object,shouldDisableMonth:n.func,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object});function _D(e){return Ie("MuiPickersYear",e)}const Wi=ke("MuiPickersYear",["root","yearButton","selected","disabled"]),ID=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],DD=e=>{const{disabled:t,selected:r,classes:o}=e;return _e({root:["root"],yearButton:["yearButton",t&&"disabled",r&&"selected"]},_D,o)},MD=se("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),jD=se("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Wi.disabled}`]:t.disabled},{[`&.${Wi.selected}`]:t.selected}]})(({theme:e})=>re({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})`:nt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Wi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ND=E.memo(function(t){const r=ht({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:s,children:a,disabled:l,selected:i,value:c,tabIndex:u,onClick:d,onKeyDown:h,onFocus:m,onBlur:g,"aria-current":w,slots:f,slotProps:y}=r,v=Ue(r,ID),p=E.useRef(null),b=DD(r);qt(()=>{var C;o&&((C=p.current)==null||C.focus())},[o]);const x=(f==null?void 0:f.yearButton)??jD,S=lt({elementType:x,externalSlotProps:y==null?void 0:y.yearButton,additionalProps:{children:a,disabled:l,tabIndex:u,ref:p,type:"button",role:"radio","aria-current":w,"aria-checked":i,onClick:C=>d(C,c),onKeyDown:C=>h(C,c),onFocus:C=>m(C,c),onBlur:C=>g(C,c)},ownerState:r,className:b.yearButton});return R.jsx(MD,re({className:Te(b.root,s),ownerState:r},v,{children:R.jsx(x,re({},S))}))});function AD(e){return Ie("MuiYearCalendar",e)}ke("MuiYearCalendar",["root"]);const VD=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],FD=e=>{const{classes:t}=e;return _e({root:["root"]},AD,t)};function LD(e,t){const r=xt(),o=vs(),s=ht({props:e,name:t});return re({disablePast:!1,disableFuture:!1},s,{yearsPerRow:s.yearsPerRow??3,minDate:kr(r,s.minDate,o.minDate),maxDate:kr(r,s.maxDate,o.maxDate)})}const qD=se("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Bi,maxHeight:jI,boxSizing:"border-box",position:"relative"}),ew=E.forwardRef(function(t,r){const o=LD(t,"MuiYearCalendar"),{autoFocus:s,className:a,value:l,defaultValue:i,referenceDate:c,disabled:u,disableFuture:d,disablePast:h,maxDate:m,minDate:g,onChange:w,readOnly:f,shouldDisableYear:y,onYearFocus:v,hasFocus:p,onFocusedViewChange:b,yearsOrder:x="asc",yearsPerRow:S,timezone:C,gridLabelId:O,slots:k,slotProps:_}=o,T=Ue(o,VD),{value:P,handleValueChange:D,timezone:V}=ho({name:"YearCalendar",timezone:C,value:l,defaultValue:i,referenceDate:c,onChange:w,valueManager:tr}),M=Bn(V),N=Qt(),F=xt(),K=E.useMemo(()=>tr.getInitialReferenceValue({value:P,utils:F,props:o,timezone:V,referenceDate:c,granularity:Ar.year}),[]),H=o,Z=FD(H),L=E.useMemo(()=>F.getYear(M),[F,M]),j=E.useMemo(()=>P!=null?F.getYear(P):null,[P,F]),[Y,q]=E.useState(()=>j||F.getYear(K)),[$,I]=cr({name:"YearCalendar",state:"hasFocus",controlled:p,default:s??!1}),U=Re(fe=>{I(fe),b&&b(fe)}),Q=E.useCallback(fe=>{if(h&&F.isBeforeYear(fe,M)||d&&F.isAfterYear(fe,M)||g&&F.isBeforeYear(fe,g)||m&&F.isAfterYear(fe,m))return!0;if(!y)return!1;const le=F.startOfYear(fe);return y(le)},[d,h,m,g,M,y,F]),W=Re((fe,le)=>{if(f)return;const ge=F.setYear(P??K,le);D(ge)}),ee=Re(fe=>{Q(F.setYear(P??K,fe))||(q(fe),U(!0),v==null||v(fe))});E.useEffect(()=>{q(fe=>j!==null&&fe!==j?j:fe)},[j]);const ne=x!=="desc"?S*1:S*-1,B=N&&x==="asc"||!N&&x==="desc"?-1:1,A=Re((fe,le)=>{switch(fe.key){case"ArrowUp":ee(le-ne),fe.preventDefault();break;case"ArrowDown":ee(le+ne),fe.preventDefault();break;case"ArrowLeft":ee(le-B),fe.preventDefault();break;case"ArrowRight":ee(le+B),fe.preventDefault();break}}),z=Re((fe,le)=>{ee(le)}),X=Re((fe,le)=>{Y===le&&U(!1)}),te=E.useRef(null),ae=ft(r,te);E.useEffect(()=>{if(s||te.current===null)return;const fe=te.current.querySelector('[tabindex="0"]');if(!fe)return;const le=fe.offsetHeight,ge=fe.offsetTop,Se=te.current.clientHeight,Ce=te.current.scrollTop,Fe=ge+le;le>Se||ge<Ce||(te.current.scrollTop=Fe-Se/2-le/2)},[s]);const J=F.getYearRange([g,m]);return x==="desc"&&J.reverse(),R.jsx(qD,re({ref:ae,className:Te(Z.root,a),ownerState:H,role:"radiogroup","aria-labelledby":O},T,{children:J.map(fe=>{const le=F.getYear(fe),ge=le===j,Se=u||Q(fe);return R.jsx(ND,{selected:ge,value:le,onClick:W,onKeyDown:A,autoFocus:$&&le===Y,disabled:Se,tabIndex:le===Y&&!Se?0:-1,onFocus:z,onBlur:X,"aria-current":L===le?"date":void 0,yearsPerRow:S,slots:k,slotProps:_,children:F.format(fe,"year")},F.format(fe,"year"))})}))});process.env.NODE_ENV!=="production"&&(ew.propTypes={autoFocus:n.bool,classes:n.object,className:n.string,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disablePast:n.bool,gridLabelId:n.string,hasFocus:n.bool,maxDate:n.object,minDate:n.object,onChange:n.func,onFocusedViewChange:n.func,onYearFocus:n.func,readOnly:n.bool,referenceDate:n.object,shouldDisableYear:n.func,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])});let kf=!1;function Os({onChange:e,onViewChange:t,openTo:r,view:o,views:s,autoFocus:a,focusedView:l,onFocusedViewChange:i}){process.env.NODE_ENV!=="production"&&(kf||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),kf=!0),o==null&&r!=null&&!s.includes(r)&&(console.warn(`MUI X: \`openTo="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),kf=!0)));const c=E.useRef(r),u=E.useRef(s),d=E.useRef(s.includes(r)?r:s[0]),[h,m]=cr({name:"useViews",state:"view",controlled:o,default:d.current}),g=E.useRef(a?h:null),[w,f]=cr({name:"useViews",state:"focusedView",controlled:l,default:g.current});E.useEffect(()=>{(c.current&&c.current!==r||u.current&&u.current.some(O=>!s.includes(O)))&&(m(s.includes(r)?r:s[0]),u.current=s,c.current=r)},[r,m,h,s]);const y=s.indexOf(h),v=s[y-1]??null,p=s[y+1]??null,b=Re((O,k)=>{f(k?O:_=>O===_?null:_),i==null||i(O,k)}),x=Re(O=>{b(O,!0),O!==h&&(m(O),t&&t(O))}),S=Re(()=>{p&&x(p)}),C=Re((O,k,_)=>{const T=k==="finish",P=_?s.indexOf(_)<s.length-1:!!p;if(e(O,T&&P?"partial":k,_),_&&_!==h){const V=s[s.indexOf(_)+1];V&&x(V)}else T&&S()});return{view:h,setView:x,focusedView:w,setFocusedView:b,nextView:p,previousView:v,defaultView:s.includes(r)?r:s[0],goToNextView:S,setValueAndGoToNextView:C}}const BD=e=>Ie("MuiPickersCalendarHeader",e),zD=ke("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function UD(e){return Ie("MuiPickersArrowSwitcher",e)}ke("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const WD=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],HD=["ownerState"],YD=["ownerState"],KD=se("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),GD=se("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),tw=se(Yr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),XD=e=>{const{classes:t}=e;return _e({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},UD,t)},rw=E.forwardRef(function(t,r){const o=Qt(),s=ht({props:t,name:"MuiPickersArrowSwitcher"}),{children:a,className:l,slots:i,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:h,nextLabel:m,isPreviousDisabled:g,isPreviousHidden:w,onGoToPrevious:f,previousLabel:y,labelId:v}=s,p=Ue(s,WD),b=s,x=XD(b),S={isDisabled:u,isHidden:d,goTo:h,label:m},C={isDisabled:g,isHidden:w,goTo:f,label:y},O=(i==null?void 0:i.previousIconButton)??tw,k=lt({elementType:O,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"end",onClick:C.goTo},ownerState:re({},b,{hidden:C.isHidden}),className:Te(x.button,x.previousIconButton)}),_=(i==null?void 0:i.nextIconButton)??tw,T=lt({elementType:_,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"start",onClick:S.goTo},ownerState:re({},b,{hidden:S.isHidden}),className:Te(x.button,x.nextIconButton)}),P=(i==null?void 0:i.leftArrowIcon)??U$,D=lt({elementType:P,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:x.leftArrowIcon}),V=Ue(D,HD),M=(i==null?void 0:i.rightArrowIcon)??W$,N=lt({elementType:M,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:b,className:x.rightArrowIcon}),F=Ue(N,YD);return R.jsxs(KD,re({ref:r,className:Te(x.root,l),ownerState:b},p,{children:[R.jsx(O,re({},k,{children:o?R.jsx(M,re({},F)):R.jsx(P,re({},V))})),a?R.jsx(Er,{variant:"subtitle1",component:"span",id:v,children:a}):R.jsx(GD,{className:x.spacer,ownerState:b}),R.jsx(_,re({},T,{children:o?R.jsx(P,re({},V)):R.jsx(M,re({},F))}))]}))}),JD=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],ZD=["ownerState"],QD=e=>{const{classes:t}=e;return _e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},BD,t)},eM=se("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),tM=se("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>re({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),rM=se("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),nM=se(Yr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${zD.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),oM=se(z$,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),nw=E.forwardRef(function(t,r){const o=ur(),s=xt(),a=ht({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:i,currentMonth:c,disabled:u,disableFuture:d,disablePast:h,maxDate:m,minDate:g,onMonthChange:w,onViewChange:f,view:y,reduceAnimations:v,views:p,labelId:b,className:x,timezone:S,format:C=`${s.formats.month} ${s.formats.year}`}=a,O=Ue(a,JD),k=a,_=QD(a),T=(l==null?void 0:l.switchViewButton)??nM,P=lt({elementType:T,externalSlotProps:i==null?void 0:i.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:k,className:_.switchViewButton}),D=(l==null?void 0:l.switchViewIcon)??oM,V=lt({elementType:D,externalSlotProps:i==null?void 0:i.switchViewIcon,ownerState:k,className:_.switchViewIcon}),M=Ue(V,ZD),N=()=>w(s.addMonths(c,1),"left"),F=()=>w(s.addMonths(c,-1),"right"),K=DI(c,{disableFuture:d,maxDate:m,timezone:S}),H=MI(c,{disablePast:h,minDate:g,timezone:S}),Z=()=>{if(!(p.length===1||!f||u))if(p.length===2)f(p.find(j=>j!==y)||p[0]);else{const j=p.indexOf(y)!==0?0:1;f(p[j])}};if(p.length===1&&p[0]==="year")return null;const L=s.formatByString(c,C);return R.jsxs(eM,re({},O,{ownerState:k,className:Te(_.root,x),ref:r,children:[R.jsxs(tM,{role:"presentation",onClick:Z,ownerState:k,"aria-live":"polite",className:_.labelContainer,children:[R.jsx(K0,{reduceAnimations:v,transKey:L,children:R.jsx(rM,{id:b,ownerState:k,className:_.label,children:L})}),p.length>1&&!u&&R.jsx(T,re({},P,{children:R.jsx(D,re({},M))}))]}),R.jsx(xn,{in:y==="day",appear:!v,enter:!v,children:R.jsx(rw,{slots:l,slotProps:i,onGoToPrevious:F,isPreviousDisabled:H,previousLabel:o.previousMonth,onGoToNext:N,isNextDisabled:K,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(nw.propTypes={classes:n.object,className:n.string,currentMonth:n.object.isRequired,disabled:n.bool,disableFuture:n.bool,disablePast:n.bool,format:n.string,labelId:n.string,maxDate:n.object.isRequired,minDate:n.object.isRequired,onMonthChange:n.func.isRequired,onViewChange:n.func,reduceAnimations:n.bool.isRequired,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string.isRequired,view:n.oneOf(["day","month","year"]).isRequired,views:n.arrayOf(n.oneOf(["day","month","year"]).isRequired).isRequired});const Hi=se("div")({overflow:"hidden",width:Bi,maxHeight:zi,display:"flex",flexDirection:"column",margin:"0 auto"}),sM="@media (prefers-reduced-motion: reduce)",bo=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ow=bo&&bo[1]?parseInt(bo[1],10):null,sw=bo&&bo[2]?parseInt(bo[2],10):null,aM=ow&&ow<10||sw&&sw<13||!1,aw=()=>Wv(sM,{defaultMatches:!1})||aM,iM=e=>Ie("MuiDateCalendar",e);ke("MuiDateCalendar",["root","viewTransitionContainer"]);const lM=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],cM=e=>{const{classes:t}=e;return _e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},iM,t)};function uM(e,t){const r=xt(),o=vs(),s=aw(),a=ht({props:e,name:t});return re({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??"day",views:a.views??["year","day"],reduceAnimations:a.reduceAnimations??s,renderLoading:a.renderLoading??(()=>R.jsx("span",{children:"..."})),minDate:kr(r,a.minDate,o.minDate),maxDate:kr(r,a.maxDate,o.maxDate)})}const dM=se(Hi,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:zi}),fM=se(K0,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),iw=E.forwardRef(function(t,r){const o=xt(),s=mr(),a=uM(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:i,value:c,defaultValue:u,referenceDate:d,disableFuture:h,disablePast:m,onChange:g,onYearChange:w,onMonthChange:f,reduceAnimations:y,shouldDisableDate:v,shouldDisableMonth:p,shouldDisableYear:b,view:x,views:S,openTo:C,className:O,disabled:k,readOnly:_,minDate:T,maxDate:P,disableHighlightToday:D,focusedView:V,onFocusedViewChange:M,showDaysOutsideCurrentMonth:N,fixedWeekNumber:F,dayOfWeekFormatter:K,slots:H,slotProps:Z,loading:L,renderLoading:j,displayWeekNumber:Y,yearsOrder:q,yearsPerRow:$,monthsPerRow:I,timezone:U}=a,Q=Ue(a,lM),{value:W,handleValueChange:ee,timezone:ne}=ho({name:"DateCalendar",timezone:U,value:c,defaultValue:u,referenceDate:d,onChange:g,valueManager:tr}),{view:B,setView:A,focusedView:z,setFocusedView:X,goToNextView:te,setValueAndGoToNextView:ae}=Os({view:x,views:S,openTo:C,onChange:ee,onViewChange:i,autoFocus:l,focusedView:V,onFocusedViewChange:M}),{referenceDate:J,calendarState:fe,changeFocusedDay:le,changeMonth:ge,handleChangeMonth:Se,isDateDisabled:Ce,onMonthSwitchingAnimationEnd:Fe}=UI({value:W,referenceDate:d,reduceAnimations:y,onMonthChange:f,minDate:T,maxDate:P,shouldDisableDate:v,disablePast:m,disableFuture:h,timezone:ne}),Ye=k&&W||T,He=k&&W||P,Qe=`${s}-grid-label`,ut=z!==null,dt=(H==null?void 0:H.calendarHeader)??nw,st=lt({elementType:dt,externalSlotProps:Z==null?void 0:Z.calendarHeader,additionalProps:{views:S,view:B,currentMonth:fe.currentMonth,onViewChange:A,onMonthChange:(Ve,Xe)=>Se({newMonth:Ve,direction:Xe}),minDate:Ye,maxDate:He,disabled:k,disablePast:m,disableFuture:h,reduceAnimations:y,timezone:ne,labelId:Qe},ownerState:a}),Ge=Re(Ve=>{const Xe=o.startOfMonth(Ve),Tt=o.endOfMonth(Ve),St=Ce(Ve)?hs({utils:o,date:Ve,minDate:o.isBefore(T,Xe)?Xe:T,maxDate:o.isAfter(P,Tt)?Tt:P,disablePast:m,disableFuture:h,isDateDisabled:Ce,timezone:ne}):Ve;St?(ae(St,"finish"),f==null||f(Xe)):(te(),ge(Xe)),le(St,!0)}),We=Re(Ve=>{const Xe=o.startOfYear(Ve),Tt=o.endOfYear(Ve),St=Ce(Ve)?hs({utils:o,date:Ve,minDate:o.isBefore(T,Xe)?Xe:T,maxDate:o.isAfter(P,Tt)?Tt:P,disablePast:m,disableFuture:h,isDateDisabled:Ce,timezone:ne}):Ve;St?(ae(St,"finish"),w==null||w(St)):(te(),ge(Xe)),le(St,!0)}),gt=Re(Ve=>ee(Ve&&Ii(o,Ve,W??J),"finish",B));E.useEffect(()=>{W!=null&&o.isValid(W)&&ge(W)},[W]);const mt=a,Dt=cM(mt),De={disablePast:m,disableFuture:h,maxDate:P,minDate:T},me={disableHighlightToday:D,readOnly:_,disabled:k,timezone:ne,gridLabelId:Qe,slots:H,slotProps:Z},$e=E.useRef(B);E.useEffect(()=>{$e.current!==B&&(z===$e.current&&X(B,!0),$e.current=B)},[z,X,B]);const je=E.useMemo(()=>[W],[W]);return R.jsxs(dM,re({ref:r,className:Te(Dt.root,O),ownerState:mt},Q,{children:[R.jsx(dt,re({},st,{slots:H,slotProps:Z})),R.jsx(fM,{reduceAnimations:y,className:Dt.viewTransitionContainer,transKey:B,ownerState:mt,children:R.jsxs("div",{children:[B==="year"&&R.jsx(ew,re({},De,me,{value:W,onChange:We,shouldDisableYear:b,hasFocus:ut,onFocusedViewChange:Ve=>X("year",Ve),yearsOrder:q,yearsPerRow:$,referenceDate:J})),B==="month"&&R.jsx(Q0,re({},De,me,{hasFocus:ut,className:O,value:W,onChange:Ge,shouldDisableMonth:p,onFocusedViewChange:Ve=>X("month",Ve),monthsPerRow:I,referenceDate:J})),B==="day"&&R.jsx(vD,re({},fe,De,me,{onMonthSwitchingAnimationEnd:Fe,onFocusedDayChange:le,reduceAnimations:y,selectedDays:je,onSelectedDaysChange:gt,shouldDisableDate:v,shouldDisableMonth:p,shouldDisableYear:b,hasFocus:ut,onFocusedViewChange:Ve=>X("day",Ve),showDaysOutsideCurrentMonth:N,fixedWeekNumber:F,dayOfWeekFormatter:K,displayWeekNumber:Y,loading:L,renderLoading:j}))]})})]}))});process.env.NODE_ENV!=="production"&&(iw.propTypes={autoFocus:n.bool,classes:n.object,className:n.string,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,fixedWeekNumber:n.number,focusedView:n.oneOf(["day","month","year"]),loading:n.bool,maxDate:n.object,minDate:n.object,monthsPerRow:n.oneOf([3,4]),onChange:n.func,onFocusedViewChange:n.func,onMonthChange:n.func,onViewChange:n.func,onYearChange:n.func,openTo:n.oneOf(["day","month","year"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["day","month","year"]),views:n.arrayOf(n.oneOf(["day","month","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])});const vo=({view:e,onViewChange:t,views:r,focusedView:o,onFocusedViewChange:s,value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minDate:g,maxDate:w,shouldDisableDate:f,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:p,onMonthChange:b,monthsPerRow:x,onYearChange:S,yearsOrder:C,yearsPerRow:O,slots:k,slotProps:_,loading:T,renderLoading:P,disableHighlightToday:D,readOnly:V,disabled:M,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:F,sx:K,autoFocus:H,fixedWeekNumber:Z,displayWeekNumber:L,timezone:j})=>R.jsx(iw,{view:e,onViewChange:t,views:r.filter(fo),focusedView:o&&fo(o)?o:null,onFocusedViewChange:s,value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minDate:g,maxDate:w,shouldDisableDate:f,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:p,onMonthChange:b,monthsPerRow:x,onYearChange:S,yearsOrder:C,yearsPerRow:O,slots:k,slotProps:_,loading:T,renderLoading:P,disableHighlightToday:D,readOnly:V,disabled:M,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:F,sx:K,autoFocus:H,fixedWeekNumber:Z,displayWeekNumber:L,timezone:j});var dr="top",_r="bottom",Ir="right",fr="left",Rf="auto",Ps=[dr,_r,Ir,fr],wo="start",Es="end",pM="clippingParents",lw="viewport",ks="popper",hM="reference",cw=Ps.reduce(function(e,t){return e.concat([t+"-"+wo,t+"-"+Es])},[]),uw=[].concat(Ps,[Rf]).reduce(function(e,t){return e.concat([t,t+"-"+wo,t+"-"+Es])},[]),mM="beforeRead",gM="read",yM="afterRead",bM="beforeMain",vM="main",wM="afterMain",xM="beforeWrite",SM="write",CM="afterWrite",TM=[mM,gM,yM,bM,vM,wM,xM,SM,CM];function Kr(e){return e?(e.nodeName||"").toLowerCase():null}function vr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yn(e){var t=vr(e).Element;return e instanceof t||e instanceof Element}function Dr(e){var t=vr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $f(e){if(typeof ShadowRoot>"u")return!1;var t=vr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OM(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!Dr(a)||!Kr(a)||(Object.assign(a.style,o),Object.keys(s).forEach(function(l){var i=s[l];i===!1?a.removeAttribute(l):a.setAttribute(l,i===!0?"":i)}))})}function PM(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],a=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),i=l.reduce(function(c,u){return c[u]="",c},{});!Dr(s)||!Kr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(c){s.removeAttribute(c)}))})}}const EM={name:"applyStyles",enabled:!0,phase:"write",fn:OM,effect:PM,requires:["computeStyles"]};function Gr(e){return e.split("-")[0]}var Kn=Math.max,Yi=Math.min,xo=Math.round;function _f(){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 dw(){return!/^((?!chrome|android).)*safari/i.test(_f())}function So(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),s=1,a=1;t&&Dr(e)&&(s=e.offsetWidth>0&&xo(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&xo(o.height)/e.offsetHeight||1);var l=Yn(e)?vr(e):window,i=l.visualViewport,c=!dw()&&r,u=(o.left+(c&&i?i.offsetLeft:0))/s,d=(o.top+(c&&i?i.offsetTop:0))/a,h=o.width/s,m=o.height/a;return{width:h,height:m,top:d,right:u+h,bottom:d+m,left:u,x:u,y:d}}function If(e){var t=So(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function fw(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&$f(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function cn(e){return vr(e).getComputedStyle(e)}function kM(e){return["table","td","th"].indexOf(Kr(e))>=0}function On(e){return((Yn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ki(e){return Kr(e)==="html"?e:e.assignedSlot||e.parentNode||($f(e)?e.host:null)||On(e)}function pw(e){return!Dr(e)||cn(e).position==="fixed"?null:e.offsetParent}function RM(e){var t=/firefox/i.test(_f()),r=/Trident/i.test(_f());if(r&&Dr(e)){var o=cn(e);if(o.position==="fixed")return null}var s=Ki(e);for($f(s)&&(s=s.host);Dr(s)&&["html","body"].indexOf(Kr(s))<0;){var a=cn(s);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 s;s=s.parentNode}return null}function Rs(e){for(var t=vr(e),r=pw(e);r&&kM(r)&&cn(r).position==="static";)r=pw(r);return r&&(Kr(r)==="html"||Kr(r)==="body"&&cn(r).position==="static")?t:r||RM(e)||t}function Df(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $s(e,t,r){return Kn(e,Yi(t,r))}function $M(e,t,r){var o=$s(e,t,r);return o>r?r:o}function hw(){return{top:0,right:0,bottom:0,left:0}}function mw(e){return Object.assign({},hw(),e)}function gw(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var _M=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,mw(typeof t!="number"?t:gw(t,Ps))};function IM(e){var t,r=e.state,o=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,i=Gr(r.placement),c=Df(i),u=[fr,Ir].indexOf(i)>=0,d=u?"height":"width";if(!(!a||!l)){var h=_M(s.padding,r),m=If(a),g=c==="y"?dr:fr,w=c==="y"?_r:Ir,f=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],y=l[c]-r.rects.reference[c],v=Rs(a),p=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,b=f/2-y/2,x=h[g],S=p-m[d]-h[w],C=p/2-m[d]/2+b,O=$s(x,C,S),k=c;r.modifiersData[o]=(t={},t[k]=O,t.centerOffset=O-C,t)}}function DM(e){var t=e.state,r=e.options,o=r.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||fw(t.elements.popper,s)&&(t.elements.arrow=s))}const MM={name:"arrow",enabled:!0,phase:"main",fn:IM,effect:DM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Co(e){return e.split("-")[1]}var jM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NM(e,t){var r=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:xo(r*s)/s||0,y:xo(o*s)/s||0}}function yw(e){var t,r=e.popper,o=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,m=l.x,g=m===void 0?0:m,w=l.y,f=w===void 0?0:w,y=typeof d=="function"?d({x:g,y:f}):{x:g,y:f};g=y.x,f=y.y;var v=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),b=fr,x=dr,S=window;if(u){var C=Rs(r),O="clientHeight",k="clientWidth";if(C===vr(r)&&(C=On(r),cn(C).position!=="static"&&i==="absolute"&&(O="scrollHeight",k="scrollWidth")),C=C,s===dr||(s===fr||s===Ir)&&a===Es){x=_r;var _=h&&C===S&&S.visualViewport?S.visualViewport.height:C[O];f-=_-o.height,f*=c?1:-1}if(s===fr||(s===dr||s===_r)&&a===Es){b=Ir;var T=h&&C===S&&S.visualViewport?S.visualViewport.width:C[k];g-=T-o.width,g*=c?1:-1}}var P=Object.assign({position:i},u&&jM),D=d===!0?NM({x:g,y:f},vr(r)):{x:g,y:f};if(g=D.x,f=D.y,c){var V;return Object.assign({},P,(V={},V[x]=p?"0":"",V[b]=v?"0":"",V.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+f+"px)":"translate3d("+g+"px, "+f+"px, 0)",V))}return Object.assign({},P,(t={},t[x]=p?f+"px":"",t[b]=v?g+"px":"",t.transform="",t))}function AM(e){var t=e.state,r=e.options,o=r.gpuAcceleration,s=o===void 0?!0:o,a=r.adaptive,l=a===void 0?!0:a,i=r.roundOffsets,c=i===void 0?!0:i,u={placement:Gr(t.placement),variation:Co(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const VM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AM,data:{}};var Gi={passive:!0};function FM(e){var t=e.state,r=e.instance,o=e.options,s=o.scroll,a=s===void 0?!0:s,l=o.resize,i=l===void 0?!0:l,c=vr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,Gi)}),i&&c.addEventListener("resize",r.update,Gi),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,Gi)}),i&&c.removeEventListener("resize",r.update,Gi)}}const LM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FM,data:{}};var qM={left:"right",right:"left",bottom:"top",top:"bottom"};function Xi(e){return e.replace(/left|right|bottom|top/g,function(t){return qM[t]})}var BM={start:"end",end:"start"};function bw(e){return e.replace(/start|end/g,function(t){return BM[t]})}function Mf(e){var t=vr(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function jf(e){return So(On(e)).left+Mf(e).scrollLeft}function zM(e,t){var r=vr(e),o=On(e),s=r.visualViewport,a=o.clientWidth,l=o.clientHeight,i=0,c=0;if(s){a=s.width,l=s.height;var u=dw();(u||!u&&t==="fixed")&&(i=s.offsetLeft,c=s.offsetTop)}return{width:a,height:l,x:i+jf(e),y:c}}function UM(e){var t,r=On(e),o=Mf(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Kn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=Kn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-o.scrollLeft+jf(e),c=-o.scrollTop;return cn(s||r).direction==="rtl"&&(i+=Kn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:i,y:c}}function Nf(e){var t=cn(e),r=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+o)}function vw(e){return["html","body","#document"].indexOf(Kr(e))>=0?e.ownerDocument.body:Dr(e)&&Nf(e)?e:vw(Ki(e))}function _s(e,t){var r;t===void 0&&(t=[]);var o=vw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=vr(o),l=s?[a].concat(a.visualViewport||[],Nf(o)?o:[]):o,i=t.concat(l);return s?i:i.concat(_s(Ki(l)))}function Af(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WM(e,t){var r=So(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ww(e,t,r){return t===lw?Af(zM(e,r)):Yn(t)?WM(t,r):Af(UM(On(e)))}function HM(e){var t=_s(Ki(e)),r=["absolute","fixed"].indexOf(cn(e).position)>=0,o=r&&Dr(e)?Rs(e):e;return Yn(o)?t.filter(function(s){return Yn(s)&&fw(s,o)&&Kr(s)!=="body"}):[]}function YM(e,t,r,o){var s=t==="clippingParents"?HM(e):[].concat(t),a=[].concat(s,[r]),l=a[0],i=a.reduce(function(c,u){var d=ww(e,u,o);return c.top=Kn(d.top,c.top),c.right=Yi(d.right,c.right),c.bottom=Yi(d.bottom,c.bottom),c.left=Kn(d.left,c.left),c},ww(e,l,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function xw(e){var t=e.reference,r=e.element,o=e.placement,s=o?Gr(o):null,a=o?Co(o):null,l=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,c;switch(s){case dr:c={x:l,y:t.y-r.height};break;case _r:c={x:l,y:t.y+t.height};break;case Ir:c={x:t.x+t.width,y:i};break;case fr:c={x:t.x-r.width,y:i};break;default:c={x:t.x,y:t.y}}var u=s?Df(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case wo:c[u]=c[u]-(t[d]/2-r[d]/2);break;case Es:c[u]=c[u]+(t[d]/2-r[d]/2);break}}return c}function Is(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=o===void 0?e.placement:o,a=r.strategy,l=a===void 0?e.strategy:a,i=r.boundary,c=i===void 0?pM:i,u=r.rootBoundary,d=u===void 0?lw:u,h=r.elementContext,m=h===void 0?ks:h,g=r.altBoundary,w=g===void 0?!1:g,f=r.padding,y=f===void 0?0:f,v=mw(typeof y!="number"?y:gw(y,Ps)),p=m===ks?hM:ks,b=e.rects.popper,x=e.elements[w?p:m],S=YM(Yn(x)?x:x.contextElement||On(e.elements.popper),c,d,l),C=So(e.elements.reference),O=xw({reference:C,element:b,placement:s}),k=Af(Object.assign({},b,O)),_=m===ks?k:C,T={top:S.top-_.top+v.top,bottom:_.bottom-S.bottom+v.bottom,left:S.left-_.left+v.left,right:_.right-S.right+v.right},P=e.modifiersData.offset;if(m===ks&&P){var D=P[s];Object.keys(T).forEach(function(V){var M=[Ir,_r].indexOf(V)>=0?1:-1,N=[dr,_r].indexOf(V)>=0?"y":"x";T[V]+=D[N]*M})}return T}function KM(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,i=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?uw:c,d=Co(o),h=d?i?cw:cw.filter(function(w){return Co(w)===d}):Ps,m=h.filter(function(w){return u.indexOf(w)>=0});m.length===0&&(m=h);var g=m.reduce(function(w,f){return w[f]=Is(e,{placement:f,boundary:s,rootBoundary:a,padding:l})[Gr(f)],w},{});return Object.keys(g).sort(function(w,f){return g[w]-g[f]})}function GM(e){if(Gr(e)===Rf)return[];var t=Xi(e);return[bw(e),t,bw(t)]}function XM(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,i=l===void 0?!0:l,c=r.fallbackPlacements,u=r.padding,d=r.boundary,h=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,w=g===void 0?!0:g,f=r.allowedAutoPlacements,y=t.options.placement,v=Gr(y),p=v===y,b=c||(p||!w?[Xi(y)]:GM(y)),x=[y].concat(b).reduce(function($,I){return $.concat(Gr(I)===Rf?KM(t,{placement:I,boundary:d,rootBoundary:h,padding:u,flipVariations:w,allowedAutoPlacements:f}):I)},[]),S=t.rects.reference,C=t.rects.popper,O=new Map,k=!0,_=x[0],T=0;T<x.length;T++){var P=x[T],D=Gr(P),V=Co(P)===wo,M=[dr,_r].indexOf(D)>=0,N=M?"width":"height",F=Is(t,{placement:P,boundary:d,rootBoundary:h,altBoundary:m,padding:u}),K=M?V?Ir:fr:V?_r:dr;S[N]>C[N]&&(K=Xi(K));var H=Xi(K),Z=[];if(a&&Z.push(F[D]<=0),i&&Z.push(F[K]<=0,F[H]<=0),Z.every(function($){return $})){_=P,k=!1;break}O.set(P,Z)}if(k)for(var L=w?3:1,j=function(I){var U=x.find(function(Q){var W=O.get(Q);if(W)return W.slice(0,I).every(function(ee){return ee})});if(U)return _=U,"break"},Y=L;Y>0;Y--){var q=j(Y);if(q==="break")break}t.placement!==_&&(t.modifiersData[o]._skip=!0,t.placement=_,t.reset=!0)}}const JM={name:"flip",enabled:!0,phase:"main",fn:XM,requiresIfExists:["offset"],data:{_skip:!1}};function Sw(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Cw(e){return[dr,Ir,_r,fr].some(function(t){return e[t]>=0})}function ZM(e){var t=e.state,r=e.name,o=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=Is(t,{elementContext:"reference"}),i=Is(t,{altBoundary:!0}),c=Sw(l,o),u=Sw(i,s,a),d=Cw(c),h=Cw(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const QM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ZM};function ej(e,t,r){var o=Gr(e),s=[fr,dr].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],i=a[1];return l=l||0,i=(i||0)*s,[fr,Ir].indexOf(o)>=0?{x:i,y:l}:{x:l,y:i}}function tj(e){var t=e.state,r=e.options,o=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=uw.reduce(function(d,h){return d[h]=ej(h,t.rects,a),d},{}),i=l[t.placement],c=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}const rj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tj};function nj(e){var t=e.state,r=e.name;t.modifiersData[r]=xw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const oj={name:"popperOffsets",enabled:!0,phase:"read",fn:nj,data:{}};function sj(e){return e==="x"?"y":"x"}function aj(e){var t=e.state,r=e.options,o=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,i=l===void 0?!1:l,c=r.boundary,u=r.rootBoundary,d=r.altBoundary,h=r.padding,m=r.tether,g=m===void 0?!0:m,w=r.tetherOffset,f=w===void 0?0:w,y=Is(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:d}),v=Gr(t.placement),p=Co(t.placement),b=!p,x=Df(v),S=sj(x),C=t.modifiersData.popperOffsets,O=t.rects.reference,k=t.rects.popper,_=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,T=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(a){var V,M=x==="y"?dr:fr,N=x==="y"?_r:Ir,F=x==="y"?"height":"width",K=C[x],H=K+y[M],Z=K-y[N],L=g?-k[F]/2:0,j=p===wo?O[F]:k[F],Y=p===wo?-k[F]:-O[F],q=t.elements.arrow,$=g&&q?If(q):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hw(),U=I[M],Q=I[N],W=$s(0,O[F],$[F]),ee=b?O[F]/2-L-W-U-T.mainAxis:j-W-U-T.mainAxis,ne=b?-O[F]/2+L+W+Q+T.mainAxis:Y+W+Q+T.mainAxis,B=t.elements.arrow&&Rs(t.elements.arrow),A=B?x==="y"?B.clientTop||0:B.clientLeft||0:0,z=(V=P==null?void 0:P[x])!=null?V:0,X=K+ee-z-A,te=K+ne-z,ae=$s(g?Yi(H,X):H,K,g?Kn(Z,te):Z);C[x]=ae,D[x]=ae-K}if(i){var J,fe=x==="x"?dr:fr,le=x==="x"?_r:Ir,ge=C[S],Se=S==="y"?"height":"width",Ce=ge+y[fe],Fe=ge-y[le],Ye=[dr,fr].indexOf(v)!==-1,He=(J=P==null?void 0:P[S])!=null?J:0,Qe=Ye?Ce:ge-O[Se]-k[Se]-He+T.altAxis,ut=Ye?ge+O[Se]+k[Se]-He-T.altAxis:Fe,dt=g&&Ye?$M(Qe,ge,ut):$s(g?Qe:Ce,ge,g?ut:Fe);C[S]=dt,D[S]=dt-ge}t.modifiersData[o]=D}}const ij={name:"preventOverflow",enabled:!0,phase:"main",fn:aj,requiresIfExists:["offset"]};function lj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cj(e){return e===vr(e)||!Dr(e)?Mf(e):lj(e)}function uj(e){var t=e.getBoundingClientRect(),r=xo(t.width)/e.offsetWidth||1,o=xo(t.height)/e.offsetHeight||1;return r!==1||o!==1}function dj(e,t,r){r===void 0&&(r=!1);var o=Dr(t),s=Dr(t)&&uj(t),a=On(t),l=So(e,s,r),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!r)&&((Kr(t)!=="body"||Nf(a))&&(i=cj(t)),Dr(t)?(c=So(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=jf(a))),{x:l.left+i.scrollLeft-c.x,y:l.top+i.scrollTop-c.y,width:l.width,height:l.height}}function fj(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(i){if(!r.has(i)){var c=t.get(i);c&&s(c)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),o}function pj(e){var t=fj(e);return TM.reduce(function(r,o){return r.concat(t.filter(function(s){return s.phase===o}))},[])}function hj(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mj(e){var t=e.reduce(function(r,o){var s=r[o.name];return r[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var Tw={placement:"bottom",modifiers:[],strategy:"absolute"};function Ow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function gj(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Tw:s;return function(i,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tw,a),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},h=[],m=!1,g={state:d,setOptions:function(v){var p=typeof v=="function"?v(d.options):v;f(),d.options=Object.assign({},a,d.options,p),d.scrollParents={reference:Yn(i)?_s(i):i.contextElement?_s(i.contextElement):[],popper:_s(c)};var b=pj(mj([].concat(o,d.options.modifiers)));return d.orderedModifiers=b.filter(function(x){return x.enabled}),w(),g.update()},forceUpdate:function(){if(!m){var v=d.elements,p=v.reference,b=v.popper;if(Ow(p,b)){d.rects={reference:dj(p,Rs(b),d.options.strategy==="fixed"),popper:If(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<d.orderedModifiers.length;x++){if(d.reset===!0){d.reset=!1,x=-1;continue}var S=d.orderedModifiers[x],C=S.fn,O=S.options,k=O===void 0?{}:O,_=S.name;typeof C=="function"&&(d=C({state:d,options:k,name:_,instance:g})||d)}}}},update:hj(function(){return new Promise(function(y){g.forceUpdate(),y(d)})}),destroy:function(){f(),m=!0}};if(!Ow(i,c))return g;g.setOptions(u).then(function(y){!m&&u.onFirstUpdate&&u.onFirstUpdate(y)});function w(){d.orderedModifiers.forEach(function(y){var v=y.name,p=y.options,b=p===void 0?{}:p,x=y.effect;if(typeof x=="function"){var S=x({state:d,name:v,instance:g,options:b}),C=function(){};h.push(S||C)}})}function f(){h.forEach(function(y){return y()}),h=[]}return g}}var yj=[LM,oj,VM,EM,rj,JM,ij,MM,QM],bj=gj({defaultModifiers:yj});function vj(e){return Ie("MuiPopper",e)}ke("MuiPopper",["root"]);function wj(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 Ji(e){return typeof e=="function"?e():e}function Zi(e){return e.nodeType!==void 0}function xj(e){return!Zi(e)}const Sj=e=>{const{classes:t}=e;return _e({root:["root"]},vj,t)},Cj={},Tj=E.forwardRef(function(t,r){const{anchorEl:o,children:s,direction:a,disablePortal:l,modifiers:i,open:c,placement:u,popperOptions:d,popperRef:h,slotProps:m={},slots:g={},TransitionProps:w,ownerState:f,...y}=t,v=E.useRef(null),p=ft(v,r),b=E.useRef(null),x=ft(b,h),S=E.useRef(x);qt(()=>{S.current=x},[x]),E.useImperativeHandle(h,()=>b.current,[]);const C=wj(u,a),[O,k]=E.useState(C),[_,T]=E.useState(Ji(o));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{o&&T(Ji(o))},[o]),qt(()=>{if(!_||!c)return;const N=H=>{k(H.placement)};if(process.env.NODE_ENV!=="production"&&_&&Zi(_)&&_.nodeType===1){const H=_.getBoundingClientRect();process.env.NODE_ENV!=="test"&&H.top===0&&H.left===0&&H.right===0&&H.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
255
- `))}let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{N(H)}}];i!=null&&(F=F.concat(i)),d&&d.modifiers!=null&&(F=F.concat(d.modifiers));const K=bj(_,v.current,{placement:C,...d,modifiers:F});return S.current(K),()=>{K.destroy(),S.current(null)}},[_,l,i,c,d,C]);const P={placement:O};w!==null&&(P.TransitionProps=w);const D=Sj(t),V=g.root??"div",M=lt({elementType:V,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:D.root});return R.jsx(V,{...M,children:typeof s=="function"?s(P):s})}),Pw=E.forwardRef(function(t,r){const{anchorEl:o,children:s,container:a,direction:l="ltr",disablePortal:i=!1,keepMounted:c=!1,modifiers:u,open:d,placement:h="bottom",popperOptions:m=Cj,popperRef:g,style:w,transition:f=!1,slotProps:y={},slots:v={},...p}=t,[b,x]=E.useState(!0),S=()=>{x(!1)},C=()=>{x(!0)};if(!c&&!d&&(!f||b))return null;let O;if(a)O=a;else if(o){const T=Ji(o);O=T&&Zi(T)?Yt(T).body:Yt(null).body}const k=!d&&c&&(!f||b)?"none":void 0,_=f?{in:d,onEnter:S,onExited:C}:void 0;return R.jsx(as,{disablePortal:i,container:O,children:R.jsx(Tj,{anchorEl:o,direction:l,disablePortal:i,modifiers:u,ref:r,open:f?!b:d,placement:h,popperOptions:m,popperRef:g,slotProps:y,slots:v,...p,style:{position:"fixed",top:0,left:0,display:k,...w},TransitionProps:_,children:s})})});process.env.NODE_ENV!=="production"&&(Pw.propTypes={anchorEl:Cr(n.oneOfType([on,n.object,n.func]),e=>{if(e.open){const t=Ji(e.anchorEl);if(t&&Zi(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
256
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||xj(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
257
- `))}return null}),children:n.oneOfType([n.node,n.func]),container:n.oneOfType([on,n.func]),direction:n.oneOf(["ltr","rtl"]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:Mt,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),transition:n.bool});const Oj=se(Pw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qi=E.forwardRef(function(t,r){const o=Qt(),s=tt({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:i,componentsProps:c,container:u,disablePortal:d,keepMounted:h,modifiers:m,open:g,placement:w,popperOptions:f,popperRef:y,transition:v,slots:p,slotProps:b,...x}=s,S=(p==null?void 0:p.root)??(i==null?void 0:i.Root),C={anchorEl:a,container:u,disablePortal:d,keepMounted:h,modifiers:m,open:g,placement:w,popperOptions:f,popperRef:y,transition:v,...x};return R.jsx(Oj,{as:l,direction:o?"rtl":"ltr",slots:{root:S},slotProps:b??c,...C,ref:r})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={anchorEl:n.oneOfType([on,n.object,n.func]),children:n.oneOfType([n.node,n.func]),component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.oneOfType([n.func,n.object])}),container:n.oneOfType([on,n.func]),disablePortal:n.bool,keepMounted:n.bool,modifiers:n.arrayOf(n.shape({data:n.object,effect:n.func,enabled:n.bool,fn:n.func,name:n.any,options:n.object,phase:n.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:n.arrayOf(n.string),requiresIfExists:n.arrayOf(n.string)})),open:n.bool.isRequired,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:n.shape({modifiers:n.array,onFirstUpdate:n.func,placement:n.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:n.oneOf(["absolute","fixed"])}),popperRef:Mt,slotProps:n.shape({root:n.oneOfType([n.func,n.object])}),slots:n.shape({root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),transition:n.bool});function Pj(e){return Ie("MuiPickersPopper",e)}ke("MuiPickersPopper",["root","paper"]);const Ej=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],kj=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},Pj,t)},Rj=se(Qi,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),$j=se(Sn,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function _j(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Ij(e,t){const r=E.useRef(!1),o=E.useRef(!1),s=E.useRef(null),a=E.useRef(!1);E.useEffect(()=>{if(!e)return;function c(){a.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),a.current=!1}},[e]);const l=Re(c=>{if(!a.current)return;const u=o.current;o.current=!1;const d=Yt(s.current);if(!s.current||"clientX"in c&&_j(c,d))return;if(r.current){r.current=!1;return}let h;c.composedPath?h=c.composedPath().indexOf(s.current)>-1:h=!d.documentElement.contains(c.target)||s.current.contains(c.target),!h&&!u&&t(c)}),i=()=>{o.current=!0};return E.useEffect(()=>{if(e){const c=Yt(s.current),u=()=>{r.current=!0};return c.addEventListener("touchstart",l),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",l),c.removeEventListener("touchmove",u)}}},[e,l]),E.useEffect(()=>{if(e){const c=Yt(s.current);return c.addEventListener("click",l),()=>{c.removeEventListener("click",l),o.current=!1}}},[e,l]),[s,i,i]}const Dj=E.forwardRef((e,t)=>{const{PaperComponent:r,popperPlacement:o,ownerState:s,children:a,paperSlotProps:l,paperClasses:i,onPaperClick:c,onPaperTouchStart:u}=e,d=Ue(e,Ej),h=re({},s,{placement:o}),m=lt({elementType:r,externalSlotProps:l,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:i,ownerState:h});return R.jsx(r,re({},d,m,{onClick:g=>{var w;c(g),(w=m.onClick)==null||w.call(m,g)},onTouchStart:g=>{var w;u(g),(w=m.onTouchStart)==null||w.call(m,g)},ownerState:h,children:a}))});function Mj(e){const t=ht({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:o,containerRef:s=null,shouldRestoreFocus:a,onBlur:l,onDismiss:i,open:c,role:u,placement:d,slots:h,slotProps:m,reduceAnimations:g}=t;E.useEffect(()=>{function N(F){c&&F.key==="Escape"&&i()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[i,c]);const w=E.useRef(null);E.useEffect(()=>{u==="tooltip"||a&&!a()||(c?w.current=sr(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[c,u,a]);const[f,y,v]=Ij(c,l??i),p=E.useRef(null),b=ft(p,s),x=ft(b,f),S=t,C=kj(S),O=aw(),k=g??O,_=N=>{N.key==="Escape"&&(N.stopPropagation(),i())},T=(h==null?void 0:h.desktopTransition)??k?xn:ns,P=(h==null?void 0:h.desktopTrapFocus)??ss,D=(h==null?void 0:h.desktopPaper)??$j,V=(h==null?void 0:h.popper)??Rj,M=lt({elementType:V,externalSlotProps:m==null?void 0:m.popper,additionalProps:{transition:!0,role:u,open:c,anchorEl:r,placement:d,onKeyDown:_},className:C.root,ownerState:t});return R.jsx(V,re({},M,{children:({TransitionProps:N,placement:F})=>R.jsx(P,re({open:c,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},m==null?void 0:m.desktopTrapFocus,{children:R.jsx(T,re({},N,m==null?void 0:m.desktopTransition,{children:R.jsx(Dj,{PaperComponent:D,ownerState:S,popperPlacement:F,ref:x,onPaperClick:y,onPaperTouchStart:v,paperClasses:C.paper,paperSlotProps:m==null?void 0:m.desktopPaper,children:o})}))}))}))}const Ew=new Set;function kw(e,t="warning"){if(process.env.NODE_ENV==="production")return;const r=Array.isArray(e)?e.join(`
258
- `):e;Ew.has(r)||(Ew.add(r),t==="error"?console.error(r):console.warn(r))}const jj=({open:e,onOpen:t,onClose:r})=>{const o=E.useRef(typeof e=="boolean").current,[s,a]=E.useState(!1);E.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[o,e]);const l=E.useCallback(i=>{o||a(i),i&&t&&t(),!i&&r&&r()},[o,t,r]);return{isOpen:s,setIsOpen:l}},Nj=e=>{const{action:t,hasChanged:r,dateState:o,isControlled:s}=e,a=!s&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:r(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:r(o.lastPublishedValue):!1},Aj=e=>{const{action:t,hasChanged:r,dateState:o,isControlled:s,closeOnSelect:a}=e,l=!s&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?l&&["accept","today","clear"].includes(t.pickerAction)?!0:r(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?l?!0:r(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&r(o.lastCommittedValue):!1},Vj=e=>{const{action:t,closeOnSelect:r}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&r:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Fj=({props:e,valueManager:t,valueType:r,wrapperVariant:o,validator:s})=>{const{onAccept:a,onChange:l,value:i,defaultValue:c,closeOnSelect:u=o==="desktop",timezone:d,referenceDate:h}=e,{current:m}=E.useRef(c),{current:g}=E.useRef(i!==void 0),[w,f]=E.useState(d);process.env.NODE_ENV!=="production"&&(E.useEffect(()=>{g!==(i!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a picker to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
259
- `))},[i]),E.useEffect(()=>{!g&&m!==c&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
260
- `))},[JSON.stringify(m)]));const y=xt(),v=qn(),{isOpen:p,setIsOpen:b}=jj(e),{timezone:x,value:S,handleValueChange:C}=hf({timezone:d,value:i,defaultValue:m,referenceDate:h,onChange:l,valueManager:t}),[O,k]=E.useState(()=>{let ee;return S!==void 0?ee=S:m!==void 0?ee=m:ee=t.emptyValue,{draft:ee,lastPublishedValue:ee,lastCommittedValue:ee,lastControlledValue:i,hasBeenModifiedSinceMount:!1}}),_=t.getTimezone(y,O.draft);w!==d&&(f(d),d&&_&&d!==_&&k(ee=>re({},ee,{draft:t.setTimezone(y,d,ee.draft)})));const{getValidationErrorForNewValue:T}=m0({props:e,validator:s,timezone:x,value:O.draft,onError:e.onError}),P=Re(ee=>{const ne={action:ee,dateState:O,hasChanged:ae=>!t.areValuesEqual(y,ee.value,ae),isControlled:g,closeOnSelect:u},B=Nj(ne),A=Aj(ne),z=Vj(ne);k(ae=>re({},ae,{draft:ee.value,lastPublishedValue:B?ee.value:ae.lastPublishedValue,lastCommittedValue:A?ee.value:ae.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let X=null;const te=()=>(X||(X={validationError:ee.name==="setValueFromField"?ee.context.validationError:T(ee.value)},ee.name==="setValueFromShortcut"&&(X.shortcut=ee.shortcut)),X);B&&C(ee.value,te()),A&&a&&a(ee.value,te()),z&&b(!1)});if(O.lastControlledValue!==i){const ee=t.areValuesEqual(y,O.draft,S);k(ne=>re({},ne,{lastControlledValue:i},ee?{}:{lastCommittedValue:S,lastPublishedValue:S,draft:S,hasBeenModifiedSinceMount:!0}))}const D=Re(()=>{P({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),V=Re(()=>{P({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),M=Re(()=>{P({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),N=Re(()=>{P({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),F=Re(()=>{P({value:t.getTodayValue(y,x,r),name:"setValueFromAction",pickerAction:"today"})}),K=Re(ee=>{ee.preventDefault(),b(!0)}),H=Re(ee=>{ee==null||ee.preventDefault(),b(!1)}),Z=Re((ee,ne="partial")=>P({name:"setValueFromView",value:ee,selectionState:ne})),L=Re((ee,ne,B)=>P({name:"setValueFromShortcut",value:ee,changeImportance:ne,shortcut:B})),j=Re((ee,ne)=>P({name:"setValueFromField",value:ee,context:ne})),Y={onClear:D,onAccept:V,onDismiss:M,onCancel:N,onSetToday:F,onOpen:K,onClose:H},q={value:O.draft,onChange:j},$=E.useMemo(()=>t.cleanValue(y,O.draft),[y,t,O.draft]),I={value:$,onChange:Z,onClose:H,open:p},Q=re({},Y,{value:$,onChange:Z,onSelectShortcut:L,isValid:ee=>{const ne=s({adapter:v,value:ee,timezone:x,props:e});return!t.hasError(ne)}}),W=E.useMemo(()=>({onOpen:K,onClose:H,open:p}),[p,H,K]);return{open:p,fieldProps:q,viewProps:I,layoutProps:Q,actions:Y,contextValue:W}},Lj=["className","sx"],qj=({props:e,propsFromPickerValue:t,additionalViewProps:r,autoFocusView:o,rendererInterceptor:s,fieldRef:a})=>{const{onChange:l,open:i,onClose:c}=t,{view:u,views:d,openTo:h,onViewChange:m,viewRenderers:g,timezone:w}=e,f=Ue(e,Lj),{view:y,setView:v,defaultView:p,focusedView:b,setFocusedView:x,setValueAndGoToNextView:S}=Os({view:u,views:d,openTo:h,onChange:l,onViewChange:m,autoFocus:o}),{hasUIView:C,viewModeLookup:O}=E.useMemo(()=>d.reduce((M,N)=>{let F;return g[N]!=null?F="UI":F="field",M.viewModeLookup[N]=F,F==="UI"&&(M.hasUIView=!0),M},{hasUIView:!1,viewModeLookup:{}}),[g,d]),k=E.useMemo(()=>d.reduce((M,N)=>g[N]!=null&&po(N)?M+1:M,0),[g,d]),_=O[y],T=Re(()=>_==="UI"),[P,D]=E.useState(_==="UI"?y:null);return P!==y&&O[y]==="UI"&&D(y),qt(()=>{_==="field"&&i&&(c(),setTimeout(()=>{var M,N;(M=a==null?void 0:a.current)==null||M.setSelectedSections(y),(N=a==null?void 0:a.current)==null||N.focusField(y)}))},[y]),qt(()=>{if(!i)return;let M=y;_==="field"&&P!=null&&(M=P),M!==p&&O[M]==="UI"&&O[p]==="UI"&&(M=p),M!==y&&v(M),x(M,!0)},[i]),{hasUIView:C,shouldRestoreFocus:T,layoutProps:{views:d,view:P,onViewChange:v},renderCurrentView:()=>{if(P==null)return null;const M=g[P];if(M==null)return null;const N=re({},f,r,t,{views:d,timezone:w,onChange:S,view:P,onViewChange:v,focusedView:b,onFocusedViewChange:x,showViewSwitcher:k>1,timeViewsCount:k});return s?s(g,P,N):M(N)}}};function Rw(){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 Bj=(e,t)=>{const[r,o]=E.useState(Rw);return qt(()=>{const a=()=>{o(Rw())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),x$(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},zj=({props:e,propsFromPickerValue:t,propsFromPickerViews:r,wrapperVariant:o})=>{const{orientation:s}=e,a=Bj(r.views,s),l=Qt();return{layoutProps:re({},r,t,{isLandscape:a,isRtl:l,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function Uj(e){const{props:t,pickerValueResponse:r}=e;return E.useMemo(()=>({value:r.viewProps.value,open:r.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[r.viewProps.value,r.open,t.disabled,t.readOnly])}const $w=({props:e,valueManager:t,valueType:r,wrapperVariant:o,additionalViewProps:s,validator:a,autoFocusView:l,rendererInterceptor:i,fieldRef:c})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&kw(["MUI X: 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 u=Fj({props:e,valueManager:t,valueType:r,wrapperVariant:o,validator:a}),d=qj({props:e,additionalViewProps:s,autoFocusView:l,fieldRef:c,propsFromPickerValue:u.viewProps,rendererInterceptor:i}),h=zj({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),m=Uj({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:h.layoutProps,contextValue:u.contextValue,ownerState:m}};function _w(e){return Ie("MuiPickersLayout",e)}const Fr=ke("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Wj(e){return Ie("MuiDialogActions",e)}ke("MuiDialogActions",["root","spacing"]);const Hj=e=>{const{classes:t,disableSpacing:r}=e;return _e({root:["root",!r&&"spacing"]},Wj,t)},Yj=se("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Iw=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:a=!1,...l}=o,i={...o,disableSpacing:a},c=Hj(i);return R.jsx(Yj,{className:Te(c.root,s),ownerState:i,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Iw.propTypes={children:n.node,classes:n.object,className:n.string,disableSpacing:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const Kj=["onAccept","onClear","onCancel","onSetToday","actions"];function Dw(e){const{onAccept:t,onClear:r,onCancel:o,onSetToday:s,actions:a}=e,l=Ue(e,Kj),i=ur();if(a==null||a.length===0)return null;const c=a==null?void 0:a.map(u=>{switch(u){case"clear":return R.jsx(Wn,{onClick:r,children:i.clearButtonLabel},u);case"cancel":return R.jsx(Wn,{onClick:o,children:i.cancelButtonLabel},u);case"accept":return R.jsx(Wn,{onClick:t,children:i.okButtonLabel},u);case"today":return R.jsx(Wn,{onClick:s,children:i.todayButtonLabel},u);default:return null}});return R.jsx(Iw,re({},l,{children:c}))}process.env.NODE_ENV!=="production"&&(Dw.propTypes={actions:n.arrayOf(n.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:n.bool,onAccept:n.func.isRequired,onCancel:n.func.isRequired,onClear:n.func.isRequired,onSetToday:n.func.isRequired,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function Gj(e){return Ie("MuiListItem",e)}ke("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Xj=ke("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Jj(e){return Ie("MuiListItemSecondaryAction",e)}ke("MuiListItemSecondaryAction",["root","disableGutters"]);const Zj=e=>{const{disableGutters:t,classes:r}=e;return _e({root:["root",t&&"disableGutters"]},Jj,r)},Qj=se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Vf=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...a}=o,l=E.useContext(wn),i={...o,disableGutters:l.disableGutters},c=Zj(i);return R.jsx(Qj,{className:Te(c.root,s),ownerState:i,ref:r,...a})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={children:n.node,classes:n.object,className:n.string,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])}),Vf.muiName="ListItemSecondaryAction";const eN=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},tN=e=>{const{alignItems:t,classes:r,dense:o,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:i}=e;return _e({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},Gj,r)},rN=se("div",{name:"MuiListItem",slot:"Root",overridesResolver:eN})(Ze(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Xj.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),nN=se("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Mw=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiListItem"}),{alignItems:s="center",children:a,className:l,component:i,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:h,...m}={},dense:g=!1,disableGutters:w=!1,disablePadding:f=!1,divider:y=!1,secondaryAction:v,slotProps:p={},slots:b={},...x}=o,S=E.useContext(wn),C=E.useMemo(()=>({dense:g||S.dense||!1,alignItems:s,disableGutters:w}),[s,S.dense,g,w]),O=E.useRef(null),k=E.Children.toArray(a),_=k.length&&zo(k[k.length-1],["ListItemSecondaryAction"]),T={...o,alignItems:s,dense:C.dense,disableGutters:w,disablePadding:f,divider:y,hasSecondaryAction:_},P=tN(T),D=ft(O,r),V=b.root||c.Root||rN,M=p.root||u.root||{},N={className:Te(P.root,M.className,l),...x};let F=i||"li";return _?(F=!N.component&&!i?"div":F,d==="li"&&(F==="li"?F="div":N.component==="li"&&(N.component="div")),R.jsx(wn.Provider,{value:C,children:R.jsxs(nN,{as:d,className:Te(P.container,h),ref:D,ownerState:T,...m,children:[R.jsx(V,{...M,...!Xo(V)&&{as:F,ownerState:{...T,...M.ownerState}},...N,children:k}),k.pop()]})})):R.jsx(wn.Provider,{value:C,children:R.jsxs(V,{...M,as:F,ref:D,...!Xo(V)&&{ownerState:{...T,...M.ownerState}},...N,children:[k,v&&R.jsx(Vf,{children:v})]})})});process.env.NODE_ENV!=="production"&&(Mw.propTypes={alignItems:n.oneOf(["center","flex-start"]),children:Cr(n.node,e=>{const t=E.Children.toArray(e.children);let r=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if(zo(s,["ListItemSecondaryAction"])){r=o;break}}return r!==-1&&r!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:n.object,className:n.string,component:n.elementType,components:n.shape({Root:n.elementType}),componentsProps:n.shape({root:n.object}),ContainerComponent:ai,ContainerProps:n.object,dense:n.bool,disableGutters:n.bool,disablePadding:n.bool,divider:n.bool,secondaryAction:n.node,slotProps:n.shape({root:n.object}),slots:n.shape({root:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const oN=["items","changeImportance","isLandscape","onChange","isValid"],sN=["getValue"];function jw(e){const{items:t,changeImportance:r="accept",onChange:o,isValid:s}=e,a=Ue(e,oN);if(t==null||t.length===0)return null;const l=t.map(i=>{let{getValue:c}=i,u=Ue(i,sN);const d=c({isValid:s});return re({},u,{label:u.label,onClick:()=>{o(d,r,u)},disabled:!s(d)})});return R.jsx(Vd,re({dense:!0,sx:[{maxHeight:zi,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:l.map(i=>R.jsx(Mw,{children:R.jsx($i,re({},i))},i.id??i.label))}))}process.env.NODE_ENV!=="production"&&(jw.propTypes={changeImportance:n.oneOf(["accept","set"]),className:n.string,component:n.elementType,dense:n.bool,disablePadding:n.bool,isLandscape:n.bool.isRequired,isValid:n.func.isRequired,items:n.arrayOf(n.shape({getValue:n.func.isRequired,id:n.string,label:n.string.isRequired})),onChange:n.func.isRequired,style:n.object,subheader:n.node,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function aN(e){return e.view!==null}const iN=e=>{const{classes:t,isLandscape:r}=e;return _e({root:["root",r&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},_w,t)},Nw=e=>{const{wrapperVariant:t,onAccept:r,onClear:o,onCancel:s,onSetToday:a,view:l,views:i,onViewChange:c,value:u,onChange:d,onSelectShortcut:h,isValid:m,isLandscape:g,disabled:w,readOnly:f,children:y,slots:v,slotProps:p}=e,b=iN(e),x=(v==null?void 0:v.actionBar)??Dw,S=lt({elementType:x,externalSlotProps:p==null?void 0:p.actionBar,additionalProps:{onAccept:r,onClear:o,onCancel:s,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:b.actionBar,ownerState:re({},e,{wrapperVariant:t})}),C=R.jsx(x,re({},S)),O=v==null?void 0:v.toolbar,k=lt({elementType:O,externalSlotProps:p==null?void 0:p.toolbar,additionalProps:{isLandscape:g,onChange:d,value:u,view:l,onViewChange:c,views:i,disabled:w,readOnly:f},className:b.toolbar,ownerState:re({},e,{wrapperVariant:t})}),_=aN(k)&&O?R.jsx(O,re({},k)):null,T=y,P=v==null?void 0:v.tabs,D=l&&P?R.jsx(P,re({view:l,onViewChange:c,className:b.tabs},p==null?void 0:p.tabs)):null,V=(v==null?void 0:v.shortcuts)??jw,M=lt({elementType:V,externalSlotProps:p==null?void 0:p.shortcuts,additionalProps:{isValid:m,isLandscape:g,onChange:h},className:b.shortcuts,ownerState:{isValid:m,isLandscape:g,onChange:h,wrapperVariant:t}}),N=l&&V?R.jsx(V,re({},M)):null;return{toolbar:_,content:T,tabs:D,actionBar:C,shortcuts:N}},lN=e=>{const{isLandscape:t,classes:r}=e;return _e({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},_w,r)},Aw=se("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Fr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Fr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Fr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Fr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Fr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Fr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Fr.shortcuts}`]:{gridColumn:3}}}]}),Vw=se("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Ff=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:a,tabs:l,actionBar:i,shortcuts:c}=Nw(o),{sx:u,className:d,isLandscape:h,wrapperVariant:m}=o,g=lN(o);return R.jsxs(Aw,{ref:r,sx:u,className:Te(g.root,d),ownerState:o,children:[h?c:s,h?s:c,R.jsx(Vw,{className:g.contentWrapper,children:m==="desktop"?R.jsxs(E.Fragment,{children:[a,l]}):R.jsxs(E.Fragment,{children:[l,a]})}),i]})});process.env.NODE_ENV!=="production"&&(Ff.propTypes={children:n.node,classes:n.object,className:n.string,disabled:n.bool,isLandscape:n.bool.isRequired,isRtl:n.bool.isRequired,isValid:n.func.isRequired,onAccept:n.func.isRequired,onCancel:n.func.isRequired,onChange:n.func.isRequired,onClear:n.func.isRequired,onClose:n.func.isRequired,onDismiss:n.func.isRequired,onOpen:n.func.isRequired,onSelectShortcut:n.func.isRequired,onSetToday:n.func.isRequired,onViewChange:n.func.isRequired,orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:n.arrayOf(n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:n.oneOf(["desktop","mobile"])});const cN=["props","getOpenDialogAriaText"],uN=["ownerState"],dN=["ownerState"],fN=e=>{var te;let{props:t,getOpenDialogAriaText:r}=e,o=Ue(e,cN);const{slots:s,slotProps:a,className:l,sx:i,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:m,timezone:g,name:w,label:f,inputRef:y,readOnly:v,disabled:p,autoFocus:b,localeText:x,reduceAnimations:S}=t,C=E.useRef(null),O=E.useRef(null),k=mr(),_=((te=a==null?void 0:a.toolbar)==null?void 0:te.hidden)??!1,{open:T,actions:P,hasUIView:D,layoutProps:V,renderCurrentView:M,shouldRestoreFocus:N,fieldProps:F,contextValue:K,ownerState:H}=$w(re({},o,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Z=s.inputAdornment??bf,L=lt({elementType:Z,externalSlotProps:a==null?void 0:a.inputAdornment,additionalProps:{position:"end"},ownerState:t}),j=Ue(L,uN),Y=s.openPickerButton??Yr,q=lt({elementType:Y,externalSlotProps:a==null?void 0:a.openPickerButton,additionalProps:{disabled:p||v,onClick:T?P.onClose:P.onOpen,"aria-label":r(F.value),edge:j.position},ownerState:t}),$=Ue(q,dN),I=s.openPickerIcon,U=lt({elementType:I,externalSlotProps:a==null?void 0:a.openPickerIcon,ownerState:H}),Q=s.field,W=lt({elementType:Q,externalSlotProps:a==null?void 0:a.field,additionalProps:re({},F,_&&{id:k},{readOnly:v,disabled:p,className:l,sx:i,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:m,timezone:g,label:f,name:w,autoFocus:b&&!t.open,focused:T?!0:void 0},y?{inputRef:y}:{}),ownerState:t});D&&(W.InputProps=re({},W.InputProps,{ref:C},!t.disableOpenPicker&&{[`${j.position}Adornment`]:R.jsx(Z,re({},j,{children:R.jsx(Y,re({},$,{children:R.jsx(I,re({},U))}))}))}));const ee=re({textField:s.textField,clearIcon:s.clearIcon,clearButton:s.clearButton},W.slots),ne=s.layout??Ff;let B=k;_&&(f?B=`${k}-label`:B=void 0);const A=re({},a,{toolbar:re({},a==null?void 0:a.toolbar,{titleId:k}),popper:re({"aria-labelledby":B},a==null?void 0:a.popper)}),z=ft(O,W.unstableFieldRef);return{renderPicker:()=>R.jsxs(w0,{contextValue:K,localeText:x,children:[R.jsx(Q,re({},W,{slots:ee,slotProps:A,unstableFieldRef:z})),R.jsx(Mj,re({role:"dialog",placement:"bottom-start",anchorEl:C.current},P,{open:T,slots:s,slotProps:A,shouldRestoreFocus:N,reduceAnimations:S,children:R.jsx(ne,re({},V,A==null?void 0:A.layout,{slots:s,slotProps:A,children:M()}))}))]})}},pN=["views","format"],Fw=(e,t,r)=>{let{views:o,format:s}=t,a=Ue(t,pN);if(s)return s;const l=[],i=[];if(o.forEach(d=>{po(d)?i.push(d):fo(d)&&l.push(d)}),i.length===0)return Hv(e,re({views:l},a));if(l.length===0)return Gv(e,re({views:i},a));const c=Gv(e,re({views:i},a));return`${Hv(e,re({views:l},a))} ${c}`},hN=(e,t,r)=>r?t.filter(o=>!ms(o)||o==="hours"):e?[...t,"meridiem"]:t,mN=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function gN({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:r,views:o}){const s=e??24,a=re({hours:1,minutes:5,seconds:5},r),l=mN(a,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:a,shouldRenderTimeInASingleColumn:l,views:hN(t,o,l)}}function yN(e){return Ie("MuiTimeClock",e)}ke("MuiTimeClock",["root","arrowSwitcher"]);const To=220,un=36,Ds={x:To/2,y:To/2},Lw={x:Ds.x,y:0},bN=Lw.x-Ds.x,vN=Lw.y-Ds.y,wN=e=>e*(180/Math.PI),qw=(e,t,r)=>{const o=t-Ds.x,s=r-Ds.y,a=Math.atan2(bN,vN)-Math.atan2(o,s);let l=wN(a);l=Math.round(l/e)*e,l%=360;const i=Math.floor(l/e)||0,c=o**2+s**2,u=Math.sqrt(c);return{value:i,distance:u}},xN=(e,t,r=1)=>{const o=r*6;let{value:s}=qw(o,e,t);return s=s*r%60,s},SN=(e,t,r)=>{const{value:o,distance:s}=qw(30,e,t);let a=o||12;return r?a%=12:s<To/2-un&&(a+=12,a%=24),a};function CN(e){return Ie("MuiClockPointer",e)}ke("MuiClockPointer",["root","thumb"]);const TN=["className","hasSelected","isInner","type","viewValue"],ON=e=>{const{classes:t}=e;return _e({root:["root"],thumb:["thumb"]},CN,t)},PN=se("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),EN=se("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${un/2}px)`,border:`${(un-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function kN(e){const t=ht({props:e,name:"MuiClockPointer"}),{className:r,isInner:o,type:s,viewValue:a}=t,l=Ue(t,TN),i=E.useRef(s);E.useEffect(()=>{i.current=s},[s]);const c=re({},t,{shouldAnimate:i.current!==s}),u=ON(c),d=()=>{let m=360/(s==="hours"?12:60)*a;return s==="hours"&&a>12&&(m-=360),{height:Math.round((o?.26:.4)*To),transform:`rotateZ(${m}deg)`}};return R.jsx(PN,re({style:d(),className:Te(u.root,r),ownerState:c},l,{children:R.jsx(EN,{ownerState:c,className:u.thumb})}))}function RN(e){return Ie("MuiClock",e)}ke("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const $N=e=>{const{classes:t,meridiemMode:r}=e;return _e({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",r==="am"&&"selected"],pmButton:["pmButton",r==="pm"&&"selected"],meridiemText:["meridiemText"]},RN,t)},_N=se("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),IN=se("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"}),DN=se("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),MN=se("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),jN=se("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%)"})),Bw=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:un,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),NN=se(Yr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>re({},Bw(e,"am"),{position:"absolute",left:8})),AN=se(Yr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>re({},Bw(e,"pm"),{position:"absolute",right:8})),zw=se(Er,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function VN(e){const t=ht({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:o,autoFocus:s,children:a,value:l,handleMeridiemChange:i,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:h,selectedId:m,type:g,viewValue:w,viewRange:[f,y],disabled:v=!1,readOnly:p,className:b}=t,x=t,S=xt(),C=ur(),O=E.useRef(!1),k=$N(x),_=c(w,g),T=!r&&g==="hours"&&(w<1||w>12),P=(q,$)=>{v||p||c(q,g)||h(q,$)},D=(q,$)=>{let{offsetX:I,offsetY:U}=q;if(I===void 0){const W=q.target.getBoundingClientRect();I=q.changedTouches[0].clientX-W.left,U=q.changedTouches[0].clientY-W.top}const Q=g==="seconds"||g==="minutes"?xN(I,U,d):SN(I,U,!!r);P(Q,$)},V=q=>{O.current=!0,D(q,"shallow")},M=q=>{O.current&&(D(q,"finish"),O.current=!1),q.preventDefault()},N=q=>{q.buttons>0&&D(q.nativeEvent,"shallow")},F=q=>{O.current&&(O.current=!1),D(q.nativeEvent,"finish")},K=E.useMemo(()=>g==="hours"?!0:w%5===0,[g,w]),H=g==="minutes"?d:1,Z=E.useRef(null);qt(()=>{s&&Z.current.focus()},[s]);const L=q=>Math.max(f,Math.min(y,q)),j=q=>(q+(y+1))%(y+1),Y=q=>{if(!O.current)switch(q.key){case"Home":P(f,"partial"),q.preventDefault();break;case"End":P(y,"partial"),q.preventDefault();break;case"ArrowUp":P(j(w+H),"partial"),q.preventDefault();break;case"ArrowDown":P(j(w-H),"partial"),q.preventDefault();break;case"PageUp":P(L(w+5),"partial"),q.preventDefault();break;case"PageDown":P(L(w-5),"partial"),q.preventDefault();break;case"Enter":case" ":P(w,"finish"),q.preventDefault();break}};return R.jsxs(_N,{className:Te(k.root,b),children:[R.jsxs(IN,{className:k.clock,children:[R.jsx(MN,{onTouchMove:V,onTouchStart:V,onTouchEnd:M,onMouseUp:F,onMouseMove:N,ownerState:{disabled:v},className:k.squareMask}),!_&&R.jsxs(E.Fragment,{children:[R.jsx(jN,{className:k.pin}),l!=null&&R.jsx(kN,{type:g,viewValue:w,isInner:T,hasSelected:K})]}),R.jsx(DN,{"aria-activedescendant":m,"aria-label":C.clockLabelText(g,l,S,l==null?null:S.format(l,"fullTime")),ref:Z,role:"listbox",onKeyDown:Y,tabIndex:0,className:k.wrapper,children:a})]}),r&&o&&R.jsxs(E.Fragment,{children:[R.jsx(NN,{onClick:p?void 0:()=>i("am"),disabled:v||u===null,ownerState:x,className:k.amButton,title:ln(S,"am"),children:R.jsx(zw,{variant:"caption",className:k.meridiemText,children:ln(S,"am")})}),R.jsx(AN,{disabled:v||u===null,onClick:p?void 0:()=>i("pm"),ownerState:x,className:k.pmButton,title:ln(S,"pm"),children:R.jsx(zw,{variant:"caption",className:k.meridiemText,children:ln(S,"pm")})})]})]})}function FN(e){return Ie("MuiClockNumber",e)}const el=ke("MuiClockNumber",["root","selected","disabled"]),LN=["className","disabled","index","inner","label","selected"],qN=e=>{const{classes:t,selected:r,disabled:o}=e;return _e({root:["root",r&&"selected",o&&"disabled"]},FN,t)},BN=se("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${el.disabled}`]:t.disabled},{[`&.${el.selected}`]:t.selected}]})(({theme:e})=>({height:un,width:un,position:"absolute",left:`calc((100% - ${un}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},[`&.${el.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${el.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:re({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Uw(e){const t=ht({props:e,name:"MuiClockNumber"}),{className:r,disabled:o,index:s,inner:a,label:l,selected:i}=t,c=Ue(t,LN),u=t,d=qN(u),h=s%12/12*Math.PI*2-Math.PI/2,m=(To-un-2)/2*(a?.65:1),g=Math.round(Math.cos(h)*m),w=Math.round(Math.sin(h)*m);return R.jsx(BN,re({className:Te(d.root,r),"aria-disabled":o?!0:void 0,"aria-selected":i?!0:void 0,role:"option",style:{transform:`translate(${g}px, ${w+(To-un)/2}px`},ownerState:u},c,{children:l}))}const zN=({ampm:e,value:t,getClockNumberText:r,isDisabled:o,selectedId:s,utils:a})=>{const l=t?a.getHours(t):null,i=[],c=e?1:0,u=e?12:23,d=h=>l===null?!1:e?h===12?l===12||l===0:l===h||l-12===h:l===h;for(let h=c;h<=u;h+=1){let m=h.toString();h===0&&(m="00");const g=!e&&(h===0||h>12);m=a.formatNumber(m);const w=d(h);i.push(R.jsx(Uw,{id:w?s:void 0,index:h,inner:g,selected:w,disabled:o(h),label:m,"aria-label":r(m)},h))}return i},Ww=({utils:e,value:t,isDisabled:r,getClockNumberText:o,selectedId:s})=>{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(([l,i],c)=>{const u=l===t;return R.jsx(Uw,{label:i,id:u?s:void 0,index:c+1,inner:!1,disabled:r(l),selected:u,"aria-label":o(i)},l)})},Lf=({value:e,referenceDate:t,utils:r,props:o,timezone:s})=>{const a=E.useMemo(()=>tr.getInitialReferenceValue({value:e,utils:r,props:o,referenceDate:t,granularity:Ar.day,timezone:s,getTodayDate:()=>af(r,s,"date")}),[]);return e??a},UN=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],WN=e=>{const{classes:t}=e;return _e({root:["root"],arrowSwitcher:["arrowSwitcher"]},yN,t)},HN=se(Hi,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),YN=se(rw,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),KN=["hours","minutes"],Hw=E.forwardRef(function(t,r){const o=xt(),s=ht({props:t,name:"MuiTimeClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),ampmInClock:l=!1,autoFocus:i,slots:c,slotProps:u,value:d,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:w,minTime:f,disableFuture:y,disablePast:v,minutesStep:p=1,shouldDisableTime:b,showViewSwitcher:x,onChange:S,view:C,views:O=KN,openTo:k,onViewChange:_,focusedView:T,onFocusedViewChange:P,className:D,disabled:V,readOnly:M,timezone:N}=s,F=Ue(s,UN),{value:K,handleValueChange:H,timezone:Z}=ho({name:"TimeClock",timezone:N,value:d,defaultValue:h,referenceDate:m,onChange:S,valueManager:tr}),L=Lf({value:K,referenceDate:m,utils:o,props:s,timezone:Z}),j=ur(),Y=Bn(Z),{view:q,setView:$,previousView:I,nextView:U,setValueAndGoToNextView:Q}=Os({view:C,views:O,openTo:k,onViewChange:_,onChange:H,focusedView:T,onFocusedViewChange:P}),{meridiemMode:W,handleMeridiemChange:ee}=Ef(L,a,Q),ne=E.useCallback((te,ae)=>{const J=ys(g,o),fe=ae==="hours"||ae==="minutes"&&O.includes("seconds"),le=({start:Se,end:Ce})=>!(f&&J(f,Ce)||w&&J(Se,w)||y&&J(Se,Y)||v&&J(Y,fe?Ce:Se)),ge=(Se,Ce=1)=>{if(Se%Ce!==0)return!1;if(b)switch(ae){case"hours":return!b(o.setHours(L,Se),"hours");case"minutes":return!b(o.setMinutes(L,Se),"minutes");case"seconds":return!b(o.setSeconds(L,Se),"seconds");default:return!1}return!0};switch(ae){case"hours":{const Se=gs(te,W,a),Ce=o.setHours(L,Se);if(o.getHours(Ce)!==Se)return!0;const Fe=o.setSeconds(o.setMinutes(Ce,0),0),Ye=o.setSeconds(o.setMinutes(Ce,59),59);return!le({start:Fe,end:Ye})||!ge(Se)}case"minutes":{const Se=o.setMinutes(L,te),Ce=o.setSeconds(Se,0),Fe=o.setSeconds(Se,59);return!le({start:Ce,end:Fe})||!ge(te,p)}case"seconds":{const Se=o.setSeconds(L,te);return!le({start:Se,end:Se})||!ge(te)}default:throw new Error("not supported")}},[a,L,g,w,W,f,p,b,o,y,v,Y,O]),B=mr(),A=E.useMemo(()=>{switch(q){case"hours":{const te=(fe,le)=>{const ge=gs(fe,W,a);Q(o.setHours(L,ge),le,"hours")},ae=o.getHours(L);let J;return a?ae>12?J=[12,23]:J=[0,11]:J=[0,23],{onChange:te,viewValue:ae,children:zN({value:K,utils:o,ampm:a,getClockNumberText:j.hoursClockNumberText,isDisabled:fe=>V||ne(fe,"hours"),selectedId:B}),viewRange:J}}case"minutes":{const te=o.getMinutes(L);return{viewValue:te,onChange:(J,fe)=>{Q(o.setMinutes(L,J),fe,"minutes")},children:Ww({utils:o,value:te,getClockNumberText:j.minutesClockNumberText,isDisabled:J=>V||ne(J,"minutes"),selectedId:B}),viewRange:[0,59]}}case"seconds":{const te=o.getSeconds(L);return{viewValue:te,onChange:(J,fe)=>{Q(o.setSeconds(L,J),fe,"seconds")},children:Ww({utils:o,value:te,getClockNumberText:j.secondsClockNumberText,isDisabled:J=>V||ne(J,"seconds"),selectedId:B}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[q,o,K,a,j.hoursClockNumberText,j.minutesClockNumberText,j.secondsClockNumberText,W,Q,L,ne,B,V]),z=s,X=WN(z);return R.jsxs(HN,re({ref:r,className:Te(X.root,D),ownerState:z},F,{children:[R.jsx(VN,re({autoFocus:i??!!T,ampmInClock:l&&O.includes("hours"),value:K,type:q,ampm:a,minutesStep:p,isTimeDisabled:ne,meridiemMode:W,handleMeridiemChange:ee,selectedId:B,disabled:V,readOnly:M},A)),x&&R.jsx(YN,{className:X.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>$(I),isPreviousDisabled:!I,previousLabel:j.openPreviousView,onGoToNext:()=>$(U),isNextDisabled:!U,nextLabel:j.openNextView,ownerState:z})]}))});process.env.NODE_ENV!=="production"&&(Hw.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,classes:n.object,className:n.string,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disablePast:n.bool,focusedView:n.oneOf(["hours","minutes","seconds"]),maxTime:n.object,minTime:n.object,minutesStep:n.number,onChange:n.func,onFocusedViewChange:n.func,onViewChange:n.func,openTo:n.oneOf(["hours","minutes","seconds"]),readOnly:n.bool,referenceDate:n.object,shouldDisableTime:n.func,showViewSwitcher:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["hours","minutes","seconds"]),views:n.arrayOf(n.oneOf(["hours","minutes","seconds"]).isRequired)});function GN(e){return Ie("MuiDigitalClock",e)}const XN=ke("MuiDigitalClock",["root","list","item"]),JN=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],ZN=e=>{const{classes:t}=e;return _e({root:["root"],list:["list"],item:["item"]},GN,t)},QN=se(Hi,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:z0,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),eA=se(Ci,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),tA=se(uo,{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})`:nt(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})`:nt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Yw=E.forwardRef(function(t,r){const o=xt(),s=E.useRef(null),a=ft(r,s),l=E.useRef(null),i=ht({props:t,name:"MuiDigitalClock"}),{ampm:c=o.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:h,slotProps:m,value:g,defaultValue:w,referenceDate:f,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:v,minTime:p,disableFuture:b,disablePast:x,minutesStep:S=1,shouldDisableTime:C,onChange:O,view:k,openTo:_,onViewChange:T,focusedView:P,onFocusedViewChange:D,className:V,disabled:M,readOnly:N,views:F=["hours"],skipDisabled:K=!1,timezone:H}=i,Z=Ue(i,JN),{value:L,handleValueChange:j,timezone:Y}=ho({name:"DigitalClock",timezone:H,value:g,defaultValue:w,referenceDate:f,onChange:O,valueManager:tr}),q=ur(),$=Bn(Y),I=E.useMemo(()=>re({},i,{alreadyRendered:!!s.current}),[i]),U=ZN(I),Q=(h==null?void 0:h.digitalClockItem)??tA,W=lt({elementType:Q,externalSlotProps:m==null?void 0:m.digitalClockItem,ownerState:{},className:U.item}),ee=Lf({value:L,referenceDate:f,utils:o,props:i,timezone:Y}),ne=Re(J=>j(J,"finish","hours")),{setValueAndGoToNextView:B}=Os({view:k,views:F,openTo:_,onViewChange:T,onChange:ne,focusedView:P,onFocusedViewChange:D}),A=Re(J=>{B(J,"finish")});E.useEffect(()=>{if(s.current===null)return;const J=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!J)return;const fe=J.offsetTop;(d||P)&&J.focus(),s.current.scrollTop=fe-4});const z=E.useCallback(J=>{const fe=ys(y,o),le=()=>!(p&&fe(p,J)||v&&fe(J,v)||b&&fe(J,$)||x&&fe($,J)),ge=()=>o.getMinutes(J)%S!==0?!1:C?!C(J,"hours"):!0;return!le()||!ge()},[y,o,p,v,b,$,x,S,C]),X=E.useMemo(()=>{const J=[];let le=o.startOfDay(ee);for(;o.isSameDay(ee,le);)J.push(le),le=o.addMinutes(le,u);return J},[ee,u,o]),te=X.findIndex(J=>o.isEqual(J,ee)),ae=J=>{switch(J.key){case"PageUp":{const fe=Ni(l.current)-5,le=l.current.children,ge=Math.max(0,fe),Se=le[ge];Se&&Se.focus(),J.preventDefault();break}case"PageDown":{const fe=Ni(l.current)+5,le=l.current.children,ge=Math.min(le.length-1,fe),Se=le[ge];Se&&Se.focus(),J.preventDefault();break}}};return R.jsx(QN,re({ref:a,className:Te(U.root,V),ownerState:I},Z,{children:R.jsx(eA,{ref:l,role:"listbox","aria-label":q.timePickerToolbarTitle,className:U.list,onKeyDown:ae,children:X.map((J,fe)=>{if(K&&z(J))return null;const le=o.isEqual(J,L),ge=o.format(J,c?"fullTime12h":"fullTime24h"),Se=te===fe||te===-1&&fe===0?0:-1;return R.jsx(Q,re({onClick:()=>!N&&A(J),selected:le,disabled:M||z(J),disableRipple:N,role:"option","aria-disabled":N,"aria-selected":le,tabIndex:Se},W,{children:ge}),`${J.valueOf()}-${ge}`)})})}))});process.env.NODE_ENV!=="production"&&(Yw.propTypes={ampm:n.bool,autoFocus:n.bool,classes:n.object,className:n.string,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disablePast:n.bool,focusedView:n.oneOf(["hours"]),maxTime:n.object,minTime:n.object,minutesStep:n.number,onChange:n.func,onFocusedViewChange:n.func,onViewChange:n.func,openTo:n.oneOf(["hours"]),readOnly:n.bool,referenceDate:n.object,shouldDisableTime:n.func,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeStep:n.number,timezone:n.string,value:n.object,view:n.oneOf(["hours"]),views:n.arrayOf(n.oneOf(["hours"]))});function rA(e){return Ie("MuiMultiSectionDigitalClock",e)}const Kw=ke("MuiMultiSectionDigitalClock",["root"]);function nA(e){return Ie("MuiMultiSectionDigitalClockSection",e)}const oA=ke("MuiMultiSectionDigitalClockSection",["root","item"]),sA=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],aA=e=>{const{classes:t}=e;return _e({root:["root"],item:["item"]},nA,t)},iA=se(Ci,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:z0,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),lA=se(uo,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Cs,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(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})`:nt(e.palette.primary.main,e.palette.action.focusOpacity)}})),cA=E.forwardRef(function(t,r){const o=E.useRef(null),s=ft(r,o),a=E.useRef(null),l=ht({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:i,onChange:c,className:u,disabled:d,readOnly:h,items:m,active:g,slots:w,slotProps:f,skipDisabled:y}=l,v=Ue(l,sA),p=E.useMemo(()=>re({},l,{alreadyRendered:!!o.current}),[l]),b=aA(p),x=(w==null?void 0:w.digitalClockSectionItem)??lA;E.useEffect(()=>{if(o.current===null)return;const O=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(g&&i&&O&&O.focus(),!O||a.current===O)return;a.current=O;const k=O.offsetTop;o.current.scrollTop=k-4});const S=m.findIndex(O=>O.isFocused(O.value)),C=O=>{switch(O.key){case"PageUp":{const k=Ni(o.current)-5,_=o.current.children,T=Math.max(0,k),P=_[T];P&&P.focus(),O.preventDefault();break}case"PageDown":{const k=Ni(o.current)+5,_=o.current.children,T=Math.min(_.length-1,k),P=_[T];P&&P.focus(),O.preventDefault();break}}};return R.jsx(iA,re({ref:s,className:Te(b.root,u),ownerState:p,autoFocusItem:i&&g,role:"listbox",onKeyDown:C},v,{children:m.map((O,k)=>{var V;const _=(V=O.isDisabled)==null?void 0:V.call(O,O.value),T=d||_;if(y&&T)return null;const P=O.isSelected(O.value),D=S===k||S===-1&&k===0?0:-1;return R.jsx(x,re({onClick:()=>!h&&c(O.value),selected:P,disabled:T,disableRipple:h,role:"option","aria-disabled":h||T||void 0,"aria-label":O.ariaLabel,"aria-selected":P,tabIndex:D,className:b.item},f==null?void 0:f.digitalClockSectionItem,{children:O.label}),O.label)})}))}),uA=({now:e,value:t,utils:r,ampm:o,isDisabled:s,resolveAriaLabel:a,timeStep:l,valueOrReferenceDate:i})=>{const c=t?r.getHours(t):null,u=[],d=(g,w)=>{const f=w??c;return f===null?!1:o?g===12?f===12||f===0:f===g||f-12===g:f===g},h=g=>d(g,r.getHours(i)),m=o?11:23;for(let g=0;g<=m;g+=l){let w=r.format(r.setHours(e,g),o?"hours12h":"hours24h");const f=a(parseInt(w,10).toString());w=r.formatNumber(w),u.push({value:g,label:w,isSelected:d,isDisabled:s,isFocused:h,ariaLabel:f})}return u},Gw=({value:e,utils:t,isDisabled:r,timeStep:o,resolveLabel:s,resolveAriaLabel:a,hasValue:l=!0})=>{const i=u=>e===null?!1:l&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const h=o*d;return{value:h,label:t.formatNumber(s(h)),isDisabled:r,isSelected:i,isFocused:c,ariaLabel:a(h.toString())}})]},dA=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],fA=e=>{const{classes:t}=e;return _e({root:["root"]},rA,t)},pA=se(Hi,{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}`})),Xw=E.forwardRef(function(t,r){const o=xt(),s=Qt(),a=ht({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:l=o.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:c,slots:u,slotProps:d,value:h,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:w=!1,maxTime:f,minTime:y,disableFuture:v,disablePast:p,minutesStep:b=1,shouldDisableTime:x,onChange:S,view:C,views:O=["hours","minutes"],openTo:k,onViewChange:_,focusedView:T,onFocusedViewChange:P,className:D,disabled:V,readOnly:M,skipDisabled:N=!1,timezone:F}=a,K=Ue(a,dA),{value:H,handleValueChange:Z,timezone:L}=ho({name:"MultiSectionDigitalClock",timezone:F,value:h,defaultValue:m,referenceDate:g,onChange:S,valueManager:tr}),j=ur(),Y=Bn(L),q=E.useMemo(()=>re({hours:1,minutes:5,seconds:5},i),[i]),$=Lf({value:H,referenceDate:g,utils:o,props:a,timezone:L}),I=Re((le,ge,Se)=>Z(le,ge,Se)),U=E.useMemo(()=>!l||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[l,O]),{view:Q,setValueAndGoToNextView:W,focusedView:ee}=Os({view:C,views:U,openTo:k,onViewChange:_,onChange:I,focusedView:T,onFocusedViewChange:P}),ne=Re(le=>{W(le,"finish","meridiem")}),{meridiemMode:B,handleMeridiemChange:A}=Ef($,l,ne,"finish"),z=E.useCallback((le,ge)=>{const Se=ys(w,o),Ce=ge==="hours"||ge==="minutes"&&U.includes("seconds"),Fe=({start:He,end:Qe})=>!(y&&Se(y,Qe)||f&&Se(He,f)||v&&Se(He,Y)||p&&Se(Y,Ce?Qe:He)),Ye=(He,Qe=1)=>{if(He%Qe!==0)return!1;if(x)switch(ge){case"hours":return!x(o.setHours($,He),"hours");case"minutes":return!x(o.setMinutes($,He),"minutes");case"seconds":return!x(o.setSeconds($,He),"seconds");default:return!1}return!0};switch(ge){case"hours":{const He=gs(le,B,l),Qe=o.setHours($,He);if(o.getHours(Qe)!==He)return!0;const ut=o.setSeconds(o.setMinutes(Qe,0),0),dt=o.setSeconds(o.setMinutes(Qe,59),59);return!Fe({start:ut,end:dt})||!Ye(He)}case"minutes":{const He=o.setMinutes($,le),Qe=o.setSeconds(He,0),ut=o.setSeconds(He,59);return!Fe({start:Qe,end:ut})||!Ye(le,b)}case"seconds":{const He=o.setSeconds($,le);return!Fe({start:He,end:He})||!Ye(le)}default:throw new Error("not supported")}},[l,$,w,f,B,y,b,x,o,v,p,Y,U]),X=E.useCallback(le=>{switch(le){case"hours":return{onChange:ge=>{const Se=gs(ge,B,l);W(o.setHours($,Se),"finish","hours")},items:uA({now:Y,value:H,ampm:l,utils:o,isDisabled:ge=>z(ge,"hours"),timeStep:q.hours,resolveAriaLabel:j.hoursClockNumberText,valueOrReferenceDate:$})};case"minutes":return{onChange:ge=>{W(o.setMinutes($,ge),"finish","minutes")},items:Gw({value:o.getMinutes($),utils:o,isDisabled:ge=>z(ge,"minutes"),resolveLabel:ge=>o.format(o.setMinutes(Y,ge),"minutes"),timeStep:q.minutes,hasValue:!!H,resolveAriaLabel:j.minutesClockNumberText})};case"seconds":return{onChange:ge=>{W(o.setSeconds($,ge),"finish","seconds")},items:Gw({value:o.getSeconds($),utils:o,isDisabled:ge=>z(ge,"seconds"),resolveLabel:ge=>o.format(o.setSeconds(Y,ge),"seconds"),timeStep:q.seconds,hasValue:!!H,resolveAriaLabel:j.secondsClockNumberText})};case"meridiem":{const ge=ln(o,"am"),Se=ln(o,"pm");return{onChange:A,items:[{value:"am",label:ge,isSelected:()=>!!H&&B==="am",isFocused:()=>!!$&&B==="am",ariaLabel:ge},{value:"pm",label:Se,isSelected:()=>!!H&&B==="pm",isFocused:()=>!!$&&B==="pm",ariaLabel:Se}]}}default:throw new Error(`Unknown view: ${le} found.`)}},[Y,H,l,o,q.hours,q.minutes,q.seconds,j.hoursClockNumberText,j.minutesClockNumberText,j.secondsClockNumberText,B,W,$,z,A]),te=E.useMemo(()=>{if(!s)return U;const le=U.filter(ge=>ge!=="meridiem");return le.reverse(),U.includes("meridiem")&&le.push("meridiem"),le},[s,U]),ae=E.useMemo(()=>U.reduce((le,ge)=>re({},le,{[ge]:X(ge)}),{}),[U,X]),J=a,fe=fA(J);return R.jsx(pA,re({ref:r,className:Te(fe.root,D),ownerState:J,role:"group"},K,{children:te.map(le=>R.jsx(cA,{items:ae[le].items,onChange:ae[le].onChange,active:Q===le,autoFocus:c??ee===le,disabled:V,readOnly:M,slots:u,slotProps:d,skipDisabled:N,"aria-label":j.selectViewText(le)},le))}))});process.env.NODE_ENV!=="production"&&(Xw.propTypes={ampm:n.bool,autoFocus:n.bool,classes:n.object,className:n.string,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disablePast:n.bool,focusedView:n.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:n.object,minTime:n.object,minutesStep:n.number,onChange:n.func,onFocusedViewChange:n.func,onViewChange:n.func,openTo:n.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:n.bool,referenceDate:n.object,shouldDisableTime:n.func,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["hours","meridiem","minutes","seconds"]),views:n.arrayOf(n.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const qf=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:s,value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:g,maxTime:w,shouldDisableTime:f,minutesStep:y,ampm:v,ampmInClock:p,slots:b,slotProps:x,readOnly:S,disabled:C,sx:O,autoFocus:k,showViewSwitcher:_,disableIgnoringDatePartForTimeValidation:T,timezone:P})=>R.jsx(Hw,{view:e,onViewChange:t,focusedView:r&&po(r)?r:null,onFocusedViewChange:o,views:s.filter(po),value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:g,maxTime:w,shouldDisableTime:f,minutesStep:y,ampm:v,ampmInClock:p,slots:b,slotProps:x,readOnly:S,disabled:C,sx:O,autoFocus:k,showViewSwitcher:_,disableIgnoringDatePartForTimeValidation:T,timezone:P}),hA=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:s,value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:g,maxTime:w,shouldDisableTime:f,minutesStep:y,ampm:v,slots:p,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:_,skipDisabled:T,timezone:P})=>R.jsx(Yw,{view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:s.filter(po),value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:g,maxTime:w,shouldDisableTime:f,minutesStep:y,ampm:v,slots:p,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeStep:_==null?void 0:_.minutes,skipDisabled:T,timezone:P}),Jw=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:s,value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:g,maxTime:w,shouldDisableTime:f,minutesStep:y,ampm:v,slots:p,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:_,skipDisabled:T,timezone:P})=>R.jsx(Xw,{view:e,onViewChange:t,focusedView:r,onFocusedViewChange:o,views:s.filter(po),value:a,defaultValue:l,referenceDate:i,onChange:c,className:u,classes:d,disableFuture:h,disablePast:m,minTime:g,maxTime:w,shouldDisableTime:f,minutesStep:y,ampm:v,slots:p,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:O,disableIgnoringDatePartForTimeValidation:k,timeSteps:_,skipDisabled:T,timezone:P}),Zw=E.forwardRef(function(t,r){var f;const o=Qt(),{toolbar:s,tabs:a,content:l,actionBar:i,shortcuts:c}=Nw(t),{sx:u,className:d,isLandscape:h,classes:m}=t,g=i&&(((f=i.props.actions)==null?void 0:f.length)??0)>0,w=re({},t,{isRtl:o});return R.jsxs(Aw,{ref:r,className:Te(Fr.root,m==null?void 0:m.root,d),sx:[{[`& .${Fr.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Fr.actionBar}`]:{gridRow:5}},...Array.isArray(u)?u:[u]],ownerState:w,children:[h?c:s,h?s:c,R.jsxs(Vw,{className:Te(Fr.contentWrapper,m==null?void 0:m.contentWrapper),sx:{display:"grid"},children:[l,a,g&&R.jsx(us,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),i]})});process.env.NODE_ENV!=="production"&&(Zw.propTypes={children:n.node,classes:n.object,className:n.string,disabled:n.bool,isLandscape:n.bool.isRequired,isRtl:n.bool.isRequired,isValid:n.func.isRequired,onAccept:n.func.isRequired,onCancel:n.func.isRequired,onChange:n.func.isRequired,onClear:n.func.isRequired,onClose:n.func.isRequired,onDismiss:n.func.isRequired,onOpen:n.func.isRequired,onSelectShortcut:n.func.isRequired,onSetToday:n.func.isRequired,onViewChange:n.func.isRequired,orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:n.arrayOf(n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:n.oneOf(["desktop","mobile"])});const mA=["openTo","focusedView","timeViewsCount"],gA=function(t,r,o){var d,h;const{openTo:s,focusedView:a,timeViewsCount:l}=o,i=Ue(o,mA),c=re({},i,{focusedView:null,sx:[{[`&.${Kw.root}`]:{borderBottom:0},[`&.${Kw.root}, .${oA.root}, &.${XN.root}`]:{maxHeight:zi}}]}),u=ms(r);return R.jsxs(E.Fragment,{children:[(d=t[u?"day":r])==null?void 0:d.call(t,re({},o,{view:u?"day":r,focusedView:a&&fo(a)?a:null,views:o.views.filter(fo),sx:[{gridColumn:1},...c.sx]})),l>0&&R.jsxs(E.Fragment,{children:[R.jsx(us,{orientation:"vertical",sx:{gridColumn:2}}),(h=t[u?r:"hours"])==null?void 0:h.call(t,re({},c,{view:u?r:"hours",focusedView:a&&ms(a)?a:null,openTo:ms(s)?s:"hours",views:o.views.filter(ms),sx:[{gridColumn:3},...c.sx]}))]})]})},Qw=E.forwardRef(function(t,r){var p,b,x,S;const o=ur(),s=xt(),a=H0(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:l,thresholdToRenderTimeInASingleColumn:i,views:c,timeSteps:u}=gN(a),d=l?hA:Jw,h=re({day:vo,month:vo,year:vo,hours:d,minutes:d,seconds:d,meridiem:d},a.viewRenderers),m=a.ampmInClock??!0,w=((p=h.hours)==null?void 0:p.name)===Jw.name?c:c.filter(C=>C!=="meridiem"),f=l?[]:["accept"],y=re({},a,{viewRenderers:h,format:Fw(s,a),views:w,yearsPerRow:a.yearsPerRow??4,ampmInClock:m,timeSteps:u,thresholdToRenderTimeInASingleColumn:i,shouldRenderTimeInASingleColumn:l,slots:re({field:Cf,layout:Zw,openPickerIcon:H$},a.slots),slotProps:re({},a.slotProps,{field:C=>{var O;return re({},Uo((O=a.slotProps)==null?void 0:O.field,C),f0(a),{ref:r})},toolbar:re({hidden:!0,ampmInClock:m,toolbarVariant:"desktop"},(b=a.slotProps)==null?void 0:b.toolbar),tabs:re({hidden:!0},(x=a.slotProps)==null?void 0:x.tabs),actionBar:C=>{var O;return re({actions:f},Uo((O=a.slotProps)==null?void 0:O.actionBar,C))}})}),{renderPicker:v}=fN({props:y,valueManager:tr,valueType:"date-time",getOpenDialogAriaText:p0({utils:s,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:(S=y.localeText)==null?void 0:S.openDatePickerDialogue}),validator:Mi,rendererInterceptor:gA});return v()});Qw.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Mt,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};function yA(e){return Ie("MuiDialogContent",e)}ke("MuiDialogContent",["root","dividers"]);const bA=ke("MuiDialogTitle",["root"]),vA=e=>{const{classes:t,dividers:r}=e;return _e({root:["root",r&&"dividers"]},yA,t)},wA=se("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Ze(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${bA.root} + &`]:{paddingTop:0}}}]}))),ex=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiDialogContent"}),{className:s,dividers:a=!1,...l}=o,i={...o,dividers:a},c=vA(i);return R.jsx(wA,{className:Te(c.root,s),ownerState:i,ref:r,...l})});process.env.NODE_ENV!=="production"&&(ex.propTypes={children:n.node,classes:n.object,className:n.string,dividers:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});function xA(e){return Ie("MuiDialog",e)}const Ms=ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),tx=E.createContext({});process.env.NODE_ENV!=="production"&&(tx.displayName="DialogContext");const SA=se(Gd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CA=e=>{const{classes:t,scroll:r,maxWidth:o,fullWidth:s,fullScreen:a}=e,l={root:["root"],container:["container",`scroll${Oe(r)}`],paper:["paper",`paperScroll${Oe(r)}`,`paperWidth${Oe(String(o))}`,s&&"paperFullWidth",a&&"paperFullScreen"]};return _e(l,xA,t)},TA=se(Xd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),OA=se("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Oe(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),PA=se(Sn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Oe(r.scroll)}`],t[`paperWidth${Oe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Ze(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ms.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Ms.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ms.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),rx=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiDialog"}),s=jn(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":i,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:h,className:m,disableEscapeKeyDown:g=!1,fullScreen:w=!1,fullWidth:f=!1,maxWidth:y="sm",onBackdropClick:v,onClick:p,onClose:b,open:x,PaperComponent:S=Sn,PaperProps:C={},scroll:O="paper",slots:k={},slotProps:_={},TransitionComponent:T=xn,transitionDuration:P=a,TransitionProps:D,...V}=o,M={...o,disableEscapeKeyDown:g,fullScreen:w,fullWidth:f,maxWidth:y,scroll:O},N=CA(M),F=E.useRef(),K=X=>{F.current=X.target===X.currentTarget},H=X=>{p&&p(X),F.current&&(F.current=null,v&&v(X),b&&b(X,"backdropClick"))},Z=mr(i),L=E.useMemo(()=>({titleId:Z}),[Z]),j={transition:T,...k},Y={transition:D,paper:C,backdrop:d,..._},q={slots:j,slotProps:Y},[$,I]=Bt("root",{elementType:TA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:M,className:Te(N.root,m),ref:r}),[U,Q]=Bt("backdrop",{elementType:SA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:M}),[W,ee]=Bt("paper",{elementType:PA,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:M,className:Te(N.paper,C.className)}),[ne,B]=Bt("container",{elementType:OA,externalForwardedProps:q,ownerState:M,className:Te(N.container)}),[A,z]=Bt("transition",{elementType:xn,externalForwardedProps:q,ownerState:M,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return R.jsx($,{closeAfterTransition:!0,slots:{backdrop:U},slotProps:{backdrop:{transitionDuration:P,as:u,...Q}},disableEscapeKeyDown:g,onClose:b,open:x,onClick:H,...I,...V,children:R.jsx(A,{...z,children:R.jsx(ne,{onMouseDown:K,...B,children:R.jsx(W,{as:S,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":Z,"aria-modal":c,...ee,children:R.jsx(tx.Provider,{value:L,children:h})})})})})});process.env.NODE_ENV!=="production"&&(rx.propTypes={"aria-describedby":n.string,"aria-labelledby":n.string,"aria-modal":n.oneOfType([n.oneOf(["false","true"]),n.bool]),BackdropComponent:n.elementType,BackdropProps:n.object,children:n.node,classes:n.object,className:n.string,disableEscapeKeyDown:n.bool,fullScreen:n.bool,fullWidth:n.bool,maxWidth:n.oneOfType([n.oneOf(["xs","sm","md","lg","xl",!1]),n.string]),onBackdropClick:n.func,onClick:n.func,onClose:n.func,open:n.bool.isRequired,PaperComponent:n.elementType,PaperProps:n.object,scroll:n.oneOf(["body","paper"]),slotProps:n.shape({backdrop:n.oneOfType([n.func,n.object]),container:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),root:n.oneOfType([n.func,n.object]),transition:n.oneOfType([n.func,n.object])}),slots:n.shape({backdrop:n.elementType,container:n.elementType,paper:n.elementType,root:n.elementType,transition:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),TransitionComponent:n.elementType,transitionDuration:n.oneOfType([n.number,n.shape({appear:n.number,enter:n.number,exit:n.number})]),TransitionProps:n.object});const EA=se(rx)({[`& .${Ms.container}`]:{outline:0},[`& .${Ms.paper}`]:{outline:0,minWidth:Bi}}),kA=se(ex)({"&:first-of-type":{padding:0}});function RA(e){const{children:t,onDismiss:r,open:o,slots:s,slotProps:a}=e,l=(s==null?void 0:s.dialog)??EA,i=(s==null?void 0:s.mobileTransition)??xn;return R.jsx(l,re({open:o,onClose:r},a==null?void 0:a.dialog,{TransitionComponent:i,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:R.jsx(kA,{children:t})}))}const $A=["props","getOpenDialogAriaText"],_A=e=>{var j;let{props:t,getOpenDialogAriaText:r}=e,o=Ue(e,$A);const{slots:s,slotProps:a,className:l,sx:i,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:m,timezone:g,name:w,label:f,inputRef:y,readOnly:v,disabled:p,localeText:b}=t,x=E.useRef(null),S=mr(),C=((j=a==null?void 0:a.toolbar)==null?void 0:j.hidden)??!1,{open:O,actions:k,layoutProps:_,renderCurrentView:T,fieldProps:P,contextValue:D}=$w(re({},o,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=s.field,M=lt({elementType:V,externalSlotProps:a==null?void 0:a.field,additionalProps:re({},P,C&&{id:S},!(p||v)&&{onClick:k.onOpen,onKeyDown:S$(k.onOpen)},{readOnly:v??!0,disabled:p,className:l,sx:i,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:m,timezone:g,label:f,name:w},y?{inputRef:y}:{}),ownerState:t});M.inputProps=re({},M.inputProps,{"aria-label":r(P.value)});const N=re({textField:s.textField},M.slots),F=s.layout??Ff;let K=S;C&&(f?K=`${S}-label`:K=void 0);const H=re({},a,{toolbar:re({},a==null?void 0:a.toolbar,{titleId:S}),mobilePaper:re({"aria-labelledby":K},a==null?void 0:a.mobilePaper)}),Z=ft(x,M.unstableFieldRef);return{renderPicker:()=>R.jsxs(w0,{contextValue:D,localeText:b,children:[R.jsx(V,re({},M,{slots:N,slotProps:H,unstableFieldRef:Z})),R.jsx(RA,re({},k,{open:O,slots:s,slotProps:H,children:R.jsx(F,re({},_,H==null?void 0:H.layout,{slots:s,slotProps:H,children:T()}))}))]})}},nx=E.forwardRef(function(t,r){var d,h,m;const o=ur(),s=xt(),a=H0(t,"MuiMobileDateTimePicker"),l=re({day:vo,month:vo,year:vo,hours:qf,minutes:qf,seconds:qf},a.viewRenderers),i=a.ampmInClock??!1,c=re({},a,{viewRenderers:l,format:Fw(s,a),ampmInClock:i,slots:re({field:Cf},a.slots),slotProps:re({},a.slotProps,{field:g=>{var w;return re({},Uo((w=a.slotProps)==null?void 0:w.field,g),f0(a),{ref:r})},toolbar:re({hidden:!1,ampmInClock:i},(d=a.slotProps)==null?void 0:d.toolbar),tabs:re({hidden:!1},(h=a.slotProps)==null?void 0:h.tabs)})}),{renderPicker:u}=_A({props:c,valueManager:tr,valueType:"date-time",getOpenDialogAriaText:p0({utils:s,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:(m=c.localeText)==null?void 0:m.openDatePickerDialogue}),validator:Mi});return u()});nx.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Mt,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])};const IA=["desktopModeMediaQuery"],ox=E.forwardRef(function(t,r){const o=ht({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:s=C$}=o,a=Ue(o,IA);return Wv(s,{defaultMatches:!0})?R.jsx(Qw,re({ref:r},a)):R.jsx(nx,re({ref:r},a))});process.env.NODE_ENV!=="production"&&(ox.propTypes={ampm:n.bool,ampmInClock:n.bool,autoFocus:n.bool,className:n.string,closeOnSelect:n.bool,dayOfWeekFormatter:n.func,defaultValue:n.object,desktopModeMediaQuery:n.string,disabled:n.bool,disableFuture:n.bool,disableHighlightToday:n.bool,disableIgnoringDatePartForTimeValidation:n.bool,disableOpenPicker:n.bool,disablePast:n.bool,displayWeekNumber:n.bool,enableAccessibleFieldDOMStructure:n.any,fixedWeekNumber:n.number,format:n.string,formatDensity:n.oneOf(["dense","spacious"]),inputRef:Mt,label:n.node,loading:n.bool,localeText:n.object,maxDate:n.object,maxDateTime:n.object,maxTime:n.object,minDate:n.object,minDateTime:n.object,minTime:n.object,minutesStep:n.number,monthsPerRow:n.oneOf([3,4]),name:n.string,onAccept:n.func,onChange:n.func,onClose:n.func,onError:n.func,onMonthChange:n.func,onOpen:n.func,onSelectedSectionsChange:n.func,onViewChange:n.func,onYearChange:n.func,open:n.bool,openTo:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:n.oneOf(["landscape","portrait"]),readOnly:n.bool,reduceAnimations:n.bool,referenceDate:n.object,renderLoading:n.func,selectedSections:n.oneOfType([n.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),n.number]),shouldDisableDate:n.func,shouldDisableMonth:n.func,shouldDisableTime:n.func,shouldDisableYear:n.func,showDaysOutsideCurrentMonth:n.bool,skipDisabled:n.bool,slotProps:n.object,slots:n.object,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),thresholdToRenderTimeInASingleColumn:n.number,timeSteps:n.shape({hours:n.number,minutes:n.number,seconds:n.number}),timezone:n.string,value:n.object,view:n.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:n.shape({day:n.func,hours:n.func,meridiem:n.func,minutes:n.func,month:n.func,seconds:n.func,year:n.func}),views:n.arrayOf(n.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:n.oneOf(["asc","desc"]),yearsPerRow:n.oneOf([3,4])});var tl={exports:{}},DA=tl.exports,sx;function MA(){return sx||(sx=1,function(e,t){(function(r,o){e.exports=o()})(DA,function(){var r=1e3,o=6e4,s=36e5,a="millisecond",l="second",i="minute",c="hour",u="day",d="week",h="month",m="quarter",g="year",w="date",f="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,p={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(M){var N=["th","st","nd","rd"],F=M%100;return"["+M+(N[(F-20)%10]||N[F]||N[0])+"]"}},b=function(M,N,F){var K=String(M);return!K||K.length>=N?M:""+Array(N+1-K.length).join(F)+M},x={s:b,z:function(M){var N=-M.utcOffset(),F=Math.abs(N),K=Math.floor(F/60),H=F%60;return(N<=0?"+":"-")+b(K,2,"0")+":"+b(H,2,"0")},m:function M(N,F){if(N.date()<F.date())return-M(F,N);var K=12*(F.year()-N.year())+(F.month()-N.month()),H=N.clone().add(K,h),Z=F-H<0,L=N.clone().add(K+(Z?-1:1),h);return+(-(K+(F-H)/(Z?H-L:L-H))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:h,y:g,w:d,d:u,D:w,h:c,m:i,s:l,ms:a,Q:m}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},S="en",C={};C[S]=p;var O="$isDayjsObject",k=function(M){return M instanceof D||!(!M||!M[O])},_=function M(N,F,K){var H;if(!N)return S;if(typeof N=="string"){var Z=N.toLowerCase();C[Z]&&(H=Z),F&&(C[Z]=F,H=Z);var L=N.split("-");if(!H&&L.length>1)return M(L[0])}else{var j=N.name;C[j]=N,H=j}return!K&&H&&(S=H),H||!K&&S},T=function(M,N){if(k(M))return M.clone();var F=typeof N=="object"?N:{};return F.date=M,F.args=arguments,new D(F)},P=x;P.l=_,P.i=k,P.w=function(M,N){return T(M,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var D=function(){function M(F){this.$L=_(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[O]=!0}var N=M.prototype;return N.parse=function(F){this.$d=function(K){var H=K.date,Z=K.utc;if(H===null)return new Date(NaN);if(P.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var L=H.match(y);if(L){var j=L[2]-1||0,Y=(L[7]||"0").substring(0,3);return Z?new Date(Date.UTC(L[1],j,L[3]||1,L[4]||0,L[5]||0,L[6]||0,Y)):new Date(L[1],j,L[3]||1,L[4]||0,L[5]||0,L[6]||0,Y)}}return new Date(H)}(F),this.init()},N.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},N.$utils=function(){return P},N.isValid=function(){return this.$d.toString()!==f},N.isSame=function(F,K){var H=T(F);return this.startOf(K)<=H&&H<=this.endOf(K)},N.isAfter=function(F,K){return T(F)<this.startOf(K)},N.isBefore=function(F,K){return this.endOf(K)<T(F)},N.$g=function(F,K,H){return P.u(F)?this[K]:this.set(H,F)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(F,K){var H=this,Z=!!P.u(K)||K,L=P.p(F),j=function(ee,ne){var B=P.w(H.$u?Date.UTC(H.$y,ne,ee):new Date(H.$y,ne,ee),H);return Z?B:B.endOf(u)},Y=function(ee,ne){return P.w(H.toDate()[ee].apply(H.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(ne)),H)},q=this.$W,$=this.$M,I=this.$D,U="set"+(this.$u?"UTC":"");switch(L){case g:return Z?j(1,0):j(31,11);case h:return Z?j(1,$):j(0,$+1);case d:var Q=this.$locale().weekStart||0,W=(q<Q?q+7:q)-Q;return j(Z?I-W:I+(6-W),$);case u:case w:return Y(U+"Hours",0);case c:return Y(U+"Minutes",1);case i:return Y(U+"Seconds",2);case l:return Y(U+"Milliseconds",3);default:return this.clone()}},N.endOf=function(F){return this.startOf(F,!1)},N.$set=function(F,K){var H,Z=P.p(F),L="set"+(this.$u?"UTC":""),j=(H={},H[u]=L+"Date",H[w]=L+"Date",H[h]=L+"Month",H[g]=L+"FullYear",H[c]=L+"Hours",H[i]=L+"Minutes",H[l]=L+"Seconds",H[a]=L+"Milliseconds",H)[Z],Y=Z===u?this.$D+(K-this.$W):K;if(Z===h||Z===g){var q=this.clone().set(w,1);q.$d[j](Y),q.init(),this.$d=q.set(w,Math.min(this.$D,q.daysInMonth())).$d}else j&&this.$d[j](Y);return this.init(),this},N.set=function(F,K){return this.clone().$set(F,K)},N.get=function(F){return this[P.p(F)]()},N.add=function(F,K){var H,Z=this;F=Number(F);var L=P.p(K),j=function($){var I=T(Z);return P.w(I.date(I.date()+Math.round($*F)),Z)};if(L===h)return this.set(h,this.$M+F);if(L===g)return this.set(g,this.$y+F);if(L===u)return j(1);if(L===d)return j(7);var Y=(H={},H[i]=o,H[c]=s,H[l]=r,H)[L]||1,q=this.$d.getTime()+F*Y;return P.w(q,this)},N.subtract=function(F,K){return this.add(-1*F,K)},N.format=function(F){var K=this,H=this.$locale();if(!this.isValid())return H.invalidDate||f;var Z=F||"YYYY-MM-DDTHH:mm:ssZ",L=P.z(this),j=this.$H,Y=this.$m,q=this.$M,$=H.weekdays,I=H.months,U=H.meridiem,Q=function(ne,B,A,z){return ne&&(ne[B]||ne(K,Z))||A[B].slice(0,z)},W=function(ne){return P.s(j%12||12,ne,"0")},ee=U||function(ne,B,A){var z=ne<12?"AM":"PM";return A?z.toLowerCase():z};return Z.replace(v,function(ne,B){return B||function(A){switch(A){case"YY":return String(K.$y).slice(-2);case"YYYY":return P.s(K.$y,4,"0");case"M":return q+1;case"MM":return P.s(q+1,2,"0");case"MMM":return Q(H.monthsShort,q,I,3);case"MMMM":return Q(I,q);case"D":return K.$D;case"DD":return P.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return Q(H.weekdaysMin,K.$W,$,2);case"ddd":return Q(H.weekdaysShort,K.$W,$,3);case"dddd":return $[K.$W];case"H":return String(j);case"HH":return P.s(j,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return ee(j,Y,!0);case"A":return ee(j,Y,!1);case"m":return String(Y);case"mm":return P.s(Y,2,"0");case"s":return String(K.$s);case"ss":return P.s(K.$s,2,"0");case"SSS":return P.s(K.$ms,3,"0");case"Z":return L}return null}(ne)||L.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(F,K,H){var Z,L=this,j=P.p(K),Y=T(F),q=(Y.utcOffset()-this.utcOffset())*o,$=this-Y,I=function(){return P.m(L,Y)};switch(j){case g:Z=I()/12;break;case h:Z=I();break;case m:Z=I()/3;break;case d:Z=($-q)/6048e5;break;case u:Z=($-q)/864e5;break;case c:Z=$/s;break;case i:Z=$/o;break;case l:Z=$/r;break;default:Z=$}return H?Z:P.a(Z)},N.daysInMonth=function(){return this.endOf(h).$D},N.$locale=function(){return C[this.$L]},N.locale=function(F,K){if(!F)return this.$L;var H=this.clone(),Z=_(F,K,!0);return Z&&(H.$L=Z),H},N.clone=function(){return P.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},M}(),V=D.prototype;return T.prototype=V,[["$ms",a],["$s",l],["$m",i],["$H",c],["$W",u],["$M",h],["$y",g],["$D",w]].forEach(function(M){V[M[1]]=function(N){return this.$g(N,M[0],M[1])}}),T.extend=function(M,N){return M.$i||(M(N,D,T),M.$i=!0),T},T.locale=_,T.isDayjs=k,T.unix=function(M){return T(1e3*M)},T.en=C[S],T.Ls=C,T.p={},T})}(tl)),tl.exports}var jA=MA();const Wt=Ut(jA);var rl={exports:{}},NA=rl.exports,ax;function AA(){return ax||(ax=1,function(e,t){(function(r,o){e.exports=o()})(NA,function(){var r="week",o="year";return function(s,a,l){var i=a.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=l(this).startOf(o).add(1,o).date(u),h=l(this).endOf(r);if(d.isBefore(h))return 1}var m=l(this).startOf(o).date(u).startOf(r).subtract(1,"millisecond"),g=this.diff(m,r,!0);return g<0?l(this).startOf("week").week():Math.ceil(g)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(rl)),rl.exports}var VA=AA();const FA=Ut(VA);var nl={exports:{}},LA=nl.exports,ix;function qA(){return ix||(ix=1,function(e,t){(function(r,o){e.exports=o()})(LA,function(){var r={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var p=v.match(/([+-]|\d\d)/g),b=60*p[1]+(+p[2]||0);return b===0?0:p[0]==="+"?-b:b}(y)}],m=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},g=function(y,v){var p,b=c.meridiem;if(b){for(var x=1;x<=24;x+=1)if(y.indexOf(b(x,0,v))>-1){p=x>12;break}}else p=y===(v?"pm":"PM");return p},w={A:[i,function(y){this.afternoon=g(y,!1)}],a:[i,function(y){this.afternoon=g(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[a,d("day")],Do:[i,function(y){var v=c.ordinal,p=y.match(/\d+/);if(this.day=p[0],v)for(var b=1;b<=31;b+=1)v(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],w:[l,d("week")],ww:[a,d("week")],M:[l,d("month")],MM:[a,d("month")],MMM:[i,function(y){var v=m("months"),p=(m("monthsShort")||v.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[i,function(y){var v=m("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function f(y){var v,p;v=y,p=c&&c.formats;for(var b=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,P,D){var V=D&&D.toUpperCase();return P||p[D]||r[D]||p[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,N,F){return N||F.slice(1)})})).match(o),x=b.length,S=0;S<x;S+=1){var C=b[S],O=w[C],k=O&&O[0],_=O&&O[1];b[S]=_?{regex:k,parser:_}:C.replace(/^\[|\]$/g,"")}return function(T){for(var P={},D=0,V=0;D<x;D+=1){var M=b[D];if(typeof M=="string")V+=M.length;else{var N=M.regex,F=M.parser,K=T.slice(V),H=N.exec(K)[0];F.call(P,H),T=T.replace(H,"")}}return function(Z){var L=Z.afternoon;if(L!==void 0){var j=Z.hours;L?j<12&&(Z.hours+=12):j===12&&(Z.hours=0),delete Z.afternoon}}(P),P}}return function(y,v,p){p.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var b=v.prototype,x=b.parse;b.parse=function(S){var C=S.date,O=S.utc,k=S.args;this.$u=O;var _=k[1];if(typeof _=="string"){var T=k[2]===!0,P=k[3]===!0,D=T||P,V=k[2];P&&(V=k[2]),c=this.$locale(),!T&&V&&(c=p.Ls[V]),this.$d=function(K,H,Z,L){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*K);var j=f(H)(K),Y=j.year,q=j.month,$=j.day,I=j.hours,U=j.minutes,Q=j.seconds,W=j.milliseconds,ee=j.zone,ne=j.week,B=new Date,A=$||(Y||q?1:B.getDate()),z=Y||B.getFullYear(),X=0;Y&&!q||(X=q>0?q-1:B.getMonth());var te,ae=I||0,J=U||0,fe=Q||0,le=W||0;return ee?new Date(Date.UTC(z,X,A,ae,J,fe,le+60*ee.offset*1e3)):Z?new Date(Date.UTC(z,X,A,ae,J,fe,le)):(te=new Date(z,X,A,ae,J,fe,le),ne&&(te=L(te).week(ne).toDate()),te)}catch{return new Date("")}}(C,_,O,p),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),D&&C!=this.format(_)&&(this.$d=new Date("")),c={}}else if(_ instanceof Array)for(var M=_.length,N=1;N<=M;N+=1){k[1]=_[N-1];var F=p.apply(this,k);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}N===M&&(this.$d=new Date(""))}else x.call(this,S)}}})}(nl)),nl.exports}var BA=qA();const zA=Ut(BA);var ol={exports:{}},UA=ol.exports,lx;function WA(){return lx||(lx=1,function(e,t){(function(r,o){e.exports=o()})(UA,function(){var r={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(o,s,a){var l=s.prototype,i=l.format;a.en.formats=r,l.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(h,m){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,w,f){var y=f&&f.toUpperCase();return w||m[f]||r[f]||m[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,p,b){return p||b.slice(1)})})}(c,u===void 0?{}:u);return i.call(this,d)}}})}(ol)),ol.exports}var HA=WA();const YA=Ut(HA);var sl={exports:{}},KA=sl.exports,cx;function GA(){return cx||(cx=1,function(e,t){(function(r,o){e.exports=o()})(KA,function(){return function(r,o,s){o.prototype.isBetween=function(a,l,i,c){var u=s(a),d=s(l),h=(c=c||"()")[0]==="(",m=c[1]===")";return(h?this.isAfter(u,i):!this.isBefore(u,i))&&(m?this.isBefore(d,i):!this.isAfter(d,i))||(h?this.isBefore(u,i):!this.isAfter(u,i))&&(m?this.isAfter(d,i):!this.isBefore(d,i))}}})}(sl)),sl.exports}var XA=GA();const JA=Ut(XA);var al={exports:{}},ZA=al.exports,ux;function QA(){return ux||(ux=1,function(e,t){(function(r,o){e.exports=o()})(ZA,function(){return function(r,o){var s=o.prototype,a=s.format;s.format=function(l){var i=this,c=this.$locale();if(!this.isValid())return a.bind(this)(l);var u=this.$utils(),d=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),h==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),h==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return h}});return a.bind(this)(d)}}})}(al)),al.exports}var eV=QA();const tV=Ut(eV);Wt.extend(YA),Wt.extend(FA),Wt.extend(JA),Wt.extend(tV);const rV={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"},nV={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Bf=["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(`
261
- `),dx=["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(`
262
- `),oV=(e,t)=>t?(...r)=>e(...r).locale(t):e;class sV{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=rV,this.setLocaleToValue=o=>{const s=this.getCurrentLocaleCode();return s===o.locale()?o:o.locale(s)},this.hasUTCPlugin=()=>typeof Wt.utc<"u",this.hasTimezonePlugin=()=>typeof Wt.tz<"u",this.isSame=(o,s,a)=>{const l=this.setTimezone(s,this.getTimezone(o));return o.format(a)===l.format(a)},this.cleanTimezone=o=>{switch(o){case"default":return;case"system":return Wt.tz.guess();default:return o}},this.createSystemDate=o=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const s=Wt.tz.guess();return s!=="UTC"?Wt.tz(o,s):Wt(o)}return Wt(o)},this.createUTCDate=o=>{if(!this.hasUTCPlugin())throw new Error(Bf);return Wt.utc(o)},this.createTZDate=(o,s)=>{if(!this.hasUTCPlugin())throw new Error(Bf);if(!this.hasTimezonePlugin())throw new Error(dx);const a=o!==void 0&&!o.endsWith("Z");return Wt(o).tz(this.cleanTimezone(s),a)},this.getLocaleFormats=()=>{const o=Wt.Ls,s=this.locale||"en";let a=o[s];return a===void 0&&(process.env.NODE_ENV!=="production"&&kw(["MUI X: 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."]),a=o.en),a.formats},this.adjustOffset=o=>{if(!this.hasTimezonePlugin())return o;const s=this.getTimezone(o);if(s!=="UTC"){const a=o.tz(this.cleanTimezone(s),!0);if(a.$offset===(o.$offset??0))return o;o.$offset=a.$offset}return o},this.date=(o,s="default")=>{if(o===null)return null;let a;return s==="UTC"?a=this.createUTCDate(o):s==="system"||s==="default"&&!this.hasTimezonePlugin()?a=this.createSystemDate(o):a=this.createTZDate(o,s),this.locale===void 0?a:a.locale(this.locale)},this.getInvalidDate=()=>Wt(new Date("Invalid date")),this.getTimezone=o=>{var s;if(this.hasTimezonePlugin()){const a=(s=o.$x)==null?void 0:s.$timezone;if(a)return a}return this.hasUTCPlugin()&&o.isUTC()?"UTC":"system"},this.setTimezone=(o,s)=>{if(this.getTimezone(o)===s)return o;if(s==="UTC"){if(!this.hasUTCPlugin())throw new Error(Bf);return o.utc()}if(s==="system")return o.local();if(!this.hasTimezonePlugin()){if(s==="default")return o;throw new Error(dx)}return Wt.tz(o,this.cleanTimezone(s))},this.toJsDate=o=>o.toDate(),this.parse=(o,s)=>o===""?null:this.dayjs(o,s,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=o=>{const s=this.getLocaleFormats(),a=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,c,u)=>c||u.slice(1));return o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,i,c)=>{const u=c&&c.toUpperCase();return i||s[c]||a(s[u])})},this.isValid=o=>o==null?!1:o.isValid(),this.format=(o,s)=>this.formatByString(o,this.formats[s]),this.formatByString=(o,s)=>this.dayjs(o).format(s),this.formatNumber=o=>o,this.isEqual=(o,s)=>o===null&&s===null?!0:o===null||s===null?!1:o.toDate().getTime()===s.toDate().getTime(),this.isSameYear=(o,s)=>this.isSame(o,s,"YYYY"),this.isSameMonth=(o,s)=>this.isSame(o,s,"YYYY-MM"),this.isSameDay=(o,s)=>this.isSame(o,s,"YYYY-MM-DD"),this.isSameHour=(o,s)=>o.isSame(s,"hour"),this.isAfter=(o,s)=>o>s,this.isAfterYear=(o,s)=>this.hasUTCPlugin()?!this.isSameYear(o,s)&&o.utc()>s.utc():o.isAfter(s,"year"),this.isAfterDay=(o,s)=>this.hasUTCPlugin()?!this.isSameDay(o,s)&&o.utc()>s.utc():o.isAfter(s,"day"),this.isBefore=(o,s)=>o<s,this.isBeforeYear=(o,s)=>this.hasUTCPlugin()?!this.isSameYear(o,s)&&o.utc()<s.utc():o.isBefore(s,"year"),this.isBeforeDay=(o,s)=>this.hasUTCPlugin()?!this.isSameDay(o,s)&&o.utc()<s.utc():o.isBefore(s,"day"),this.isWithinRange=(o,[s,a])=>o>=s&&o<=a,this.startOfYear=o=>this.adjustOffset(o.startOf("year")),this.startOfMonth=o=>this.adjustOffset(o.startOf("month")),this.startOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).startOf("week")),this.startOfDay=o=>this.adjustOffset(o.startOf("day")),this.endOfYear=o=>this.adjustOffset(o.endOf("year")),this.endOfMonth=o=>this.adjustOffset(o.endOf("month")),this.endOfWeek=o=>this.adjustOffset(this.setLocaleToValue(o).endOf("week")),this.endOfDay=o=>this.adjustOffset(o.endOf("day")),this.addYears=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"year"):o.add(s,"year")),this.addMonths=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"month"):o.add(s,"month")),this.addWeeks=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"week"):o.add(s,"week")),this.addDays=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"day"):o.add(s,"day")),this.addHours=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"hour"):o.add(s,"hour")),this.addMinutes=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"minute"):o.add(s,"minute")),this.addSeconds=(o,s)=>this.adjustOffset(s<0?o.subtract(Math.abs(s),"second"):o.add(s,"second")),this.getYear=o=>o.year(),this.getMonth=o=>o.month(),this.getDate=o=>o.date(),this.getHours=o=>o.hour(),this.getMinutes=o=>o.minute(),this.getSeconds=o=>o.second(),this.getMilliseconds=o=>o.millisecond(),this.setYear=(o,s)=>this.adjustOffset(o.set("year",s)),this.setMonth=(o,s)=>this.adjustOffset(o.set("month",s)),this.setDate=(o,s)=>this.adjustOffset(o.set("date",s)),this.setHours=(o,s)=>this.adjustOffset(o.set("hour",s)),this.setMinutes=(o,s)=>this.adjustOffset(o.set("minute",s)),this.setSeconds=(o,s)=>this.adjustOffset(o.set("second",s)),this.setMilliseconds=(o,s)=>this.adjustOffset(o.set("millisecond",s)),this.getDaysInMonth=o=>o.daysInMonth(),this.getWeekArray=o=>{const s=this.startOfWeek(this.startOfMonth(o)),a=this.endOfWeek(this.endOfMonth(o));let l=0,i=s;const c=[];for(;i<a;){const u=Math.floor(l/7);c[u]=c[u]||[],c[u].push(i),i=this.addDays(i,1),l+=1}return c},this.getWeekNumber=o=>o.week(),this.getYearRange=([o,s])=>{const a=this.startOfYear(o),l=this.endOfYear(s),i=[];let c=a;for(;this.isBefore(c,l);)i.push(c),c=this.addYears(c,1);return i},this.dayjs=oV(Wt,t),this.locale=t,this.formats=re({},nV,r),Wt.extend(zA)}getDayOfWeek(t){return t.day()+1}}class aV extends Be.Component{constructor(t){super(t);const{model:r,form:o,value:s,setDefault:a}=this.props,{key:l}=o,c=new Date().toISOString();a(l,r,o,s||c)}render(){const{form:t,error:r,value:o,onChangeValidate:s,localization:{getLocalizedString:a}}=this.props;return R.jsx(pf,{dateAdapter:sV,children:R.jsx(ox,{label:t.title&&a(t.title),value:o?Wt(o):null,onChange:l=>{const i=l?l.toISOString():"";s(i)},disabled:t.readonly,desktopModeMediaQuery:"@media (min-width: 1px)",slotProps:{textField:{helperText:(r||t.description)&&a(r||t.description),error:!!r,placeholder:t.placeholder&&a(t.placeholder),fullWidth:!0,required:t.required,style:t.style,...t.otherProps},popper:{sx:{"& .MuiTypography-root":{fontSize:"1.2rem"},"& .MuiPickersCalendarHeader-label":{fontSize:"1.1rem"},"& .MuiDayCalendar-weekDayLabel":{fontSize:"1rem"},"& .MuiPickersDay-root":{fontSize:"1rem"},"& .MuiClockNumber-root":{fontSize:"1rem"}}}}})})}}const iV=Jt(aV),lV=kt(R.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),cV=kt(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),uV=kt(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function dV(e){return Ie("MuiCheckbox",e)}const zf=ke("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),fV=e=>{const{classes:t,indeterminate:r,color:o,size:s}=e,a={root:["root",r&&"indeterminate",`color${Oe(o)}`,`size${Oe(s)}`]},l=_e(a,dV,t);return{...t,...l}},pV=se(nf,{shouldForwardProp:e=>er(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Oe(r.size)}`],r.color!=="default"&&t[`color${Oe(r.color)}`]]}})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Kt()).map(([t])=>({props:{color:t},style:{[`&.${zf.checked}, &.${zf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${zf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),hV=R.jsx(cV,{}),mV=R.jsx(lV,{}),gV=R.jsx(uV,{}),fx=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=hV,color:a="primary",icon:l=mV,indeterminate:i=!1,indeterminateIcon:c=gV,inputProps:u,size:d="medium",disableRipple:h=!1,className:m,...g}=o,w=i?c:l,f=i?c:s,y={...o,disableRipple:h,color:a,indeterminate:i,size:d},v=fV(y);return R.jsx(pV,{type:"checkbox",inputProps:{"data-indeterminate":i,...u},icon:E.cloneElement(w,{fontSize:w.props.fontSize??d}),checkedIcon:E.cloneElement(f,{fontSize:f.props.fontSize??d}),ownerState:y,ref:r,className:Te(v.root,m),disableRipple:h,...g,classes:v})});process.env.NODE_ENV!=="production"&&(fx.propTypes={checked:n.bool,checkedIcon:n.node,classes:n.object,className:n.string,color:n.oneOfType([n.oneOf(["default","primary","secondary","error","info","success","warning"]),n.string]),defaultChecked:n.bool,disabled:n.bool,disableRipple:n.bool,icon:n.node,id:n.string,indeterminate:n.bool,indeterminateIcon:n.node,inputProps:n.object,inputRef:Mt,onChange:n.func,required:n.bool,size:n.oneOfType([n.oneOf(["medium","small"]),n.string]),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:n.any});function yV(e){const{model:t,form:r,value:o,setDefault:s,localization:{getLocalizedString:a},onChangeValidate:l}=e,{key:i}=r;return s(i,t,r,o),R.jsx(tf,{row:!0,children:R.jsx(ef,{className:r.className,label:r.title&&a(r.title),control:R.jsx(fx,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:o||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const bV=Jt(yV),vV=({form:{description:e,variant:t,align:r,color:o,noWrap:s,paragraph:a,otherProps:l}})=>R.jsx(Er,{variant:t,align:r,color:o,noWrap:s,paragraph:a,...l,children:e});function wV(e){return Ie("MuiCard",e)}ke("MuiCard",["root"]);const xV=e=>{const{classes:t}=e;return _e({root:["root"]},wV,t)},SV=se(Sn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),px=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiCard"}),{className:s,raised:a=!1,...l}=o,i={...o,raised:a},c=xV(i);return R.jsx(SV,{className:Te(c.root,s),elevation:a?8:void 0,ref:r,ownerState:i,...l})});process.env.NODE_ENV!=="production"&&(px.propTypes={children:n.node,classes:n.object,className:n.string,raised:Cr(n.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const CV=kt(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),js="ArrayComponent",Xr={arrayItem:`${js}-arrayItem`,deleteItemButton:`${js}-deleteItemButton`,addButton:`${js}-addButton`,elementsContainer:`${js}-elementsContainer`,title:`${js}-title`},TV=ri("div")(({theme:e})=>({[`& .${Xr.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Xr.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Xr.addButton}`]:{marginLeft:e.spacing()},[`& .${Xr.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Xr.title}`]:{margin:"auto 0"}})),ar=class ar extends Be.Component{constructor(r){super(r);zt(this,"SEQUENCE",1);zt(this,"onAppend",()=>{const{form:r,options:o,onChangeValidate:s}=this.props,{model:a}=this.state;let l;if(r&&r.schema&&r.schema.items){const{items:c}=r.schema;c.type&&c.type.indexOf("object")!==-1?(l={},(!o||o.setSchemaDefaults!==!1)&&(l=typeof c.default<"u"?c.default:l,l&&Xt.traverseSchema(c,(u,d)=>{typeof u.default<"u"&&Xt.selectOrSet(d,l,u.default)}))):(c.type&&c.type.indexOf("array")!==-1&&(l=[]),(!o||o.setSchemaDefaults!==!1)&&(l=c.default||l))}const i=a;ar.assignItemId(l),i.push(l),this.setState({model:i}),s(a)});zt(this,"onDelete",r=>()=>{const{model:o}=this.state,{onChangeValidate:s}=this.props,a=o;a.splice(r,1),this.setState({model:a}),s(o)});zt(this,"getAddButton",()=>{const{form:r}=this.props,o=r.AddButton||(s=>R.jsx(Wn,{className:Xr.addButton,variant:"contained",color:"primary",...s}));return R.jsx(o,{onClick:this.onAppend,children:r.add||"Add"})});const{form:o,model:s}=this.props;this.state={model:Xt.selectOrSet(o.key,s)||[]}}static assignItemId(r){let o=null;return r&&typeof r=="object"&&Array.isArray(r)?o=[...r]:r&&typeof r=="object"&&!r[ar.ITEM_ID]&&(o={...r}),o?(Object.defineProperty(o,ar.ITEM_ID,{enumerable:!1,writable:!0}),ar.SEQUENCE+=1,o[ar.ITEM_ID]=ar.SEQUENCE,o):r}static getDerivedStateFromProps(r,o){const{form:s}=r,a=s.key;if(r.form&&a===o.formKey&&r.model&&r.model[a]===o.model)return null;const l=Xt.selectOrSet(a,r.model)||[];return{formKey:a,model:l.map(ar.assignItemId)}}componentDidMount(){const{form:r,model:o}=this.props;r.startEmpty!==!0&&o.length===0&&this.onAppend()}render(){const{form:r,builder:o,model:s,mapper:a,onChange:l,localization:{getLocalizedString:i}}=this.props,{model:c}=this.state,u=[];for(let d=0;d<c.length;d+=1){const h=c[d],m=r.items.map((g,w)=>{const f=ar.copyWithIndex(g,d);return o(f,s,w,a,l,o,{arrayIndex:d})});u.push(R.jsxs(px,{className:Xr.arrayItem,children:[R.jsx("div",{className:Xr.elementsContainer,children:m}),R.jsx(Yr,{onClick:this.onDelete(d),className:Xr.deleteItemButton,size:"large",children:R.jsx(CV,{fontSize:"small"})})]},h&&h[ar.ITEM_ID]||d))}return R.jsxs(TV,{children:[R.jsxs("div",{style:{display:"flex"},children:[R.jsx(vn,{required:r.required,className:Xr.title,children:r.title&&i(r.title)}),this.getAddButton()]}),R.jsx("div",{children:u})]})}};zt(ar,"setIndex",r=>o=>{o.key&&(o.key[o.key.indexOf("")]=r)}),zt(ar,"copyWithIndex",(r,o)=>{const s=Hs(r);return s.arrayIndex=o,Xt.traverseForm(s,ar.setIndex(o)),s}),zt(ar,"ITEM_ID",Symbol("_SCHEMAFORM_ITEM_ID"));let Uf=ar;const hx=Jt(Uf);var Wf={exports:{}};/*!
263
- Copyright (c) 2018 Jed Watson.
264
- Licensed under the MIT License (MIT), see
265
- http://jedwatson.github.io/classnames
266
- */var mx;function OV(){return mx||(mx=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var i=arguments[l];i&&(a=s(a,o(i)))}return a}function o(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var i in a)t.call(a,i)&&a[i]&&(l=s(l,i));return l}function s(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Wf)),Wf.exports}var PV=OV();const EV=Ut(PV),gx="FieldSet",yx={root:`${gx}-root`,fields:`${gx}-fields`},kV=ri(Nn)(({theme:e})=>({[`&.${yx.root}`]:{marginTop:e.spacing(1)},[`& .${yx.fields}`]:{marginLeft:e.spacing(1)}})),bx=({form:e,mapper:t,builder:r,model:o,onChange:s,classes:a,localization:{getLocalizedString:l}})=>{const i=e.items.map((u,d)=>r(u,o,d,t,s,r)),c=EV(a.root,e.htmlClass);return R.jsxs(kV,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[R.jsx(vn,{component:"legend",required:e.required,children:e.title&&l(e.title)}),R.jsx("div",{className:a.fields,children:i})]})};class RV extends Be.Component{constructor(r){super(r);zt(this,"divStyle",{padding:"20px"});this.state={yesChecked:!1,noChecked:!1};const{model:o,form:s,value:a,setDefault:l}=this.props,{key:i}=s;l(i,o,s,a)}static getDerivedStateFromProps(r){return{yesChecked:r.value==="yes",noChecked:r.value==="no"}}displaySwitch(){const{form:{title:r,yesLabel:o,noLabel:s,clearButtonLabel:a,required:l},onChangeValidate:i,value:c,localization:{getLocalizedString:u}}=this.props,{yesChecked:d,noChecked:h}=this.state;return R.jsxs("div",{style:this.divStyle,children:[R.jsx(vn,{required:l,children:r&&u(r)}),R.jsx("br",{}),R.jsxs(Rn.FormGroup,{children:[R.jsx(Rn.FormControlLabel,{control:R.jsx(Rn.Checkbox,{onClick:m=>{i(m,"yes")},checked:d}),label:o?u(o):"Yes"}),R.jsx(Rn.FormControlLabel,{control:R.jsx(Rn.Checkbox,{onClick:m=>{i(m,"no")},checked:h}),label:s?u(s):"No"})]}),c==="yes"||c==="no"?R.jsx(Rn.Button,{id:"temp",variant:"text",color:"primary",onClick:m=>i(m,"unanswered"),children:a?u(a):"clear response"}):""]})}render(){return R.jsx(Rn.Card,{children:this.displaySwitch()})}}const $V=Jt(RV);var Hf={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */var vx;function _V(){return vx||(vx=1,function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(r,o){e.exports=o(Be)})(self,r=>(()=>{var o={4184:(i,c)=>{var u;(function(){var d={}.hasOwnProperty;function h(){for(var m=[],g=0;g<arguments.length;g++){var w=arguments[g];if(w){var f=typeof w;if(f==="string"||f==="number")m.push(w);else if(Array.isArray(w)){if(w.length){var y=h.apply(null,w);y&&m.push(y)}}else if(f==="object")if(w.toString===Object.prototype.toString)for(var v in w)d.call(w,v)&&w[v]&&m.push(v);else m.push(w.toString())}}return m.join(" ")}i.exports?(h.default=h,i.exports=h):(u=(function(){return h}).apply(c,[]))===void 0||(i.exports=u)})()},8552:(i,c,u)=>{var d=u(852)(u(5639),"DataView");i.exports=d},1989:(i,c,u)=>{var d=u(1789),h=u(401),m=u(7667),g=u(1327),w=u(1866);function f(y){var v=-1,p=y==null?0:y.length;for(this.clear();++v<p;){var b=y[v];this.set(b[0],b[1])}}f.prototype.clear=d,f.prototype.delete=h,f.prototype.get=m,f.prototype.has=g,f.prototype.set=w,i.exports=f},8407:(i,c,u)=>{var d=u(7040),h=u(4125),m=u(2117),g=u(7518),w=u(4705);function f(y){var v=-1,p=y==null?0:y.length;for(this.clear();++v<p;){var b=y[v];this.set(b[0],b[1])}}f.prototype.clear=d,f.prototype.delete=h,f.prototype.get=m,f.prototype.has=g,f.prototype.set=w,i.exports=f},7071:(i,c,u)=>{var d=u(852)(u(5639),"Map");i.exports=d},3369:(i,c,u)=>{var d=u(4785),h=u(1285),m=u(6e3),g=u(9916),w=u(5265);function f(y){var v=-1,p=y==null?0:y.length;for(this.clear();++v<p;){var b=y[v];this.set(b[0],b[1])}}f.prototype.clear=d,f.prototype.delete=h,f.prototype.get=m,f.prototype.has=g,f.prototype.set=w,i.exports=f},3818:(i,c,u)=>{var d=u(852)(u(5639),"Promise");i.exports=d},8525:(i,c,u)=>{var d=u(852)(u(5639),"Set");i.exports=d},8668:(i,c,u)=>{var d=u(3369),h=u(619),m=u(2385);function g(w){var f=-1,y=w==null?0:w.length;for(this.__data__=new d;++f<y;)this.add(w[f])}g.prototype.add=g.prototype.push=h,g.prototype.has=m,i.exports=g},6384:(i,c,u)=>{var d=u(8407),h=u(7465),m=u(3779),g=u(7599),w=u(4758),f=u(4309);function y(v){var p=this.__data__=new d(v);this.size=p.size}y.prototype.clear=h,y.prototype.delete=m,y.prototype.get=g,y.prototype.has=w,y.prototype.set=f,i.exports=y},2705:(i,c,u)=>{var d=u(5639).Symbol;i.exports=d},1149:(i,c,u)=>{var d=u(5639).Uint8Array;i.exports=d},577:(i,c,u)=>{var d=u(852)(u(5639),"WeakMap");i.exports=d},4963:i=>{i.exports=function(c,u){for(var d=-1,h=c==null?0:c.length,m=0,g=[];++d<h;){var w=c[d];u(w,d,c)&&(g[m++]=w)}return g}},4636:(i,c,u)=>{var d=u(2545),h=u(5694),m=u(1469),g=u(4144),w=u(5776),f=u(6719),y=Object.prototype.hasOwnProperty;i.exports=function(v,p){var b=m(v),x=!b&&h(v),S=!b&&!x&&g(v),C=!b&&!x&&!S&&f(v),O=b||x||S||C,k=O?d(v.length,String):[],_=k.length;for(var T in v)!p&&!y.call(v,T)||O&&(T=="length"||S&&(T=="offset"||T=="parent")||C&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||w(T,_))||k.push(T);return k}},2488:i=>{i.exports=function(c,u){for(var d=-1,h=u.length,m=c.length;++d<h;)c[m+d]=u[d];return c}},2908:i=>{i.exports=function(c,u){for(var d=-1,h=c==null?0:c.length;++d<h;)if(u(c[d],d,c))return!0;return!1}},8470:(i,c,u)=>{var d=u(7813);i.exports=function(h,m){for(var g=h.length;g--;)if(d(h[g][0],m))return g;return-1}},8866:(i,c,u)=>{var d=u(2488),h=u(1469);i.exports=function(m,g,w){var f=g(m);return h(m)?f:d(f,w(m))}},4239:(i,c,u)=>{var d=u(2705),h=u(9607),m=u(2333),g=d?d.toStringTag:void 0;i.exports=function(w){return w==null?w===void 0?"[object Undefined]":"[object Null]":g&&g in Object(w)?h(w):m(w)}},9454:(i,c,u)=>{var d=u(4239),h=u(7005);i.exports=function(m){return h(m)&&d(m)=="[object Arguments]"}},939:(i,c,u)=>{var d=u(2492),h=u(7005);i.exports=function m(g,w,f,y,v){return g===w||(g==null||w==null||!h(g)&&!h(w)?g!=g&&w!=w:d(g,w,f,y,m,v))}},2492:(i,c,u)=>{var d=u(6384),h=u(7114),m=u(8351),g=u(6096),w=u(4160),f=u(1469),y=u(4144),v=u(6719),p="[object Arguments]",b="[object Array]",x="[object Object]",S=Object.prototype.hasOwnProperty;i.exports=function(C,O,k,_,T,P){var D=f(C),V=f(O),M=D?b:w(C),N=V?b:w(O),F=(M=M==p?x:M)==x,K=(N=N==p?x:N)==x,H=M==N;if(H&&y(C)){if(!y(O))return!1;D=!0,F=!1}if(H&&!F)return P||(P=new d),D||v(C)?h(C,O,k,_,T,P):m(C,O,M,k,_,T,P);if(!(1&k)){var Z=F&&S.call(C,"__wrapped__"),L=K&&S.call(O,"__wrapped__");if(Z||L){var j=Z?C.value():C,Y=L?O.value():O;return P||(P=new d),T(j,Y,k,_,P)}}return!!H&&(P||(P=new d),g(C,O,k,_,T,P))}},8458:(i,c,u)=>{var d=u(3560),h=u(5346),m=u(3218),g=u(346),w=/^\[object .+?Constructor\]$/,f=Function.prototype,y=Object.prototype,v=f.toString,p=y.hasOwnProperty,b=RegExp("^"+v.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");i.exports=function(x){return!(!m(x)||h(x))&&(d(x)?b:w).test(g(x))}},8749:(i,c,u)=>{var d=u(4239),h=u(1780),m=u(7005),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1,i.exports=function(w){return m(w)&&h(w.length)&&!!g[d(w)]}},280:(i,c,u)=>{var d=u(5726),h=u(6916),m=Object.prototype.hasOwnProperty;i.exports=function(g){if(!d(g))return h(g);var w=[];for(var f in Object(g))m.call(g,f)&&f!="constructor"&&w.push(f);return w}},2545:i=>{i.exports=function(c,u){for(var d=-1,h=Array(c);++d<c;)h[d]=u(d);return h}},1717:i=>{i.exports=function(c){return function(u){return c(u)}}},4757:i=>{i.exports=function(c,u){return c.has(u)}},4429:(i,c,u)=>{var d=u(5639)["__core-js_shared__"];i.exports=d},7114:(i,c,u)=>{var d=u(8668),h=u(2908),m=u(4757);i.exports=function(g,w,f,y,v,p){var b=1&f,x=g.length,S=w.length;if(x!=S&&!(b&&S>x))return!1;var C=p.get(g),O=p.get(w);if(C&&O)return C==w&&O==g;var k=-1,_=!0,T=2&f?new d:void 0;for(p.set(g,w),p.set(w,g);++k<x;){var P=g[k],D=w[k];if(y)var V=b?y(D,P,k,w,g,p):y(P,D,k,g,w,p);if(V!==void 0){if(V)continue;_=!1;break}if(T){if(!h(w,function(M,N){if(!m(T,N)&&(P===M||v(P,M,f,y,p)))return T.push(N)})){_=!1;break}}else if(P!==D&&!v(P,D,f,y,p)){_=!1;break}}return p.delete(g),p.delete(w),_}},8351:(i,c,u)=>{var d=u(2705),h=u(1149),m=u(7813),g=u(7114),w=u(8776),f=u(1814),y=d?d.prototype:void 0,v=y?y.valueOf:void 0;i.exports=function(p,b,x,S,C,O,k){switch(x){case"[object DataView]":if(p.byteLength!=b.byteLength||p.byteOffset!=b.byteOffset)return!1;p=p.buffer,b=b.buffer;case"[object ArrayBuffer]":return!(p.byteLength!=b.byteLength||!O(new h(p),new h(b)));case"[object Boolean]":case"[object Date]":case"[object Number]":return m(+p,+b);case"[object Error]":return p.name==b.name&&p.message==b.message;case"[object RegExp]":case"[object String]":return p==b+"";case"[object Map]":var _=w;case"[object Set]":var T=1&S;if(_||(_=f),p.size!=b.size&&!T)return!1;var P=k.get(p);if(P)return P==b;S|=2,k.set(p,b);var D=g(_(p),_(b),S,C,O,k);return k.delete(p),D;case"[object Symbol]":if(v)return v.call(p)==v.call(b)}return!1}},6096:(i,c,u)=>{var d=u(8234),h=Object.prototype.hasOwnProperty;i.exports=function(m,g,w,f,y,v){var p=1&w,b=d(m),x=b.length;if(x!=d(g).length&&!p)return!1;for(var S=x;S--;){var C=b[S];if(!(p?C in g:h.call(g,C)))return!1}var O=v.get(m),k=v.get(g);if(O&&k)return O==g&&k==m;var _=!0;v.set(m,g),v.set(g,m);for(var T=p;++S<x;){var P=m[C=b[S]],D=g[C];if(f)var V=p?f(D,P,C,g,m,v):f(P,D,C,m,g,v);if(!(V===void 0?P===D||y(P,D,w,f,v):V)){_=!1;break}T||(T=C=="constructor")}if(_&&!T){var M=m.constructor,N=g.constructor;M==N||!("constructor"in m)||!("constructor"in g)||typeof M=="function"&&M instanceof M&&typeof N=="function"&&N instanceof N||(_=!1)}return v.delete(m),v.delete(g),_}},1957:(i,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;i.exports=d},8234:(i,c,u)=>{var d=u(8866),h=u(9551),m=u(3674);i.exports=function(g){return d(g,m,h)}},5050:(i,c,u)=>{var d=u(7019);i.exports=function(h,m){var g=h.__data__;return d(m)?g[typeof m=="string"?"string":"hash"]:g.map}},852:(i,c,u)=>{var d=u(8458),h=u(7801);i.exports=function(m,g){var w=h(m,g);return d(w)?w:void 0}},9607:(i,c,u)=>{var d=u(2705),h=Object.prototype,m=h.hasOwnProperty,g=h.toString,w=d?d.toStringTag:void 0;i.exports=function(f){var y=m.call(f,w),v=f[w];try{f[w]=void 0;var p=!0}catch{}var b=g.call(f);return p&&(y?f[w]=v:delete f[w]),b}},9551:(i,c,u)=>{var d=u(4963),h=u(479),m=Object.prototype.propertyIsEnumerable,g=Object.getOwnPropertySymbols,w=g?function(f){return f==null?[]:(f=Object(f),d(g(f),function(y){return m.call(f,y)}))}:h;i.exports=w},4160:(i,c,u)=>{var d=u(8552),h=u(7071),m=u(3818),g=u(8525),w=u(577),f=u(4239),y=u(346),v="[object Map]",p="[object Promise]",b="[object Set]",x="[object WeakMap]",S="[object DataView]",C=y(d),O=y(h),k=y(m),_=y(g),T=y(w),P=f;(d&&P(new d(new ArrayBuffer(1)))!=S||h&&P(new h)!=v||m&&P(m.resolve())!=p||g&&P(new g)!=b||w&&P(new w)!=x)&&(P=function(D){var V=f(D),M=V=="[object Object]"?D.constructor:void 0,N=M?y(M):"";if(N)switch(N){case C:return S;case O:return v;case k:return p;case _:return b;case T:return x}return V}),i.exports=P},7801:i=>{i.exports=function(c,u){return c==null?void 0:c[u]}},1789:(i,c,u)=>{var d=u(4536);i.exports=function(){this.__data__=d?d(null):{},this.size=0}},401:i=>{i.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(i,c,u)=>{var d=u(4536),h=Object.prototype.hasOwnProperty;i.exports=function(m){var g=this.__data__;if(d){var w=g[m];return w==="__lodash_hash_undefined__"?void 0:w}return h.call(g,m)?g[m]:void 0}},1327:(i,c,u)=>{var d=u(4536),h=Object.prototype.hasOwnProperty;i.exports=function(m){var g=this.__data__;return d?g[m]!==void 0:h.call(g,m)}},1866:(i,c,u)=>{var d=u(4536);i.exports=function(h,m){var g=this.__data__;return this.size+=this.has(h)?0:1,g[h]=d&&m===void 0?"__lodash_hash_undefined__":m,this}},5776:i=>{var c=/^(?:0|[1-9]\d*)$/;i.exports=function(u,d){var h=typeof u;return!!(d=d??9007199254740991)&&(h=="number"||h!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},7019:i=>{i.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(i,c,u)=>{var d,h=u(4429),m=(d=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";i.exports=function(g){return!!m&&m in g}},5726:i=>{var c=Object.prototype;i.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:i=>{i.exports=function(){this.__data__=[],this.size=0}},4125:(i,c,u)=>{var d=u(8470),h=Array.prototype.splice;i.exports=function(m){var g=this.__data__,w=d(g,m);return!(w<0||(w==g.length-1?g.pop():h.call(g,w,1),--this.size,0))}},2117:(i,c,u)=>{var d=u(8470);i.exports=function(h){var m=this.__data__,g=d(m,h);return g<0?void 0:m[g][1]}},7518:(i,c,u)=>{var d=u(8470);i.exports=function(h){return d(this.__data__,h)>-1}},4705:(i,c,u)=>{var d=u(8470);i.exports=function(h,m){var g=this.__data__,w=d(g,h);return w<0?(++this.size,g.push([h,m])):g[w][1]=m,this}},4785:(i,c,u)=>{var d=u(1989),h=u(8407),m=u(7071);i.exports=function(){this.size=0,this.__data__={hash:new d,map:new(m||h),string:new d}}},1285:(i,c,u)=>{var d=u(5050);i.exports=function(h){var m=d(this,h).delete(h);return this.size-=m?1:0,m}},6e3:(i,c,u)=>{var d=u(5050);i.exports=function(h){return d(this,h).get(h)}},9916:(i,c,u)=>{var d=u(5050);i.exports=function(h){return d(this,h).has(h)}},5265:(i,c,u)=>{var d=u(5050);i.exports=function(h,m){var g=d(this,h),w=g.size;return g.set(h,m),this.size+=g.size==w?0:1,this}},8776:i=>{i.exports=function(c){var u=-1,d=Array(c.size);return c.forEach(function(h,m){d[++u]=[m,h]}),d}},4536:(i,c,u)=>{var d=u(852)(Object,"create");i.exports=d},6916:(i,c,u)=>{var d=u(5569)(Object.keys,Object);i.exports=d},1167:(i,c,u)=>{i=u.nmd(i);var d=u(1957),h=c&&!c.nodeType&&c,m=h&&i&&!i.nodeType&&i,g=m&&m.exports===h&&d.process,w=function(){try{return m&&m.require&&m.require("util").types||g&&g.binding&&g.binding("util")}catch{}}();i.exports=w},2333:i=>{var c=Object.prototype.toString;i.exports=function(u){return c.call(u)}},5569:i=>{i.exports=function(c,u){return function(d){return c(u(d))}}},5639:(i,c,u)=>{var d=u(1957),h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")();i.exports=m},619:i=>{i.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:i=>{i.exports=function(c){return this.__data__.has(c)}},1814:i=>{i.exports=function(c){var u=-1,d=Array(c.size);return c.forEach(function(h){d[++u]=h}),d}},7465:(i,c,u)=>{var d=u(8407);i.exports=function(){this.__data__=new d,this.size=0}},3779:i=>{i.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},7599:i=>{i.exports=function(c){return this.__data__.get(c)}},4758:i=>{i.exports=function(c){return this.__data__.has(c)}},4309:(i,c,u)=>{var d=u(8407),h=u(7071),m=u(3369);i.exports=function(g,w){var f=this.__data__;if(f instanceof d){var y=f.__data__;if(!h||y.length<199)return y.push([g,w]),this.size=++f.size,this;f=this.__data__=new m(y)}return f.set(g,w),this.size=f.size,this}},346:i=>{var c=Function.prototype.toString;i.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:i=>{i.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(i,c,u)=>{var d=u(9454),h=u(7005),m=Object.prototype,g=m.hasOwnProperty,w=m.propertyIsEnumerable,f=d(function(){return arguments}())?d:function(y){return h(y)&&g.call(y,"callee")&&!w.call(y,"callee")};i.exports=f},1469:i=>{var c=Array.isArray;i.exports=c},8612:(i,c,u)=>{var d=u(3560),h=u(1780);i.exports=function(m){return m!=null&&h(m.length)&&!d(m)}},4144:(i,c,u)=>{i=u.nmd(i);var d=u(5639),h=u(5062),m=c&&!c.nodeType&&c,g=m&&i&&!i.nodeType&&i,w=g&&g.exports===m?d.Buffer:void 0,f=(w?w.isBuffer:void 0)||h;i.exports=f},8446:(i,c,u)=>{var d=u(939);i.exports=function(h,m){return d(h,m)}},3560:(i,c,u)=>{var d=u(4239),h=u(3218);i.exports=function(m){if(!h(m))return!1;var g=d(m);return g=="[object Function]"||g=="[object GeneratorFunction]"||g=="[object AsyncFunction]"||g=="[object Proxy]"}},1780:i=>{i.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:i=>{i.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:i=>{i.exports=function(c){return c!=null&&typeof c=="object"}},6719:(i,c,u)=>{var d=u(8749),h=u(1717),m=u(1167),g=m&&m.isTypedArray,w=g?h(g):d;i.exports=w},3674:(i,c,u)=>{var d=u(4636),h=u(280),m=u(8612);i.exports=function(g){return m(g)?d(g):h(g)}},8306:(i,c,u)=>{var d=u(3369);function h(m,g){if(typeof m!="function"||g!=null&&typeof g!="function")throw new TypeError("Expected a function");var w=function(){var f=arguments,y=g?g.apply(this,f):f[0],v=w.cache;if(v.has(y))return v.get(y);var p=m.apply(this,f);return w.cache=v.set(y,p)||v,p};return w.cache=new(h.Cache||d),w}h.Cache=d,i.exports=h},479:i=>{i.exports=function(){return[]}},5062:i=>{i.exports=function(){return!1}},2703:(i,c,u)=>{var d=u(414);function h(){}function m(){}m.resetWarningCache=h,i.exports=function(){function g(y,v,p,b,x,S){if(S!==d){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}}function w(){return g}g.isRequired=g;var f={array:g,bigint:g,bool:g,func:g,number:g,object:g,string:g,symbol:g,any:g,arrayOf:w,element:g,elementType:g,instanceOf:w,node:g,objectOf:w,oneOf:w,oneOfType:w,shape:w,exact:w,checkPropTypes:m,resetWarningCache:h};return f.PropTypes=f,f}},5697:(i,c,u)=>{i.exports=u(2703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:i=>{i.exports=r}},s={};function a(i){var c=s[i];if(c!==void 0)return c.exports;var u=s[i]={id:i,loaded:!1,exports:{}};return o[i](u,u.exports,a),u.loaded=!0,u.exports}a.n=i=>{var c=i&&i.__esModule?()=>i.default:()=>i;return a.d(c,{a:c}),c},a.d=(i,c)=>{for(var u in c)a.o(c,u)&&!a.o(i,u)&&Object.defineProperty(i,u,{enumerable:!0,get:c[u]})},a.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),a.o=(i,c)=>Object.prototype.hasOwnProperty.call(i,c),a.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},a.nmd=i=>(i.paths=[],i.children||(i.children=[]),i);var l={};return(()=>{a.r(l),a.d(l,{default:()=>pr,expandNodesToLevel:()=>St});var i=a(4184),c=a.n(i),u=a(8446),d=a.n(u),h=a(8306),m=a.n(h);let g=(ue=21)=>crypto.getRandomValues(new Uint8Array(ue)).reduce((oe,ye)=>oe+((ye&=63)<36?ye.toString(36):ye<62?(ye-26).toString(36).toUpperCase():ye>62?"-":"_"),"");var w=a(5697),f=a.n(w),y=a(9787),v=a.n(y);function p(ue){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},p(ue)}var b=["children","title"];function x(){return x=Object.assign?Object.assign.bind():function(ue){for(var oe=1;oe<arguments.length;oe++){var ye=arguments[oe];for(var de in ye)Object.prototype.hasOwnProperty.call(ye,de)&&(ue[de]=ye[de])}return ue},x.apply(this,arguments)}function S(ue,oe){if(!(ue instanceof oe))throw new TypeError("Cannot call a class as a function")}function C(ue,oe){for(var ye=0;ye<oe.length;ye++){var de=oe[ye];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ue,de.key,de)}}function O(ue,oe){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,de){return ye.__proto__=de,ye},O(ue,oe)}function k(ue,oe){if(oe&&(p(oe)==="object"||typeof oe=="function"))return oe;if(oe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}(ue)}function _(ue){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},_(ue)}function T(ue,oe,ye){return oe in ue?Object.defineProperty(ue,oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=ye,ue}var P=function(ue){(function(we,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(ie&&ie.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),Object.defineProperty(we,"prototype",{writable:!1}),ie&&O(we,ie)})(Ke,ue);var oe,ye,de,Le,Je=(de=Ke,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var we,ie=_(de);if(Le){var he=_(this).constructor;we=Reflect.construct(ie,arguments,he)}else we=ie.apply(this,arguments);return k(this,we)});function Ke(){return S(this,Ke),Je.apply(this,arguments)}return oe=Ke,(ye=[{key:"render",value:function(){var we=this.props,ie=we.children,he=we.title,Pe=function(Me,et){if(Me==null)return{};var G,be,Ee=function(rt,pe){if(rt==null)return{};var ce,xe,qe={},Ae=Object.keys(rt);for(xe=0;xe<Ae.length;xe++)ce=Ae[xe],pe.indexOf(ce)>=0||(qe[ce]=rt[ce]);return qe}(Me,et);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(Me);for(be=0;be<Ne.length;be++)G=Ne[be],et.indexOf(G)>=0||Object.prototype.propertyIsEnumerable.call(Me,G)&&(Ee[G]=Me[G])}return Ee}(we,b);return v().createElement("button",x({"aria-label":he,title:he,type:"button"},Pe),ie)}}])&&C(oe.prototype,ye),Object.defineProperty(oe,"prototype",{writable:!1}),Ke}(v().PureComponent);T(P,"propTypes",{children:f().node.isRequired,title:f().string}),T(P,"defaultProps",{title:null});const D=P,V={ALL:"all",PARENT:"parent",LEAF:"leaf"};function M(ue){this.message=ue,this.stack=Error().stack}M.prototype=Object.create(Error.prototype),M.prototype.name="CheckboxTreeError";const N=M;function F(ue,oe){var ye=Object.keys(ue);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(ue);oe&&(de=de.filter(function(Le){return Object.getOwnPropertyDescriptor(ue,Le).enumerable})),ye.push.apply(ye,de)}return ye}function K(ue,oe,ye){return oe in ue?Object.defineProperty(ue,oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=ye,ue}function H(ue,oe){if(!(ue instanceof oe))throw new TypeError("Cannot call a class as a function")}function Z(ue,oe){for(var ye=0;ye<oe.length;ye++){var de=oe[ye];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ue,de.key,de)}}var L=V;const j=function(){function ue(de){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H(this,ue),this.props=de,this.flatNodes=Le}var oe,ye;return oe=ue,ye=[{key:"setProps",value:function(de){this.props=de}},{key:"clone",value:function(){var de=this,Le={};return Object.keys(this.flatNodes).forEach(function(Je){var Ke=de.flatNodes[Je];Le[Je]=function(we){for(var ie=1;ie<arguments.length;ie++){var he=arguments[ie]!=null?arguments[ie]:{};ie%2?F(Object(he),!0).forEach(function(Pe){K(we,Pe,he[Pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(we,Object.getOwnPropertyDescriptors(he)):F(Object(he)).forEach(function(Pe){Object.defineProperty(we,Pe,Object.getOwnPropertyDescriptor(he,Pe))})}return we}({},Ke)}),new ue(this.props,Le)}},{key:"getNode",value:function(de){return this.flatNodes[de]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(de){var Le=this,Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(de)&&de.length!==0){var we=this.props,ie=we.disabled,he=we.noCascade;de.forEach(function(Pe,Me){var et=Le.nodeHasChildren(Pe);if(Le.flatNodes[Pe.value]!==void 0)throw new N("Duplicate value '".concat(Pe.value,"' detected. All node values must be unique."));Le.flatNodes[Pe.value]={label:Pe.label,value:Pe.value,children:Pe.children,parent:Je,isChild:Je.value!==void 0,isParent:et,isLeaf:!et,showCheckbox:Pe.showCheckbox===void 0||Pe.showCheckbox,disabled:Le.getDisabledState(Pe,Je,ie,he),treeDepth:Ke,index:Me},Le.flattenNodes(Pe.children,Pe,Ke+1)})}}},{key:"nodeHasChildren",value:function(de){return Array.isArray(de.children)}},{key:"getDisabledState",value:function(de,Le,Je,Ke){return!!Je||!(Ke||!Le.disabled)||!!de.disabled}},{key:"deserializeLists",value:function(de){var Le=this,Je=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(Ke){Je.forEach(function(we){Le.flatNodes[Ke][we]=!1})}),Je.forEach(function(Ke){de[Ke].forEach(function(we){Le.flatNodes[we]!==void 0&&(Le.flatNodes[we][Ke]=!0)})})}},{key:"serializeList",value:function(de){var Le=this,Je=[];return Object.keys(this.flatNodes).forEach(function(Ke){Le.flatNodes[Ke][de]&&Je.push(Ke)}),Je}},{key:"expandAllNodes",value:function(de){var Le=this;return Object.keys(this.flatNodes).forEach(function(Je){Le.flatNodes[Je].isParent&&(Le.flatNodes[Je].expanded=de)}),this}},{key:"toggleChecked",value:function(de,Le,Je,Ke){var we=this,ie=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],he=this.flatNodes[de.value],Pe=[L.PARENT,L.ALL].indexOf(Je)>-1,Me=[L.LEAF,L.ALL].indexOf(Je)>-1;if(he.isLeaf||Ke){if(de.disabled)return this;this.toggleNode(de.value,"checked",Le)}else(Pe||he.children.length===0)&&this.toggleNode(de.value,"checked",Le),Me&&he.children.forEach(function(et){we.toggleChecked(et,Le,Je,Ke,!1)});return ie&&!Ke&&he.isChild&&Pe&&this.toggleParentStatus(he.parent,Je),this}},{key:"toggleParentStatus",value:function(de,Le){var Je=this.flatNodes[de.value];Je.isChild?(Le===L.ALL&&this.toggleNode(de.value,"checked",this.isEveryChildChecked(Je)),this.toggleParentStatus(Je.parent,Le)):this.toggleNode(de.value,"checked",this.isEveryChildChecked(Je))}},{key:"isEveryChildChecked",value:function(de){var Le=this;return de.children.every(function(Je){return Le.getNode(Je.value).checked})}},{key:"toggleNode",value:function(de,Le,Je){return this.flatNodes[de][Le]=Je,this}}],ye&&Z(oe.prototype,ye),Object.defineProperty(oe,"prototype",{writable:!1}),ue}();function Y(ue){return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},Y(ue)}function q(){return q=Object.assign?Object.assign.bind():function(ue){for(var oe=1;oe<arguments.length;oe++){var ye=arguments[oe];for(var de in ye)Object.prototype.hasOwnProperty.call(ye,de)&&(ue[de]=ye[de])}return ue},q.apply(this,arguments)}function $(ue,oe){var ye=Object.keys(ue);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(ue);oe&&(de=de.filter(function(Le){return Object.getOwnPropertyDescriptor(ue,Le).enumerable})),ye.push.apply(ye,de)}return ye}function I(ue,oe){if(!(ue instanceof oe))throw new TypeError("Cannot call a class as a function")}function U(ue,oe){for(var ye=0;ye<oe.length;ye++){var de=oe[ye];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ue,de.key,de)}}function Q(ue,oe){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,de){return ye.__proto__=de,ye},Q(ue,oe)}function W(ue,oe){if(oe&&(Y(oe)==="object"||typeof oe=="function"))return oe;if(oe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}(ue)}function ee(ue){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},ee(ue)}function ne(ue,oe,ye){return oe in ue?Object.defineProperty(ue,oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=ye,ue}var B=function(ue){(function(we,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(ie&&ie.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),Object.defineProperty(we,"prototype",{writable:!1}),ie&&Q(we,ie)})(Ke,ue);var oe,ye,de,Le,Je=(de=Ke,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var we,ie=ee(de);if(Le){var he=ee(this).constructor;we=Reflect.construct(ie,arguments,he)}else we=ie.apply(this,arguments);return W(this,we)});function Ke(){return I(this,Ke),Je.apply(this,arguments)}return oe=Ke,ye=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var we=this.props.indeterminate;this.checkbox.indeterminate=we}},{key:"render",value:function(){var we=this,ie=function(he){for(var Pe=1;Pe<arguments.length;Pe++){var Me=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?$(Object(Me),!0).forEach(function(et){ne(he,et,Me[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Me)):$(Object(Me)).forEach(function(et){Object.defineProperty(he,et,Object.getOwnPropertyDescriptor(Me,et))})}return he}({},this.props);return delete ie.indeterminate,v().createElement("input",q({},ie,{ref:function(he){we.checkbox=he},type:"checkbox"}))}}],ye&&U(oe.prototype,ye),Object.defineProperty(oe,"prototype",{writable:!1}),Ke}(v().PureComponent);ne(B,"propTypes",{indeterminate:f().bool}),ne(B,"defaultProps",{indeterminate:!1});const A=B,z=f().shape({check:f().node,uncheck:f().node,halfCheck:f().node,expandClose:f().node,expandOpen:f().node,expandAll:f().node,collapseAll:f().node,parentClose:f().node,parentOpen:f().node,leaf:f().node}),X=f().shape({collapseAll:f().string.isRequired,expandAll:f().string.isRequired,toggle:f().string.isRequired});function te(ue){return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},te(ue)}function ae(ue,oe){for(var ye=0;ye<oe.length;ye++){var de=oe[ye];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ue,de.key,de)}}function J(ue,oe){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,de){return ye.__proto__=de,ye},J(ue,oe)}function fe(ue,oe){if(oe&&(te(oe)==="object"||typeof oe=="function"))return oe;if(oe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(ue)}function le(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function ge(ue){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},ge(ue)}function Se(ue,oe,ye){return oe in ue?Object.defineProperty(ue,oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=ye,ue}var Ce=function(ue){(function(we,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(ie&&ie.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),Object.defineProperty(we,"prototype",{writable:!1}),ie&&J(we,ie)})(Ke,ue);var oe,ye,de,Le,Je=(de=Ke,Le=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var we,ie=ge(de);if(Le){var he=ge(this).constructor;we=Reflect.construct(ie,arguments,he)}else we=ie.apply(this,arguments);return fe(this,we)});function Ke(we){var ie;return function(he,Pe){if(!(he instanceof Pe))throw new TypeError("Cannot call a class as a function")}(this,Ke),(ie=Je.call(this,we)).onCheck=ie.onCheck.bind(le(ie)),ie.onCheckboxKeyPress=ie.onCheckboxKeyPress.bind(le(ie)),ie.onCheckboxKeyUp=ie.onCheckboxKeyUp.bind(le(ie)),ie.onClick=ie.onClick.bind(le(ie)),ie.onExpand=ie.onExpand.bind(le(ie)),ie}return oe=Ke,(ye=[{key:"onCheck",value:function(){var we=this.props,ie=we.value;(0,we.onCheck)({value:ie,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(we){we.which===32&&we.preventDefault()}},{key:"onCheckboxKeyUp",value:function(we){var ie=we.keyCode;[13,32].includes(ie)&&this.onCheck()}},{key:"onClick",value:function(){var we=this.props,ie=we.expandOnClick,he=we.isParent,Pe=we.value,Me=we.onClick;he&&ie&&this.onExpand(),Me({value:Pe,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var we=this.props,ie=we.expanded,he=we.value;(0,we.onExpand)({value:he,expanded:!ie})}},{key:"getCheckState",value:function(we){var ie=we.toggle,he=this.props,Pe=he.checked,Me=he.optimisticToggle;return!(Pe!==0||!ie)||Pe===1&&!ie||Pe===2&&Me}},{key:"renderCollapseButton",value:function(){var we=this.props,ie=we.expandDisabled,he=we.isLeaf,Pe=we.lang;return he?v().createElement("span",{className:"rct-collapse"},v().createElement("span",{className:"rct-icon"})):v().createElement(D,{className:"rct-collapse rct-collapse-btn",disabled:ie,title:Pe.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var we=this.props,ie=we.expanded,he=we.icons,Pe=he.expandClose,Me=he.expandOpen;return ie?Me:Pe}},{key:"renderCheckboxIcon",value:function(){var we=this.props,ie=we.checked,he=we.icons,Pe=he.uncheck,Me=he.check,et=he.halfCheck;return ie===0?Pe:ie===1?Me:et}},{key:"renderNodeIcon",value:function(){var we=this.props,ie=we.expanded,he=we.icon,Pe=we.icons,Me=Pe.leaf,et=Pe.parentClose,G=Pe.parentOpen,be=we.isLeaf;return he!==null?he:be?Me:ie?G:et}},{key:"renderBareLabel",value:function(we){var ie=this.props,he=ie.onClick,Pe=ie.title,Me=he!==null;return v().createElement("span",{className:"rct-bare-label",title:Pe},Me?v().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},we):we)}},{key:"renderCheckboxLabel",value:function(we){var ie=this.props,he=ie.checked,Pe=ie.disabled,Me=ie.title,et=ie.treeId,G=ie.value,be=ie.onClick!==null,Ee="".concat(et,"-").concat(String(G).split(" ").join("_")),Ne=[v().createElement("label",{key:0,htmlFor:Ee,title:Me},v().createElement(A,{checked:he===1,disabled:Pe,id:Ee,indeterminate:he===2,onClick:this.onCheck,onChange:function(){}}),v().createElement("span",{"aria-checked":he===1,"aria-disabled":Pe,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),be?null:we)];return be&&Ne.push(v().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},we)),Ne}},{key:"renderLabel",value:function(){var we=this.props,ie=we.label,he=we.showCheckbox,Pe=[we.showNodeIcon?v().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,v().createElement("span",{key:1,className:"rct-title"},ie)];return he?this.renderCheckboxLabel(Pe):this.renderBareLabel(Pe)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var we=this.props,ie=we.className,he=we.disabled,Pe=we.expanded,Me=we.isLeaf,et=c()({"rct-node":!0,"rct-node-leaf":Me,"rct-node-parent":!Me,"rct-node-expanded":!Me&&Pe,"rct-node-collapsed":!Me&&!Pe,"rct-disabled":he},ie);return v().createElement("li",{className:et},v().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&ae(oe.prototype,ye),Object.defineProperty(oe,"prototype",{writable:!1}),Ke}(v().PureComponent);Se(Ce,"propTypes",{checked:f().number.isRequired,disabled:f().bool.isRequired,expandDisabled:f().bool.isRequired,expanded:f().bool.isRequired,icons:z.isRequired,isLeaf:f().bool.isRequired,isParent:f().bool.isRequired,label:f().node.isRequired,lang:X.isRequired,optimisticToggle:f().bool.isRequired,showNodeIcon:f().bool.isRequired,treeId:f().string.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,onCheck:f().func.isRequired,onExpand:f().func.isRequired,children:f().node,className:f().string,expandOnClick:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string,onClick:f().func}),Se(Ce,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const Fe=Ce,Ye=f().oneOfType([f().arrayOf(f().string),f().arrayOf(f().number)]);function He(ue,oe){var ye=Object.keys(ue);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(ue);oe&&(de=de.filter(function(Le){return Object.getOwnPropertyDescriptor(ue,Le).enumerable})),ye.push.apply(ye,de)}return ye}function Qe(ue){for(var oe=1;oe<arguments.length;oe++){var ye=arguments[oe]!=null?arguments[oe]:{};oe%2?He(Object(ye),!0).forEach(function(de){ut(ue,de,ye[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(ye)):He(Object(ye)).forEach(function(de){Object.defineProperty(ue,de,Object.getOwnPropertyDescriptor(ye,de))})}return ue}function ut(ue,oe,ye){return oe in ue?Object.defineProperty(ue,oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=ye,ue}var dt={label:f().node.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,disabled:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string};const st=f().oneOfType([f().shape(dt),f().shape(Qe(Qe({},dt),{},{children:f().arrayOf(dt).isRequired}))]);function Ge(ue){return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},Ge(ue)}function We(ue,oe){var ye=Object.keys(ue);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(ue);oe&&(de=de.filter(function(Le){return Object.getOwnPropertyDescriptor(ue,Le).enumerable})),ye.push.apply(ye,de)}return ye}function gt(ue){for(var oe=1;oe<arguments.length;oe++){var ye=arguments[oe]!=null?arguments[oe]:{};oe%2?We(Object(ye),!0).forEach(function(de){je(ue,de,ye[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(ye)):We(Object(ye)).forEach(function(de){Object.defineProperty(ue,de,Object.getOwnPropertyDescriptor(ye,de))})}return ue}function mt(ue,oe){for(var ye=0;ye<oe.length;ye++){var de=oe[ye];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(ue,de.key,de)}}function Dt(ue,oe){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,de){return ye.__proto__=de,ye},Dt(ue,oe)}function De(ue,oe){if(oe&&(Ge(oe)==="object"||typeof oe=="function"))return oe;if(oe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(ue)}function me(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function $e(ue){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},$e(ue)}function je(ue,oe,ye){return oe in ue?Object.defineProperty(ue,oe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=ye,ue}var Ve=function(ue){(function(ie,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(he&&he.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),Object.defineProperty(ie,"prototype",{writable:!1}),he&&Dt(ie,he)})(we,ue);var oe,ye,de,Le,Je,Ke=(Le=we,Je=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ie,he=$e(Le);if(Je){var Pe=$e(this).constructor;ie=Reflect.construct(he,arguments,Pe)}else ie=he.apply(this,arguments);return De(this,ie)});function we(ie){var he;(function(Me,et){if(!(Me instanceof et))throw new TypeError("Cannot call a class as a function")})(this,we),he=Ke.call(this,ie);var Pe=new j(ie);return Pe.flattenNodes(ie.nodes),Pe.deserializeLists({checked:ie.checked,expanded:ie.expanded}),he.state={id:ie.id||"rct-".concat(g()),model:Pe,prevProps:ie},he.onCheck=he.onCheck.bind(me(he)),he.onExpand=he.onExpand.bind(me(he)),he.onNodeClick=he.onNodeClick.bind(me(he)),he.onExpandAll=he.onExpandAll.bind(me(he)),he.onCollapseAll=he.onCollapseAll.bind(me(he)),he.combineMemorized=m()(function(Me,et){return gt(gt({},Me),et)}).bind(me(he)),he}return oe=we,ye=[{key:"onCheck",value:function(ie){var he=this.props,Pe=he.checkModel,Me=he.noCascade,et=he.onCheck,G=this.state.model.clone(),be=G.getNode(ie.value);G.toggleChecked(ie,ie.checked,Pe,Me),et(G.serializeList("checked"),gt(gt({},be),ie))}},{key:"onExpand",value:function(ie){var he=this.props.onExpand,Pe=this.state.model.clone(),Me=Pe.getNode(ie.value);Pe.toggleNode(ie.value,"expanded",ie.expanded),he(Pe.serializeList("expanded"),gt(gt({},Me),ie))}},{key:"onNodeClick",value:function(ie){(0,this.props.onClick)(gt(gt({},this.state.model.getNode(ie.value)),ie))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var ie=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],he=this.props.onExpand;he(this.state.model.clone().expandAllNodes(ie).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(ie,he){var Pe=this.state.model.getNode(ie.value);return Pe.isLeaf||he||ie.children.length===0?Pe.checked?1:0:this.isEveryChildChecked(ie)?1:this.isSomeChildChecked(ie)?2:0}},{key:"isEveryChildChecked",value:function(ie){var he=this;return ie.children.every(function(Pe){return he.state.model.getNode(Pe.value).checkState===1})}},{key:"isSomeChildChecked",value:function(ie){var he=this;return ie.children.some(function(Pe){return he.state.model.getNode(Pe.value).checkState>0})}},{key:"renderTreeNodes",value:function(ie){var he=this,Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=this.props,et=Me.expandDisabled,G=Me.expandOnClick,be=Me.icons,Ee=Me.lang,Ne=Me.noCascade,rt=Me.onClick,pe=Me.onlyLeafCheckboxes,ce=Me.optimisticToggle,xe=Me.showNodeTitle,qe=Me.showNodeIcon,Ae=this.state,ze=Ae.id,pt=Ae.model,Nt=we.defaultProps.icons,ir=ie.map(function(Ot){var Pn=Ot.value,rr=pt.getNode(Ot.value),En=rr.isParent?he.renderTreeNodes(Ot.children,Ot):null;rr.checkState=he.determineShallowCheckState(Ot,Ne);var yt=pe?rr.isLeaf:rr.showCheckbox;return!Pe.value||pt.getNode(Pe.value).expanded?v().createElement(Fe,{key:Pn,checked:rr.checkState,className:Ot.className,disabled:rr.disabled,expandDisabled:et,expandOnClick:G,expanded:rr.expanded,icon:Ot.icon,icons:he.combineMemorized(Nt,be),label:Ot.label,lang:Ee,optimisticToggle:ce,isLeaf:rr.isLeaf,isParent:rr.isParent,showCheckbox:yt,showNodeIcon:qe,title:xe?Ot.title||Ot.label:Ot.title,treeId:ze,value:Ot.value,onCheck:he.onCheck,onClick:rt&&he.onNodeClick,onExpand:he.onExpand},En):null});return v().createElement("ol",null,ir)}},{key:"renderExpandAll",value:function(){var ie=this.props,he=ie.icons,Pe=he.expandAll,Me=he.collapseAll,et=ie.lang;return ie.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(D,{className:"rct-option rct-option-expand-all",title:et.expandAll,onClick:this.onExpandAll},Pe),v().createElement(D,{className:"rct-option rct-option-collapse-all",title:et.collapseAll,onClick:this.onCollapseAll},Me)):null}},{key:"renderHiddenInput",value:function(){var ie=this.props,he=ie.name,Pe=ie.nameAsArray;return he===void 0?null:Pe?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var ie=this.props,he=ie.checked,Pe=ie.name;return he.map(function(Me){var et="".concat(Pe,"[]");return v().createElement("input",{key:Me,name:et,type:"hidden",value:Me})})}},{key:"renderJoinedHiddenInput",value:function(){var ie=this.props,he=ie.checked,Pe=ie.name,Me=he.join(",");return v().createElement("input",{name:Pe,type:"hidden",value:Me})}},{key:"render",value:function(){var ie,he=this.props,Pe=he.direction,Me=he.disabled,et=he.iconsClass,G=he.nodes,be=he.nativeCheckboxes,Ee=this.state.id,Ne=this.renderTreeNodes(G),rt=c()((je(ie={"react-checkbox-tree":!0,"rct-disabled":Me},"rct-icons-".concat(et),!0),je(ie,"rct-native-display",be),je(ie,"rct-direction-rtl",Pe==="rtl"),ie));return v().createElement("div",{className:rt,id:Ee},this.renderExpandAll(),this.renderHiddenInput(),Ne)}}],de=[{key:"getDerivedStateFromProps",value:function(ie,he){var Pe=he.model,Me=he.prevProps,et=ie.disabled,G=ie.id,be=ie.nodes,Ee=gt(gt({},he),{},{prevProps:ie});return Pe.setProps(ie),d()(Me.nodes,be)&&Me.disabled===et||(Pe.reset(),Pe.flattenNodes(be)),G!==null&&(Ee=gt(gt({},Ee),{},{id:G})),Pe.deserializeLists({checked:ie.checked,expanded:ie.expanded}),Ee}}],ye&&mt(oe.prototype,ye),de&&mt(oe,de),Object.defineProperty(oe,"prototype",{writable:!1}),we}(v().Component);function Xe(ue){return function(oe){if(Array.isArray(oe))return Tt(oe)}(ue)||function(oe){if(typeof Symbol<"u"&&oe[Symbol.iterator]!=null||oe["@@iterator"]!=null)return Array.from(oe)}(ue)||function(oe,ye){if(oe){if(typeof oe=="string")return Tt(oe,ye);var de=Object.prototype.toString.call(oe).slice(8,-1);return de==="Object"&&oe.constructor&&(de=oe.constructor.name),de==="Map"||de==="Set"?Array.from(oe):de==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(de)?Tt(oe,ye):void 0}}(ue)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
267
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Tt(ue,oe){(oe==null||oe>ue.length)&&(oe=ue.length);for(var ye=0,de=new Array(oe);ye<oe;ye++)de[ye]=ue[ye];return de}function St(ue,oe){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(ye>oe)return[];var de=[];return ue.forEach(function(Le){Le.children&&(de=[].concat(Xe(de),[Le.value],Xe(St(Le.children,oe,ye+1))))}),de}je(Ve,"propTypes",{nodes:f().arrayOf(st).isRequired,checkModel:f().oneOf([V.LEAF,V.ALL]),checked:Ye,direction:f().string,disabled:f().bool,expandDisabled:f().bool,expandOnClick:f().bool,expanded:Ye,icons:z,iconsClass:f().string,id:f().string,lang:X,name:f().string,nameAsArray:f().bool,nativeCheckboxes:f().bool,noCascade:f().bool,onlyLeafCheckboxes:f().bool,optimisticToggle:f().bool,showExpandAll:f().bool,showNodeIcon:f().bool,showNodeTitle:f().bool,onCheck:f().func,onClick:f().func,onExpand:f().func}),je(Ve,"defaultProps",{checkModel:V.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:v().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:v().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:v().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:v().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:v().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:v().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:v().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:v().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:v().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:v().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const pr=Ve})(),l})())}(Hf)),Hf.exports}var IV=_V();const DV=Ut(IV),MV=kt(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),jV=kt(R.jsx("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),wx=kt(R.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10H7v-2h10z"}),"IndeterminateCheckBox"),NV=kt(R.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),AV=kt(R.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),VV=kt(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),FV=kt(R.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),LV=kt(R.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),qV=kt(R.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");var il={};/*!
268
- * cookie
269
- * Copyright(c) 2012-2014 Roman Shtylman
270
- * Copyright(c) 2015 Douglas Christopher Wilson
271
- * MIT Licensed
272
- */var xx;function BV(){if(xx)return il;xx=1,il.parse=l,il.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(g,w){if(typeof g!="string")throw new TypeError("argument str must be a string");var f={},y=g.length;if(y<2)return f;var v=w&&w.decode||d,p=0,b=0,x=0;do{if(b=g.indexOf("=",p),b===-1)break;if(x=g.indexOf(";",p),x===-1)x=y;else if(b>x){p=g.lastIndexOf(";",b-1)+1;continue}var S=i(g,p,b),C=c(g,b,S),O=g.slice(S,C);if(!t.call(f,O)){var k=i(g,b+1,x),_=c(g,x,k);g.charCodeAt(k)===34&&g.charCodeAt(_-1)===34&&(k++,_--);var T=g.slice(k,_);f[O]=m(T,v)}p=x+1}while(p<y);return f}function i(g,w,f){do{var y=g.charCodeAt(w);if(y!==32&&y!==9)return w}while(++w<f);return f}function c(g,w,f){for(;w>f;){var y=g.charCodeAt(--w);if(y!==32&&y!==9)return w+1}return f}function u(g,w,f){var y=f&&f.encode||encodeURIComponent;if(typeof y!="function")throw new TypeError("option encode is invalid");if(!r.test(g))throw new TypeError("argument name is invalid");var v=y(w);if(!o.test(v))throw new TypeError("argument val is invalid");var p=g+"="+v;if(!f)return p;if(f.maxAge!=null){var b=Math.floor(f.maxAge);if(!isFinite(b))throw new TypeError("option maxAge is invalid");p+="; Max-Age="+b}if(f.domain){if(!s.test(f.domain))throw new TypeError("option domain is invalid");p+="; Domain="+f.domain}if(f.path){if(!a.test(f.path))throw new TypeError("option path is invalid");p+="; Path="+f.path}if(f.expires){var x=f.expires;if(!h(x)||isNaN(x.valueOf()))throw new TypeError("option expires is invalid");p+="; Expires="+x.toUTCString()}if(f.httpOnly&&(p+="; HttpOnly"),f.secure&&(p+="; Secure"),f.partitioned&&(p+="; Partitioned"),f.priority){var S=typeof f.priority=="string"?f.priority.toLowerCase():f.priority;switch(S){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(f.sameSite){var C=typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite;switch(C){case!0:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return p}function d(g){return g.indexOf("%")!==-1?decodeURIComponent(g):g}function h(g){return e.call(g)==="[object Date]"}function m(g,w){try{return w(g)}catch{return g}}return il}var ll=BV();function zV(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function UV(e){return typeof e=="string"?ll.parse(e):typeof e=="object"&&e!==null?e:{}}function Yf(e,t={}){const r=WV(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function WV(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Sx{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=ll.parse(document.cookie),this._checkChanges(s)};const o=typeof document>"u"?"":document.cookie;this.cookies=UV(t||o),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=zV()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(o=>{t[o]!==this.cookies[o]&&this._emitChange({name:o,value:Yf(this.cookies[o])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Yf(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let o in this.cookies)r[o]=Yf(this.cookies[o],t);return r}set(t,r,o){o?o=Object.assign(Object.assign({},this.defaultSetOptions),o):o=this.defaultSetOptions;const s=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ll.serialize(t,s,o)),this._emitChange({name:t,value:r,options:o})}remove(t,r){const o=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ll.serialize(t,"",o)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function HV(e){const{model:t,form:r,value:o,error:s,setDefault:a,onChangeValidate:l}=e,{key:i,title:c,action:u}=r;a(i,t,r,o);const[d,h]=Be.useState(o||[]),[m,g]=Be.useState([]),[w,f]=Be.useState([]);Be.useEffect(()=>{l(d)},[d]);const y=p=>{const b=new Sx,x={"Content-Type":"application/json"};b.get("csrf")&&Object.assign(x,{"X-CSRF-TOKEN":b.get("csrf")}),fetch(p,{headers:x,credentials:"include"}).then(S=>S.ok?S.json():S.text().then(C=>{throw new Error(C)})).then(S=>{f(S)}).catch(S=>{console.error(S)})};Be.useEffect(()=>{const{url:p}=u;y(p)},[]);const v={check:R.jsx(MV,{className:"rct-icon rct-icon-check"}),uncheck:R.jsx(jV,{className:"rct-icon rct-icon-uncheck"}),halfCheck:R.jsx(wx,{className:"rct-icon rct-icon-half-check"}),expandClose:R.jsx(NV,{className:"rct-icon rct-icon-expand-close"}),expandOpen:R.jsx(AV,{className:"rct-icon rct-icon-expand-open"}),expandAll:R.jsx(VV,{className:"rct-icon rct-icon-expand-all"}),collapseAll:R.jsx(wx,{className:"rct-icon rct-icon-collapse-all"}),parentClose:R.jsx(FV,{className:"rct-icon rct-icon-parent-close"}),parentOpen:R.jsx(LV,{className:"rct-icon rct-icon-parent-open"}),leaf:R.jsx(qV,{className:"rct-icon rct-icon-leaf-close"})};return R.jsxs(Be.Fragment,{children:[R.jsx(vn,{required:r.required,children:c}),R.jsx(DV,{nodes:w,checked:d,expanded:m,onCheck:p=>h(p),onExpand:p=>g(p),icons:v,noCascade:!0}),s?R.jsx(io,{error:!0,children:s}):null]})}const YV=Jt(HV);function Cx(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function KV(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:s="any",stringify:a,trim:l=!1}=e;return(i,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;r&&(d=d.toLowerCase()),t&&(d=Cx(d));const h=d?i.filter(m=>{let g=(a||u)(m);return r&&(g=g.toLowerCase()),t&&(g=Cx(g)),s==="start"?g.startsWith(d):g.includes(d)}):i;return typeof o=="number"?h.slice(0,o):h}}const GV=KV(),XV=5,JV=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},ZV=[];function Tx(e,t,r){if(t||e==null)return"";const o=r(e);return typeof o=="string"?o:""}function QV(e){const{unstable_isActiveElementInListbox:t=JV,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:s=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?ZV:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:g,disabledItemsFocusable:w=!1,disableListWrap:f=!1,filterOptions:y=GV,filterSelectedOptions:v=!1,freeSolo:p=!1,getOptionDisabled:b,getOptionKey:x,getOptionLabel:S=pe=>pe.label??pe,groupBy:C,handleHomeEndKeys:O=!e.freeSolo,id:k,includeInputInList:_=!1,inputValue:T,isOptionEqualToValue:P=(pe,ce)=>pe===ce,multiple:D=!1,onChange:V,onClose:M,onHighlightChange:N,onInputChange:F,onOpen:K,open:H,openOnFocus:Z=!1,options:L,readOnly:j=!1,selectOnFocus:Y=!e.freeSolo,value:q}=e,$=mr(k);let I=S;I=pe=>{const ce=S(pe);if(typeof ce!="string"){if(process.env.NODE_ENV!=="production"){const xe=ce===void 0?"undefined":`${typeof ce} (${ce})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${xe} instead of a string for ${JSON.stringify(pe)}.`)}return String(ce)}return ce};const U=E.useRef(!1),Q=E.useRef(!0),W=E.useRef(null),ee=E.useRef(null),[ne,B]=E.useState(null),[A,z]=E.useState(-1),X=s?0:-1,te=E.useRef(X),ae=E.useRef(Tx(d,D,I)).current,[J,fe]=cr({controlled:q,default:d,name:u}),[le,ge]=cr({controlled:T,default:ae,name:u,state:"inputValue"}),[Se,Ce]=E.useState(!1),Fe=E.useCallback((pe,ce,xe)=>{if(!(D?J.length<ce.length:ce!==null)&&!i)return;const Ae=Tx(ce,D,I);le!==Ae&&(ge(Ae),F&&F(pe,Ae,xe))},[I,le,D,F,ge,i,J]),[Ye,He]=cr({controlled:H,default:!1,name:u,state:"open"}),[Qe,ut]=E.useState(!0),dt=!D&&J!=null&&le===I(J),st=Ye&&!j,Ge=st?y(L.filter(pe=>!(v&&(D?J:[J]).some(ce=>ce!==null&&P(pe,ce)))),{inputValue:dt&&Qe?"":le,getOptionLabel:I}):[],We=EO({filteredOptions:Ge,value:J,inputValue:le});E.useEffect(()=>{const pe=J!==We.value;Se&&!pe||p&&!pe||Fe(null,J,"reset")},[J,Fe,Se,We.value,p]);const gt=Ye&&Ge.length>0&&!j,mt=Re(pe=>{pe===-1?W.current.focus():ne.querySelector(`[data-tag-index="${pe}"]`).focus()});E.useEffect(()=>{D&&A>J.length-1&&(z(-1),mt(-1))},[J,D,A,mt]);function Dt(pe,ce){if(!ee.current||pe<0||pe>=Ge.length)return-1;let xe=pe;for(;;){const qe=ee.current.querySelector(`[data-option-index="${xe}"]`),Ae=w?!1:!qe||qe.disabled||qe.getAttribute("aria-disabled")==="true";if(qe&&qe.hasAttribute("tabindex")&&!Ae)return xe;if(ce==="next"?xe=(xe+1)%Ge.length:xe=(xe-1+Ge.length)%Ge.length,xe===pe)return-1}}const De=Re(({event:pe,index:ce,reason:xe="auto"})=>{if(te.current=ce,ce===-1?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${$}-option-${ce}`),N&&N(pe,ce===-1?null:Ge[ce],xe),!ee.current)return;const qe=ee.current.querySelector(`[role="option"].${r}-focused`);qe&&(qe.classList.remove(`${r}-focused`),qe.classList.remove(`${r}-focusVisible`));let Ae=ee.current;if(ee.current.getAttribute("role")!=="listbox"&&(Ae=ee.current.parentElement.querySelector('[role="listbox"]')),!Ae)return;if(ce===-1){Ae.scrollTop=0;return}const ze=ee.current.querySelector(`[data-option-index="${ce}"]`);if(ze&&(ze.classList.add(`${r}-focused`),xe==="keyboard"&&ze.classList.add(`${r}-focusVisible`),Ae.scrollHeight>Ae.clientHeight&&xe!=="mouse"&&xe!=="touch")){const pt=ze,Nt=Ae.clientHeight+Ae.scrollTop,ir=pt.offsetTop+pt.offsetHeight;ir>Nt?Ae.scrollTop=ir-Ae.clientHeight:pt.offsetTop-pt.offsetHeight*(C?1.3:0)<Ae.scrollTop&&(Ae.scrollTop=pt.offsetTop-pt.offsetHeight*(C?1.3:0))}}),me=Re(({event:pe,diff:ce,direction:xe="next",reason:qe="auto"})=>{if(!st)return;const ze=Dt((()=>{const pt=Ge.length-1;if(ce==="reset")return X;if(ce==="start")return 0;if(ce==="end")return pt;const Nt=te.current+ce;return Nt<0?Nt===-1&&_?-1:f&&te.current!==-1||Math.abs(ce)>1?0:pt:Nt>pt?Nt===pt+1&&_?-1:f||Math.abs(ce)>1?pt:0:Nt})(),xe);if(De({index:ze,reason:qe,event:pe}),o&&ce!=="reset")if(ze===-1)W.current.value=le;else{const pt=I(Ge[ze]);W.current.value=pt,pt.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&W.current.setSelectionRange(le.length,pt.length)}}),$e=()=>{const pe=(ce,xe)=>{const qe=ce?I(ce):"",Ae=xe?I(xe):"";return qe===Ae};if(te.current!==-1&&We.filteredOptions&&We.filteredOptions.length!==Ge.length&&We.inputValue===le&&(D?J.length===We.value.length&&We.value.every((ce,xe)=>I(J[xe])===I(ce)):pe(We.value,J))){const ce=We.filteredOptions[te.current];if(ce)return Ge.findIndex(xe=>I(xe)===I(ce))}return-1},je=E.useCallback(()=>{if(!st)return;const pe=$e();if(pe!==-1){te.current=pe;return}const ce=D?J[0]:J;if(Ge.length===0||ce==null){me({diff:"reset"});return}if(ee.current){if(ce!=null){const xe=Ge[te.current];if(D&&xe&&J.findIndex(Ae=>P(xe,Ae))!==-1)return;const qe=Ge.findIndex(Ae=>P(Ae,ce));qe===-1?me({diff:"reset"}):De({index:qe});return}if(te.current>=Ge.length-1){De({index:Ge.length-1});return}De({index:te.current})}},[Ge.length,D?!1:J,v,me,De,st,le,D]),Ve=Re(pe=>{li(ee,pe),pe&&je()});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{(!W.current||W.current.nodeName!=="INPUT")&&(W.current&&W.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
273
- `)):console.error([`MUI: Unable to find the input element. It was resolved to ${W.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
274
- `)))},[u]),E.useEffect(()=>{je()},[je]);const Xe=pe=>{Ye||(He(!0),ut(!0),K&&K(pe))},Tt=(pe,ce)=>{Ye&&(He(!1),M&&M(pe,ce))},St=(pe,ce,xe,qe)=>{if(D){if(J.length===ce.length&&J.every((Ae,ze)=>Ae===ce[ze]))return}else if(J===ce)return;V&&V(pe,ce,xe,qe),fe(ce)},pr=E.useRef(!1),ue=(pe,ce,xe="selectOption",qe="options")=>{let Ae=xe,ze=ce;if(D){if(ze=Array.isArray(J)?J.slice():[],process.env.NODE_ENV!=="production"){const Nt=ze.filter(ir=>P(ce,ir));Nt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Nt.length} matches.`].join(`
275
- `))}const pt=ze.findIndex(Nt=>P(ce,Nt));pt===-1?ze.push(ce):qe!=="freeSolo"&&(ze.splice(pt,1),Ae="removeOption")}Fe(pe,ze,Ae),St(pe,ze,Ae,{option:ce}),!m&&(!pe||!pe.ctrlKey&&!pe.metaKey)&&Tt(pe,Ae),(l===!0||l==="touch"&&pr.current||l==="mouse"&&!pr.current)&&W.current.blur()};function oe(pe,ce){if(pe===-1)return-1;let xe=pe;for(;;){if(ce==="next"&&xe===J.length||ce==="previous"&&xe===-1)return-1;const qe=ne.querySelector(`[data-tag-index="${xe}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")xe+=ce==="next"?1:-1;else return xe}}const ye=(pe,ce)=>{if(!D)return;le===""&&Tt(pe,"toggleInput");let xe=A;A===-1?le===""&&ce==="previous"&&(xe=J.length-1):(xe+=ce==="next"?1:-1,xe<0&&(xe=0),xe===J.length&&(xe=-1)),xe=oe(xe,ce),z(xe),mt(xe)},de=pe=>{U.current=!0,ge(""),F&&F(pe,"","clear"),St(pe,D?[]:null,"clear")},Le=pe=>ce=>{if(pe.onKeyDown&&pe.onKeyDown(ce),!ce.defaultMuiPrevented&&(A!==-1&&!["ArrowLeft","ArrowRight"].includes(ce.key)&&(z(-1),mt(-1)),ce.which!==229))switch(ce.key){case"Home":st&&O&&(ce.preventDefault(),me({diff:"start",direction:"next",reason:"keyboard",event:ce}));break;case"End":st&&O&&(ce.preventDefault(),me({diff:"end",direction:"previous",reason:"keyboard",event:ce}));break;case"PageUp":ce.preventDefault(),me({diff:-5,direction:"previous",reason:"keyboard",event:ce}),Xe(ce);break;case"PageDown":ce.preventDefault(),me({diff:XV,direction:"next",reason:"keyboard",event:ce}),Xe(ce);break;case"ArrowDown":ce.preventDefault(),me({diff:1,direction:"next",reason:"keyboard",event:ce}),Xe(ce);break;case"ArrowUp":ce.preventDefault(),me({diff:-1,direction:"previous",reason:"keyboard",event:ce}),Xe(ce);break;case"ArrowLeft":ye(ce,"previous");break;case"ArrowRight":ye(ce,"next");break;case"Enter":if(te.current!==-1&&st){const xe=Ge[te.current],qe=b?b(xe):!1;if(ce.preventDefault(),qe)return;ue(ce,xe,"selectOption"),o&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else p&&le!==""&&dt===!1&&(D&&ce.preventDefault(),ue(ce,le,"createOption","freeSolo"));break;case"Escape":st?(ce.preventDefault(),ce.stopPropagation(),Tt(ce,"escape")):c&&(le!==""||D&&J.length>0)&&(ce.preventDefault(),ce.stopPropagation(),de(ce));break;case"Backspace":if(D&&!j&&le===""&&J.length>0){const xe=A===-1?J.length-1:A,qe=J.slice();qe.splice(xe,1),St(ce,qe,"removeOption",{option:J[xe]})}break;case"Delete":if(D&&!j&&le===""&&J.length>0&&A!==-1){const xe=A,qe=J.slice();qe.splice(xe,1),St(ce,qe,"removeOption",{option:J[xe]})}break}},Je=pe=>{Ce(!0),Z&&!U.current&&Xe(pe)},Ke=pe=>{if(t(ee)){W.current.focus();return}Ce(!1),Q.current=!0,U.current=!1,a&&te.current!==-1&&st?ue(pe,Ge[te.current],"blur"):a&&p&&le!==""?ue(pe,le,"blur","freeSolo"):i&&Fe(pe,J,"blur"),Tt(pe,"blur")},we=pe=>{const ce=pe.target.value;le!==ce&&(ge(ce),ut(!1),F&&F(pe,ce,"input")),ce===""?!h&&!D&&St(pe,null,"clear"):Xe(pe)},ie=pe=>{const ce=Number(pe.currentTarget.getAttribute("data-option-index"));te.current!==ce&&De({event:pe,index:ce,reason:"mouse"})},he=pe=>{De({event:pe,index:Number(pe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),pr.current=!0},Pe=pe=>{const ce=Number(pe.currentTarget.getAttribute("data-option-index"));ue(pe,Ge[ce],"selectOption"),pr.current=!1},Me=pe=>ce=>{const xe=J.slice();xe.splice(pe,1),St(ce,xe,"removeOption",{option:J[pe]})},et=pe=>{Ye?Tt(pe,"toggleInput"):Xe(pe)},G=pe=>{pe.currentTarget.contains(pe.target)&&pe.target.getAttribute("id")!==$&&pe.preventDefault()},be=pe=>{pe.currentTarget.contains(pe.target)&&(W.current.focus(),Y&&Q.current&&W.current.selectionEnd-W.current.selectionStart===0&&W.current.select(),Q.current=!1)},Ee=pe=>{!g&&(le===""||!Ye)&&et(pe)};let Ne=p&&le.length>0;Ne=Ne||(D?J.length>0:J!==null);let rt=Ge;if(C){const pe=new Map;let ce=!1;rt=Ge.reduce((xe,qe,Ae)=>{const ze=C(qe);return xe.length>0&&xe[xe.length-1].group===ze?xe[xe.length-1].options.push(qe):(process.env.NODE_ENV!=="production"&&(pe.get(ze)&&!ce&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),ce=!0),pe.set(ze,!0)),xe.push({key:Ae,index:Ae,group:ze,options:[qe]})),xe},[])}return g&&Se&&Ke(),{getRootProps:(pe={})=>({...pe,onKeyDown:Le(pe),onMouseDown:G,onClick:be}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:le,onBlur:Ke,onFocus:Je,onChange:we,onMouseDown:Ee,"aria-activedescendant":st?"":null,"aria-autocomplete":o?"both":"list","aria-controls":gt?`${$}-listbox`:void 0,"aria-expanded":gt,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:de}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:et}),getTagProps:({index:pe})=>({key:pe,"data-tag-index":pe,tabIndex:-1,...!j&&{onDelete:Me(pe)}}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:Ve,onMouseDown:pe=>{pe.preventDefault()}}),getOptionProps:({index:pe,option:ce})=>{const xe=(D?J:[J]).some(Ae=>Ae!=null&&P(ce,Ae)),qe=b?b(ce):!1;return{key:(x==null?void 0:x(ce))??I(ce),tabIndex:-1,role:"option",id:`${$}-option-${pe}`,onMouseMove:ie,onClick:Pe,onTouchStart:he,"data-option-index":pe,"aria-disabled":qe,"aria-selected":xe}},id:$,inputValue:le,value:J,dirty:Ne,expanded:st&&ne,popupOpen:st,focused:Se||A!==-1,anchorEl:ne,setAnchorEl:B,focusedTag:A,groupedOptions:rt}}function e2(e){return Ie("MuiListSubheader",e)}ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const t2=e=>{const{classes:t,color:r,disableGutters:o,inset:s,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${Oe(r)}`,!o&&"gutters",s&&"inset",!a&&"sticky"]};return _e(l,e2,t)},r2=se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Oe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ze(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),cl=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiListSubheader"}),{className:s,color:a="default",component:l="li",disableGutters:i=!1,disableSticky:c=!1,inset:u=!1,...d}=o,h={...o,color:a,component:l,disableGutters:i,disableSticky:c,inset:u},m=t2(h);return R.jsx(r2,{as:l,className:Te(m.root,s),ref:r,ownerState:h,...d})});cl&&(cl.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(cl.propTypes={children:n.node,classes:n.object,className:n.string,color:n.oneOf(["default","inherit","primary"]),component:n.elementType,disableGutters:n.bool,disableSticky:n.bool,inset:n.bool,sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object])});const n2=kt(R.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function o2(e){return Ie("MuiAutocomplete",e)}const ot=ke("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"]);var Ox,Px;const s2=e=>{const{classes:t,disablePortal:r,expanded:o,focused:s,fullWidth:a,hasClearIcon:l,hasPopupIcon:i,inputFocused:c,popupOpen:u,size:d}=e,h={root:["root",o&&"expanded",s&&"focused",a&&"fullWidth",l&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${Oe(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return _e(h,o2,t)},a2=se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:o,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,size:i}=r;return[{[`& .${ot.tag}`]:t.tag},{[`& .${ot.tag}`]:t[`tagSize${Oe(i)}`]},{[`& .${ot.inputRoot}`]:t.inputRoot},{[`& .${ot.input}`]:t.input},{[`& .${ot.input}`]:l&&t.inputFocused},t.root,o&&t.fullWidth,a&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${ot.focused} .${ot.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ot.clearIndicator}`]:{visibility:"visible"}},[`& .${ot.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ot.inputRoot}`]:{[`.${ot.hasPopupIcon}&, .${ot.hasClearIcon}&`]:{paddingRight:30},[`.${ot.hasPopupIcon}.${ot.hasClearIcon}&`]:{paddingRight:56},[`& .${ot.input}`]:{width:0,minWidth:30}},[`& .${bn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${bn.root}.${yr.sizeSmall}`]:{[`& .${bn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Tr.root}`]:{padding:9,[`.${ot.hasPopupIcon}&, .${ot.hasClearIcon}&`]:{paddingRight:39},[`.${ot.hasPopupIcon}.${ot.hasClearIcon}&`]:{paddingRight:65},[`& .${ot.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ot.endAdornment}`]:{right:9}},[`& .${Tr.root}.${yr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ot.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${br.root}`]:{paddingTop:19,paddingLeft:8,[`.${ot.hasPopupIcon}&, .${ot.hasClearIcon}&`]:{paddingRight:39},[`.${ot.hasPopupIcon}.${ot.hasClearIcon}&`]:{paddingRight:65},[`& .${br.input}`]:{padding:"7px 4px"},[`& .${ot.endAdornment}`]:{right:9}},[`& .${br.root}.${yr.sizeSmall}`]:{paddingBottom:1,[`& .${br.input}`]:{padding:"2.5px 4px"}},[`& .${yr.hiddenLabel}`]:{paddingTop:8},[`& .${br.root}.${yr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ot.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${br.root}.${yr.hiddenLabel}.${yr.sizeSmall}`]:{[`& .${ot.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ot.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ot.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ot.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ot.inputRoot}`]:{flexWrap:"wrap"}}}]}),i2=se("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),l2=se(Yr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),c2=se(Yr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),u2=se(Qi,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ot.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),d2=se(Sn,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Ze(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),f2=se("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),p2=se("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),h2=se("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Ze(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ot.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"},[`&.${ot.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"},[`&.${ot.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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ot.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),m2=se(cl,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),g2=se("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ot.option}`]:{paddingLeft:24}}),Ex=E.forwardRef(function(t,r){const o=tt({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:i=!1,ChipProps:c,className:u,clearIcon:d=Ox||(Ox=R.jsx(n2,{fontSize:"small"})),clearOnBlur:h=!o.freeSolo,clearOnEscape:m=!1,clearText:g="Clear",closeText:w="Close",componentsProps:f,defaultValue:y=o.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:p=!1,disabled:b=!1,disabledItemsFocusable:x=!1,disableListWrap:S=!1,disablePortal:C=!1,filterOptions:O,filterSelectedOptions:k=!1,forcePopupIcon:_="auto",freeSolo:T=!1,fullWidth:P=!1,getLimitTagsText:D=yt=>`+${yt}`,getOptionDisabled:V,getOptionKey:M,getOptionLabel:N,isOptionEqualToValue:F,groupBy:K,handleHomeEndKeys:H=!o.freeSolo,id:Z,includeInputInList:L=!1,inputValue:j,limitTags:Y=-1,ListboxComponent:q,ListboxProps:$,loading:I=!1,loadingText:U="Loading…",multiple:Q=!1,noOptionsText:W="No options",onChange:ee,onClose:ne,onHighlightChange:B,onInputChange:A,onOpen:z,open:X,openOnFocus:te=!1,openText:ae="Open",options:J,PaperComponent:fe,PopperComponent:le,popupIcon:ge=Px||(Px=R.jsx(Rv,{})),readOnly:Se=!1,renderGroup:Ce,renderInput:Fe,renderOption:Ye,renderTags:He,selectOnFocus:Qe=!o.freeSolo,size:ut="medium",slots:dt={},slotProps:st={},value:Ge,...We}=o,{getRootProps:gt,getInputProps:mt,getInputLabelProps:Dt,getPopupIndicatorProps:De,getClearProps:me,getTagProps:$e,getListboxProps:je,getOptionProps:Ve,value:Xe,dirty:Tt,expanded:St,id:pr,popupOpen:ue,focused:oe,focusedTag:ye,anchorEl:de,setAnchorEl:Le,inputValue:Je,groupedOptions:Ke}=QV({...o,componentName:"Autocomplete"}),we=!v&&!b&&Tt&&!Se,ie=(!T||_===!0)&&_!==!1,{onMouseDown:he}=mt(),{ref:Pe,...Me}=je(),G=N||(yt=>yt.label??yt),be={...o,disablePortal:C,expanded:St,focused:oe,fullWidth:P,getOptionLabel:G,hasClearIcon:we,hasPopupIcon:ie,inputFocused:ye===-1,popupOpen:ue,size:ut},Ee=s2(be),Ne={slots:{paper:fe,popper:le,...dt},slotProps:{chip:c,listbox:$,...f,...st}},[rt,pe]=Bt("listbox",{elementType:h2,externalForwardedProps:Ne,ownerState:be,className:Ee.listbox,additionalProps:Me,ref:Pe}),[ce,xe]=Bt("paper",{elementType:Sn,externalForwardedProps:Ne,ownerState:be,className:Ee.paper}),[qe,Ae]=Bt("popper",{elementType:Qi,externalForwardedProps:Ne,ownerState:be,className:Ee.popper,additionalProps:{disablePortal:C,style:{width:de?de.clientWidth:null},role:"presentation",anchorEl:de,open:ue}});let ze;if(Q&&Xe.length>0){const yt=Jr=>({className:Ee.tag,disabled:b,...$e(Jr)});He?ze=He(Xe,yt,be):ze=Xe.map((Jr,kn)=>{const{key:Ns,...T2}=yt({index:kn});return R.jsx($i,{label:G(Jr),size:ut,...T2,...Ne.slotProps.chip},Ns)})}if(Y>-1&&Array.isArray(ze)){const yt=ze.length-Y;!oe&&yt>0&&(ze=ze.splice(0,Y),ze.push(R.jsx("span",{className:Ee.tag,children:D(yt)},ze.length)))}const Nt=Ce||(yt=>R.jsxs("li",{children:[R.jsx(m2,{className:Ee.groupLabel,ownerState:be,component:"div",children:yt.group}),R.jsx(g2,{className:Ee.groupUl,ownerState:be,children:yt.children})]},yt.key)),Ot=Ye||((yt,Jr)=>{const{key:kn,...Ns}=yt;return R.jsx("li",{...Ns,children:G(Jr)},kn)}),Pn=(yt,Jr)=>{const kn=Ve({option:yt,index:Jr});return Ot({...kn,className:Ee.option},yt,{selected:kn["aria-selected"],index:Jr,inputValue:Je},be)},rr=Ne.slotProps.clearIndicator,En=Ne.slotProps.popupIndicator;return R.jsxs(E.Fragment,{children:[R.jsx(a2,{ref:r,className:Te(Ee.root,u),ownerState:be,...gt(We),children:Fe({id:pr,disabled:b,fullWidth:!0,size:ut==="small"?"small":void 0,InputLabelProps:Dt(),InputProps:{ref:Le,className:Ee.inputRoot,startAdornment:ze,onMouseDown:yt=>{yt.target===yt.currentTarget&&he(yt)},...(we||ie)&&{endAdornment:R.jsxs(i2,{className:Ee.endAdornment,ownerState:be,children:[we?R.jsx(l2,{...me(),"aria-label":g,title:g,ownerState:be,...rr,className:Te(Ee.clearIndicator,rr==null?void 0:rr.className),children:d}):null,ie?R.jsx(c2,{...De(),disabled:b,"aria-label":ue?w:ae,title:ue?w:ae,ownerState:be,...En,className:Te(Ee.popupIndicator,En==null?void 0:En.className),children:ge}):null]})}},inputProps:{className:Ee.input,disabled:b,readOnly:Se,...mt()}})}),de?R.jsx(u2,{as:qe,...Ae,children:R.jsxs(d2,{as:ce,...xe,children:[I&&Ke.length===0?R.jsx(f2,{className:Ee.loading,ownerState:be,children:U}):null,Ke.length===0&&!T&&!I?R.jsx(p2,{className:Ee.noOptions,ownerState:be,role:"presentation",onMouseDown:yt=>{yt.preventDefault()},children:W}):null,Ke.length>0?R.jsx(rt,{as:q,...pe,children:Ke.map((yt,Jr)=>K?Nt({key:yt.key,group:yt.group,children:yt.options.map((kn,Ns)=>Pn(kn,yt.index+Ns))}):Pn(yt,Jr))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Ex.propTypes={autoComplete:n.bool,autoHighlight:n.bool,autoSelect:n.bool,blurOnSelect:n.oneOfType([n.oneOf(["mouse","touch"]),n.bool]),ChipProps:n.object,classes:n.object,className:n.string,clearIcon:n.node,clearOnBlur:n.bool,clearOnEscape:n.bool,clearText:n.string,closeText:n.string,componentsProps:n.shape({clearIndicator:n.object,paper:n.object,popper:n.object,popupIndicator:n.object}),defaultValue:Cr(n.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
276
- `)):null),disableClearable:n.bool,disableCloseOnSelect:n.bool,disabled:n.bool,disabledItemsFocusable:n.bool,disableListWrap:n.bool,disablePortal:n.bool,filterOptions:n.func,filterSelectedOptions:n.bool,forcePopupIcon:n.oneOfType([n.oneOf(["auto"]),n.bool]),freeSolo:n.bool,fullWidth:n.bool,getLimitTagsText:n.func,getOptionDisabled:n.func,getOptionKey:n.func,getOptionLabel:n.func,groupBy:n.func,handleHomeEndKeys:n.bool,id:n.string,includeInputInList:n.bool,inputValue:n.string,isOptionEqualToValue:n.func,limitTags:Id,ListboxComponent:n.elementType,ListboxProps:n.object,loading:n.bool,loadingText:n.node,multiple:n.bool,noOptionsText:n.node,onChange:n.func,onClose:n.func,onHighlightChange:n.func,onInputChange:n.func,onKeyDown:n.func,onOpen:n.func,open:n.bool,openOnFocus:n.bool,openText:n.string,options:n.array.isRequired,PaperComponent:n.elementType,PopperComponent:n.elementType,popupIcon:n.node,readOnly:n.bool,renderGroup:n.func,renderInput:n.func.isRequired,renderOption:n.func,renderTags:n.func,selectOnFocus:n.bool,size:n.oneOfType([n.oneOf(["small","medium"]),n.string]),slotProps:n.shape({chip:n.oneOfType([n.func,n.object]),clearIndicator:n.oneOfType([n.func,n.object]),listbox:n.oneOfType([n.func,n.object]),paper:n.oneOfType([n.func,n.object]),popper:n.oneOfType([n.func,n.object]),popupIndicator:n.oneOfType([n.func,n.object])}),slots:n.shape({listbox:n.elementType,paper:n.elementType,popper:n.elementType}),sx:n.oneOfType([n.arrayOf(n.oneOfType([n.func,n.object,n.bool])),n.func,n.object]),value:Cr(n.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
277
- `)):null)});var ul={exports:{}},y2=ul.exports,kx;function b2(){return kx||(kx=1,function(e){(function(t,r){e.exports=r()})(y2,function(){var t=Object.prototype.toString;function r(h,m){return h==null?!1:Object.prototype.hasOwnProperty.call(h,m)}function o(h){if(!h||l(h)&&h.length===0)return!0;if(typeof h!="string"){for(var m in h)if(r(h,m))return!1;return!0}return!1}function s(h){return t.call(h)}function a(h){return typeof h=="object"&&s(h)==="[object Object]"}var l=Array.isArray||function(h){return t.call(h)==="[object Array]"};function i(h){return typeof h=="boolean"||s(h)==="[object Boolean]"}function c(h){var m=parseInt(h);return m.toString()===h?m:h}function u(h){h=h||{};var m=function(v){return Object.keys(m).reduce(function(p,b){return b==="create"||typeof m[b]=="function"&&(p[b]=m[b].bind(m,v)),p},{})},g;h.includeInheritedProps?g=function(){return!0}:g=function(v,p){return typeof p=="number"&&Array.isArray(v)||r(v,p)};function w(v,p){if(g(v,p))return v[p]}var f;h.includeInheritedProps?f=function(v,p){typeof p!="string"&&typeof p!="number"&&(p=String(p));var b=w(v,p);if(p==="__proto__"||p==="prototype"||p==="constructor"&&typeof b=="function")throw new Error("For security reasons, object's magic properties cannot be set");return b}:f=function(v,p){return w(v,p)};function y(v,p,b,x){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(typeof p=="string")return y(v,p.split(".").map(c),b,x);var S=p[0],C=f(v,S);return p.length===1?((C===void 0||!x)&&(v[S]=b),C):(C===void 0&&(typeof p[1]=="number"?v[S]=[]:v[S]={}),y(v[S],p.slice(1),b,x))}return m.has=function(v,p){if(typeof p=="number"?p=[p]:typeof p=="string"&&(p=p.split(".")),!p||p.length===0)return!!v;for(var b=0;b<p.length;b++){var x=c(p[b]);if(typeof x=="number"&&l(v)&&x<v.length||(h.includeInheritedProps?x in Object(v):r(v,x)))v=v[x];else return!1}return!0},m.ensureExists=function(v,p,b){return y(v,p,b,!0)},m.set=function(v,p,b,x){return y(v,p,b,x)},m.insert=function(v,p,b,x){var S=m.get(v,p);x=~~x,l(S)||(S=[],m.set(v,p,S)),S.splice(x,0,b)},m.empty=function(v,p){if(!o(p)&&v!=null){var b,x;if(b=m.get(v,p)){if(typeof b=="string")return m.set(v,p,"");if(i(b))return m.set(v,p,!1);if(typeof b=="number")return m.set(v,p,0);if(l(b))b.length=0;else if(a(b))for(x in b)g(b,x)&&delete b[x];else return m.set(v,p,null)}}},m.push=function(v,p){var b=m.get(v,p);l(b)||(b=[],m.set(v,p,b)),b.push.apply(b,Array.prototype.slice.call(arguments,2))},m.coalesce=function(v,p,b){for(var x,S=0,C=p.length;S<C;S++)if((x=m.get(v,p[S]))!==void 0)return x;return b},m.get=function(v,p,b){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(v==null)return b;if(typeof p=="string")return m.get(v,p.split("."),b);var x=c(p[0]),S=f(v,x);return S===void 0?b:p.length===1?S:m.get(v[x],p.slice(1),b)},m.del=function(p,b){if(typeof b=="number"&&(b=[b]),p==null||o(b))return p;if(typeof b=="string")return m.del(p,b.split("."));var x=c(b[0]);if(f(p,x),!g(p,x))return p;if(b.length===1)l(p)?p.splice(x,1):delete p[x];else return m.del(p[x],b.slice(1));return p},m}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})}(ul)),ul.exports}var v2=b2();const w2=Ut(v2);String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var r=new RegExp("\\{"+t+"\\}","gi");e=e.replace(r,arguments[t])}return e};function x2(e){const{value:t,error:r,onChangeValidate:o,form:{schema:{type:s},action:a,title:l,required:i,multiple:c,disabled:u,options:d},model:h}=e,m=s==="array"?[]:"",[g,w]=Be.useState(t||m),[f,y]=Be.useState([]),{url:v,params:p}=a||{},b=p&&p.some(_=>_!=null)?p.map(_=>w2.get(h,_)):[];Be.useEffect(()=>{const _=p?b.length>0?v.format(...b):"":v;_&&S(_)},b),Be.useEffect(()=>{s==="array"?o(g):g!==null&&o({target:{value:g}})},[g]);const x=(_,T)=>{if(s!=="array")if(c){const P=T.map(D=>D.id).join(",");w(P)}else w(T.id);else w(c?T.map(P=>P.id):[T.id])},S=_=>{if(_.includes("=undefined")||_.includes("=&")||_.endsWith("="))return;const T=new Sx,P={"Content-Type":"application/json"};T.get("csrf")&&Object.assign(P,{"X-CSRF-TOKEN":T.get("csrf")}),fetch(_,{headers:P,credentials:"include"}).then(D=>D.ok?D.json():D.text().then(V=>{throw new Error(V)})).then(D=>{y(D)}).catch(D=>{console.error(D)})};let C="";r&&(C=R.jsx("div",{style:{color:"red"},children:r}));let O;const k=d&&d.length>0?d:f;return c?Array.isArray(t)?O=t?k.filter(_=>t.includes(_.id)):[]:O=t?k.filter(_=>t.split(",").includes(_.id)):[]:Array.isArray(t)?O=t.length===1?k.find(_=>_.id===t[0]):null:O=t?k.find(_=>_.id===t):null,R.jsxs("div",{children:[R.jsx(Ex,{multiple:c,disabled:u,getOptionLabel:_=>_.label||"",value:O||(c?[]:""),onChange:x,options:k,renderInput:_=>R.jsx(ki,{..._,label:i?l+" *":l})}),C]})}const S2=Jt(x2),C2=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class Rx extends Be.Component{constructor(r){super(r);zt(this,"mapper",{number:Tk,text:cs,password:cs,textarea:Ok,markdown:Pk,textsuggest:kk,select:tR,taxonomy:YV,radios:NR,date:AR,timestamp:iV,checkbox:bV,help:vV,array:hx,tBoolean:$V,fieldset:bx,tuple:bx,multiselect:uR,dynaselect:S2});zt(this,"setDefault",(r,o,s,a)=>{const{onModelChange:l}=this.props,i=Xt.selectOrSet(r,o);am(i)&&!am(a)&&l(r,a,s.type,s)});zt(this,"getLocalization",()=>{const{localization:r}=this.props;return{getLocalizedString:r&&r.getLocalizedString?r.getLocalizedString:o=>o,getLocalizedNumber:r&&r.getLocalizedNumber?r.getLocalizedNumber:o=>o,getLocalizedDate:r&&r.getLocalizedDate?r.getLocalizedDate:C2}});this.builder=this.builder.bind(this)}builder(r,o,s,a,l,i){const{errors:c,showErrors:u,evalContext:d}=this.props,h=this.mapper[r.type];if(!h||r.condition&&!Xt.safeEval(r.condition,{model:o,form:r,...d}))return null;const m=r.key&&r.key.join(".")||s,g=c&&m in c?c[m]:null;return R.jsx(h,{model:o,form:r,onChange:l,setDefault:this.setDefault,mapper:a,builder:i,errorText:g,localization:this.getLocalization(),showErrors:u},m)}render(){const{schema:r,form:o,ignore:s,option:a,model:l,className:i,onModelChange:c,mapper:u}=this.props,d=Xt.merge(r,o,s,a);let h=this.mapper;u&&(h=jS(this.mapper,u));const m=d.map((g,w)=>this.builder(g,l,w,h,c,this.builder));return R.jsx("div",{className:i,children:m})}}Rx.defaultProps={localization:void 0,showErrors:!1},Ft.Array=hx,Ft.ComposedComponent=Jt,Ft.SchemaForm=Rx,Ft.utils=Xt,Object.defineProperty(Ft,Symbol.toStringTag,{value:"Module"})});
165
+ `,gC=typeof Du!="string"?Or.css`
166
+ animation: ${Du} 1.4s linear infinite;
167
+ `:null,vC=typeof qu!="string"?Or.css`
168
+ animation: ${qu} 1.4s ease-in-out infinite;
169
+ `:null,bC=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${pe(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${pe(r)}`,i&&"circleDisableShrink"]};return Be(a,yC,t)},_C=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gC||{animation:`${Du} 1.4s linear infinite`}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),wC=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),SC=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ze(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:vC||{animation:`${qu} 1.4s ease-in-out infinite`}}]}))),EC=me("circle",{name:"MuiCircularProgress",slot:"Track"})(ze(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Lu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,enableTrackSlot:s=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...y}=n,g={...n,color:a,disableShrink:l,size:c,thickness:d,value:m,variant:h,enableTrackSlot:s},f=bC(g),b={},v={},p={};if(h==="determinate"){const _=2*Math.PI*((dr-d)/2);b.strokeDasharray=_.toFixed(3),p["aria-valuenow"]=Math.round(m),b.strokeDashoffset=`${((100-m)/100*_).toFixed(3)}px`,v.transform="rotate(-90deg)"}return F.jsx(_C,{className:xe(f.root,i),style:{width:c,height:c,...v,...u},ownerState:g,ref:r,role:"progressbar",...p,...y,children:F.jsxs(wC,{className:f.svg,ownerState:g,viewBox:`${dr/2} ${dr/2} ${dr} ${dr}`,children:[s?F.jsx(EC,{className:f.track,ownerState:g,cx:dr,cy:dr,r:(dr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,F.jsx(SC,{className:f.circle,style:b,ownerState:g,cx:dr,cy:dr,r:(dr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Lu.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:cr(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function OC(e){return Fe("MuiIconButton",e)}const yv=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),xC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:l}=e,s={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${pe(n)}`,i&&`edge${pe(i)}`,`size${pe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Be(s,OC,t)},CC=me(fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${pe(r.color)}`],r.edge&&t[`edge${pe(r.edge)}`],t[`size${pe(r.size)}`]]}})(ze(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${yv.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yv.loading}`]:{color:"transparent"}}))),TC=me("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ta=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:y,...g}=n,f=bn(m),b=y??F.jsx(Lu,{"aria-labelledby":f,color:"inherit",size:16}),v={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:b,size:d},p=xC(v);return F.jsxs(CC,{id:h?f:m,className:xe(p.root,l),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:r,...g,ownerState:v,children:[typeof h=="boolean"&&F.jsx("span",{className:p.loadingWrapper,style:{display:"contents"},children:F.jsx(TC,{className:p.loadingIndicator,ownerState:v,children:h&&b})}),a]})});process.env.NODE_ENV!=="production"&&(Ta.propTypes={children:cr(o.node,e=>A.Children.toArray(e.children).some(r=>A.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
170
+ `)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const PC=Ct(F.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 $C(e){return Fe("MuiChip",e)}const Ve=Le("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),RC=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:l,clickable:s,variant:c}=e,u={root:["root",c,r&&"disabled",`size${pe(n)}`,`color${pe(i)}`,s&&"clickable",s&&`clickableColor${pe(i)}`,l&&"deletable",l&&`deletableColor${pe(i)}`,`${c}${pe(i)}`],label:["label",`label${pe(n)}`],avatar:["avatar",`avatar${pe(n)}`,`avatarColor${pe(i)}`],icon:["icon",`icon${pe(n)}`,`iconColor${pe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${pe(n)}`,`deleteIconColor${pe(i)}`,`deleteIcon${pe(c)}Color${pe(i)}`]};return Be(u,$C,t)},kC=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:a,onDelete:l,size:s,variant:c}=r;return[{[`& .${Ve.avatar}`]:t.avatar},{[`& .${Ve.avatar}`]:t[`avatar${pe(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${pe(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${pe(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${pe(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${pe(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${pe(c)}Color${pe(n)}`]},t.root,t[`size${pe(s)}`],t[`color${pe(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${pe(n)}`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${pe(n)}`],t[c],t[`${c}${pe(n)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,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",[`&.${Ve.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ve.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ve.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ve.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ve.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ve.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ve.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ve.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ve.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($t(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ve.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ve.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ve.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter($t(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ve.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($t(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ve.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ve.avatar}`]:{marginLeft:4},[`& .${Ve.avatarSmall}`]:{marginLeft:2},[`& .${Ve.icon}`]:{marginLeft:4},[`& .${Ve.iconSmall}`]:{marginLeft:2},[`& .${Ve.deleteIcon}`]:{marginRight:5},[`& .${Ve.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($t()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),IC=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${pe(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function gv(e){return e.key==="Backspace"||e.key==="Delete"}const Fu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:y,onDelete:g,onKeyDown:f,onKeyUp:b,size:v="medium",variant:p="filled",tabIndex:_,skipFocusWhenDisabled:S=!1,slots:w={},slotProps:E={},...x}=n,P=A.useRef(null),k=St(P,r),j=q=>{q.stopPropagation(),g&&g(q)},R=q=>{q.currentTarget===q.target&&gv(q)&&q.preventDefault(),f&&f(q)},O=q=>{q.currentTarget===q.target&&g&&gv(q)&&g(q),b&&b(q)},D=l!==!1&&y?!0:l,N=D||g?fn:c||"div",U={...n,component:N,disabled:d,size:v,color:s,iconColor:A.isValidElement(m)&&m.props.color||s,onDelete:!!g,clickable:D,variant:p},W=RC(U),le=N===fn?{component:c||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let ce=null;g&&(ce=u&&A.isValidElement(u)?A.cloneElement(u,{className:xe(u.props.className,W.deleteIcon),onClick:j}):F.jsx(PC,{className:W.deleteIcon,onClick:j}));let ue=null;i&&A.isValidElement(i)&&(ue=A.cloneElement(i,{className:xe(W.avatar,i.props.className)}));let z=null;m&&A.isValidElement(m)&&(z=A.cloneElement(m,{className:xe(W.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&ue&&z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const C={slots:w,slotProps:E},[V,M]=dt("root",{elementType:kC,externalForwardedProps:{...C,...x},ownerState:U,shouldForwardComponentProp:!0,ref:k,className:xe(W.root,a),additionalProps:{disabled:D&&d?!0:void 0,tabIndex:S&&d?-1:_,...le},getSlotProps:q=>({...q,onClick:K=>{q.onClick?.(K),y?.(K)},onKeyDown:K=>{q.onKeyDown?.(K),R(K)},onKeyUp:K=>{q.onKeyUp?.(K),O(K)}})}),[T,$]=dt("label",{elementType:IC,externalForwardedProps:C,ownerState:U,className:W.label});return F.jsxs(V,{as:N,...M,children:[ue||z,F.jsx(T,{...$,children:h}),ce]})});process.env.NODE_ENV!=="production"&&(Fu.propTypes={avatar:o.element,children:BE,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});const jC=Ct(F.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 NC(e){return Fe("MuiAutocomplete",e)}const Ae=Le("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"]);var vv,bv;const AC=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:d}=e,m={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${pe(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Be(m,NC,t)},MC=me("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Ae.tag}`]:t.tag},{[`& .${Ae.tag}`]:t[`tagSize${pe(s)}`]},{[`& .${Ae.inputRoot}`]:t.inputRoot},{[`& .${Ae.input}`]:t.input},{[`& .${Ae.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Ae.focused} .${Ae.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ae.clearIndicator}`]:{visibility:"visible"}},[`& .${Ae.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ae.inputRoot}`]:{[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:30},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:56},[`& .${Ae.input}`]:{width:0,minWidth:30}},[`& .${Wr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Wr.root}.${Gt.sizeSmall}`]:{[`& .${Wr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${er.root}`]:{padding:9,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Ae.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${er.root}.${Gt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ae.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Yt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ae.hasPopupIcon}&, .${Ae.hasClearIcon}&`]:{paddingRight:39},[`.${Ae.hasPopupIcon}.${Ae.hasClearIcon}&`]:{paddingRight:65},[`& .${Yt.input}`]:{padding:"7px 4px"},[`& .${Ae.endAdornment}`]:{right:9}},[`& .${Yt.root}.${Gt.sizeSmall}`]:{paddingBottom:1,[`& .${Yt.input}`]:{padding:"2.5px 4px"}},[`& .${Gt.hiddenLabel}`]:{paddingTop:8},[`& .${Yt.root}.${Gt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ae.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Yt.root}.${Gt.hiddenLabel}.${Gt.sizeSmall}`]:{[`& .${Ae.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ae.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ae.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ae.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ae.inputRoot}`]:{flexWrap:"wrap"}}}]}),DC=me("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),qC=me(Ta,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),LC=me(Ta,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),FC=me(Au,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ae.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),zC=me(lo,{name:"MuiAutocomplete",slot:"Paper"})(ze(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),VC=me("div",{name:"MuiAutocomplete",slot:"Loading"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),BC=me("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),UC=me("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ze(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ae.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"},[`&.${Ae.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"},[`&.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ae.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ae.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),WC=me(xa,{name:"MuiAutocomplete",slot:"GroupLabel"})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),HC=me("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ae.option}`]:{paddingLeft:24}}),zu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:d=vv||(vv=F.jsx(jC,{fontSize:"small"})),clearOnBlur:m=!n.freeSolo,clearOnEscape:h=!1,clearText:y="Clear",closeText:g="Close",componentsProps:f,defaultValue:b=n.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:p=!1,disabled:_=!1,disabledItemsFocusable:S=!1,disableListWrap:w=!1,disablePortal:E=!1,filterOptions:x,filterSelectedOptions:P=!1,forcePopupIcon:k="auto",freeSolo:j=!1,fullWidth:R=!1,getLimitTagsText:O=Ye=>`+${Ye}`,getOptionDisabled:D,getOptionKey:N,getOptionLabel:U,isOptionEqualToValue:W,groupBy:le,handleHomeEndKeys:ce=!n.freeSolo,id:ue,includeInputInList:z=!1,inputValue:C,limitTags:V=-1,ListboxComponent:M,ListboxProps:T,loading:$=!1,loadingText:q="Loading…",multiple:K=!1,noOptionsText:re="No options",onChange:ie,onClose:te,onHighlightChange:L,onInputChange:I,onOpen:G,open:X,openOnFocus:oe=!1,openText:ye="Open",options:ve,PaperComponent:fe,PopperComponent:Te,popupIcon:be=bv||(bv=F.jsx(Vg,{})),readOnly:Ee=!1,renderGroup:he,renderInput:$e,renderOption:Ie,renderTags:ot,renderValue:Qe,selectOnFocus:_t=!n.freeSolo,size:et="medium",slots:Tt={},slotProps:Je={},value:Oe,...He}=n,{getRootProps:ft,getInputProps:ct,getInputLabelProps:Ar,getPopupIndicatorProps:Et,getClearProps:Ot,getItemProps:we,getListboxProps:Me,getOptionProps:pt,value:xt,dirty:Lt,expanded:Mr,id:Y,popupOpen:B,focused:Q,focusedItem:J,anchorEl:Se,setAnchorEl:Re,inputValue:je,groupedOptions:se}=zO({...n,componentName:"Autocomplete"}),H=!v&&!_&&Lt&&!Ee,Z=(!j||k===!0)&&k!==!1,{onMouseDown:de}=ct(),{ref:_e,...Ne}=Me(),gt=U||(Ye=>Ye.label??Ye),Ke={...n,disablePortal:E,expanded:Mr,focused:Q,fullWidth:R,getOptionLabel:gt,hasClearIcon:H,hasPopupIcon:Z,inputFocused:J===-1,popupOpen:B,size:et},ut=AC(Ke),jt={slots:{paper:fe,popper:Te,...Tt},slotProps:{chip:c,listbox:T,...f,...Je}},[hn,ir]=dt("listbox",{elementType:UC,externalForwardedProps:jt,ownerState:Ke,className:ut.listbox,additionalProps:Ne,ref:_e}),[fr,ae]=dt("paper",{elementType:lo,externalForwardedProps:jt,ownerState:Ke,className:ut.paper}),[ee,ge]=dt("popper",{elementType:Au,externalForwardedProps:jt,ownerState:Ke,className:ut.popper,additionalProps:{disablePortal:E,style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:B}});let Ce;const Pe=Ye=>({className:ut.tag,disabled:_,...we(Ye)});if(K?xt.length>0&&(ot?Ce=ot(xt,Pe,Ke):Qe?Ce=Qe(xt,Pe,Ke):Ce=xt.map((Ye,Gr)=>{const{key:Yr,...xo}=Pe({index:Gr});return F.jsx(Fu,{label:gt(Ye),size:et,...xo,...jt.slotProps.chip},Yr)})):Qe&&xt!=null&&(Ce=Qe(xt,Pe,Ke)),V>-1&&Array.isArray(Ce)){const Ye=Ce.length-V;!Q&&Ye>0&&(Ce=Ce.splice(0,V),Ce.push(F.jsx("span",{className:ut.tag,children:O(Ye)},Ce.length)))}const Ue=he||(Ye=>F.jsxs("li",{children:[F.jsx(WC,{className:ut.groupLabel,ownerState:Ke,component:"div",children:Ye.group}),F.jsx(HC,{className:ut.groupUl,ownerState:Ke,children:Ye.children})]},Ye.key)),At=Ie||((Ye,Gr)=>{const{key:Yr,...xo}=Ye;return F.jsx("li",{...xo,children:gt(Gr)},Yr)}),Na=(Ye,Gr)=>{const Yr=pt({option:Ye,index:Gr});return At({...Yr,className:ut.option},Ye,{selected:Yr["aria-selected"],index:Gr,inputValue:je},Ke)},Aa=jt.slotProps.clearIndicator,Gv=jt.slotProps.popupIndicator;return F.jsxs(A.Fragment,{children:[F.jsx(MC,{ref:r,className:xe(ut.root,u),ownerState:Ke,...ft(He),children:$e({id:Y,disabled:_,fullWidth:!0,size:et==="small"?"small":void 0,InputLabelProps:Ar(),InputProps:{ref:Re,className:ut.inputRoot,startAdornment:Ce,onMouseDown:Ye=>{Ye.target===Ye.currentTarget&&de(Ye)},...(H||Z)&&{endAdornment:F.jsxs(DC,{className:ut.endAdornment,ownerState:Ke,children:[H?F.jsx(qC,{...Ot(),"aria-label":y,title:y,ownerState:Ke,...Aa,className:xe(ut.clearIndicator,Aa?.className),children:d}):null,Z?F.jsx(LC,{...Et(),disabled:_,"aria-label":B?g:ye,title:B?g:ye,ownerState:Ke,...Gv,className:xe(ut.popupIndicator,Gv?.className),children:be}):null]})}},inputProps:{className:ut.input,disabled:_,readOnly:Ee,...ct()}})}),Se?F.jsx(FC,{as:ee,...ge,children:F.jsxs(zC,{as:fr,...ae,children:[$&&se.length===0?F.jsx(VC,{className:ut.loading,ownerState:Ke,children:q}):null,se.length===0&&!j&&!$?F.jsx(BC,{className:ut.noOptions,ownerState:Ke,role:"presentation",onMouseDown:Ye=>{Ye.preventDefault()},children:re}):null,se.length>0?F.jsx(hn,{as:M,...ir,children:se.map((Ye,Gr)=>le?Ue({key:Ye.key,group:Ye.group,children:Ye.options.map((Yr,xo)=>Na(Yr,Ye.index+xo))}):Na(Ye,Gr))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(zu.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:cr(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
171
+ `)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:hu,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,renderValue:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:cr(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
172
+ `)):null)});const KC=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,placeholder:m,readonly:h,titleMap:y}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const g=y||[],f=(p,_)=>{const S=_&&typeof _=="object"?_.value:_;c(null,S)},b=p=>i(typeof p=="object"&&p!==null?p.name||p.value||"":p||""),v=g.find(p=>typeof p=="object"&&p!==null?p.value===a:p===a)||null;return F.jsx("div",{className:r.htmlClass,children:F.jsx(zu,{options:g,getOptionLabel:b,value:v,onChange:f,disabled:h,fullWidth:!0,renderInput:p=>F.jsx(va,{...p,label:d&&i(d),placeholder:m&&i(m),helperText:(s||r.description)&&i(s||r.description),error:!l,required:r.required,style:r.style||{width:"100%"},...r.otherProps}),...r.otherProps})})},_v=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wv=Le("MuiListItemIcon",["root","alignItemsFlexStart"]);function GC(e){return Fe("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const YC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},JC=xE(),XC=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${pe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Be(s,GC,l)},ZC=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ze(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${pe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Sv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pa=A.forwardRef(function(t,r){const{color:n,...i}=We({props:t,name:"MuiTypography"}),a=!YC[n],l=JC({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=Sv,...f}=l,b={...l,align:s,color:n,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:y,variantMapping:g},v=u||(h?"p":g[y]||Sv[y])||"span",p=XC(b);return F.jsx(ZC,{as:v,ref:r,className:xe(p.root,c),...f,ownerState:b,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...f.style}})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const Ev=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function QC(e){return Fe("MuiMenuItem",e)}const _o=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eT=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},tT=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Be({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},QC,l);return{...l,...c}},rT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eT})(ze(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_o.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_o.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${_o.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_v.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_v.inset}`]:{marginLeft:52},[`& .${Ev.root}`]:{marginTop:0,marginBottom:0},[`& .${Ev.inset}`]:{paddingLeft:36},[`& .${wv.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${wv.root} svg`]:{fontSize:"1.25rem"}}}]}))),$a=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...y}=n,g=A.useContext(fa),f=A.useMemo(()=>({dense:l||g.dense||!1,disableGutters:c}),[g.dense,l,c]),b=A.useRef(null);yr(()=>{i&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const v={...n,dense:f.dense,divider:s,disableGutters:c},p=tT(n),_=St(b,r);let S;return n.disabled||(S=m!==void 0?m:-1),F.jsx(fa.Provider,{value:f,children:F.jsx(rT,{ref:_,role:d,tabIndex:S,component:a,focusVisibleClassName:xe(p.focusVisible,u),className:xe(p.root,h),...y,ownerState:v,classes:p})})});process.env.NODE_ENV!=="production"&&($a.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function nT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i},form:{key:a,schema:{isObject:l,enum:s,findFn:c,displayFn:u,noLocalization:d}}}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{n(a,t,r,m)},[]);const f=p=>{if(l){const _=p.target.value,S=s.find(w=>c?c(w,_):w===_);g(S)}else g(p)},b=p=>u?u(p):d?p.name:i(p.name);let v=[];return l?v=r.schema.enum.map((p,_)=>F.jsx($a,{value:p,children:b(p)},_)):v=r.titleMap.map((p,_)=>F.jsx($a,{value:p.value,children:b(p)},_)),F.jsxs(Tn,{fullWidth:!0,error:!h,...r.otherProps,children:[F.jsx(ua,{required:r.required,...r.labelProps,children:r.title&&i(r.title)}),F.jsx(fo,{value:m||(r&&r.selectProps&&r.selectProps.multiple?[]:""),placeholder:r.placeholder&&i(r.placeholder),disabled:r.readonly,onChange:f,...r.selectProps,children:v}),F.jsx(eo,{...r.helperTextProps,children:(y||r.description)&&i(y||r.description)})]})}const wo="MultiSelect",Sr={root:`${wo}-root`,chips:`${wo}-chips`,chip:`${wo}-chip`,menuItem:`${wo}-menuItem`,selectedMenuItem:`${wo}-selectedMenuItem`},oT=Ui("div")(({theme:e})=>({[`&.${Sr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Sr.chip}`]:{margin:e.spacing(.25)},[`& .${Sr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${Sr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),iT={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}},aT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=n||[],l=u=>{i(u.target.value)},s=lr.getTitleByValue.bind(null,t.titleMap),c=t.titleMap.map(u=>F.jsx($a,{value:u.value,className:a.indexOf(u.value)===-1?Sr.menuItem:Sr.selectedMenuItem,children:u.name&&r(u.name)},u.value));return F.jsx(oT,{className:Sr.root,children:F.jsxs(Tn,{fullWidth:!0,...t.otherProps,children:[F.jsx(ua,{required:t.required,children:t.title&&r(t.title)}),F.jsx(fo,{multiple:!0,value:a,placeholder:t.placeholder&&r(t.placeholder),disabled:t.readonly,onChange:l,MenuProps:iT,renderValue:u=>F.jsx("div",{className:Sr.chips,children:u.map(d=>F.jsx(Fu,{label:s(d)&&r(s(d)),className:Sr.chip},d))}),children:c})]})})};function sT(e){return Fe("MuiFormControlLabel",e)}const So=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lT=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${pe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Be(l,sT,t)},cT=me("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${So.label}`]:t.label},t.root,t[`labelPlacement${pe(r.labelPlacement)}`]]}})(ze(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${So.disabled}`]:{cursor:"default"},[`& .${So.label}`]:{[`&.${So.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),uT=me("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${So.error}`]:{color:(e.vars||e).palette.error.main}}))),Vu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:d,label:m,labelPlacement:h="end",name:y,onChange:g,required:f,slots:b={},slotProps:v={},value:p,..._}=n,S=vr(),w=c??s.props.disabled??S?.disabled,E=f??s.props.required,x={disabled:w,required:E};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof s.props[U]>"u"&&typeof n[U]<"u"&&(x[U]=n[U])});const P=Ur({props:n,muiFormControl:S,states:["error"]}),k={...n,disabled:w,labelPlacement:h,required:E,error:P.error},j=lT(k),R={slots:b,slotProps:{...l,...v}},[O,D]=dt("typography",{elementType:Pa,externalForwardedProps:R,ownerState:k});let N=m;return N!=null&&N.type!==Pa&&!u&&(N=F.jsx(O,{component:"span",...D,className:xe(j.label,D?.className),children:N})),F.jsxs(cT,{className:xe(j.root,a),ownerState:k,ref:r,..._,children:[A.cloneElement(s,x),E?F.jsxs("div",{children:[N,F.jsxs(uT,{ownerState:k,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):N]})});process.env.NODE_ENV!=="production"&&(Vu.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:zt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function dT(e){return Fe("MuiFormGroup",e)}Le("MuiFormGroup",["root","row","error"]);const fT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},dT,t)},pT=me("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Bu=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=vr(),c=Ur({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},d=fT(u);return F.jsx(pT,{className:xe(d.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Bu.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hT(e){return Fe("MuiRadioGroup",e)}Le("MuiRadioGroup",["root","row","error"]);const Uu=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Uu.displayName="RadioGroupContext");const mT=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},hT,t)},Ov=A.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...d}=t,m=A.useRef(null),h=mT(t),[y,g]=on({controlled:u,default:l,name:"RadioGroup"});A.useImperativeHandle(n,()=>({focus:()=>{let p=m.current.querySelector("input:not(:disabled):checked");p||(p=m.current.querySelector("input:not(:disabled)")),p&&p.focus()}}),[]);const f=St(r,m),b=bn(s),v=A.useMemo(()=>({name:b,onChange(p){g(p.target.value),c&&c(p,p.target.value)},value:y}),[b,c,g,y]);return F.jsx(Uu.Provider,{value:v,children:F.jsx(Bu,{role:"radiogroup",ref:f,className:xe(h.root,a),...d,children:i})})});process.env.NODE_ENV!=="production"&&(Ov.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function yT(){return A.useContext(Uu)}function gT(e){return Fe("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vT=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${pe(i)}`],input:["input"]};return Be(a,gT,t)},bT=me(fn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_T=me("input",{name:"MuiSwitchBase",shouldForwardProp:It})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wu=A.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:y,name:g,onBlur:f,onChange:b,onFocus:v,readOnly:p,required:_=!1,tabIndex:S,type:w,value:E,slots:x={},slotProps:P={},...k}=t,[j,R]=on({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=vr(),D=$=>{v&&v($),O&&O.onFocus&&O.onFocus($)},N=$=>{f&&f($),O&&O.onBlur&&O.onBlur($)},U=$=>{if($.nativeEvent.defaultPrevented)return;const q=$.target.checked;R(q),b&&b($,q)};let W=s;O&&typeof W>"u"&&(W=O.disabled);const le=w==="checkbox"||w==="radio",ce={...t,checked:j,disabled:W,disableFocusRipple:c,edge:u},ue=vT(ce),z={slots:x,slotProps:{input:h,...P}},[C,V]=dt("root",{ref:r,elementType:bT,className:ue.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...k},getSlotProps:$=>({...$,onFocus:q=>{$.onFocus?.(q),D(q)},onBlur:q=>{$.onBlur?.(q),N(q)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[M,T]=dt("input",{ref:y,elementType:_T,className:ue.input,externalForwardedProps:z,getSlotProps:$=>({...$,onChange:q=>{$.onChange?.(q),U(q)}}),ownerState:ce,additionalProps:{autoFocus:n,checked:i,defaultChecked:l,disabled:W,id:le?m:void 0,name:g,readOnly:p,required:_,tabIndex:S,type:w,...w==="checkbox"&&E===void 0?{}:{value:E}}});return F.jsxs(C,{...V,children:[F.jsx(M,{...T}),j?a:d]})});process.env.NODE_ENV!=="production"&&(Wu.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:zt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const wT=Ct(F.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"),ST=Ct(F.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"),ET=me("span",{name:"MuiRadioButtonIcon",shouldForwardProp:It})({position:"relative",display:"flex"}),OT=me(wT,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),xT=me(ST,{name:"MuiRadioButtonIcon"})(ze(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Hu(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return F.jsxs(ET,{className:r.root,ownerState:i,children:[F.jsx(OT,{fontSize:n,className:r.background,ownerState:i}),F.jsx(xT,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Hu.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function CT(e){return Fe("MuiRadio",e)}const xv=Le("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),TT=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${pe(r)}`,n!=="medium"&&`size${pe(n)}`]};return{...t,...Be(i,CT,t)}},PT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${pe(r.size)}`],t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${xv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${xv.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function $T(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RT=F.jsx(Hu,{checked:!0}),kT=F.jsx(Hu,{}),Cv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=RT,color:l="primary",icon:s=kT,name:c,onChange:u,size:d="medium",className:m,disabled:h,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:b,...v}=n,p=vr();let _=h;p&&typeof _>"u"&&(_=p.disabled),_??=!1;const S={...n,disabled:_,disableRipple:y,color:l,size:d},w=TT(S),E=yT();let x=i;const P=cu(u,E&&E.onChange);let k=c;E&&(typeof x>"u"&&(x=$T(E.value,n.value)),typeof k>"u"&&(k=E.name));const j=f.input??b,[R,O]=dt("root",{ref:r,elementType:PT,className:xe(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...v},getSlotProps:D=>({...D,onChange:(N,...U)=>{D.onChange?.(N,...U),P(N,...U)}}),ownerState:S,additionalProps:{type:"radio",icon:A.cloneElement(s,{fontSize:s.props.fontSize??d}),checkedIcon:A.cloneElement(a,{fontSize:a.props.fontSize??d}),disabled:_,name:k,checked:x,slots:g,slotProps:{input:typeof j=="function"?j(S):j}}});return F.jsx(R,{...O,classes:w})});process.env.NODE_ENV!=="production"&&(Cv.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:zt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Tv="Radios",Ra={formControl:`${Tv}-formControl`,group:`${Tv}-group`},IT=Ui(Tn)(({theme:e})=>({[`&.${Ra.formControl}`]:{marginTop:e.spacing(1)},[`& .${Ra.group}`]:{margin:e.spacing(1,0)}})),jT=e=>{const{form:t,localization:{getLocalizedString:r}}=e,{value:n,onChangeValidate:i}=qt(e),a=l=>l.titleMap.map((s,c)=>F.jsx(Vu,{control:F.jsx(Cv,{}),label:s.name&&r(s.name),value:s.value,disabled:l.readonly},c));return F.jsxs(IT,{component:"fieldset",className:Ra.formControl,...t.otherProps,children:[F.jsx(Hr,{component:"legend",required:t.required,children:t.title&&r(t.title)}),F.jsx(Ov,{value:n,name:t.title,onChange:i,className:Ra.group,children:a(t)})]})},NT=e=>{const{localization:{getLocalizedDate:t},form:r,type:n}=e,{value:i,valid:a,error:l,onChangeValidate:s}=qt(e);return F.jsx(cn,{...e,form:{...r,type:n},value:t(i),valid:a,error:l,onChangeValidate:s,otherProps:{InputLabelProps:{shrink:!0}},...r.otherProps})},AT=e=>F.jsx(NT,{type:"date",...e}),MT=e=>{const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e);ke.useEffect(()=>{n(r.key,t,r,a)},[]);const u=m=>{if(!m)return"";try{const h=new Date(m);return isNaN(h.getTime())?m||"":h.toISOString().slice(0,16)}catch{return m||""}},d=m=>{const h=m.target.value;if(h)try{const y=new Date(h).toISOString();c(null,y)}catch{c(m)}else c(m)};return F.jsx(cn,{...e,value:u(a),valid:l,error:s,onChangeValidate:d,form:{...r,title:r.title&&i(r.title),placeholder:r.placeholder&&i(r.placeholder),description:r.description&&i(r.description),type:"datetime-local"},otherProps:{InputLabelProps:{shrink:!0},...r.otherProps}})},DT=Ct(F.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"),qT=Ct(F.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"),LT=Ct(F.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 FT(e){return Fe("MuiCheckbox",e)}const Ku=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zT=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${pe(n)}`,`size${pe(i)}`]},l=Be(a,FT,t);return{...t,...l}},VT=me(Wu,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${pe(r.size)}`],r.color!=="default"&&t[`color${pe(r.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${Ku.checked}, &.${Ku.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ku.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),BT=F.jsx(qT,{}),UT=F.jsx(DT,{}),WT=F.jsx(LT,{}),Pv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiCheckbox"}),{checkedIcon:i=BT,color:a="primary",icon:l=UT,indeterminate:s=!1,indeterminateIcon:c=WT,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:y={},slotProps:g={},...f}=n,b=s?c:l,v=s?c:i,p={...n,disableRipple:m,color:a,indeterminate:s,size:d},_=zT(p),S=g.input??u,[w,E]=dt("root",{ref:r,elementType:VT,className:xe(_.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:p,additionalProps:{type:"checkbox",icon:A.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:A.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:m,slots:y,slotProps:{input:Gy(typeof S=="function"?S(p):S,{"data-indeterminate":s})}}});return F.jsx(w,{...E,classes:_})});process.env.NODE_ENV!=="production"&&(Pv.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function HT(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,onChangeValidate:l}=qt(e),{key:s}=r;return n(s,t,r,a),F.jsx(Bu,{row:!0,children:F.jsx(Vu,{className:r.className,label:r.title&&i(r.title),control:F.jsx(Pv,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:a||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const KT=e=>{const{form:{description:t,variant:r,align:n,color:i,noWrap:a,paragraph:l,otherProps:s},localization:{getLocalizedString:c}}=e;return F.jsx(Pa,{variant:r,align:n,color:i,noWrap:a,component:l?"p":"div",gutterBottom:!!l,...s,children:c(t)})};function GT(e){return Fe("MuiButton",e)}const pn=Le("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),$v=A.createContext({});process.env.NODE_ENV!=="production"&&($v.displayName="ButtonGroupContext");const Rv=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Rv.displayName="ButtonGroupButtonContext");const YT=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:l,loadingPosition:s,classes:c}=e,u={root:["root",l&&"loading",a,`${a}${pe(t)}`,`size${pe(i)}`,`${a}Size${pe(i)}`,`color${pe(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${pe(s)}`],startIcon:["icon","startIcon",`iconSize${pe(i)}`],endIcon:["icon","endIcon",`iconSize${pe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Be(u,GT,c);return{...c,...d}},kv=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],JT=me(fn,{shouldForwardProp:e=>It(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${pe(r.color)}`],t[`size${pe(r.size)}`],t[`${r.variant}Size${pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${pn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${pn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${pn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($t()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${pn.loading}`]:{color:"transparent"}}}]}})),XT=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${pe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...kv]})),ZT=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${pe(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...kv]})),QT=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Iv=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),jv=A.forwardRef(function(t,r){const n=A.useContext($v),i=A.useContext(Rv),a=Wi(n,t),l=We({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:b=!1,id:v,loading:p=null,loadingIndicator:_,loadingPosition:S="center",size:w="medium",startIcon:E,type:x,variant:P="text",...k}=l,j=bn(v),R=_??F.jsx(Lu,{"aria-labelledby":j,color:"inherit",size:16}),O={...l,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:y,fullWidth:b,loading:p,loadingIndicator:R,loadingPosition:S,size:w,type:x,variant:P},D=YT(O),N=(E||p&&S==="start")&&F.jsx(XT,{className:D.startIcon,ownerState:O,children:E||F.jsx(Iv,{className:D.loadingIconPlaceholder,ownerState:O})}),U=(g||p&&S==="end")&&F.jsx(ZT,{className:D.endIcon,ownerState:O,children:g||F.jsx(Iv,{className:D.loadingIconPlaceholder,ownerState:O})}),W=i||"",le=typeof p=="boolean"?F.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:p&&F.jsx(QT,{className:D.loadingIndicator,ownerState:O,children:R})}):null;return F.jsxs(JT,{ownerState:O,className:xe(n.className,D.root,d,W),component:u,disabled:m||p,focusRipple:!y,focusVisibleClassName:xe(D.focusVisible,f),ref:r,type:x,id:p?j:v,...k,classes:D,children:[N,S!=="end"&&le,s,S==="end"&&le,U]})});process.env.NODE_ENV!=="production"&&(jv.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function eP(e){return Fe("MuiCard",e)}Le("MuiCard",["root"]);const tP=e=>{const{classes:t}=e;return Be({root:["root"]},eP,t)},rP=me(lo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Nv=A.forwardRef(function(t,r){const n=We({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=tP(s);return F.jsx(rP,{className:xe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(Nv.propTypes={children:o.node,classes:o.object,className:o.string,raised:cr(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const nP=Ct(F.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"),Eo="ArrayComponent",Er={arrayItem:`${Eo}-arrayItem`,deleteItemButton:`${Eo}-deleteItemButton`,addButton:`${Eo}-addButton`,elementsContainer:`${Eo}-elementsContainer`,title:`${Eo}-title`},oP=Ui("div")(({theme:e})=>({[`& .${Er.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${Er.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${Er.addButton}`]:{marginLeft:e.spacing()},[`& .${Er.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${Er.title}`]:{margin:"auto 0"}}));let Av=1;const ka=Symbol("_SCHEMAFORM_ITEM_ID"),Mv=e=>{let t=null;return e&&typeof e=="object"&&Array.isArray(e)?t=[...e]:e&&typeof e=="object"&&!e[ka]&&(t={...e}),t?(Object.defineProperty(t,ka,{enumerable:!1,writable:!0}),Av+=1,t[ka]=Av,t):e},iP=e=>t=>{t.key&&(t.key[t.key.indexOf("")]=e)},aP=(e,t)=>{const r=Ao(e);return r.arrayIndex=t,lr.traverseForm(r,iP(t)),r},Dv=e=>{const{form:t,builder:r,model:n,mapper:i,onChange:a,setDefault:l,options:s,localization:{getLocalizedString:c}}=e,{value:u,onChangeValidate:d}=qt(e),m=(u||[]).map(Mv);ke.useEffect(()=>{l(t.key,n,t,u)},[]),ke.useEffect(()=>{t.startEmpty!==!0&&m.length===0&&h()},[]);const h=()=>{let b;if(t&&t.schema&&t.schema.items){const{items:p}=t.schema;p.type&&p.type.indexOf("object")!==-1?(b={},(!s||s.setSchemaDefaults!==!1)&&(b=typeof p.default<"u"?p.default:b,b&&lr.traverseSchema(p,(_,S)=>{typeof _.default<"u"&&lr.selectOrSet(S,b,_.default)}))):(p.type&&p.type.indexOf("array")!==-1&&(b=[]),(!s||s.setSchemaDefaults!==!1)&&(b=p.default||b))}const v=[...m];Mv(b),v.push(b),d(null,v)},y=b=>()=>{const v=[...m];v.splice(b,1),d(null,v)},g=()=>{const b=t.AddButton||(v=>F.jsx(jv,{className:Er.addButton,variant:"contained",color:"primary",...v}));return F.jsx(b,{onClick:h,children:t.add||"Add"})},f=[];for(let b=0;b<m.length;b+=1){const v=m[b],p=t.items.map((_,S)=>{const w=aP(_,b);return r(w,n,S,i,a,r,{arrayIndex:b})});f.push(F.jsxs(Nv,{className:Er.arrayItem,children:[F.jsx("div",{className:Er.elementsContainer,children:p}),F.jsx(Ta,{onClick:y(b),className:Er.deleteItemButton,size:"large",children:F.jsx(nP,{fontSize:"small"})})]},v&&v[ka]||b))}return F.jsxs(oP,{children:[F.jsxs("div",{style:{display:"flex"},children:[F.jsx(Hr,{required:t.required,className:Er.title,children:t.title&&c(t.title)}),g()]}),F.jsx("div",{children:f})]})};var Gu={exports:{}};var qv;function sP(){return qv||(qv=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=i(l,s));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Gu)),Gu.exports}var lP=sP();const cP=Ut(lP),Lv="FieldSet",Fv={root:`${Lv}-root`,fields:`${Lv}-fields`},uP=Ui(Tn)(({theme:e})=>({[`&.${Fv.root}`]:{marginTop:e.spacing(1)},[`& .${Fv.fields}`]:{marginLeft:e.spacing(1)}})),zv=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,d)=>r(u,n,d,t,i,r)),c=cP(a.root,e.htmlClass);return F.jsxs(uP,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[F.jsx(Hr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),F.jsx("div",{className:a.fields,children:s})]})},dP={padding:"20px"},fP=e=>{const{form:{title:t,yesLabel:r,noLabel:n,clearButtonLabel:i,required:a,key:l},model:s,setDefault:c,localization:{getLocalizedString:u}}=e,{value:d,onChangeValidate:m}=qt(e);ke.useEffect(()=>{c(l,s,e.form,d)},[]);const h=d==="yes",y=d==="no";return F.jsx(Jr.Card,{children:F.jsxs("div",{style:dP,children:[F.jsx(Hr,{required:a,children:t&&u(t)}),F.jsx("br",{}),F.jsxs(Jr.FormGroup,{children:[F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"yes")},checked:h}),label:r?u(r):"Yes"}),F.jsx(Jr.FormControlLabel,{control:F.jsx(Jr.Checkbox,{onClick:g=>{m(g,"no")},checked:y}),label:n?u(n):"No"})]}),d==="yes"||d==="no"?F.jsx(Jr.Button,{id:"temp",variant:"text",color:"primary",onClick:g=>m(g,"unanswered"),children:i?u(i):"clear response"}):""]})})};var Yu={exports:{}};var Vv;function pP(){return Vv||(Vv=1,(function(e,t){(function(r,n){e.exports=n(ke)})(self,(r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var d={}.hasOwnProperty;function m(){for(var h=[],y=0;y<arguments.length;y++){var g=arguments[y];if(g){var f=typeof g;if(f==="string"||f==="number")h.push(g);else if(Array.isArray(g)){if(g.length){var b=m.apply(null,g);b&&h.push(b)}}else if(f==="object")if(g.toString===Object.prototype.toString)for(var v in g)d.call(g,v)&&g[v]&&h.push(v);else h.push(g.toString())}}return h.join(" ")}s.exports?(m.default=m,s.exports=m):(u=(function(){return m}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var d=u(852)(u(5639),"DataView");s.exports=d},1989:(s,c,u)=>{var d=u(1789),m=u(401),h=u(7667),y=u(1327),g=u(1866);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},8407:(s,c,u)=>{var d=u(7040),m=u(4125),h=u(2117),y=u(7518),g=u(4705);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},7071:(s,c,u)=>{var d=u(852)(u(5639),"Map");s.exports=d},3369:(s,c,u)=>{var d=u(4785),m=u(1285),h=u(6e3),y=u(9916),g=u(5265);function f(b){var v=-1,p=b==null?0:b.length;for(this.clear();++v<p;){var _=b[v];this.set(_[0],_[1])}}f.prototype.clear=d,f.prototype.delete=m,f.prototype.get=h,f.prototype.has=y,f.prototype.set=g,s.exports=f},3818:(s,c,u)=>{var d=u(852)(u(5639),"Promise");s.exports=d},8525:(s,c,u)=>{var d=u(852)(u(5639),"Set");s.exports=d},8668:(s,c,u)=>{var d=u(3369),m=u(619),h=u(2385);function y(g){var f=-1,b=g==null?0:g.length;for(this.__data__=new d;++f<b;)this.add(g[f])}y.prototype.add=y.prototype.push=m,y.prototype.has=h,s.exports=y},6384:(s,c,u)=>{var d=u(8407),m=u(7465),h=u(3779),y=u(7599),g=u(4758),f=u(4309);function b(v){var p=this.__data__=new d(v);this.size=p.size}b.prototype.clear=m,b.prototype.delete=h,b.prototype.get=y,b.prototype.has=g,b.prototype.set=f,s.exports=b},2705:(s,c,u)=>{var d=u(5639).Symbol;s.exports=d},1149:(s,c,u)=>{var d=u(5639).Uint8Array;s.exports=d},577:(s,c,u)=>{var d=u(852)(u(5639),"WeakMap");s.exports=d},4963:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length,h=0,y=[];++d<m;){var g=c[d];u(g,d,c)&&(y[h++]=g)}return y}},4636:(s,c,u)=>{var d=u(2545),m=u(5694),h=u(1469),y=u(4144),g=u(5776),f=u(6719),b=Object.prototype.hasOwnProperty;s.exports=function(v,p){var _=h(v),S=!_&&m(v),w=!_&&!S&&y(v),E=!_&&!S&&!w&&f(v),x=_||S||w||E,P=x?d(v.length,String):[],k=P.length;for(var j in v)!p&&!b.call(v,j)||x&&(j=="length"||w&&(j=="offset"||j=="parent")||E&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||g(j,k))||P.push(j);return P}},2488:s=>{s.exports=function(c,u){for(var d=-1,m=u.length,h=c.length;++d<m;)c[h+d]=u[d];return c}},2908:s=>{s.exports=function(c,u){for(var d=-1,m=c==null?0:c.length;++d<m;)if(u(c[d],d,c))return!0;return!1}},8470:(s,c,u)=>{var d=u(7813);s.exports=function(m,h){for(var y=m.length;y--;)if(d(m[y][0],h))return y;return-1}},8866:(s,c,u)=>{var d=u(2488),m=u(1469);s.exports=function(h,y,g){var f=y(h);return m(h)?f:d(f,g(h))}},4239:(s,c,u)=>{var d=u(2705),m=u(9607),h=u(2333),y=d?d.toStringTag:void 0;s.exports=function(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":y&&y in Object(g)?m(g):h(g)}},9454:(s,c,u)=>{var d=u(4239),m=u(7005);s.exports=function(h){return m(h)&&d(h)=="[object Arguments]"}},939:(s,c,u)=>{var d=u(2492),m=u(7005);s.exports=function h(y,g,f,b,v){return y===g||(y==null||g==null||!m(y)&&!m(g)?y!=y&&g!=g:d(y,g,f,b,h,v))}},2492:(s,c,u)=>{var d=u(6384),m=u(7114),h=u(8351),y=u(6096),g=u(4160),f=u(1469),b=u(4144),v=u(6719),p="[object Arguments]",_="[object Array]",S="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(E,x,P,k,j,R){var O=f(E),D=f(x),N=O?_:g(E),U=D?_:g(x),W=(N=N==p?S:N)==S,le=(U=U==p?S:U)==S,ce=N==U;if(ce&&b(E)){if(!b(x))return!1;O=!0,W=!1}if(ce&&!W)return R||(R=new d),O||v(E)?m(E,x,P,k,j,R):h(E,x,N,P,k,j,R);if(!(1&P)){var ue=W&&w.call(E,"__wrapped__"),z=le&&w.call(x,"__wrapped__");if(ue||z){var C=ue?E.value():E,V=z?x.value():x;return R||(R=new d),j(C,V,P,k,R)}}return!!ce&&(R||(R=new d),y(E,x,P,k,j,R))}},8458:(s,c,u)=>{var d=u(3560),m=u(5346),h=u(3218),y=u(346),g=/^\[object .+?Constructor\]$/,f=Function.prototype,b=Object.prototype,v=f.toString,p=b.hasOwnProperty,_=RegExp("^"+v.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(S){return!(!h(S)||m(S))&&(d(S)?_:g).test(y(S))}},8749:(s,c,u)=>{var d=u(4239),m=u(1780),h=u(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,s.exports=function(g){return h(g)&&m(g.length)&&!!y[d(g)]}},280:(s,c,u)=>{var d=u(5726),m=u(6916),h=Object.prototype.hasOwnProperty;s.exports=function(y){if(!d(y))return m(y);var g=[];for(var f in Object(y))h.call(y,f)&&f!="constructor"&&g.push(f);return g}},2545:s=>{s.exports=function(c,u){for(var d=-1,m=Array(c);++d<c;)m[d]=u(d);return m}},1717:s=>{s.exports=function(c){return function(u){return c(u)}}},4757:s=>{s.exports=function(c,u){return c.has(u)}},4429:(s,c,u)=>{var d=u(5639)["__core-js_shared__"];s.exports=d},7114:(s,c,u)=>{var d=u(8668),m=u(2908),h=u(4757);s.exports=function(y,g,f,b,v,p){var _=1&f,S=y.length,w=g.length;if(S!=w&&!(_&&w>S))return!1;var E=p.get(y),x=p.get(g);if(E&&x)return E==g&&x==y;var P=-1,k=!0,j=2&f?new d:void 0;for(p.set(y,g),p.set(g,y);++P<S;){var R=y[P],O=g[P];if(b)var D=_?b(O,R,P,g,y,p):b(R,O,P,y,g,p);if(D!==void 0){if(D)continue;k=!1;break}if(j){if(!m(g,(function(N,U){if(!h(j,U)&&(R===N||v(R,N,f,b,p)))return j.push(U)}))){k=!1;break}}else if(R!==O&&!v(R,O,f,b,p)){k=!1;break}}return p.delete(y),p.delete(g),k}},8351:(s,c,u)=>{var d=u(2705),m=u(1149),h=u(7813),y=u(7114),g=u(8776),f=u(1814),b=d?d.prototype:void 0,v=b?b.valueOf:void 0;s.exports=function(p,_,S,w,E,x,P){switch(S){case"[object DataView]":if(p.byteLength!=_.byteLength||p.byteOffset!=_.byteOffset)return!1;p=p.buffer,_=_.buffer;case"[object ArrayBuffer]":return!(p.byteLength!=_.byteLength||!x(new m(p),new m(_)));case"[object Boolean]":case"[object Date]":case"[object Number]":return h(+p,+_);case"[object Error]":return p.name==_.name&&p.message==_.message;case"[object RegExp]":case"[object String]":return p==_+"";case"[object Map]":var k=g;case"[object Set]":var j=1&w;if(k||(k=f),p.size!=_.size&&!j)return!1;var R=P.get(p);if(R)return R==_;w|=2,P.set(p,_);var O=y(k(p),k(_),w,E,x,P);return P.delete(p),O;case"[object Symbol]":if(v)return v.call(p)==v.call(_)}return!1}},6096:(s,c,u)=>{var d=u(8234),m=Object.prototype.hasOwnProperty;s.exports=function(h,y,g,f,b,v){var p=1&g,_=d(h),S=_.length;if(S!=d(y).length&&!p)return!1;for(var w=S;w--;){var E=_[w];if(!(p?E in y:m.call(y,E)))return!1}var x=v.get(h),P=v.get(y);if(x&&P)return x==y&&P==h;var k=!0;v.set(h,y),v.set(y,h);for(var j=p;++w<S;){var R=h[E=_[w]],O=y[E];if(f)var D=p?f(O,R,E,y,h,v):f(R,O,E,h,y,v);if(!(D===void 0?R===O||b(R,O,g,f,v):D)){k=!1;break}j||(j=E=="constructor")}if(k&&!j){var N=h.constructor,U=y.constructor;N==U||!("constructor"in h)||!("constructor"in y)||typeof N=="function"&&N instanceof N&&typeof U=="function"&&U instanceof U||(k=!1)}return v.delete(h),v.delete(y),k}},1957:(s,c,u)=>{var d=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=d},8234:(s,c,u)=>{var d=u(8866),m=u(9551),h=u(3674);s.exports=function(y){return d(y,h,m)}},5050:(s,c,u)=>{var d=u(7019);s.exports=function(m,h){var y=m.__data__;return d(h)?y[typeof h=="string"?"string":"hash"]:y.map}},852:(s,c,u)=>{var d=u(8458),m=u(7801);s.exports=function(h,y){var g=m(h,y);return d(g)?g:void 0}},9607:(s,c,u)=>{var d=u(2705),m=Object.prototype,h=m.hasOwnProperty,y=m.toString,g=d?d.toStringTag:void 0;s.exports=function(f){var b=h.call(f,g),v=f[g];try{f[g]=void 0;var p=!0}catch{}var _=y.call(f);return p&&(b?f[g]=v:delete f[g]),_}},9551:(s,c,u)=>{var d=u(4963),m=u(479),h=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,g=y?function(f){return f==null?[]:(f=Object(f),d(y(f),(function(b){return h.call(f,b)})))}:m;s.exports=g},4160:(s,c,u)=>{var d=u(8552),m=u(7071),h=u(3818),y=u(8525),g=u(577),f=u(4239),b=u(346),v="[object Map]",p="[object Promise]",_="[object Set]",S="[object WeakMap]",w="[object DataView]",E=b(d),x=b(m),P=b(h),k=b(y),j=b(g),R=f;(d&&R(new d(new ArrayBuffer(1)))!=w||m&&R(new m)!=v||h&&R(h.resolve())!=p||y&&R(new y)!=_||g&&R(new g)!=S)&&(R=function(O){var D=f(O),N=D=="[object Object]"?O.constructor:void 0,U=N?b(N):"";if(U)switch(U){case E:return w;case x:return v;case P:return p;case k:return _;case j:return S}return D}),s.exports=R},7801:s=>{s.exports=function(c,u){return c?.[u]}},1789:(s,c,u)=>{var d=u(4536);s.exports=function(){this.__data__=d?d(null):{},this.size=0}},401:s=>{s.exports=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u}},7667:(s,c,u)=>{var d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;if(d){var g=y[h];return g==="__lodash_hash_undefined__"?void 0:g}return m.call(y,h)?y[h]:void 0}},1327:(s,c,u)=>{var d=u(4536),m=Object.prototype.hasOwnProperty;s.exports=function(h){var y=this.__data__;return d?y[h]!==void 0:m.call(y,h)}},1866:(s,c,u)=>{var d=u(4536);s.exports=function(m,h){var y=this.__data__;return this.size+=this.has(m)?0:1,y[m]=d&&h===void 0?"__lodash_hash_undefined__":h,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,d){var m=typeof u;return!!(d=d??9007199254740991)&&(m=="number"||m!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<d}},7019:s=>{s.exports=function(c){var u=typeof c;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?c!=="__proto__":c===null}},5346:(s,c,u)=>{var d,m=u(4429),h=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";s.exports=function(y){return!!h&&h in y}},5726:s=>{var c=Object.prototype;s.exports=function(u){var d=u&&u.constructor;return u===(typeof d=="function"&&d.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var d=u(8470),m=Array.prototype.splice;s.exports=function(h){var y=this.__data__,g=d(y,h);return!(g<0||(g==y.length-1?y.pop():m.call(y,g,1),--this.size,0))}},2117:(s,c,u)=>{var d=u(8470);s.exports=function(m){var h=this.__data__,y=d(h,m);return y<0?void 0:h[y][1]}},7518:(s,c,u)=>{var d=u(8470);s.exports=function(m){return d(this.__data__,m)>-1}},4705:(s,c,u)=>{var d=u(8470);s.exports=function(m,h){var y=this.__data__,g=d(y,m);return g<0?(++this.size,y.push([m,h])):y[g][1]=h,this}},4785:(s,c,u)=>{var d=u(1989),m=u(8407),h=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new d,map:new(h||m),string:new d}}},1285:(s,c,u)=>{var d=u(5050);s.exports=function(m){var h=d(this,m).delete(m);return this.size-=h?1:0,h}},6e3:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).get(m)}},9916:(s,c,u)=>{var d=u(5050);s.exports=function(m){return d(this,m).has(m)}},5265:(s,c,u)=>{var d=u(5050);s.exports=function(m,h){var y=d(this,m),g=y.size;return y.set(m,h),this.size+=y.size==g?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(m,h){d[++u]=[h,m]})),d}},4536:(s,c,u)=>{var d=u(852)(Object,"create");s.exports=d},6916:(s,c,u)=>{var d=u(5569)(Object.keys,Object);s.exports=d},1167:(s,c,u)=>{s=u.nmd(s);var d=u(1957),m=c&&!c.nodeType&&c,h=m&&s&&!s.nodeType&&s,y=h&&h.exports===m&&d.process,g=(function(){try{return h&&h.require&&h.require("util").types||y&&y.binding&&y.binding("util")}catch{}})();s.exports=g},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(d){return c(u(d))}}},5639:(s,c,u)=>{var d=u(1957),m=typeof self=="object"&&self&&self.Object===Object&&self,h=d||m||Function("return this")();s.exports=h},619:s=>{s.exports=function(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},2385:s=>{s.exports=function(c){return this.__data__.has(c)}},1814:s=>{s.exports=function(c){var u=-1,d=Array(c.size);return c.forEach((function(m){d[++u]=m})),d}},7465:(s,c,u)=>{var d=u(8407);s.exports=function(){this.__data__=new d,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,d=u.delete(c);return this.size=u.size,d}},7599:s=>{s.exports=function(c){return this.__data__.get(c)}},4758:s=>{s.exports=function(c){return this.__data__.has(c)}},4309:(s,c,u)=>{var d=u(8407),m=u(7071),h=u(3369);s.exports=function(y,g){var f=this.__data__;if(f instanceof d){var b=f.__data__;if(!m||b.length<199)return b.push([y,g]),this.size=++f.size,this;f=this.__data__=new h(b)}return f.set(y,g),this.size=f.size,this}},346:s=>{var c=Function.prototype.toString;s.exports=function(u){if(u!=null){try{return c.call(u)}catch{}try{return u+""}catch{}}return""}},7813:s=>{s.exports=function(c,u){return c===u||c!=c&&u!=u}},5694:(s,c,u)=>{var d=u(9454),m=u(7005),h=Object.prototype,y=h.hasOwnProperty,g=h.propertyIsEnumerable,f=d((function(){return arguments})())?d:function(b){return m(b)&&y.call(b,"callee")&&!g.call(b,"callee")};s.exports=f},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var d=u(3560),m=u(1780);s.exports=function(h){return h!=null&&m(h.length)&&!d(h)}},4144:(s,c,u)=>{s=u.nmd(s);var d=u(5639),m=u(5062),h=c&&!c.nodeType&&c,y=h&&s&&!s.nodeType&&s,g=y&&y.exports===h?d.Buffer:void 0,f=(g?g.isBuffer:void 0)||m;s.exports=f},8446:(s,c,u)=>{var d=u(939);s.exports=function(m,h){return d(m,h)}},3560:(s,c,u)=>{var d=u(4239),m=u(3218);s.exports=function(h){if(!m(h))return!1;var y=d(h);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:s=>{s.exports=function(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}},3218:s=>{s.exports=function(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}},7005:s=>{s.exports=function(c){return c!=null&&typeof c=="object"}},6719:(s,c,u)=>{var d=u(8749),m=u(1717),h=u(1167),y=h&&h.isTypedArray,g=y?m(y):d;s.exports=g},3674:(s,c,u)=>{var d=u(4636),m=u(280),h=u(8612);s.exports=function(y){return h(y)?d(y):m(y)}},8306:(s,c,u)=>{var d=u(3369);function m(h,y){if(typeof h!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var g=function(){var f=arguments,b=y?y.apply(this,f):f[0],v=g.cache;if(v.has(b))return v.get(b);var p=h.apply(this,f);return g.cache=v.set(b,p)||v,p};return g.cache=new(m.Cache||d),g}m.Cache=d,s.exports=m},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var d=u(414);function m(){}function h(){}h.resetWarningCache=m,s.exports=function(){function y(b,v,p,_,S,w){if(w!==d){var E=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 E.name="Invariant Violation",E}}function g(){return y}y.isRequired=y;var f={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:g,element:y,elementType:y,instanceOf:g,node:y,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:h,resetWarningCache:m};return f.PropTypes=f,f}},5697:(s,c,u)=>{s.exports=u(2703)()},414:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:s=>{s.exports=r}},i={};function a(s){var c=i[s];if(c!==void 0)return c.exports;var u=i[s]={id:s,loaded:!1,exports:{}};return n[s](u,u.exports,a),u.loaded=!0,u.exports}a.n=s=>{var c=s&&s.__esModule?()=>s.default:()=>s;return a.d(c,{a:c}),c},a.d=(s,c)=>{for(var u in c)a.o(c,u)&&!a.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:c[u]})},a.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),a.o=(s,c)=>Object.prototype.hasOwnProperty.call(s,c),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.nmd=s=>(s.paths=[],s.children||(s.children=[]),s);var l={};return(()=>{a.r(l),a.d(l,{default:()=>Mr,expandNodesToLevel:()=>Lt});var s=a(4184),c=a.n(s),u=a(8446),d=a.n(u),m=a(8306),h=a.n(m);let y=(Y=21)=>crypto.getRandomValues(new Uint8Array(Y)).reduce(((B,Q)=>B+((Q&=63)<36?Q.toString(36):Q<62?(Q-26).toString(36).toUpperCase():Q>62?"-":"_")),"");var g=a(5697),f=a.n(g),b=a(9787),v=a.n(b);function p(Y){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},p(Y)}var _=["children","title"];function S(){return S=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B];for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&(Y[J]=Q[J])}return Y},S.apply(this,arguments)}function w(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function E(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function x(Y,B){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},x(Y,B)}function P(Y,B){if(B&&(p(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q})(Y)}function k(Y){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},k(Y)}function j(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var R=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&x(se,H)})(je,Y);var B,Q,J,Se,Re=(J=je,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var se,H=k(J);if(Se){var Z=k(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return P(this,se)});function je(){return w(this,je),Re.apply(this,arguments)}return B=je,(Q=[{key:"render",value:function(){var se=this.props,H=se.children,Z=se.title,de=(function(_e,Ne){if(_e==null)return{};var yt,gt,Ke=(function(jt,hn){if(jt==null)return{};var ir,fr,ae={},ee=Object.keys(jt);for(fr=0;fr<ee.length;fr++)ir=ee[fr],hn.indexOf(ir)>=0||(ae[ir]=jt[ir]);return ae})(_e,Ne);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(_e);for(gt=0;gt<ut.length;gt++)yt=ut[gt],Ne.indexOf(yt)>=0||Object.prototype.propertyIsEnumerable.call(_e,yt)&&(Ke[yt]=_e[yt])}return Ke})(se,_);return v().createElement("button",S({"aria-label":Z,title:Z,type:"button"},de),H)}}])&&E(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);j(R,"propTypes",{children:f().node.isRequired,title:f().string}),j(R,"defaultProps",{title:null});const O=R,D={ALL:"all",PARENT:"parent",LEAF:"leaf"};function N(Y){this.message=Y,this.stack=Error().stack}N.prototype=Object.create(Error.prototype),N.prototype.name="CheckboxTreeError";const U=N;function W(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function le(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}function ce(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function ue(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}var z=D;const C=(function(){function Y(J){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce(this,Y),this.props=J,this.flatNodes=Se}var B,Q;return B=Y,Q=[{key:"setProps",value:function(J){this.props=J}},{key:"clone",value:function(){var J=this,Se={};return Object.keys(this.flatNodes).forEach((function(Re){var je=J.flatNodes[Re];Se[Re]=(function(se){for(var H=1;H<arguments.length;H++){var Z=arguments[H]!=null?arguments[H]:{};H%2?W(Object(Z),!0).forEach((function(de){le(se,de,Z[de])})):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(Z)):W(Object(Z)).forEach((function(de){Object.defineProperty(se,de,Object.getOwnPropertyDescriptor(Z,de))}))}return se})({},je)})),new Y(this.props,Se)}},{key:"getNode",value:function(J){return this.flatNodes[J]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(J){var Se=this,Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(J)&&J.length!==0){var se=this.props,H=se.disabled,Z=se.noCascade;J.forEach((function(de,_e){var Ne=Se.nodeHasChildren(de);if(Se.flatNodes[de.value]!==void 0)throw new U("Duplicate value '".concat(de.value,"' detected. All node values must be unique."));Se.flatNodes[de.value]={label:de.label,value:de.value,children:de.children,parent:Re,isChild:Re.value!==void 0,isParent:Ne,isLeaf:!Ne,showCheckbox:de.showCheckbox===void 0||de.showCheckbox,disabled:Se.getDisabledState(de,Re,H,Z),treeDepth:je,index:_e},Se.flattenNodes(de.children,de,je+1)}))}}},{key:"nodeHasChildren",value:function(J){return Array.isArray(J.children)}},{key:"getDisabledState",value:function(J,Se,Re,je){return!!Re||!(je||!Se.disabled)||!!J.disabled}},{key:"deserializeLists",value:function(J){var Se=this,Re=["checked","expanded"];Object.keys(this.flatNodes).forEach((function(je){Re.forEach((function(se){Se.flatNodes[je][se]=!1}))})),Re.forEach((function(je){J[je].forEach((function(se){Se.flatNodes[se]!==void 0&&(Se.flatNodes[se][je]=!0)}))}))}},{key:"serializeList",value:function(J){var Se=this,Re=[];return Object.keys(this.flatNodes).forEach((function(je){Se.flatNodes[je][J]&&Re.push(je)})),Re}},{key:"expandAllNodes",value:function(J){var Se=this;return Object.keys(this.flatNodes).forEach((function(Re){Se.flatNodes[Re].isParent&&(Se.flatNodes[Re].expanded=J)})),this}},{key:"toggleChecked",value:function(J,Se,Re,je){var se=this,H=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],Z=this.flatNodes[J.value],de=[z.PARENT,z.ALL].indexOf(Re)>-1,_e=[z.LEAF,z.ALL].indexOf(Re)>-1;if(Z.isLeaf||je){if(J.disabled)return this;this.toggleNode(J.value,"checked",Se)}else(de||Z.children.length===0)&&this.toggleNode(J.value,"checked",Se),_e&&Z.children.forEach((function(Ne){se.toggleChecked(Ne,Se,Re,je,!1)}));return H&&!je&&Z.isChild&&de&&this.toggleParentStatus(Z.parent,Re),this}},{key:"toggleParentStatus",value:function(J,Se){var Re=this.flatNodes[J.value];Re.isChild?(Se===z.ALL&&this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re)),this.toggleParentStatus(Re.parent,Se)):this.toggleNode(J.value,"checked",this.isEveryChildChecked(Re))}},{key:"isEveryChildChecked",value:function(J){var Se=this;return J.children.every((function(Re){return Se.getNode(Re.value).checked}))}},{key:"toggleNode",value:function(J,Se,Re){return this.flatNodes[J][Se]=Re,this}}],Q&&ue(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),Y})();function V(Y){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},V(Y)}function M(){return M=Object.assign?Object.assign.bind():function(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B];for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&(Y[J]=Q[J])}return Y},M.apply(this,arguments)}function T(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function $(Y,B){if(!(Y instanceof B))throw new TypeError("Cannot call a class as a function")}function q(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function K(Y,B){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},K(Y,B)}function re(Y,B){if(B&&(V(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q})(Y)}function ie(Y){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},ie(Y)}function te(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var L=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&K(se,H)})(je,Y);var B,Q,J,Se,Re=(J=je,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var se,H=ie(J);if(Se){var Z=ie(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return re(this,se)});function je(){return $(this,je),Re.apply(this,arguments)}return B=je,Q=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var se=this.props.indeterminate;this.checkbox.indeterminate=se}},{key:"render",value:function(){var se=this,H=(function(Z){for(var de=1;de<arguments.length;de++){var _e=arguments[de]!=null?arguments[de]:{};de%2?T(Object(_e),!0).forEach((function(Ne){te(Z,Ne,_e[Ne])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(_e)):T(Object(_e)).forEach((function(Ne){Object.defineProperty(Z,Ne,Object.getOwnPropertyDescriptor(_e,Ne))}))}return Z})({},this.props);return delete H.indeterminate,v().createElement("input",M({},H,{ref:function(Z){se.checkbox=Z},type:"checkbox"}))}}],Q&&q(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);te(L,"propTypes",{indeterminate:f().bool}),te(L,"defaultProps",{indeterminate:!1});const I=L,G=f().shape({check:f().node,uncheck:f().node,halfCheck:f().node,expandClose:f().node,expandOpen:f().node,expandAll:f().node,collapseAll:f().node,parentClose:f().node,parentOpen:f().node,leaf:f().node}),X=f().shape({collapseAll:f().string.isRequired,expandAll:f().string.isRequired,toggle:f().string.isRequired});function oe(Y){return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},oe(Y)}function ye(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ve(Y,B){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},ve(Y,B)}function fe(Y,B){if(B&&(oe(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Te(Y)}function Te(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function be(Y){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},be(Y)}function Ee(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var he=(function(Y){(function(se,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(H&&H.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),Object.defineProperty(se,"prototype",{writable:!1}),H&&ve(se,H)})(je,Y);var B,Q,J,Se,Re=(J=je,Se=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var se,H=be(J);if(Se){var Z=be(this).constructor;se=Reflect.construct(H,arguments,Z)}else se=H.apply(this,arguments);return fe(this,se)});function je(se){var H;return(function(Z,de){if(!(Z instanceof de))throw new TypeError("Cannot call a class as a function")})(this,je),(H=Re.call(this,se)).onCheck=H.onCheck.bind(Te(H)),H.onCheckboxKeyPress=H.onCheckboxKeyPress.bind(Te(H)),H.onCheckboxKeyUp=H.onCheckboxKeyUp.bind(Te(H)),H.onClick=H.onClick.bind(Te(H)),H.onExpand=H.onExpand.bind(Te(H)),H}return B=je,(Q=[{key:"onCheck",value:function(){var se=this.props,H=se.value;(0,se.onCheck)({value:H,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(se){se.which===32&&se.preventDefault()}},{key:"onCheckboxKeyUp",value:function(se){var H=se.keyCode;[13,32].includes(H)&&this.onCheck()}},{key:"onClick",value:function(){var se=this.props,H=se.expandOnClick,Z=se.isParent,de=se.value,_e=se.onClick;Z&&H&&this.onExpand(),_e({value:de,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var se=this.props,H=se.expanded,Z=se.value;(0,se.onExpand)({value:Z,expanded:!H})}},{key:"getCheckState",value:function(se){var H=se.toggle,Z=this.props,de=Z.checked,_e=Z.optimisticToggle;return!(de!==0||!H)||de===1&&!H||de===2&&_e}},{key:"renderCollapseButton",value:function(){var se=this.props,H=se.expandDisabled,Z=se.isLeaf,de=se.lang;return Z?v().createElement("span",{className:"rct-collapse"},v().createElement("span",{className:"rct-icon"})):v().createElement(O,{className:"rct-collapse rct-collapse-btn",disabled:H,title:de.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icons,de=Z.expandClose,_e=Z.expandOpen;return H?_e:de}},{key:"renderCheckboxIcon",value:function(){var se=this.props,H=se.checked,Z=se.icons,de=Z.uncheck,_e=Z.check,Ne=Z.halfCheck;return H===0?de:H===1?_e:Ne}},{key:"renderNodeIcon",value:function(){var se=this.props,H=se.expanded,Z=se.icon,de=se.icons,_e=de.leaf,Ne=de.parentClose,yt=de.parentOpen,gt=se.isLeaf;return Z!==null?Z:gt?_e:H?yt:Ne}},{key:"renderBareLabel",value:function(se){var H=this.props,Z=H.onClick,de=H.title,_e=Z!==null;return v().createElement("span",{className:"rct-bare-label",title:de},_e?v().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},se):se)}},{key:"renderCheckboxLabel",value:function(se){var H=this.props,Z=H.checked,de=H.disabled,_e=H.title,Ne=H.treeId,yt=H.value,gt=H.onClick!==null,Ke="".concat(Ne,"-").concat(String(yt).split(" ").join("_")),ut=[v().createElement("label",{key:0,htmlFor:Ke,title:_e},v().createElement(I,{checked:Z===1,disabled:de,id:Ke,indeterminate:Z===2,onClick:this.onCheck,onChange:function(){}}),v().createElement("span",{"aria-checked":Z===1,"aria-disabled":de,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),gt?null:se)];return gt&&ut.push(v().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},se)),ut}},{key:"renderLabel",value:function(){var se=this.props,H=se.label,Z=se.showCheckbox,de=[se.showNodeIcon?v().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,v().createElement("span",{key:1,className:"rct-title"},H)];return Z?this.renderCheckboxLabel(de):this.renderBareLabel(de)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var se=this.props,H=se.className,Z=se.disabled,de=se.expanded,_e=se.isLeaf,Ne=c()({"rct-node":!0,"rct-node-leaf":_e,"rct-node-parent":!_e,"rct-node-expanded":!_e&&de,"rct-node-collapsed":!_e&&!de,"rct-disabled":Z},H);return v().createElement("li",{className:Ne},v().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&ye(B.prototype,Q),Object.defineProperty(B,"prototype",{writable:!1}),je})(v().PureComponent);Ee(he,"propTypes",{checked:f().number.isRequired,disabled:f().bool.isRequired,expandDisabled:f().bool.isRequired,expanded:f().bool.isRequired,icons:G.isRequired,isLeaf:f().bool.isRequired,isParent:f().bool.isRequired,label:f().node.isRequired,lang:X.isRequired,optimisticToggle:f().bool.isRequired,showNodeIcon:f().bool.isRequired,treeId:f().string.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,onCheck:f().func.isRequired,onExpand:f().func.isRequired,children:f().node,className:f().string,expandOnClick:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string,onClick:f().func}),Ee(he,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const $e=he,Ie=f().oneOfType([f().arrayOf(f().string),f().arrayOf(f().number)]);function ot(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function Qe(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B]!=null?arguments[B]:{};B%2?ot(Object(Q),!0).forEach((function(J){_t(Y,J,Q[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(Q)):ot(Object(Q)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(Q,J))}))}return Y}function _t(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var et={label:f().node.isRequired,value:f().oneOfType([f().string,f().number]).isRequired,disabled:f().bool,icon:f().node,showCheckbox:f().bool,title:f().string};const Tt=f().oneOfType([f().shape(et),f().shape(Qe(Qe({},et),{},{children:f().arrayOf(et).isRequired}))]);function Je(Y){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},Je(Y)}function Oe(Y,B){var Q=Object.keys(Y);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(Y);B&&(J=J.filter((function(Se){return Object.getOwnPropertyDescriptor(Y,Se).enumerable}))),Q.push.apply(Q,J)}return Q}function He(Y){for(var B=1;B<arguments.length;B++){var Q=arguments[B]!=null?arguments[B]:{};B%2?Oe(Object(Q),!0).forEach((function(J){we(Y,J,Q[J])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(Q)):Oe(Object(Q)).forEach((function(J){Object.defineProperty(Y,J,Object.getOwnPropertyDescriptor(Q,J))}))}return Y}function ft(Y,B){for(var Q=0;Q<B.length;Q++){var J=B[Q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Y,J.key,J)}}function ct(Y,B){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,J){return Q.__proto__=J,Q},ct(Y,B)}function Ar(Y,B){if(B&&(Je(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(Y)}function Et(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function Ot(Y){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},Ot(Y)}function we(Y,B,Q){return B in Y?Object.defineProperty(Y,B,{value:Q,enumerable:!0,configurable:!0,writable:!0}):Y[B]=Q,Y}var Me=(function(Y){(function(H,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(Z&&Z.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),Z&&ct(H,Z)})(se,Y);var B,Q,J,Se,Re,je=(Se=se,Re=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var H,Z=Ot(Se);if(Re){var de=Ot(this).constructor;H=Reflect.construct(Z,arguments,de)}else H=Z.apply(this,arguments);return Ar(this,H)});function se(H){var Z;(function(_e,Ne){if(!(_e instanceof Ne))throw new TypeError("Cannot call a class as a function")})(this,se),Z=je.call(this,H);var de=new C(H);return de.flattenNodes(H.nodes),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Z.state={id:H.id||"rct-".concat(y()),model:de,prevProps:H},Z.onCheck=Z.onCheck.bind(Et(Z)),Z.onExpand=Z.onExpand.bind(Et(Z)),Z.onNodeClick=Z.onNodeClick.bind(Et(Z)),Z.onExpandAll=Z.onExpandAll.bind(Et(Z)),Z.onCollapseAll=Z.onCollapseAll.bind(Et(Z)),Z.combineMemorized=h()((function(_e,Ne){return He(He({},_e),Ne)})).bind(Et(Z)),Z}return B=se,Q=[{key:"onCheck",value:function(H){var Z=this.props,de=Z.checkModel,_e=Z.noCascade,Ne=Z.onCheck,yt=this.state.model.clone(),gt=yt.getNode(H.value);yt.toggleChecked(H,H.checked,de,_e),Ne(yt.serializeList("checked"),He(He({},gt),H))}},{key:"onExpand",value:function(H){var Z=this.props.onExpand,de=this.state.model.clone(),_e=de.getNode(H.value);de.toggleNode(H.value,"expanded",H.expanded),Z(de.serializeList("expanded"),He(He({},_e),H))}},{key:"onNodeClick",value:function(H){(0,this.props.onClick)(He(He({},this.state.model.getNode(H.value)),H))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var H=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Z=this.props.onExpand;Z(this.state.model.clone().expandAllNodes(H).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(H,Z){var de=this.state.model.getNode(H.value);return de.isLeaf||Z||H.children.length===0?de.checked?1:0:this.isEveryChildChecked(H)?1:this.isSomeChildChecked(H)?2:0}},{key:"isEveryChildChecked",value:function(H){var Z=this;return H.children.every((function(de){return Z.state.model.getNode(de.value).checkState===1}))}},{key:"isSomeChildChecked",value:function(H){var Z=this;return H.children.some((function(de){return Z.state.model.getNode(de.value).checkState>0}))}},{key:"renderTreeNodes",value:function(H){var Z=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=this.props,Ne=_e.expandDisabled,yt=_e.expandOnClick,gt=_e.icons,Ke=_e.lang,ut=_e.noCascade,jt=_e.onClick,hn=_e.onlyLeafCheckboxes,ir=_e.optimisticToggle,fr=_e.showNodeTitle,ae=_e.showNodeIcon,ee=this.state,ge=ee.id,Ce=ee.model,Pe=se.defaultProps.icons,ht=H.map((function(Ue){var Nt=Ue.value,At=Ce.getNode(Ue.value),Na=At.isParent?Z.renderTreeNodes(Ue.children,Ue):null;At.checkState=Z.determineShallowCheckState(Ue,ut);var Aa=hn?At.isLeaf:At.showCheckbox;return!de.value||Ce.getNode(de.value).expanded?v().createElement($e,{key:Nt,checked:At.checkState,className:Ue.className,disabled:At.disabled,expandDisabled:Ne,expandOnClick:yt,expanded:At.expanded,icon:Ue.icon,icons:Z.combineMemorized(Pe,gt),label:Ue.label,lang:Ke,optimisticToggle:ir,isLeaf:At.isLeaf,isParent:At.isParent,showCheckbox:Aa,showNodeIcon:ae,title:fr?Ue.title||Ue.label:Ue.title,treeId:ge,value:Ue.value,onCheck:Z.onCheck,onClick:jt&&Z.onNodeClick,onExpand:Z.onExpand},Na):null}));return v().createElement("ol",null,ht)}},{key:"renderExpandAll",value:function(){var H=this.props,Z=H.icons,de=Z.expandAll,_e=Z.collapseAll,Ne=H.lang;return H.showExpandAll?v().createElement("div",{className:"rct-options"},v().createElement(O,{className:"rct-option rct-option-expand-all",title:Ne.expandAll,onClick:this.onExpandAll},de),v().createElement(O,{className:"rct-option rct-option-collapse-all",title:Ne.collapseAll,onClick:this.onCollapseAll},_e)):null}},{key:"renderHiddenInput",value:function(){var H=this.props,Z=H.name,de=H.nameAsArray;return Z===void 0?null:de?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name;return Z.map((function(_e){var Ne="".concat(de,"[]");return v().createElement("input",{key:_e,name:Ne,type:"hidden",value:_e})}))}},{key:"renderJoinedHiddenInput",value:function(){var H=this.props,Z=H.checked,de=H.name,_e=Z.join(",");return v().createElement("input",{name:de,type:"hidden",value:_e})}},{key:"render",value:function(){var H,Z=this.props,de=Z.direction,_e=Z.disabled,Ne=Z.iconsClass,yt=Z.nodes,gt=Z.nativeCheckboxes,Ke=this.state.id,ut=this.renderTreeNodes(yt),jt=c()((we(H={"react-checkbox-tree":!0,"rct-disabled":_e},"rct-icons-".concat(Ne),!0),we(H,"rct-native-display",gt),we(H,"rct-direction-rtl",de==="rtl"),H));return v().createElement("div",{className:jt,id:Ke},this.renderExpandAll(),this.renderHiddenInput(),ut)}}],J=[{key:"getDerivedStateFromProps",value:function(H,Z){var de=Z.model,_e=Z.prevProps,Ne=H.disabled,yt=H.id,gt=H.nodes,Ke=He(He({},Z),{},{prevProps:H});return de.setProps(H),d()(_e.nodes,gt)&&_e.disabled===Ne||(de.reset(),de.flattenNodes(gt)),yt!==null&&(Ke=He(He({},Ke),{},{id:yt})),de.deserializeLists({checked:H.checked,expanded:H.expanded}),Ke}}],Q&&ft(B.prototype,Q),J&&ft(B,J),Object.defineProperty(B,"prototype",{writable:!1}),se})(v().Component);function pt(Y){return(function(B){if(Array.isArray(B))return xt(B)})(Y)||(function(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)})(Y)||(function(B,Q){if(B){if(typeof B=="string")return xt(B,Q);var J=Object.prototype.toString.call(B).slice(8,-1);return J==="Object"&&B.constructor&&(J=B.constructor.name),J==="Map"||J==="Set"?Array.from(B):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?xt(B,Q):void 0}})(Y)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
173
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function xt(Y,B){(B==null||B>Y.length)&&(B=Y.length);for(var Q=0,J=new Array(B);Q<B;Q++)J[Q]=Y[Q];return J}function Lt(Y,B){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Q>B)return[];var J=[];return Y.forEach((function(Se){Se.children&&(J=[].concat(pt(J),[Se.value],pt(Lt(Se.children,B,Q+1))))})),J}we(Me,"propTypes",{nodes:f().arrayOf(Tt).isRequired,checkModel:f().oneOf([D.LEAF,D.ALL]),checked:Ie,direction:f().string,disabled:f().bool,expandDisabled:f().bool,expandOnClick:f().bool,expanded:Ie,icons:G,iconsClass:f().string,id:f().string,lang:X,name:f().string,nameAsArray:f().bool,nativeCheckboxes:f().bool,noCascade:f().bool,onlyLeafCheckboxes:f().bool,optimisticToggle:f().bool,showExpandAll:f().bool,showNodeIcon:f().bool,showNodeTitle:f().bool,onCheck:f().func,onClick:f().func,onExpand:f().func}),we(Me,"defaultProps",{checkModel:D.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:v().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:v().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:v().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:v().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:v().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:v().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:v().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:v().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:v().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:v().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const Mr=Me})(),l})()))})(Yu)),Yu.exports}var hP=pP();const mP=Ut(hP),yP=Ct(F.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),gP=Ct(F.jsx("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),Bv=Ct(F.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-2m-2 10H7v-2h10z"}),"IndeterminateCheckBox"),vP=Ct(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),bP=Ct(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),_P=Ct(F.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),wP=Ct(F.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),SP=Ct(F.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),EP=Ct(F.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");var Oo={},Uv;function OP(){if(Uv)return Oo;Uv=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=l,Oo.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function l(h,y){const g=new a,f=h.length;if(f<2)return g;const b=y?.decode||d;let v=0;do{const p=h.indexOf("=",v);if(p===-1)break;const _=h.indexOf(";",v),S=_===-1?f:_;if(p>S){v=h.lastIndexOf(";",p-1)+1;continue}const w=s(h,v,p),E=c(h,p,w),x=h.slice(w,E);if(g[x]===void 0){let P=s(h,p+1,S),k=c(h,S,P);const j=b(h.slice(P,k));g[x]=j}v=S+1}while(v<f);return g}function s(h,y,g){do{const f=h.charCodeAt(y);if(f!==32&&f!==9)return y}while(++y<g);return g}function c(h,y,g){for(;y>g;){const f=h.charCodeAt(--y);if(f!==32&&f!==9)return y+1}return g}function u(h,y,g){const f=g?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=f(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let v=h+"="+b;if(!g)return v;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);v+="; Max-Age="+g.maxAge}if(g.domain){if(!r.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);v+="; Domain="+g.domain}if(g.path){if(!n.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);v+="; Path="+g.path}if(g.expires){if(!m(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);v+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(v+="; HttpOnly"),g.secure&&(v+="; Secure"),g.partitioned&&(v+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":v+="; Priority=Low";break;case"medium":v+="; Priority=Medium";break;case"high":v+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return v}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return i.call(h)==="[object Date]"}return Oo}var Ia=OP();function xP(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function CP(e){return typeof e=="string"?Ia.parse(e):typeof e=="object"&&e!==null?e:{}}function Ju(e,t={}){const r=TP(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function TP(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Wv{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Ia.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=CP(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=xP()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(n=>{t[n]!==this.cookies[n]&&this._emitChange({name:n,value:Ju(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Ju(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=Ju(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;const i=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ia.serialize(t,i,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){const n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ia.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function PP(e){const{model:t,form:r,setDefault:n,localization:{getLocalizedString:i}}=e,{value:a,valid:l,error:s,onChangeValidate:c}=qt(e),{key:u,title:d,action:m}=r;ke.useEffect(()=>{n(u,t,r,a)},[]);const[h,y]=ke.useState([]),[g,f]=ke.useState([]),b=p=>{const _=new Wv,S={"Content-Type":"application/json"};_.get("csrf")&&Object.assign(S,{"X-CSRF-TOKEN":_.get("csrf")}),fetch(p,{headers:S,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(E=>{throw new Error(E)})).then(w=>{f(w)}).catch(w=>{console.error(w)})};ke.useEffect(()=>{m&&m.url&&b(m.url)},[]);const v={check:F.jsx(yP,{className:"rct-icon rct-icon-check"}),uncheck:F.jsx(gP,{className:"rct-icon rct-icon-uncheck"}),halfCheck:F.jsx(Bv,{className:"rct-icon rct-icon-half-check"}),expandClose:F.jsx(vP,{className:"rct-icon rct-icon-expand-close"}),expandOpen:F.jsx(bP,{className:"rct-icon rct-icon-expand-open"}),expandAll:F.jsx(_P,{className:"rct-icon rct-icon-expand-all"}),collapseAll:F.jsx(Bv,{className:"rct-icon rct-icon-collapse-all"}),parentClose:F.jsx(wP,{className:"rct-icon rct-icon-parent-close"}),parentOpen:F.jsx(SP,{className:"rct-icon rct-icon-parent-open"}),leaf:F.jsx(EP,{className:"rct-icon rct-icon-leaf-close"})};return F.jsxs(ke.Fragment,{children:[F.jsx(Hr,{required:r.required,children:d&&i(d)}),F.jsx(mP,{nodes:g,checked:a||[],expanded:h,onCheck:p=>c(null,p),onExpand:p=>y(p),icons:v,noCascade:!0}),l?null:F.jsx(eo,{error:!0,children:s})]})}var ja={exports:{}},$P=ja.exports,Hv;function RP(){return Hv||(Hv=1,(function(e){(function(t,r){e.exports=r()})($P,function(){var t=Object.prototype.toString;function r(m,h){return m==null?!1:Object.prototype.hasOwnProperty.call(m,h)}function n(m){if(!m||l(m)&&m.length===0)return!0;if(typeof m!="string"){for(var h in m)if(r(m,h))return!1;return!0}return!1}function i(m){return t.call(m)}function a(m){return typeof m=="object"&&i(m)==="[object Object]"}var l=Array.isArray||function(m){return t.call(m)==="[object Array]"};function s(m){return typeof m=="boolean"||i(m)==="[object Boolean]"}function c(m){var h=parseInt(m);return h.toString()===m?h:m}function u(m){m=m||{};var h=function(v){return Object.keys(h).reduce(function(p,_){return _==="create"||typeof h[_]=="function"&&(p[_]=h[_].bind(h,v)),p},{})},y;m.includeInheritedProps?y=function(){return!0}:y=function(v,p){return typeof p=="number"&&Array.isArray(v)||r(v,p)};function g(v,p){if(y(v,p))return v[p]}var f;m.includeInheritedProps?f=function(v,p){typeof p!="string"&&typeof p!="number"&&(p=String(p));var _=g(v,p);if(p==="__proto__"||p==="prototype"||p==="constructor"&&typeof _=="function")throw new Error("For security reasons, object's magic properties cannot be set");return _}:f=function(v,p){return g(v,p)};function b(v,p,_,S){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(typeof p=="string")return b(v,p.split(".").map(c),_,S);var w=p[0],E=f(v,w);return p.length===1?((E===void 0||!S)&&(v[w]=_),E):(E===void 0&&(typeof p[1]=="number"?v[w]=[]:v[w]={}),b(v[w],p.slice(1),_,S))}return h.has=function(v,p){if(typeof p=="number"?p=[p]:typeof p=="string"&&(p=p.split(".")),!p||p.length===0)return!!v;for(var _=0;_<p.length;_++){var S=c(p[_]);if(typeof S=="number"&&l(v)&&S<v.length||(m.includeInheritedProps?S in Object(v):r(v,S)))v=v[S];else return!1}return!0},h.ensureExists=function(v,p,_){return b(v,p,_,!0)},h.set=function(v,p,_,S){return b(v,p,_,S)},h.insert=function(v,p,_,S){var w=h.get(v,p);S=~~S,l(w)||(w=[],h.set(v,p,w)),w.splice(S,0,_)},h.empty=function(v,p){if(!n(p)&&v!=null){var _,S;if(_=h.get(v,p)){if(typeof _=="string")return h.set(v,p,"");if(s(_))return h.set(v,p,!1);if(typeof _=="number")return h.set(v,p,0);if(l(_))_.length=0;else if(a(_))for(S in _)y(_,S)&&delete _[S];else return h.set(v,p,null)}}},h.push=function(v,p){var _=h.get(v,p);l(_)||(_=[],h.set(v,p,_)),_.push.apply(_,Array.prototype.slice.call(arguments,2))},h.coalesce=function(v,p,_){for(var S,w=0,E=p.length;w<E;w++)if((S=h.get(v,p[w]))!==void 0)return S;return _},h.get=function(v,p,_){if(typeof p=="number"&&(p=[p]),!p||p.length===0)return v;if(v==null)return _;if(typeof p=="string")return h.get(v,p.split("."),_);var S=c(p[0]),w=f(v,S);return w===void 0?_:p.length===1?w:h.get(v[S],p.slice(1),_)},h.del=function(p,_){if(typeof _=="number"&&(_=[_]),p==null||n(_))return p;if(typeof _=="string")return h.del(p,_.split("."));var S=c(_[0]);if(f(p,S),!y(p,S))return p;if(_.length===1)l(p)?p.splice(S,1):delete p[S];else return h.del(p[S],_.slice(1));return p},h}var d=u();return d.create=u,d.withInheritedProps=u({includeInheritedProps:!0}),d})})(ja)),ja.exports}var kP=RP();const IP=Ut(kP);String.prototype.format=function(){for(var e=this,t=0;t<arguments.length;t++){var r=new RegExp("\\{"+t+"\\}","gi");e=e.replace(r,arguments[t])}return e};function jP(e){const{form:{schema:{type:t},action:r,title:n,required:i,multiple:a,disabled:l,options:s,key:c},model:u,setDefault:d}=e,{value:m,valid:h,error:y,onChangeValidate:g}=qt(e);ke.useEffect(()=>{d(c,u,e.form,m)},[]);const[f,b]=ke.useState([]),{url:v,params:p}=r||{},_=p&&p.some(P=>P!=null)?p.map(P=>IP.get(u,P)):[];ke.useEffect(()=>{const P=p?_.length>0?v.format(..._):"":v;P&&w(P)},_);const S=(P,k)=>{let j=null;t!=="array"?a?j=k.map(R=>R.id).join(","):j=k?k.id:"":a?j=k.map(R=>R.id):j=k?[k.id]:[],g(null,j)},w=P=>{if(P.includes("=undefined")||P.includes("=&")||P.endsWith("="))return;const k=new Wv,j={"Content-Type":"application/json"};k.get("csrf")&&Object.assign(j,{"X-CSRF-TOKEN":k.get("csrf")}),fetch(P,{headers:j,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(O=>{throw new Error(O)})).then(R=>{b(R)}).catch(R=>{console.error(R)})},E=s&&s.length>0?s:f;let x;return a?Array.isArray(m)?x=m?E.filter(P=>m.includes(P.id)):[]:x=m?E.filter(P=>(m||"").split(",").includes(P.id)):[]:Array.isArray(m)?x=m.length===1?E.find(P=>P.id===m[0]):null:x=m?E.find(P=>P.id===m):null,F.jsxs("div",{children:[F.jsx(zu,{multiple:a,disabled:l,getOptionLabel:P=>P.label||"",value:x||(a?[]:null),onChange:S,options:E,renderInput:P=>F.jsx(va,{...P,label:i?n+" *":n})}),h?null:F.jsx("div",{style:{color:"red"},children:y})]})}const NP=e=>{let t=e&&typeof e=="object"&&e.toISOString().slice(0,10)||e;return t||(t=""),t.length>0&&(t=new Date(t).toISOString().slice(0,10)),t};class Kv extends ke.Component{mapper={number:jO,text:cn,password:cn,textarea:NO,markdown:AO,textsuggest:KC,select:nT,taxonomy:PP,radios:jT,date:AT,timestamp:MT,checkbox:HT,help:KT,array:Dv,tBoolean:fP,fieldset:zv,tuple:zv,multiselect:aT,dynaselect:jP};constructor(t){super(t),this.builder=this.builder.bind(this)}setDefault=(t,r,n,i)=>{const{onModelChange:a}=this.props,l=lr.selectOrSet(t,r);up(l)&&!up(i)&&a(t,i,n.type,n)};getLocalization=()=>{const{localization:t}=this.props;return{getLocalizedString:t&&t.getLocalizedString?t.getLocalizedString:r=>r,getLocalizedNumber:t&&t.getLocalizedNumber?t.getLocalizedNumber:r=>r,getLocalizedDate:t&&t.getLocalizedDate?t.getLocalizedDate:NP}};builder(t,r,n,i,a,l){const{errors:s,showErrors:c,evalContext:u}=this.props,d=this.mapper[t.type];if(!d||t.condition&&!lr.safeEval(t.condition,{model:r,form:t,...u}))return null;const m=t.key&&t.key.join(".")||n,h=s&&m in s?s[m]:null;return F.jsx(d,{model:r,form:t,onChange:a,setDefault:this.setDefault,mapper:i,builder:l,errorText:h,localization:this.getLocalization(),showErrors:c},m)}render(){const{schema:t,form:r,ignore:n,option:i,model:a,className:l,onModelChange:s,mapper:c}=this.props,u=lr.merge(t,r,n,i);let d=this.mapper;c&&(d=t0(this.mapper,c));const m=u.map((h,y)=>this.builder(h,a,y,d,s,this.builder));return F.jsx("div",{className:l,children:m})}}Kv.defaultProps={localization:void 0,showErrors:!1},Mt.Array=Dv,Mt.SchemaForm=Kv,Mt.useSchemaField=qt,Mt.utils=lr,Object.defineProperty(Mt,Symbol.toStringTag,{value:"Module"})}));
278
174
  //# sourceMappingURL=react-schema-form.umd.cjs.map