react-schema-form 1.0.7 → 1.0.8

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,4 +1,4 @@
1
- (function(bt,we){typeof exports=="object"&&typeof module<"u"?we(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"],we):(bt=typeof globalThis<"u"?globalThis:bt||self,we(bt["react-schema-form"]={},bt.React,bt.EmotionStyled,bt.EmotionReact,bt["React-dom"],bt.UiwReactMarkdownEditor,bt.MuiMaterial))})(this,function(bt,we,Yr,hn,mn,gc,Lr){"use strict";var ES=Object.defineProperty;var CS=(bt,we,Yr)=>we in bt?ES(bt,we,{enumerable:!0,configurable:!0,writable:!0,value:Yr}):bt[we]=Yr;var Tt=(bt,we,Yr)=>CS(bt,typeof we!="symbol"?we+"":we,Yr);function yc(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 j=yc(we),Dm=yc(mn);var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ao={exports:{}},gn={};/**
1
+ (function(bt,we){typeof exports=="object"&&typeof module<"u"?we(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"],we):(bt=typeof globalThis<"u"?globalThis:bt||self,we(bt["react-schema-form"]={},bt.React,bt.EmotionStyled,bt.EmotionReact,bt["React-dom"],bt.UiwReactMarkdownEditor,bt.MuiMaterial))})(this,function(bt,we,Yr,hn,mn,gc,Lr){"use strict";var SS=Object.defineProperty;var TS=(bt,we,Yr)=>we in bt?SS(bt,we,{enumerable:!0,configurable:!0,writable:!0,value:Yr}):bt[we]=Yr;var Tt=(bt,we,Yr)=>TS(bt,typeof we!="symbol"?we+"":we,Yr);function yc(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 j=yc(we),Dm=yc(mn);var io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ao={exports:{}},gn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -17,47 +17,47 @@
17
17
  */var bc;function Fm(){return bc||(bc=1,process.env.NODE_ENV!=="production"&&function(){var e=we,t=Symbol.for("react.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.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,h="@@iterator";function v(I){if(I===null||typeof I!="object")return null;var J=b&&I[b]||I[h];return typeof J=="function"?J:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(I){{for(var J=arguments.length,fe=new Array(J>1?J-1:0),F=1;F<J;F++)fe[F-1]=arguments[F];S("error",I,fe)}}function S(I,J,fe){{var F=C.ReactDebugCurrentFrame,q=F.getStackAddendum();q!==""&&(J+="%s",fe=fe.concat([q]));var re=fe.map(function(me){return String(me)});re.unshift("Warning: "+J),Function.prototype.apply.call(console[I],console,re)}}var T=!1,w=!1,A=!1,M=!1,O=!1,g;g=Symbol.for("react.module.reference");function p(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===a||O||I===i||I===u||I===f||M||I===m||T||w||A||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===d||I.$$typeof===l||I.$$typeof===s||I.$$typeof===c||I.$$typeof===g||I.getModuleId!==void 0))}function x(I,J,fe){var F=I.displayName;if(F)return F;var q=J.displayName||J.name||"";return q!==""?fe+"("+q+")":fe}function R(I){return I.displayName||"Context"}function P(I){if(I==null)return null;if(typeof I.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case s:var J=I;return R(J)+".Consumer";case l:var fe=I;return R(fe._context)+".Provider";case c:return x(I,I.render,"ForwardRef");case d:var F=I.displayName||null;return F!==null?F:P(I.type)||"Memo";case y:{var q=I,re=q._payload,me=q._init;try{return P(me(re))}catch{return null}}}return null}var _=Object.assign,k=0,D,W,Z,G,B,Y,ae;function oe(){}oe.__reactDisabledLog=!0;function ne(){{if(k===0){D=console.log,W=console.info,Z=console.warn,G=console.error,B=console.group,Y=console.groupCollapsed,ae=console.groupEnd;var I={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}k++}}function ue(){{if(k--,k===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},I,{value:D}),info:_({},I,{value:W}),warn:_({},I,{value:Z}),error:_({},I,{value:G}),group:_({},I,{value:B}),groupCollapsed:_({},I,{value:Y}),groupEnd:_({},I,{value:ae})})}k<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=C.ReactCurrentDispatcher,ye;function se(I,J,fe){{if(ye===void 0)try{throw Error()}catch(q){var F=q.stack.trim().match(/\n( *(at )?)/);ye=F&&F[1]||""}return`
18
18
  `+ye+I}}var le=!1,te;{var ve=typeof WeakMap=="function"?WeakMap:Map;te=new ve}function X(I,J){if(!I||le)return"";{var fe=te.get(I);if(fe!==void 0)return fe}var F;le=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ce.current,ce.current=null,ne();try{if(J){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(Pt){F=Pt}Reflect.construct(I,[],me)}else{try{me.call()}catch(Pt){F=Pt}I.call(me.prototype)}}else{try{throw Error()}catch(Pt){F=Pt}I()}}catch(Pt){if(Pt&&F&&typeof Pt.stack=="string"){for(var ge=Pt.stack.split(`
19
19
  `),Ie=F.stack.split(`
20
- `),_e=ge.length-1,ze=Ie.length-1;_e>=1&&ze>=0&&ge[_e]!==Ie[ze];)ze--;for(;_e>=1&&ze>=0;_e--,ze--)if(ge[_e]!==Ie[ze]){if(_e!==1||ze!==1)do if(_e--,ze--,ze<0||ge[_e]!==Ie[ze]){var Et=`
21
- `+ge[_e].replace(" at new "," at ");return I.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",I.displayName)),typeof I=="function"&&te.set(I,Et),Et}while(_e>=1&&ze>=0);break}}}finally{le=!1,ce.current=re,ue(),Error.prepareStackTrace=q}var Rr=I?I.displayName||I.name:"",vt=Rr?se(Rr):"";return typeof I=="function"&&te.set(I,vt),vt}function Re(I,J,fe){return X(I,!1)}function z(I){var J=I.prototype;return!!(J&&J.isReactComponent)}function pe(I,J,fe){if(I==null)return"";if(typeof I=="function")return X(I,z(I));if(typeof I=="string")return se(I);switch(I){case u:return se("Suspense");case f:return se("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case c:return Re(I.render);case d:return pe(I.type,J,fe);case y:{var F=I,q=F._payload,re=F._init;try{return pe(re(q),J,fe)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Ce={},Te=C.ReactDebugCurrentFrame;function $e(I){if(I){var J=I._owner,fe=pe(I.type,I._source,J?J.type:null);Te.setExtraStackFrame(fe)}else Te.setExtraStackFrame(null)}function He(I,J,fe,F,q){{var re=Function.call.bind(de);for(var me in I)if(re(I,me)){var ge=void 0;try{if(typeof I[me]!="function"){var Ie=Error((F||"React class")+": "+fe+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}ge=I[me](J,me,F,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){ge=_e}ge&&!(ge instanceof Error)&&($e(q),E("%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).",F||"React class",fe,me,typeof ge),$e(null)),ge instanceof Error&&!(ge.message in Ce)&&(Ce[ge.message]=!0,$e(q),E("Failed %s type: %s",fe,ge.message),$e(null))}}}var Ne=Array.isArray;function be(I){return Ne(I)}function Fe(I){{var J=typeof Symbol=="function"&&Symbol.toStringTag,fe=J&&I[Symbol.toStringTag]||I.constructor.name||"Object";return fe}}function Ye(I){try{return ht(I),!1}catch{return!0}}function ht(I){return""+I}function Ct(I){if(Ye(I))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(I)),ht(I)}var pt=C.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},Be,st,De;De={};function Ze(I){if(de.call(I,"ref")){var J=Object.getOwnPropertyDescriptor(I,"ref").get;if(J&&J.isReactWarning)return!1}return I.ref!==void 0}function mt(I){if(de.call(I,"key")){var J=Object.getOwnPropertyDescriptor(I,"key").get;if(J&&J.isReactWarning)return!1}return I.key!==void 0}function ft(I,J){if(typeof I.ref=="string"&&pt.current&&J&&pt.current.stateNode!==J){var fe=P(pt.current.type);De[fe]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(pt.current.type),I.ref),De[fe]=!0)}}function Ee(I,J){{var fe=function(){Be||(Be=!0,E("%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)",J))};fe.isReactWarning=!0,Object.defineProperty(I,"key",{get:fe,configurable:!0})}}function Ae(I,J){{var fe=function(){st||(st=!0,E("%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)",J))};fe.isReactWarning=!0,Object.defineProperty(I,"ref",{get:fe,configurable:!0})}}var at=function(I,J,fe,F,q,re,me){var ge={$$typeof:t,type:I,key:J,ref:fe,props:me,_owner:re};return ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge};function wt(I,J,fe,F,q){{var re,me={},ge=null,Ie=null;fe!==void 0&&(Ct(fe),ge=""+fe),mt(J)&&(Ct(J.key),ge=""+J.key),Ze(J)&&(Ie=J.ref,ft(J,q));for(re in J)de.call(J,re)&&!Ue.hasOwnProperty(re)&&(me[re]=J[re]);if(I&&I.defaultProps){var _e=I.defaultProps;for(re in _e)me[re]===void 0&&(me[re]=_e[re])}if(ge||Ie){var ze=typeof I=="function"?I.displayName||I.name||"Unknown":I;ge&&Ee(me,ze),Ie&&Ae(me,ze)}return at(I,ge,Ie,q,F,pt.current,me)}}var St=C.ReactCurrentOwner,Bt=C.ReactDebugCurrentFrame;function Rt(I){if(I){var J=I._owner,fe=pe(I.type,I._source,J?J.type:null);Bt.setExtraStackFrame(fe)}else Bt.setExtraStackFrame(null)}var Yt;Yt=!1;function Xt(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function U(){{if(St.current){var I=P(St.current.type);if(I)return`
20
+ `),_e=ge.length-1,Ve=Ie.length-1;_e>=1&&Ve>=0&&ge[_e]!==Ie[Ve];)Ve--;for(;_e>=1&&Ve>=0;_e--,Ve--)if(ge[_e]!==Ie[Ve]){if(_e!==1||Ve!==1)do if(_e--,Ve--,Ve<0||ge[_e]!==Ie[Ve]){var Et=`
21
+ `+ge[_e].replace(" at new "," at ");return I.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",I.displayName)),typeof I=="function"&&te.set(I,Et),Et}while(_e>=1&&Ve>=0);break}}}finally{le=!1,ce.current=re,ue(),Error.prepareStackTrace=q}var Rr=I?I.displayName||I.name:"",vt=Rr?se(Rr):"";return typeof I=="function"&&te.set(I,vt),vt}function Re(I,J,fe){return X(I,!1)}function V(I){var J=I.prototype;return!!(J&&J.isReactComponent)}function pe(I,J,fe){if(I==null)return"";if(typeof I=="function")return X(I,V(I));if(typeof I=="string")return se(I);switch(I){case u:return se("Suspense");case f:return se("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case c:return Re(I.render);case d:return pe(I.type,J,fe);case y:{var F=I,q=F._payload,re=F._init;try{return pe(re(q),J,fe)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Ce={},Te=C.ReactDebugCurrentFrame;function $e(I){if(I){var J=I._owner,fe=pe(I.type,I._source,J?J.type:null);Te.setExtraStackFrame(fe)}else Te.setExtraStackFrame(null)}function He(I,J,fe,F,q){{var re=Function.call.bind(de);for(var me in I)if(re(I,me)){var ge=void 0;try{if(typeof I[me]!="function"){var Ie=Error((F||"React class")+": "+fe+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}ge=I[me](J,me,F,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){ge=_e}ge&&!(ge instanceof Error)&&($e(q),E("%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).",F||"React class",fe,me,typeof ge),$e(null)),ge instanceof Error&&!(ge.message in Ce)&&(Ce[ge.message]=!0,$e(q),E("Failed %s type: %s",fe,ge.message),$e(null))}}}var Ne=Array.isArray;function be(I){return Ne(I)}function Fe(I){{var J=typeof Symbol=="function"&&Symbol.toStringTag,fe=J&&I[Symbol.toStringTag]||I.constructor.name||"Object";return fe}}function Ye(I){try{return ht(I),!1}catch{return!0}}function ht(I){return""+I}function Ct(I){if(Ye(I))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(I)),ht(I)}var pt=C.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},Be,st,De;De={};function Ze(I){if(de.call(I,"ref")){var J=Object.getOwnPropertyDescriptor(I,"ref").get;if(J&&J.isReactWarning)return!1}return I.ref!==void 0}function mt(I){if(de.call(I,"key")){var J=Object.getOwnPropertyDescriptor(I,"key").get;if(J&&J.isReactWarning)return!1}return I.key!==void 0}function ft(I,J){if(typeof I.ref=="string"&&pt.current&&J&&pt.current.stateNode!==J){var fe=P(pt.current.type);De[fe]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(pt.current.type),I.ref),De[fe]=!0)}}function Ee(I,J){{var fe=function(){Be||(Be=!0,E("%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)",J))};fe.isReactWarning=!0,Object.defineProperty(I,"key",{get:fe,configurable:!0})}}function Ae(I,J){{var fe=function(){st||(st=!0,E("%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)",J))};fe.isReactWarning=!0,Object.defineProperty(I,"ref",{get:fe,configurable:!0})}}var at=function(I,J,fe,F,q,re,me){var ge={$$typeof:t,type:I,key:J,ref:fe,props:me,_owner:re};return ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge};function wt(I,J,fe,F,q){{var re,me={},ge=null,Ie=null;fe!==void 0&&(Ct(fe),ge=""+fe),mt(J)&&(Ct(J.key),ge=""+J.key),Ze(J)&&(Ie=J.ref,ft(J,q));for(re in J)de.call(J,re)&&!Ue.hasOwnProperty(re)&&(me[re]=J[re]);if(I&&I.defaultProps){var _e=I.defaultProps;for(re in _e)me[re]===void 0&&(me[re]=_e[re])}if(ge||Ie){var Ve=typeof I=="function"?I.displayName||I.name||"Unknown":I;ge&&Ee(me,Ve),Ie&&Ae(me,Ve)}return at(I,ge,Ie,q,F,pt.current,me)}}var St=C.ReactCurrentOwner,Bt=C.ReactDebugCurrentFrame;function Rt(I){if(I){var J=I._owner,fe=pe(I.type,I._source,J?J.type:null);Bt.setExtraStackFrame(fe)}else Bt.setExtraStackFrame(null)}var Yt;Yt=!1;function Xt(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function U(){{if(St.current){var I=P(St.current.type);if(I)return`
22
22
 
23
- Check the render method of \``+I+"`."}return""}}function $(I){return""}var K={};function V(I){{var J=U();if(!J){var fe=typeof I=="string"?I:I.displayName||I.name;fe&&(J=`
23
+ Check the render method of \``+I+"`."}return""}}function $(I){return""}var K={};function z(I){{var J=U();if(!J){var fe=typeof I=="string"?I:I.displayName||I.name;fe&&(J=`
24
24
 
25
- Check the top-level render call using <`+fe+">.")}return J}}function Se(I,J){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var fe=V(J);if(K[fe])return;K[fe]=!0;var F="";I&&I._owner&&I._owner!==St.current&&(F=" It was passed a child from "+P(I._owner.type)+"."),Rt(I),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,F),Rt(null)}}function ke(I,J){{if(typeof I!="object")return;if(be(I))for(var fe=0;fe<I.length;fe++){var F=I[fe];Xt(F)&&Se(F,J)}else if(Xt(I))I._store&&(I._store.validated=!0);else if(I){var q=v(I);if(typeof q=="function"&&q!==I.entries)for(var re=q.call(I),me;!(me=re.next()).done;)Xt(me.value)&&Se(me.value,J)}}}function je(I){{var J=I.type;if(J==null||typeof J=="string")return;var fe;if(typeof J=="function")fe=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===c||J.$$typeof===d))fe=J.propTypes;else return;if(fe){var F=P(J);He(fe,I.props,"prop",F,I)}else if(J.PropTypes!==void 0&&!Yt){Yt=!0;var q=P(J);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ee(I){{for(var J=Object.keys(I.props),fe=0;fe<J.length;fe++){var F=J[fe];if(F!=="children"&&F!=="key"){Rt(I),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Rt(null);break}}I.ref!==null&&(Rt(I),E("Invalid attribute `ref` supplied to `React.Fragment`."),Rt(null))}}var L={};function H(I,J,fe,F,q,re){{var me=p(I);if(!me){var ge="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(ge+=" 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 Ie=$();Ie?ge+=Ie:ge+=U();var _e;I===null?_e="null":be(I)?_e="array":I!==void 0&&I.$$typeof===t?(_e="<"+(P(I.type)||"Unknown")+" />",ge=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof I,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,ge)}var ze=wt(I,J,fe,q,re);if(ze==null)return ze;if(me){var Et=J.children;if(Et!==void 0)if(F)if(be(Et)){for(var Rr=0;Rr<Et.length;Rr++)ke(Et[Rr],I);Object.freeze&&Object.freeze(Et)}else E("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 ke(Et,I)}if(de.call(J,"key")){var vt=P(I),Pt=Object.keys(J).filter(function(Kr){return Kr!=="key"}),It=Pt.length>0?"{key: someKey, "+Pt.join(": ..., ")+": ...}":"{key: someKey}";if(!L[vt+It]){var Mr=Pt.length>0?"{"+Pt.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+fe+">.")}return J}}function Se(I,J){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var fe=z(J);if(K[fe])return;K[fe]=!0;var F="";I&&I._owner&&I._owner!==St.current&&(F=" It was passed a child from "+P(I._owner.type)+"."),Rt(I),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,F),Rt(null)}}function ke(I,J){{if(typeof I!="object")return;if(be(I))for(var fe=0;fe<I.length;fe++){var F=I[fe];Xt(F)&&Se(F,J)}else if(Xt(I))I._store&&(I._store.validated=!0);else if(I){var q=v(I);if(typeof q=="function"&&q!==I.entries)for(var re=q.call(I),me;!(me=re.next()).done;)Xt(me.value)&&Se(me.value,J)}}}function je(I){{var J=I.type;if(J==null||typeof J=="string")return;var fe;if(typeof J=="function")fe=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===c||J.$$typeof===d))fe=J.propTypes;else return;if(fe){var F=P(J);He(fe,I.props,"prop",F,I)}else if(J.PropTypes!==void 0&&!Yt){Yt=!0;var q=P(J);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ee(I){{for(var J=Object.keys(I.props),fe=0;fe<J.length;fe++){var F=J[fe];if(F!=="children"&&F!=="key"){Rt(I),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),Rt(null);break}}I.ref!==null&&(Rt(I),E("Invalid attribute `ref` supplied to `React.Fragment`."),Rt(null))}}var L={};function H(I,J,fe,F,q,re){{var me=p(I);if(!me){var ge="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(ge+=" 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 Ie=$();Ie?ge+=Ie:ge+=U();var _e;I===null?_e="null":be(I)?_e="array":I!==void 0&&I.$$typeof===t?(_e="<"+(P(I.type)||"Unknown")+" />",ge=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof I,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,ge)}var Ve=wt(I,J,fe,q,re);if(Ve==null)return Ve;if(me){var Et=J.children;if(Et!==void 0)if(F)if(be(Et)){for(var Rr=0;Rr<Et.length;Rr++)ke(Et[Rr],I);Object.freeze&&Object.freeze(Et)}else E("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 ke(Et,I)}if(de.call(J,"key")){var vt=P(I),Pt=Object.keys(J).filter(function(Kr){return Kr!=="key"}),It=Pt.length>0?"{key: someKey, "+Pt.join(": ..., ")+": ...}":"{key: someKey}";if(!L[vt+It]){var Mr=Pt.length>0?"{"+Pt.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,It,vt,Mr,vt),L[vt+It]=!0}}return I===n?ee(ze):je(ze),ze}}function ie(I,J,fe){return H(I,J,fe,!0)}function Oe(I,J,fe){return H(I,J,fe,!1)}var Me=Oe,lt=ie;yn.Fragment=n,yn.jsx=Me,yn.jsxs=lt}()),yn}var xc;function Bm(){return xc||(xc=1,process.env.NODE_ENV==="production"?ao.exports=Lm():ao.exports=Fm()),ao.exports}var N=Bm(),vi,Oc;function qm(){if(Oc)return vi;Oc=1;function e(){this.__data__=[],this.size=0}return vi=e,vi}var bi,Ec;function so(){if(Ec)return bi;Ec=1;function e(t,r){return t===r||t!==t&&r!==r}return bi=e,bi}var xi,Cc;function lo(){if(Cc)return xi;Cc=1;var e=so();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xi=t,xi}var Oi,Sc;function zm(){if(Sc)return Oi;Sc=1;var e=lo(),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 Oi=n,Oi}var Ei,Tc;function Vm(){if(Tc)return Ei;Tc=1;var e=lo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ei=t,Ei}var Ci,wc;function Um(){if(wc)return Ci;wc=1;var e=lo();function t(r){return e(this.__data__,r)>-1}return Ci=t,Ci}var Si,Rc;function Wm(){if(Rc)return Si;Rc=1;var e=lo();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 Si=t,Si}var Ti,Pc;function co(){if(Pc)return Ti;Pc=1;var e=qm(),t=zm(),r=Vm(),n=Um(),i=Wm();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,Ti=a,Ti}var wi,_c;function Hm(){if(_c)return wi;_c=1;var e=co();function t(){this.__data__=new e,this.size=0}return wi=t,wi}var Ri,Ic;function Gm(){if(Ic)return Ri;Ic=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ri=e,Ri}var Pi,kc;function Km(){if(kc)return Pi;kc=1;function e(t){return this.__data__.get(t)}return Pi=e,Pi}var _i,jc;function Ym(){if(jc)return _i;jc=1;function e(t){return this.__data__.has(t)}return _i=e,_i}var Ii,Ac;function Nc(){if(Ac)return Ii;Ac=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return Ii=e,Ii}var ki,$c;function ar(){if($c)return ki;$c=1;var e=Nc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ki=r,ki}var ji,Mc;function Ai(){if(Mc)return ji;Mc=1;var e=ar(),t=e.Symbol;return ji=t,ji}var Ni,Dc;function Xm(){if(Dc)return Ni;Dc=1;var e=Ai(),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 f=n.call(l);return u&&(s?l[i]=c:delete l[i]),f}return Ni=a,Ni}var $i,Lc;function Jm(){if(Lc)return $i;Lc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return $i=r,$i}var Mi,Fc;function vn(){if(Fc)return Mi;Fc=1;var e=Ai(),t=Xm(),r=Jm(),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 Mi=l,Mi}var Di,Bc;function xr(){if(Bc)return Di;Bc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Di=e,Di}var Li,qc;function Fi(){if(qc)return Li;qc=1;var e=vn(),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 Li=l,Li}var Bi,zc;function Qm(){if(zc)return Bi;zc=1;var e=ar(),t=e["__core-js_shared__"];return Bi=t,Bi}var qi,Vc;function Zm(){if(Vc)return qi;Vc=1;var e=Qm(),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 qi=r,qi}var zi,Uc;function Wc(){if(Uc)return zi;Uc=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 zi=r,zi}var Vi,Hc;function eg(){if(Hc)return Vi;Hc=1;var e=Fi(),t=Zm(),r=xr(),n=Wc(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,f=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(y){if(!r(y)||t(y))return!1;var m=e(y)?f:a;return m.test(n(y))}return Vi=d,Vi}var Ui,Gc;function tg(){if(Gc)return Ui;Gc=1;function e(t,r){return t==null?void 0:t[r]}return Ui=e,Ui}var Wi,Kc;function Fr(){if(Kc)return Wi;Kc=1;var e=eg(),t=tg();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Wi=r,Wi}var Hi,Yc;function Gi(){if(Yc)return Hi;Yc=1;var e=Fr(),t=ar(),r=e(t,"Map");return Hi=r,Hi}var Ki,Xc;function uo(){if(Xc)return Ki;Xc=1;var e=Fr(),t=e(Object,"create");return Ki=t,Ki}var Yi,Jc;function rg(){if(Jc)return Yi;Jc=1;var e=uo();function t(){this.__data__=e?e(null):{},this.size=0}return Yi=t,Yi}var Xi,Qc;function ng(){if(Qc)return Xi;Qc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Xi=e,Xi}var Ji,Zc;function og(){if(Zc)return Ji;Zc=1;var e=uo(),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 Ji=i,Ji}var Qi,eu;function ig(){if(eu)return Qi;eu=1;var e=uo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Qi=n,Qi}var Zi,tu;function ag(){if(tu)return Zi;tu=1;var e=uo(),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 Zi=r,Zi}var ea,ru;function sg(){if(ru)return ea;ru=1;var e=rg(),t=ng(),r=og(),n=ig(),i=ag();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,ea=a,ea}var ta,nu;function lg(){if(nu)return ta;nu=1;var e=sg(),t=co(),r=Gi();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ta=n,ta}var ra,ou;function cg(){if(ou)return ra;ou=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ra=e,ra}var na,iu;function po(){if(iu)return na;iu=1;var e=cg();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return na=t,na}var oa,au;function ug(){if(au)return oa;au=1;var e=po();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return oa=t,oa}var ia,su;function pg(){if(su)return ia;su=1;var e=po();function t(r){return e(this,r).get(r)}return ia=t,ia}var aa,lu;function fg(){if(lu)return aa;lu=1;var e=po();function t(r){return e(this,r).has(r)}return aa=t,aa}var sa,cu;function dg(){if(cu)return sa;cu=1;var e=po();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 sa=t,sa}var la,uu;function hg(){if(uu)return la;uu=1;var e=lg(),t=ug(),r=pg(),n=fg(),i=dg();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,la=a,la}var ca,pu;function mg(){if(pu)return ca;pu=1;var e=co(),t=Gi(),r=hg(),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 ca=i,ca}var ua,fu;function du(){if(fu)return ua;fu=1;var e=co(),t=Hm(),r=Gm(),n=Km(),i=Ym(),a=mg();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,ua=l,ua}var pa,hu;function mu(){if(hu)return pa;hu=1;var e=Fr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return pa=t,pa}var fa,gu;function da(){if(gu)return fa;gu=1;var e=mu();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return fa=t,fa}var ha,yu;function vu(){if(yu)return ha;yu=1;var e=da(),t=so();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return ha=r,ha}var ma,bu;function gg(){if(bu)return ma;bu=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 ma=e,ma}var ga,xu;function yg(){if(xu)return ga;xu=1;var e=gg(),t=e();return ga=t,ga}var bn={exports:{}};bn.exports;var Ou;function Eu(){return Ou||(Ou=1,function(e,t){var r=ar(),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,f){if(f)return u.slice();var d=u.length,y=s?s(d):new u.constructor(d);return u.copy(y),y}e.exports=c}(bn,bn.exports)),bn.exports}var ya,Cu;function vg(){if(Cu)return ya;Cu=1;var e=ar(),t=e.Uint8Array;return ya=t,ya}var va,Su;function ba(){if(Su)return va;Su=1;var e=vg();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return va=t,va}var xa,Tu;function wu(){if(Tu)return xa;Tu=1;var e=ba();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return xa=t,xa}var Oa,Ru;function Pu(){if(Ru)return Oa;Ru=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 Oa=e,Oa}var Ea,_u;function bg(){if(_u)return Ea;_u=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 Ea=r,Ea}var Ca,Iu;function ku(){if(Iu)return Ca;Iu=1;function e(t,r){return function(n){return t(r(n))}}return Ca=e,Ca}var Sa,ju;function Ta(){if(ju)return Sa;ju=1;var e=ku(),t=e(Object.getPrototypeOf,Object);return Sa=t,Sa}var wa,Au;function Ra(){if(Au)return wa;Au=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return wa=t,wa}var Pa,Nu;function $u(){if(Nu)return Pa;Nu=1;var e=bg(),t=Ta(),r=Ra();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Pa=n,Pa}var _a,Mu;function Br(){if(Mu)return _a;Mu=1;function e(t){return t!=null&&typeof t=="object"}return _a=e,_a}var Ia,Du;function xg(){if(Du)return Ia;Du=1;var e=vn(),t=Br(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ia=n,Ia}var ka,Lu;function Fu(){if(Lu)return ka;Lu=1;var e=xg(),t=Br(),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 ka=a,ka}var ja,Bu;function fo(){if(Bu)return ja;Bu=1;var e=Array.isArray;return ja=e,ja}var Aa,qu;function zu(){if(qu)return Aa;qu=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Aa=t,Aa}var Na,Vu;function ho(){if(Vu)return Na;Vu=1;var e=Fi(),t=zu();function r(n){return n!=null&&t(n.length)&&!e(n)}return Na=r,Na}var $a,Uu;function Og(){if(Uu)return $a;Uu=1;var e=ho(),t=Br();function r(n){return t(n)&&e(n)}return $a=r,$a}var xn={exports:{}},Ma,Wu;function Eg(){if(Wu)return Ma;Wu=1;function e(){return!1}return Ma=e,Ma}xn.exports;var Hu;function Da(){return Hu||(Hu=1,function(e,t){var r=ar(),n=Eg(),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}(xn,xn.exports)),xn.exports}var La,Gu;function Cg(){if(Gu)return La;Gu=1;var e=vn(),t=Ta(),r=Br(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(f){if(!r(f)||e(f)!=n)return!1;var d=t(f);if(d===null)return!0;var y=s.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&l.call(y)==c}return La=u,La}var Fa,Ku;function Sg(){if(Ku)return Fa;Ku=1;var e=vn(),t=zu(),r=Br(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",f="[object Number]",d="[object Object]",y="[object RegExp]",m="[object Set]",b="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",w="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",O="[object Uint8ClampedArray]",g="[object Uint16Array]",p="[object Uint32Array]",x={};x[E]=x[S]=x[T]=x[w]=x[A]=x[M]=x[O]=x[g]=x[p]=!0,x[n]=x[i]=x[v]=x[a]=x[C]=x[l]=x[s]=x[c]=x[u]=x[f]=x[d]=x[y]=x[m]=x[b]=x[h]=!1;function R(P){return r(P)&&t(P.length)&&!!x[e(P)]}return Fa=R,Fa}var Ba,Yu;function qa(){if(Yu)return Ba;Yu=1;function e(t){return function(r){return t(r)}}return Ba=e,Ba}var On={exports:{}};On.exports;var Xu;function za(){return Xu||(Xu=1,function(e,t){var r=Nc(),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}(On,On.exports)),On.exports}var Va,Ju;function Qu(){if(Ju)return Va;Ju=1;var e=Sg(),t=qa(),r=za(),n=r&&r.isTypedArray,i=n?t(n):e;return Va=i,Va}var Ua,Zu;function ep(){if(Zu)return Ua;Zu=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Ua=e,Ua}var Wa,tp;function rp(){if(tp)return Wa;tp=1;var e=da(),t=so(),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 Wa=i,Wa}var Ha,np;function Xr(){if(np)return Ha;np=1;var e=rp(),t=da();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var f=i[c],d=l?l(a[f],n[f],f,a,n):void 0;d===void 0&&(d=n[f]),s?t(a,f,d):e(a,f,d)}return a}return Ha=r,Ha}var Ga,op;function Tg(){if(op)return Ga;op=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ga=e,Ga}var Ka,ip;function ap(){if(ip)return Ka;ip=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 Ka=r,Ka}var Ya,sp;function lp(){if(sp)return Ya;sp=1;var e=Tg(),t=Fu(),r=fo(),n=Da(),i=ap(),a=Qu(),l=Object.prototype,s=l.hasOwnProperty;function c(u,f){var d=r(u),y=!d&&t(u),m=!d&&!y&&n(u),b=!d&&!y&&!m&&a(u),h=d||y||m||b,v=h?e(u.length,String):[],C=v.length;for(var E in u)(f||s.call(u,E))&&!(h&&(E=="length"||m&&(E=="offset"||E=="parent")||b&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&v.push(E);return v}return Ya=c,Ya}var Xa,cp;function wg(){if(cp)return Xa;cp=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Xa=e,Xa}var Ja,up;function Rg(){if(up)return Ja;up=1;var e=xr(),t=Ra(),r=wg(),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 Ja=a,Ja}var Qa,pp;function Jr(){if(pp)return Qa;pp=1;var e=lp(),t=Rg(),r=ho();function n(i){return r(i)?e(i,!0):t(i)}return Qa=n,Qa}var Za,fp;function Pg(){if(fp)return Za;fp=1;var e=Xr(),t=Jr();function r(n){return e(n,t(n))}return Za=r,Za}var es,dp;function _g(){if(dp)return es;dp=1;var e=vu(),t=Eu(),r=wu(),n=Pu(),i=$u(),a=Fu(),l=fo(),s=Og(),c=Da(),u=Fi(),f=xr(),d=Cg(),y=Qu(),m=ep(),b=Pg();function h(v,C,E,S,T,w,A){var M=m(v,E),O=m(C,E),g=A.get(O);if(g){e(v,E,g);return}var p=w?w(M,O,E+"",v,C,A):void 0,x=p===void 0;if(x){var R=l(O),P=!R&&c(O),_=!R&&!P&&y(O);p=O,R||P||_?l(M)?p=M:s(M)?p=n(M):P?(x=!1,p=t(O,!0)):_?(x=!1,p=r(O,!0)):p=[]:d(O)||a(O)?(p=M,a(M)?p=b(M):(!f(M)||u(M))&&(p=i(O))):x=!1}x&&(A.set(O,p),T(p,O,S,w,A),A.delete(O)),e(v,E,p)}return es=h,es}var ts,hp;function Ig(){if(hp)return ts;hp=1;var e=du(),t=vu(),r=yg(),n=_g(),i=xr(),a=Jr(),l=ep();function s(c,u,f,d,y){c!==u&&r(u,function(m,b){if(y||(y=new e),i(m))n(c,u,b,f,s,d,y);else{var h=d?d(l(c,b),m,b+"",c,u,y):void 0;h===void 0&&(h=m),t(c,b,h)}},a)}return ts=s,ts}var rs,mp;function gp(){if(mp)return rs;mp=1;function e(t){return t}return rs=e,rs}var ns,yp;function kg(){if(yp)return ns;yp=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 ns=e,ns}var os,vp;function jg(){if(vp)return os;vp=1;var e=kg(),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 f=Array(i+1);++s<i;)f[s]=l[s];return f[i]=a(u),e(n,this,f)}}return os=r,os}var is,bp;function Ag(){if(bp)return is;bp=1;function e(t){return function(){return t}}return is=e,is}var as,xp;function Ng(){if(xp)return as;xp=1;var e=Ag(),t=mu(),r=gp(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return as=n,as}var ss,Op;function $g(){if(Op)return ss;Op=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 ss=n,ss}var ls,Ep;function Mg(){if(Ep)return ls;Ep=1;var e=Ng(),t=$g(),r=t(e);return ls=r,ls}var cs,Cp;function Dg(){if(Cp)return cs;Cp=1;var e=gp(),t=jg(),r=Mg();function n(i,a){return r(t(i,a,e),i+"")}return cs=n,cs}var us,Sp;function Lg(){if(Sp)return us;Sp=1;var e=so(),t=ho(),r=ap(),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 us=i,us}var ps,Tp;function wp(){if(Tp)return ps;Tp=1;var e=Dg(),t=Lg();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 f=a[l];f&&n(i,f,l,c)}return i})}return ps=r,ps}var fs,Rp;function Fg(){if(Rp)return fs;Rp=1;var e=Ig(),t=wp(),r=t(function(n,i,a){e(n,i,a)});return fs=r,fs}var Bg=Fg();const qg=Jt(Bg);var ds,Pp;function zg(){if(Pp)return ds;Pp=1;function e(t){return t==null}return ds=e,ds}var Vg=zg();const _p=Jt(Vg);var Ug=xr();const Wg=Jt(Ug);var hs,Ip;function Hg(){if(Ip)return hs;Ip=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 hs=e,hs}var ms,kp;function Gg(){if(kp)return ms;kp=1;var e=ku(),t=e(Object.keys,Object);return ms=t,ms}var gs,jp;function Kg(){if(jp)return gs;jp=1;var e=Ra(),t=Gg(),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 gs=i,gs}var ys,Ap;function vs(){if(Ap)return ys;Ap=1;var e=lp(),t=Kg(),r=ho();function n(i){return r(i)?e(i):t(i)}return ys=n,ys}var bs,Np;function Yg(){if(Np)return bs;Np=1;var e=Xr(),t=vs();function r(n,i){return n&&e(i,t(i),n)}return bs=r,bs}var xs,$p;function Xg(){if($p)return xs;$p=1;var e=Xr(),t=Jr();function r(n,i){return n&&e(i,t(i),n)}return xs=r,xs}var Os,Mp;function Jg(){if(Mp)return Os;Mp=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 Os=e,Os}var Es,Dp;function Lp(){if(Dp)return Es;Dp=1;function e(){return[]}return Es=e,Es}var Cs,Fp;function Ss(){if(Fp)return Cs;Fp=1;var e=Jg(),t=Lp(),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 Cs=a,Cs}var Ts,Bp;function Qg(){if(Bp)return Ts;Bp=1;var e=Xr(),t=Ss();function r(n,i){return e(n,t(n),i)}return Ts=r,Ts}var ws,qp;function zp(){if(qp)return ws;qp=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 ws=e,ws}var Rs,Vp;function Up(){if(Vp)return Rs;Vp=1;var e=zp(),t=Ta(),r=Ss(),n=Lp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Rs=a,Rs}var Ps,Wp;function Zg(){if(Wp)return Ps;Wp=1;var e=Xr(),t=Up();function r(n,i){return e(n,t(n),i)}return Ps=r,Ps}var _s,Hp;function Gp(){if(Hp)return _s;Hp=1;var e=zp(),t=fo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return _s=r,_s}var Is,Kp;function ey(){if(Kp)return Is;Kp=1;var e=Gp(),t=Ss(),r=vs();function n(i){return e(i,r,t)}return Is=n,Is}var ks,Yp;function ty(){if(Yp)return ks;Yp=1;var e=Gp(),t=Up(),r=Jr();function n(i){return e(i,r,t)}return ks=n,ks}var js,Xp;function ry(){if(Xp)return js;Xp=1;var e=Fr(),t=ar(),r=e(t,"DataView");return js=r,js}var As,Jp;function ny(){if(Jp)return As;Jp=1;var e=Fr(),t=ar(),r=e(t,"Promise");return As=r,As}var Ns,Qp;function oy(){if(Qp)return Ns;Qp=1;var e=Fr(),t=ar(),r=e(t,"Set");return Ns=r,Ns}var $s,Zp;function iy(){if(Zp)return $s;Zp=1;var e=Fr(),t=ar(),r=e(t,"WeakMap");return $s=r,$s}var Ms,ef;function Ds(){if(ef)return Ms;ef=1;var e=ry(),t=Gi(),r=ny(),n=oy(),i=iy(),a=vn(),l=Wc(),s="[object Map]",c="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",y="[object DataView]",m=l(e),b=l(t),h=l(r),v=l(n),C=l(i),E=a;return(e&&E(new e(new ArrayBuffer(1)))!=y||t&&E(new t)!=s||r&&E(r.resolve())!=u||n&&E(new n)!=f||i&&E(new i)!=d)&&(E=function(S){var T=a(S),w=T==c?S.constructor:void 0,A=w?l(w):"";if(A)switch(A){case m:return y;case b:return s;case h:return u;case v:return f;case C:return d}return T}),Ms=E,Ms}var Ls,tf;function ay(){if(tf)return Ls;tf=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 Ls=r,Ls}var Fs,rf;function sy(){if(rf)return Fs;rf=1;var e=ba();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Fs=t,Fs}var Bs,nf;function ly(){if(nf)return Bs;nf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Bs=t,Bs}var qs,of;function cy(){if(of)return qs;of=1;var e=Ai(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return qs=n,qs}var zs,af;function uy(){if(af)return zs;af=1;var e=ba(),t=sy(),r=ly(),n=cy(),i=wu(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",f="[object Set]",d="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",b="[object DataView]",h="[object Float32Array]",v="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",w="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]";function O(g,p,x){var R=g.constructor;switch(p){case m:return e(g);case a:case l:return new R(+g);case b:return t(g,x);case h:case v:case C:case E:case S:case T:case w:case A:case M:return i(g,x);case s:return new R;case c:case d:return new R(g);case u:return r(g);case f:return new R;case y:return n(g)}}return zs=O,zs}var Vs,sf;function py(){if(sf)return Vs;sf=1;var e=Ds(),t=Br(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Vs=n,Vs}var Us,lf;function fy(){if(lf)return Us;lf=1;var e=py(),t=qa(),r=za(),n=r&&r.isMap,i=n?t(n):e;return Us=i,Us}var Ws,cf;function dy(){if(cf)return Ws;cf=1;var e=Ds(),t=Br(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Ws=n,Ws}var Hs,uf;function hy(){if(uf)return Hs;uf=1;var e=dy(),t=qa(),r=za(),n=r&&r.isSet,i=n?t(n):e;return Hs=i,Hs}var Gs,pf;function my(){if(pf)return Gs;pf=1;var e=du(),t=Hg(),r=rp(),n=Yg(),i=Xg(),a=Eu(),l=Pu(),s=Qg(),c=Zg(),u=ey(),f=ty(),d=Ds(),y=ay(),m=uy(),b=$u(),h=fo(),v=Da(),C=fy(),E=xr(),S=hy(),T=vs(),w=Jr(),A=1,M=2,O=4,g="[object Arguments]",p="[object Array]",x="[object Boolean]",R="[object Date]",P="[object Error]",_="[object Function]",k="[object GeneratorFunction]",D="[object Map]",W="[object Number]",Z="[object Object]",G="[object RegExp]",B="[object Set]",Y="[object String]",ae="[object Symbol]",oe="[object WeakMap]",ne="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",ye="[object Float64Array]",se="[object Int8Array]",le="[object Int16Array]",te="[object Int32Array]",ve="[object Uint8Array]",X="[object Uint8ClampedArray]",Re="[object Uint16Array]",z="[object Uint32Array]",pe={};pe[g]=pe[p]=pe[ne]=pe[ue]=pe[x]=pe[R]=pe[ce]=pe[ye]=pe[se]=pe[le]=pe[te]=pe[D]=pe[W]=pe[Z]=pe[G]=pe[B]=pe[Y]=pe[ae]=pe[ve]=pe[X]=pe[Re]=pe[z]=!0,pe[P]=pe[_]=pe[oe]=!1;function de(Ce,Te,$e,He,Ne,be){var Fe,Ye=Te&A,ht=Te&M,Ct=Te&O;if($e&&(Fe=Ne?$e(Ce,He,Ne,be):$e(Ce)),Fe!==void 0)return Fe;if(!E(Ce))return Ce;var pt=h(Ce);if(pt){if(Fe=y(Ce),!Ye)return l(Ce,Fe)}else{var Ue=d(Ce),Be=Ue==_||Ue==k;if(v(Ce))return a(Ce,Ye);if(Ue==Z||Ue==g||Be&&!Ne){if(Fe=ht||Be?{}:b(Ce),!Ye)return ht?c(Ce,i(Fe,Ce)):s(Ce,n(Fe,Ce))}else{if(!pe[Ue])return Ne?Ce:{};Fe=m(Ce,Ue,Ye)}}be||(be=new e);var st=be.get(Ce);if(st)return st;be.set(Ce,Fe),S(Ce)?Ce.forEach(function(mt){Fe.add(de(mt,Te,$e,mt,Ce,be))}):C(Ce)&&Ce.forEach(function(mt,ft){Fe.set(ft,de(mt,Te,$e,ft,Ce,be))});var De=Ct?ht?f:u:ht?w:T,Ze=pt?void 0:De(Ce);return t(Ze||Ce,function(mt,ft){Ze&&(ft=mt,mt=Ce[ft]),r(Fe,ft,de(mt,Te,$e,ft,Ce,be))}),Fe}return Gs=de,Gs}var Ks,ff;function gy(){if(ff)return Ks;ff=1;var e=my(),t=1,r=4;function n(i){return e(i,t|r)}return Ks=n,Ks}var yy=gy();const Ys=Jt(yy);var Xs,df;function vy(){if(df)return Xs;df=1;var e=Xr(),t=wp(),r=Jr(),n=t(function(i,a){e(a,r(a),i)});return Xs=n,Xs}var Js,hf;function by(){return hf||(hf=1,Js=vy()),Js}var xy=by();const Oy=Jt(xy);var Qs,mf;function Ey(){if(mf)return Qs;mf=1;function e(t){return t===void 0}return Qs=e,Qs}var Cy=Ey();const Sy=Jt(Cy);var Zs={},gf;function Ty(){return gf||(gf=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,f;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!=="'")f=i.indexOf("]",c),f===-1&&(f=i.length),l.push(i.slice(a+1,f)),a=i.slice(f+1,f+2)==="."?f+2:f+1;else{for(f=i.indexOf(u+"]",c),f===-1&&(f=i.length);i.slice(f-1,f)==="\\"&&c<i.length;)c++,f=i.indexOf(u+"]",c);l.push(i.slice(a+2,f).replace(r[u],u).replace(/\\+/g,function(d){return new Array(Math.ceil(d.length/2)+1).join("\\")})),a=i.slice(f+2,f+3)==="."?f+3:f+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 f=c.toString();return!l&&/^[A-z_]\w*$/.exec(f)?u!==0?"."+f:f:!l&&/^\d+$/.exec(f)?"["+f+"]":(f=f.replace(s,"\\$1"),"["+a+f+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})()}(Zs)),Zs}var el,yf;function wy(){return yf||(yf=1,el=Ty().ObjectPath),el}var Ry=wy();const kt=Jt(Ry);var mo={exports:{}},Py=mo.exports,vf;function _y(){return vf||(vf=1,function(e){(function(t,r){e.exports?e.exports=r():t.tv4=r()})(Py,function(){Object.keys||(Object.keys=function(){var O=Object.prototype.hasOwnProperty,g=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=p.length;return function(R){if(typeof R!="object"&&typeof R!="function"||R===null)throw new TypeError("Object.keys called on non-object");var P=[];for(var _ in R)O.call(R,_)&&P.push(_);if(g)for(var k=0;k<x;k++)O.call(R,p[k])&&P.push(p[k]);return P}}()),Object.create||(Object.create=function(){function O(){}return function(g){if(arguments.length!==1)throw new Error("Object.create implementation only accepts one parameter.");return O.prototype=g,new O}}()),Array.isArray||(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(O){if(this===null)throw new TypeError;var g=Object(this),p=g.length>>>0;if(p===0)return-1;var x=0;if(arguments.length>1&&(x=Number(arguments[1]),x!==x?x=0:x!==0&&x!==1/0&&x!==-1/0&&(x=(x>0||-1)*Math.floor(Math.abs(x)))),x>=p)return-1;for(var R=x>=0?x:Math.max(p-Math.abs(x),0);R<p;R++)if(R in g&&g[R]===O)return R;return-1}),Object.isFrozen||(Object.isFrozen=function(O){for(var g="tv4_test_frozen_key";O.hasOwnProperty(g);)g+=Math.random();try{return O[g]=!0,delete O[g],!1}catch{return!0}});var t={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},r={"*":!0};function n(O){return encodeURI(O).replace(/%25[0-9][0-9]/g,function(g){return"%"+g.substring(3)})}function i(O){var g="";t[O.charAt(0)]&&(g=O.charAt(0),O=O.substring(1));var p="",x="",R=!0,P=!1,_=!1;g==="+"?R=!1:g==="."?(x=".",p="."):g==="/"?(x="/",p="/"):g==="#"?(x="#",R=!1):g===";"?(x=";",p=";",P=!0,_=!0):g==="?"?(x="?",p="&",P=!0):g==="&"&&(x="&",p="&",P=!0);for(var k=[],D=O.split(","),W=[],Z=0;Z<D.length;Z++){var G=D[Z],B=null;if(G.indexOf(":")!==-1){var Y=G.split(":");G=Y[0],B=parseInt(Y[1],10)}for(var ae={};r[G.charAt(G.length-1)];)ae[G.charAt(G.length-1)]=!0,G=G.substring(0,G.length-1);var oe={truncate:B,name:G,suffices:ae};W.push(oe),k.push(G)}var ne=function(ue){for(var ce="",ye=0,se=0;se<W.length;se++){var le=W[se],te=ue(le.name);if(te==null||Array.isArray(te)&&te.length===0||typeof te=="object"&&Object.keys(te).length===0){ye++;continue}if(se===ye?ce+=x:ce+=p||",",Array.isArray(te)){P&&(ce+=le.name+"=");for(var ve=0;ve<te.length;ve++)ve>0&&(ce+=le.suffices["*"]&&p||",",le.suffices["*"]&&P&&(ce+=le.name+"=")),ce+=R?encodeURIComponent(te[ve]).replace(/!/g,"%21"):n(te[ve])}else if(typeof te=="object"){P&&!le.suffices["*"]&&(ce+=le.name+"=");var X=!0;for(var Re in te)X||(ce+=le.suffices["*"]&&p||","),X=!1,ce+=R?encodeURIComponent(Re).replace(/!/g,"%21"):n(Re),ce+=le.suffices["*"]?"=":",",ce+=R?encodeURIComponent(te[Re]).replace(/!/g,"%21"):n(te[Re])}else P&&(ce+=le.name,(!_||te!=="")&&(ce+="=")),le.truncate!=null&&(te=te.substring(0,le.truncate)),ce+=R?encodeURIComponent(te).replace(/!/g,"%21"):n(te)}return ce};return ne.varNames=k,{prefix:x,substitution:ne}}function a(O){if(!(this instanceof a))return new a(O);for(var g=O.split("{"),p=[g.shift()],x=[],R=[],P=[];g.length>0;){var _=g.shift(),k=_.split("}")[0],D=_.substring(k.length+1),W=i(k);R.push(W.substitution),x.push(W.prefix),p.push(D),P=P.concat(W.substitution.varNames)}this.fill=function(Z){for(var G=p[0],B=0;B<R.length;B++){var Y=R[B];G+=Y(Z),G+=p[B+1]}return G},this.varNames=P,this.template=O}a.prototype={toString:function(){return this.template},fillFromObject:function(O){return this.fill(function(g){return O[g]})}};var l=function(g,p,x,R,P){if(this.missing=[],this.missingMap={},this.formatValidators=g?Object.create(g.formatValidators):{},this.schemas=g?Object.create(g.schemas):{},this.collectMultiple=p,this.errors=[],this.handleError=p?this.collectError:this.returnError,R&&(this.checkRecursive=!0,this.scanned=[],this.scannedFrozen=[],this.scannedFrozenSchemas=[],this.scannedFrozenValidationErrors=[],this.validatedSchemasKey="tv4_validation_id",this.validationErrorsKey="tv4_validation_errors_id"),P&&(this.trackUnknownProperties=!0,this.knownPropertyPaths={},this.unknownPropertyPaths={}),this.errorReporter=x||b("en"),typeof this.errorReporter=="string")throw new Error("debug");if(this.definedKeywords={},g)for(var _ in g.definedKeywords)this.definedKeywords[_]=g.definedKeywords[_].slice(0)};l.prototype.defineKeyword=function(O,g){this.definedKeywords[O]=this.definedKeywords[O]||[],this.definedKeywords[O].push(g)},l.prototype.createError=function(O,g,p,x,R,P,_){var k=new S(O,g,p,x,R);return k.message=this.errorReporter(k,P,_),k},l.prototype.returnError=function(O){return O},l.prototype.collectError=function(O){return O&&this.errors.push(O),null},l.prototype.prefixErrors=function(O,g,p){for(var x=O;x<this.errors.length;x++)this.errors[x]=this.errors[x].prefixWith(g,p);return this},l.prototype.banUnknownProperties=function(O,g){for(var p in this.unknownPropertyPaths){var x=this.createError(h.UNKNOWN_PROPERTY,{path:p},p,"",null,O,g),R=this.handleError(x);if(R)return R}return null},l.prototype.addFormat=function(O,g){if(typeof O=="object"){for(var p in O)this.addFormat(p,O[p]);return this}this.formatValidators[O]=g},l.prototype.resolveRefs=function(O,g){if(O.$ref!==void 0){if(g=g||{},g[O.$ref])return this.createError(h.CIRCULAR_REFERENCE,{urls:Object.keys(g).join(", ")},"","",null,void 0,O);g[O.$ref]=!0,O=this.getSchema(O.$ref,g)}return O},l.prototype.getSchema=function(O,g){var p;if(this.schemas[O]!==void 0)return p=this.schemas[O],this.resolveRefs(p,g);var x=O,R="";if(O.indexOf("#")!==-1&&(R=O.substring(O.indexOf("#")+1),x=O.substring(0,O.indexOf("#"))),typeof this.schemas[x]=="object"){p=this.schemas[x];var P=decodeURIComponent(R);if(P==="")return this.resolveRefs(p,g);if(P.charAt(0)!=="/")return;for(var _=P.split("/").slice(1),k=0;k<_.length;k++){var D=_[k].replace(/~1/g,"/").replace(/~0/g,"~");if(p[D]===void 0){p=void 0;break}p=p[D]}if(p!==void 0)return this.resolveRefs(p,g)}this.missing[x]===void 0&&(this.missing.push(x),this.missing[x]=x,this.missingMap[x]=x)},l.prototype.searchSchemas=function(O,g){if(Array.isArray(O))for(var p=0;p<O.length;p++)this.searchSchemas(O[p],g);else if(O&&typeof O=="object"){typeof O.id=="string"&&T(g,O.id)&&this.schemas[O.id]===void 0&&(this.schemas[O.id]=O);for(var x in O)if(x!=="enum"){if(typeof O[x]=="object")this.searchSchemas(O[x],g);else if(x==="$ref"){var R=y(O[x]);R&&this.schemas[R]===void 0&&this.missingMap[R]===void 0&&(this.missingMap[R]=R)}}}},l.prototype.addSchema=function(O,g){if(typeof O!="string"||typeof g>"u")if(typeof O=="object"&&typeof O.id=="string")g=O,O=g.id;else return;O===y(O)+"#"&&(O=y(O)),this.schemas[O]=g,delete this.missingMap[O],m(g,O),this.searchSchemas(g,O)},l.prototype.getSchemaMap=function(){var O={};for(var g in this.schemas)O[g]=this.schemas[g];return O},l.prototype.getSchemaUris=function(O){var g=[];for(var p in this.schemas)(!O||O.test(p))&&g.push(p);return g},l.prototype.getMissingUris=function(O){var g=[];for(var p in this.missingMap)(!O||O.test(p))&&g.push(p);return g},l.prototype.dropSchemas=function(){this.schemas={},this.reset()},l.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},l.prototype.validateAll=function(O,g,p,x,R){var P;if(g=this.resolveRefs(g),g){if(g instanceof S)return this.errors.push(g),g}else return null;var _=this.errors.length,k,D=null,W=null;if(this.checkRecursive&&O&&typeof O=="object"){if(P=!this.scanned.length,O[this.validatedSchemasKey]){var Z=O[this.validatedSchemasKey].indexOf(g);if(Z!==-1)return this.errors=this.errors.concat(O[this.validationErrorsKey][Z]),null}if(Object.isFrozen(O)&&(k=this.scannedFrozen.indexOf(O),k!==-1)){var G=this.scannedFrozenSchemas[k].indexOf(g);if(G!==-1)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[k][G]),null}if(this.scanned.push(O),Object.isFrozen(O))k===-1&&(k=this.scannedFrozen.length,this.scannedFrozen.push(O),this.scannedFrozenSchemas.push([])),D=this.scannedFrozenSchemas[k].length,this.scannedFrozenSchemas[k][D]=g,this.scannedFrozenValidationErrors[k][D]=[];else{if(!O[this.validatedSchemasKey])try{Object.defineProperty(O,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(O,this.validationErrorsKey,{value:[],configurable:!0})}catch{O[this.validatedSchemasKey]=[],O[this.validationErrorsKey]=[]}W=O[this.validatedSchemasKey].length,O[this.validatedSchemasKey][W]=g,O[this.validationErrorsKey][W]=[]}}var B=this.errors.length,Y=this.validateBasic(O,g,R)||this.validateNumeric(O,g,R)||this.validateString(O,g,R)||this.validateArray(O,g,R)||this.validateObject(O,g,R)||this.validateCombinations(O,g,R)||this.validateHypermedia(O,g,R)||this.validateFormat(O,g,R)||this.validateDefinedKeywords(O,g,R)||null;if(P){for(;this.scanned.length;){var ae=this.scanned.pop();delete ae[this.validatedSchemasKey]}this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(Y||B!==this.errors.length)for(;p&&p.length||x&&x.length;){var oe=p&&p.length?""+p.pop():null,ne=x&&x.length?""+x.pop():null;Y&&(Y=Y.prefixWith(oe,ne)),this.prefixErrors(B,oe,ne)}return D!==null?this.scannedFrozenValidationErrors[k][D]=this.errors.slice(_):W!==null&&(O[this.validationErrorsKey][W]=this.errors.slice(_)),this.handleError(Y)},l.prototype.validateFormat=function(O,g){if(typeof g.format!="string"||!this.formatValidators[g.format])return null;var p=this.formatValidators[g.format].call(null,O,g);return typeof p=="string"||typeof p=="number"?this.createError(h.FORMAT_CUSTOM,{message:p},"","/format",null,O,g):p&&typeof p=="object"?this.createError(h.FORMAT_CUSTOM,{message:p.message||"?"},p.dataPath||"",p.schemaPath||"/format",null,O,g):null},l.prototype.validateDefinedKeywords=function(O,g,p){for(var x in this.definedKeywords)if(!(typeof g[x]>"u"))for(var R=this.definedKeywords[x],P=0;P<R.length;P++){var _=R[P],k=_(O,g[x],g,p);if(typeof k=="string"||typeof k=="number")return this.createError(h.KEYWORD_CUSTOM,{key:x,message:k},"","",null,O,g).prefixWith(null,x);if(k&&typeof k=="object"){var D=k.code;if(typeof D=="string"){if(!h[D])throw new Error("Undefined error code (use defineError): "+D);D=h[D]}else typeof D!="number"&&(D=h.KEYWORD_CUSTOM);var W=typeof k.message=="object"?k.message:{key:x,message:k.message||"?"},Z=k.schemaPath||"/"+x.replace(/~/g,"~0").replace(/\//g,"~1");return this.createError(D,W,k.dataPath||null,Z,null,O,g)}}return null};function s(O,g){if(O===g)return!0;if(O&&g&&typeof O=="object"&&typeof g=="object"){if(Array.isArray(O)!==Array.isArray(g))return!1;if(Array.isArray(O)){if(O.length!==g.length)return!1;for(var p=0;p<O.length;p++)if(!s(O[p],g[p]))return!1}else{var x;for(x in O)if(g[x]===void 0&&O[x]!==void 0)return!1;for(x in g)if(O[x]===void 0&&g[x]!==void 0)return!1;for(x in O)if(!s(O[x],g[x]))return!1}return!0}return!1}l.prototype.validateBasic=function(g,p,x){var R;return(R=this.validateType(g,p,x))||(R=this.validateEnum(g,p,x))?R.prefixWith(null,"type"):null},l.prototype.validateType=function(g,p){if(p.type===void 0)return null;var x=typeof g;g===null?x="null":Array.isArray(g)&&(x="array");var R=p.type;Array.isArray(R)||(R=[R]);for(var P=0;P<R.length;P++){var _=R[P];if(_===x||_==="integer"&&x==="number"&&g%1===0)return null}return this.createError(h.INVALID_TYPE,{type:x,expected:R.join("/")},"","",null,g,p)},l.prototype.validateEnum=function(g,p){if(p.enum===void 0)return null;for(var x=0;x<p.enum.length;x++){var R=p.enum[x];if(s(g,R))return null}return this.createError(h.ENUM_MISMATCH,{value:typeof JSON<"u"?JSON.stringify(g):g},"","",null,g,p)},l.prototype.validateNumeric=function(g,p,x){return this.validateMultipleOf(g,p,x)||this.validateMinMax(g,p,x)||this.validateNaN(g,p,x)||null};var c=Math.pow(2,-51),u=1-c;l.prototype.validateMultipleOf=function(g,p){var x=p.multipleOf||p.divisibleBy;if(x===void 0)return null;if(typeof g=="number"){var R=g/x%1;if(R>=c&&R<u)return this.createError(h.NUMBER_MULTIPLE_OF,{value:g,multipleOf:x},"","",null,g,p)}return null},l.prototype.validateMinMax=function(g,p){if(typeof g!="number")return null;if(p.minimum!==void 0){if(g<p.minimum)return this.createError(h.NUMBER_MINIMUM,{value:g,minimum:p.minimum},"","/minimum",null,g,p);if(p.exclusiveMinimum&&g===p.minimum)return this.createError(h.NUMBER_MINIMUM_EXCLUSIVE,{value:g,minimum:p.minimum},"","/exclusiveMinimum",null,g,p)}if(p.maximum!==void 0){if(g>p.maximum)return this.createError(h.NUMBER_MAXIMUM,{value:g,maximum:p.maximum},"","/maximum",null,g,p);if(p.exclusiveMaximum&&g===p.maximum)return this.createError(h.NUMBER_MAXIMUM_EXCLUSIVE,{value:g,maximum:p.maximum},"","/exclusiveMaximum",null,g,p)}return null},l.prototype.validateNaN=function(g,p){return typeof g!="number"?null:isNaN(g)===!0||g===1/0||g===-1/0?this.createError(h.NUMBER_NOT_A_NUMBER,{value:g},"","/type",null,g,p):null},l.prototype.validateString=function(g,p,x){return this.validateStringLength(g,p,x)||this.validateStringPattern(g,p,x)||null},l.prototype.validateStringLength=function(g,p){return typeof g!="string"?null:p.minLength!==void 0&&g.length<p.minLength?this.createError(h.STRING_LENGTH_SHORT,{length:g.length,minimum:p.minLength},"","/minLength",null,g,p):p.maxLength!==void 0&&g.length>p.maxLength?this.createError(h.STRING_LENGTH_LONG,{length:g.length,maximum:p.maxLength},"","/maxLength",null,g,p):null},l.prototype.validateStringPattern=function(g,p){if(typeof g!="string"||typeof p.pattern!="string"&&!(p.pattern instanceof RegExp))return null;var x;if(p.pattern instanceof RegExp)x=p.pattern;else{var R,P="",_=p.pattern.match(/^\/(.+)\/([img]*)$/);_?(R=_[1],P=_[2]):R=p.pattern,x=new RegExp(R,P)}return x.test(g)?null:this.createError(h.STRING_PATTERN,{pattern:p.pattern},"","/pattern",null,g,p)},l.prototype.validateArray=function(g,p,x){return Array.isArray(g)&&(this.validateArrayLength(g,p,x)||this.validateArrayUniqueItems(g,p,x)||this.validateArrayItems(g,p,x))||null},l.prototype.validateArrayLength=function(g,p){var x;return p.minItems!==void 0&&g.length<p.minItems&&(x=this.createError(h.ARRAY_LENGTH_SHORT,{length:g.length,minimum:p.minItems},"","/minItems",null,g,p),this.handleError(x))||p.maxItems!==void 0&&g.length>p.maxItems&&(x=this.createError(h.ARRAY_LENGTH_LONG,{length:g.length,maximum:p.maxItems},"","/maxItems",null,g,p),this.handleError(x))?x:null},l.prototype.validateArrayUniqueItems=function(g,p){if(p.uniqueItems){for(var x=0;x<g.length;x++)for(var R=x+1;R<g.length;R++)if(s(g[x],g[R])){var P=this.createError(h.ARRAY_UNIQUE,{match1:x,match2:R},"","/uniqueItems",null,g,p);if(this.handleError(P))return P}}return null},l.prototype.validateArrayItems=function(g,p,x){if(p.items===void 0)return null;var R,P;if(Array.isArray(p.items)){for(P=0;P<g.length;P++)if(P<p.items.length){if(R=this.validateAll(g[P],p.items[P],[P],["items",P],x+"/"+P))return R}else if(p.additionalItems!==void 0){if(typeof p.additionalItems=="boolean"){if(!p.additionalItems&&(R=this.createError(h.ARRAY_ADDITIONAL_ITEMS,{},"/"+P,"/additionalItems",null,g,p),this.handleError(R)))return R}else if(R=this.validateAll(g[P],p.additionalItems,[P],["additionalItems"],x+"/"+P))return R}}else for(P=0;P<g.length;P++)if(R=this.validateAll(g[P],p.items,[P],["items"],x+"/"+P))return R;return null},l.prototype.validateObject=function(g,p,x){return typeof g!="object"||g===null||Array.isArray(g)?null:this.validateObjectMinMaxProperties(g,p,x)||this.validateObjectRequiredProperties(g,p,x)||this.validateObjectProperties(g,p,x)||this.validateObjectDependencies(g,p,x)||null},l.prototype.validateObjectMinMaxProperties=function(g,p){var x=Object.keys(g),R;return p.minProperties!==void 0&&x.length<p.minProperties&&(R=this.createError(h.OBJECT_PROPERTIES_MINIMUM,{propertyCount:x.length,minimum:p.minProperties},"","/minProperties",null,g,p),this.handleError(R))||p.maxProperties!==void 0&&x.length>p.maxProperties&&(R=this.createError(h.OBJECT_PROPERTIES_MAXIMUM,{propertyCount:x.length,maximum:p.maxProperties},"","/maxProperties",null,g,p),this.handleError(R))?R:null},l.prototype.validateObjectRequiredProperties=function(g,p){if(p.required!==void 0)for(var x=0;x<p.required.length;x++){var R=p.required[x];if(g[R]===void 0){var P=this.createError(h.OBJECT_REQUIRED,{key:R},"","/required/"+x,null,g,p);if(this.handleError(P))return P}}return null},l.prototype.validateObjectProperties=function(g,p,x){var R;for(var P in g){var _=x+"/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),k=!1;if(p.properties!==void 0&&p.properties[P]!==void 0&&(k=!0,R=this.validateAll(g[P],p.properties[P],[P],["properties",P],_)))return R;if(p.patternProperties!==void 0)for(var D in p.patternProperties){var W=new RegExp(D);if(W.test(P)&&(k=!0,R=this.validateAll(g[P],p.patternProperties[D],[P],["patternProperties",D],_)))return R}if(k)this.trackUnknownProperties&&(this.knownPropertyPaths[_]=!0,delete this.unknownPropertyPaths[_]);else if(p.additionalProperties!==void 0){if(this.trackUnknownProperties&&(this.knownPropertyPaths[_]=!0,delete this.unknownPropertyPaths[_]),typeof p.additionalProperties=="boolean"){if(!p.additionalProperties&&(R=this.createError(h.OBJECT_ADDITIONAL_PROPERTIES,{key:P},"","/additionalProperties",null,g,p).prefixWith(P,null),this.handleError(R)))return R}else if(R=this.validateAll(g[P],p.additionalProperties,[P],["additionalProperties"],_))return R}else this.trackUnknownProperties&&!this.knownPropertyPaths[_]&&(this.unknownPropertyPaths[_]=!0)}return null},l.prototype.validateObjectDependencies=function(g,p,x){var R;if(p.dependencies!==void 0){for(var P in p.dependencies)if(g[P]!==void 0){var _=p.dependencies[P];if(typeof _=="string"){if(g[_]===void 0&&(R=this.createError(h.OBJECT_DEPENDENCY_KEY,{key:P,missing:_},"","",null,g,p).prefixWith(null,P).prefixWith(null,"dependencies"),this.handleError(R)))return R}else if(Array.isArray(_))for(var k=0;k<_.length;k++){var D=_[k];if(g[D]===void 0&&(R=this.createError(h.OBJECT_DEPENDENCY_KEY,{key:P,missing:D},"","/"+k,null,g,p).prefixWith(null,P).prefixWith(null,"dependencies"),this.handleError(R)))return R}else if(R=this.validateAll(g,_,[],["dependencies",P],x))return R}}return null},l.prototype.validateCombinations=function(g,p,x){return this.validateAllOf(g,p,x)||this.validateAnyOf(g,p,x)||this.validateOneOf(g,p,x)||this.validateNot(g,p,x)||null},l.prototype.validateAllOf=function(g,p,x){if(p.allOf===void 0)return null;for(var R,P=0;P<p.allOf.length;P++){var _=p.allOf[P];if(R=this.validateAll(g,_,[],["allOf",P],x))return R}return null},l.prototype.validateAnyOf=function(g,p,x){if(p.anyOf===void 0)return null;var R=[],P=this.errors.length,_,k;this.trackUnknownProperties&&(_=this.unknownPropertyPaths,k=this.knownPropertyPaths);for(var D=!0,W=0;W<p.anyOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.anyOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["anyOf",W],x);if(B===null&&G===this.errors.length){if(this.errors=this.errors.slice(0,P),this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)k[Y]=!0,delete _[Y];for(var ae in this.unknownPropertyPaths)k[ae]||(_[ae]=!0);D=!1;continue}return null}B&&R.push(B.prefixWith(null,""+W).prefixWith(null,"anyOf"))}if(this.trackUnknownProperties&&(this.unknownPropertyPaths=_,this.knownPropertyPaths=k),D)return R=R.concat(this.errors.slice(P)),this.errors=this.errors.slice(0,P),this.createError(h.ANY_OF_MISSING,{},"","/anyOf",R,g,p)},l.prototype.validateOneOf=function(g,p,x){if(p.oneOf===void 0)return null;var R=null,P=[],_=this.errors.length,k,D;this.trackUnknownProperties&&(k=this.unknownPropertyPaths,D=this.knownPropertyPaths);for(var W=0;W<p.oneOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.oneOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["oneOf",W],x);if(B===null&&G===this.errors.length){if(R===null)R=W;else return this.errors=this.errors.slice(0,_),this.createError(h.ONE_OF_MULTIPLE,{index1:R,index2:W},"","/oneOf",null,g,p);if(this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)D[Y]=!0,delete k[Y];for(var ae in this.unknownPropertyPaths)D[ae]||(k[ae]=!0)}}else B&&P.push(B)}return this.trackUnknownProperties&&(this.unknownPropertyPaths=k,this.knownPropertyPaths=D),R===null?(P=P.concat(this.errors.slice(_)),this.errors=this.errors.slice(0,_),this.createError(h.ONE_OF_MISSING,{},"","/oneOf",P,g,p)):(this.errors=this.errors.slice(0,_),null)},l.prototype.validateNot=function(g,p,x){if(p.not===void 0)return null;var R=this.errors.length,P,_;this.trackUnknownProperties&&(P=this.unknownPropertyPaths,_=this.knownPropertyPaths,this.unknownPropertyPaths={},this.knownPropertyPaths={});var k=this.validateAll(g,p.not,null,null,x),D=this.errors.slice(R);return this.errors=this.errors.slice(0,R),this.trackUnknownProperties&&(this.unknownPropertyPaths=P,this.knownPropertyPaths=_),k===null&&D.length===0?this.createError(h.NOT_PASSED,{},"","/not",null,g,p):null},l.prototype.validateHypermedia=function(g,p,x){if(!p.links)return null;for(var R,P=0;P<p.links.length;P++){var _=p.links[P];if(_.rel==="describedby"){for(var k=new a(_.href),D=!0,W=0;W<k.varNames.length;W++)if(!(k.varNames[W]in g)){D=!1;break}if(D){var Z=k.fillFromObject(g),G={$ref:Z};if(R=this.validateAll(g,G,[],["links",P],x))return R}}}};function f(O){var g=String(O).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return g?{href:g[0]||"",protocol:g[1]||"",authority:g[2]||"",host:g[3]||"",hostname:g[4]||"",port:g[5]||"",pathname:g[6]||"",search:g[7]||"",hash:g[8]||""}:null}function d(O,g){function p(x){var R=[];return x.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(P){P==="/.."?R.pop():R.push(P)}),R.join("").replace(/^\//,x.charAt(0)==="/"?"/":"")}return g=f(g||""),O=f(O||""),!g||!O?null:(g.protocol||O.protocol)+(g.protocol||g.authority?g.authority:O.authority)+p(g.protocol||g.authority||g.pathname.charAt(0)==="/"?g.pathname:g.pathname?(O.authority&&!O.pathname?"/":"")+O.pathname.slice(0,O.pathname.lastIndexOf("/")+1)+g.pathname:O.pathname)+(g.protocol||g.authority||g.pathname?g.search:g.search||O.search)+g.hash}function y(O){return O.split("#")[0]}function m(O,g){if(O&&typeof O=="object")if(g===void 0?g=O.id:typeof O.id=="string"&&(g=d(g,O.id),O.id=g),Array.isArray(O))for(var p=0;p<O.length;p++)m(O[p],g);else{typeof O.$ref=="string"&&(O.$ref=d(g,O.$ref));for(var x in O)x!=="enum"&&m(O[x],g)}}function b(O){O=O||"en";var g=w[O];return function(p){var x=g[p.code]||E[p.code];if(typeof x!="string")return"Unknown error code "+p.code+": "+JSON.stringify(p.messageParams);var R=p.params;return x.replace(/\{([^{}]*)\}/g,function(P,_){var k=R[_];return typeof k=="string"||typeof k=="number"?k:P})}}var h={INVALID_TYPE:0,ENUM_MISMATCH:1,ANY_OF_MISSING:10,ONE_OF_MISSING:11,ONE_OF_MULTIPLE:12,NOT_PASSED:13,NUMBER_MULTIPLE_OF:100,NUMBER_MINIMUM:101,NUMBER_MINIMUM_EXCLUSIVE:102,NUMBER_MAXIMUM:103,NUMBER_MAXIMUM_EXCLUSIVE:104,NUMBER_NOT_A_NUMBER:105,STRING_LENGTH_SHORT:200,STRING_LENGTH_LONG:201,STRING_PATTERN:202,OBJECT_PROPERTIES_MINIMUM:300,OBJECT_PROPERTIES_MAXIMUM:301,OBJECT_REQUIRED:302,OBJECT_ADDITIONAL_PROPERTIES:303,OBJECT_DEPENDENCY_KEY:304,ARRAY_LENGTH_SHORT:400,ARRAY_LENGTH_LONG:401,ARRAY_UNIQUE:402,ARRAY_ADDITIONAL_ITEMS:403,FORMAT_CUSTOM:500,KEYWORD_CUSTOM:501,CIRCULAR_REFERENCE:600,UNKNOWN_PROPERTY:1e3},v={};for(var C in h)v[h[C]]=C;var E={INVALID_TYPE:"Invalid type: {type} (expected {expected})",ENUM_MISMATCH:"No enum match for: {value}",ANY_OF_MISSING:'Data does not match any schemas from "anyOf"',ONE_OF_MISSING:'Data does not match any schemas from "oneOf"',ONE_OF_MULTIPLE:'Data is valid against more than one schema from "oneOf": indices {index1} and {index2}',NOT_PASSED:'Data matches schema from "not"',NUMBER_MULTIPLE_OF:"Value {value} is not a multiple of {multipleOf}",NUMBER_MINIMUM:"Value {value} is less than minimum {minimum}",NUMBER_MINIMUM_EXCLUSIVE:"Value {value} is equal to exclusive minimum {minimum}",NUMBER_MAXIMUM:"Value {value} is greater than maximum {maximum}",NUMBER_MAXIMUM_EXCLUSIVE:"Value {value} is equal to exclusive maximum {maximum}",NUMBER_NOT_A_NUMBER:"Value {value} is not a valid number",STRING_LENGTH_SHORT:"String is too short ({length} chars), minimum {minimum}",STRING_LENGTH_LONG:"String is too long ({length} chars), maximum {maximum}",STRING_PATTERN:"String does not match pattern: {pattern}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({propertyCount}), minimum {minimum}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({propertyCount}), maximum {maximum}",OBJECT_REQUIRED:"Missing required property: {key}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {missing} (due to key: {key})",ARRAY_LENGTH_SHORT:"Array is too short ({length}), minimum {minimum}",ARRAY_LENGTH_LONG:"Array is too long ({length}), maximum {maximum}",ARRAY_UNIQUE:"Array items are not unique (indices {match1} and {match2})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",FORMAT_CUSTOM:"Format validation failed ({message})",KEYWORD_CUSTOM:"Keyword failed: {key} ({message})",CIRCULAR_REFERENCE:"Circular $refs: {urls}",UNKNOWN_PROPERTY:"Unknown property (not in schema)"};function S(O,g,p,x,R){if(Error.call(this),O===void 0)throw new Error("No error code supplied: "+x);this.message="",this.params=g,this.code=O,this.dataPath=p||"",this.schemaPath=x||"",this.subErrors=R||null;var P=new Error(this.message);if(this.stack=P.stack||P.stacktrace,!this.stack)try{throw P}catch(_){this.stack=_.stack||_.stacktrace}}S.prototype=Object.create(Error.prototype),S.prototype.constructor=S,S.prototype.name="ValidationError",S.prototype.prefixWith=function(O,g){if(O!==null&&(O=O.replace(/~/g,"~0").replace(/\//g,"~1"),this.dataPath="/"+O+this.dataPath),g!==null&&(g=g.replace(/~/g,"~0").replace(/\//g,"~1"),this.schemaPath="/"+g+this.schemaPath),this.subErrors!==null)for(var p=0;p<this.subErrors.length;p++)this.subErrors[p].prefixWith(O,g);return this};function T(O,g){if(g.substring(0,O.length)===O){var p=g.substring(O.length);if(g.length>0&&g.charAt(O.length-1)==="/"||p.charAt(0)==="#"||p.charAt(0)==="?")return!0}return!1}var w={};function A(O){var g=new l,p,x,R={setErrorReporter:function(P){return typeof P=="string"?this.language(P):(x=P,!0)},addFormat:function(){g.addFormat.apply(g,arguments)},language:function(P){return P?(w[P]||(P=P.split("-")[0]),w[P]?(p=P,P):!1):p},addLanguage:function(P,_){var k;for(k in h)_[k]&&!_[h[k]]&&(_[h[k]]=_[k]);var D=P.split("-")[0];if(!w[D])w[P]=_,w[D]=_;else{w[P]=Object.create(w[D]);for(k in _)typeof w[D][k]>"u"&&(w[D][k]=_[k]),w[P][k]=_[k]}return this},freshApi:function(P){var _=A();return P&&_.language(P),_},validate:function(P,_,k,D){var W=b(p),Z=x?function(Y,ae,oe){return x(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!1,Z,k,D);typeof _=="string"&&(_={$ref:_}),G.addSchema("",_);var B=G.validateAll(P,_,null,null,"");return!B&&D&&(B=G.banUnknownProperties(P,_)),this.error=B,this.missing=G.missing,this.valid=B===null,this.valid},validateResult:function(){var P={toString:function(){return this.valid?"valid":this.error.message}};return this.validate.apply(P,arguments),P},validateMultiple:function(P,_,k,D){var W=b(p),Z=x?function(Y,ae,oe){return x(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!0,Z,k,D);typeof _=="string"&&(_={$ref:_}),G.addSchema("",_),G.validateAll(P,_,null,null,""),D&&G.banUnknownProperties(P,_);var B={toString:function(){return this.valid?"valid":this.error.message}};return B.errors=G.errors,B.missing=G.missing,B.valid=B.errors.length===0,B},addSchema:function(){return g.addSchema.apply(g,arguments)},getSchema:function(){return g.getSchema.apply(g,arguments)},getSchemaMap:function(){return g.getSchemaMap.apply(g,arguments)},getSchemaUris:function(){return g.getSchemaUris.apply(g,arguments)},getMissingUris:function(){return g.getMissingUris.apply(g,arguments)},dropSchemas:function(){g.dropSchemas.apply(g,arguments)},defineKeyword:function(){g.defineKeyword.apply(g,arguments)},defineError:function(P,_,k){if(typeof P!="string"||!/^[A-Z]+(_[A-Z]+)*$/.test(P))throw new Error("Code name must be a string in UPPER_CASE_WITH_UNDERSCORES");if(typeof _!="number"||_%1!==0||_<1e4)throw new Error("Code number must be an integer > 10000");if(typeof h[P]<"u")throw new Error("Error already defined: "+P+" as "+h[P]);if(typeof v[_]<"u")throw new Error("Error code already used: "+v[_]+" as "+_);h[P]=_,v[_]=P,E[P]=E[_]=k;for(var D in w){var W=w[D];W[P]&&(W[_]=W[_]||W[P])}},reset:function(){g.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:m,resolveUrl:d,getDocumentUri:y,errorCodes:h};return R.language("en"),R}var M=A();return M.addLanguage("en-gb",E),M.tv4=M,M})}(mo)),mo.exports}var Iy=_y();const bf=Jt(Iy),qt=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},tl=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},xf=(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},Qt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?Ys(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=xf(t.enumNames,t.enum)),n.schema=t,n},ky=(e,t,r)=>{if(qt(t.type)==="tBoolean"&&!t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[kt.stringify(r.path)]=n,n}},Of=(e,t,r)=>{if(qt(t.type)==="string"&&!t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="text",r.lookup[kt.stringify(r.path)]=n,n}},Ef=(e,t,r)=>{if(qt(t.type)==="number"){const n=Qt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},Cf=(e,t,r)=>{if(qt(t.type)==="integer"){const n=Qt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},jy=(e,t,r)=>{if(qt(t.type)==="date"){const n=Qt(e,t,r);return n.key=r.path,n.type="date",r.lookup[kt.stringify(r.path)]=n,n}},Sf=(e,t,r)=>{if(qt(t.type)==="boolean"){const n=Qt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[kt.stringify(r.path)]=n,n}},Tf=(e,t,r)=>{if(qt(t.type)==="string"&&t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=tl(t.enum)),r.lookup[kt.stringify(r.path)]=n,n}},wf=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?wf(r):(r==null||r==="")&&delete e[t]}),Rf=(e,t,r)=>{if(qt(t.type)==="array"&&t.items&&t.items.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=tl(t.items.enum)),r.lookup[kt.stringify(r.path)]=n,n}},En=(e,t,r)=>{const n=Pr[qt(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"]&&Wg(i.schema["x-schema-form"])&&(i=Oy(i,i.schema["x-schema-form"])),i}},Pf=(e,t,r)=>{if(qt(t.type)==="object"){const n=Qt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[kt.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[kt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=En(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},Ay=(e,t,r)=>{if(qt(t.type)==="array"){const n=Qt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[kt.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=En(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},_f=(e,t,r)=>{if(qt(t.type)==="array"){const n=Qt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[kt.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=En(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}},Pr={string:[Tf,Of],object:[Pf],number:[Ef],integer:[Cf],boolean:[Sf],array:[Rf,Ay,_f],date:[jy],tBoolean:[ky]},If=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},qt(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=En(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}},kf=e=>e,Ny=(e,t)=>{Pr[e]||(Pr[e]=[]),Pr[e].push(t)},$y=(e,t)=>{Pr[e]||(Pr[e]=[]),Pr[e].unshift(t)},My=(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||[])},rl=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{rl(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{rl(n,t)})})},nl=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=If(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 kf(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=kt.parse(c.key)),c&&c.itemForm){c.items=[];const u=kt.stringify(c.key);s[u].items.forEach(d=>{const y=Ys(c.itemForm);y.key=d.key,c.items.push(y)})}if(c&&c.key){const u=kt.stringify(c.key);if(s[u]){const f=s[u];Object.keys(f).forEach(d=>{Object.prototype.hasOwnProperty.call(f,d)&&c[d]===void 0&&(c[d]=f[d])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=nl(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=nl(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&Sy(c.schema.default)&&(c.schema.default=!1),c}))};function Dy(e,t,r,n){const i=/^\d+$/;t||(t=this);const a=typeof e=="string"?kt.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 Mt={traverseForm:rl,traverseSchema:My,prependRule:$y,appendRule:Ny,postProcessFn:kf,getDefaults:If,defaultFormDefinition:En,defaults:Pr,array:_f,fieldset:Pf,checkboxes:Rf,select:Tf,checkbox:Sf,integer:Cf,number:Ef,text:Of,stdFormObj:Qt,canonicalTitleMap:xf,enumToTitleMap:tl,stripNullType:qt,merge:nl,validate:(e,t,r)=>{if(!e)return{valid:!0};const{schema:n}=e;if(!n)return{valid:!0};t===""&&(t=void 0),e.type==="number"&&t===null&&(t=void 0),e.type==="number"&&Number.isNaN(parseFloat(t))&&(t=void 0);const i={type:"object",properties:{}},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l={};typeof t<"u"&&(l[a]=t);const s=bf.validateResult(l,i);return s!=null&&!s.valid&&e.validationMessage!=null&&typeof t<"u"&&(s.error.message=r?r(e.validationMessage):e.validationMessage),s},validateBySchema:(e,t)=>bf.validateResult(t,e),selectOrSet:Dy,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:wf},Ly=e=>{let t;return e.form&&e.form.key&&(t=Mt.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},Fy=e=>e.displayName||e.name||"Component",jt=(e,t={})=>class extends we.Component{constructor(n){super(n),this.displayName=`ComposedComponent(${Fy(e)})`,this.onChangeValidate=this.onChangeValidate.bind(this),this.state=this.constructor.getDerivedStateFromProps(this.props)}static getDerivedStateFromProps(n){const{errorText:i,form:a,showErrors:l,localization:s}=n,c=s&&s.getLocalizedString,u=Ly(n);if(!l)return{value:u,valid:!0,error:""};const f=Mt.validate(a,u||void 0,c),d=f.valid?void 0:f.error;return{value:u,valid:f.valid,error:(f.valid?null:d.message)||i}}onChangeValidate(n,i){const{form:a,onChange:l,localization:s}=this.props,c=s&&s.getLocalizedString;let u=null;switch(a.schema?a.schema.type:a.type){case"integer":case"number":{u=n;break}case"boolean":u=n.target.checked;break;case"array":u=n;break;case"object":if(a.type==="date"){n.target.value.length>0?u=new Date(n.target.value):u="";break}({value:u}=n.target);break;default:({value:u}=n.target)}const d=Mt.validate(a,u,c);this.setState({value:u,valid:d.valid,error:d.valid?null:d.error.message}),l(a.key,u)}render(){return N.jsx(e,{...t,...this.props,...this.state,onChangeValidate:this.onChangeValidate})}};var go={exports:{}},yo={exports:{}},et={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,It,vt,Mr,vt),L[vt+It]=!0}}return I===n?ee(Ve):je(Ve),Ve}}function ie(I,J,fe){return H(I,J,fe,!0)}function Oe(I,J,fe){return H(I,J,fe,!1)}var Me=Oe,lt=ie;yn.Fragment=n,yn.jsx=Me,yn.jsxs=lt}()),yn}var xc;function Bm(){return xc||(xc=1,process.env.NODE_ENV==="production"?ao.exports=Lm():ao.exports=Fm()),ao.exports}var N=Bm(),bi,Oc;function qm(){if(Oc)return bi;Oc=1;function e(){this.__data__=[],this.size=0}return bi=e,bi}var xi,Ec;function so(){if(Ec)return xi;Ec=1;function e(t,r){return t===r||t!==t&&r!==r}return xi=e,xi}var Oi,Cc;function lo(){if(Cc)return Oi;Cc=1;var e=so();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Oi=t,Oi}var Ei,Sc;function Vm(){if(Sc)return Ei;Sc=1;var e=lo(),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 Ei=n,Ei}var Ci,Tc;function zm(){if(Tc)return Ci;Tc=1;var e=lo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ci=t,Ci}var Si,wc;function Um(){if(wc)return Si;wc=1;var e=lo();function t(r){return e(this.__data__,r)>-1}return Si=t,Si}var Ti,Rc;function Wm(){if(Rc)return Ti;Rc=1;var e=lo();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 Ti=t,Ti}var wi,Pc;function co(){if(Pc)return wi;Pc=1;var e=qm(),t=Vm(),r=zm(),n=Um(),i=Wm();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,wi=a,wi}var Ri,_c;function Hm(){if(_c)return Ri;_c=1;var e=co();function t(){this.__data__=new e,this.size=0}return Ri=t,Ri}var Pi,Ic;function Gm(){if(Ic)return Pi;Ic=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Pi=e,Pi}var _i,kc;function Km(){if(kc)return _i;kc=1;function e(t){return this.__data__.get(t)}return _i=e,_i}var Ii,jc;function Ym(){if(jc)return Ii;jc=1;function e(t){return this.__data__.has(t)}return Ii=e,Ii}var ki,Ac;function Nc(){if(Ac)return ki;Ac=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return ki=e,ki}var ji,$c;function ar(){if($c)return ji;$c=1;var e=Nc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ji=r,ji}var Ai,Mc;function Ni(){if(Mc)return Ai;Mc=1;var e=ar(),t=e.Symbol;return Ai=t,Ai}var $i,Dc;function Xm(){if(Dc)return $i;Dc=1;var e=Ni(),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 f=n.call(l);return u&&(s?l[i]=c:delete l[i]),f}return $i=a,$i}var Mi,Lc;function Jm(){if(Lc)return Mi;Lc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Mi=r,Mi}var Di,Fc;function vn(){if(Fc)return Di;Fc=1;var e=Ni(),t=Xm(),r=Jm(),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 Di=l,Di}var Li,Bc;function xr(){if(Bc)return Li;Bc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Li=e,Li}var Fi,qc;function Bi(){if(qc)return Fi;qc=1;var e=vn(),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 Fi=l,Fi}var qi,Vc;function Qm(){if(Vc)return qi;Vc=1;var e=ar(),t=e["__core-js_shared__"];return qi=t,qi}var Vi,zc;function Zm(){if(zc)return Vi;zc=1;var e=Qm(),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 Vi=r,Vi}var zi,Uc;function Wc(){if(Uc)return zi;Uc=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 zi=r,zi}var Ui,Hc;function eg(){if(Hc)return Ui;Hc=1;var e=Bi(),t=Zm(),r=xr(),n=Wc(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,f=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(y){if(!r(y)||t(y))return!1;var m=e(y)?f:a;return m.test(n(y))}return Ui=d,Ui}var Wi,Gc;function tg(){if(Gc)return Wi;Gc=1;function e(t,r){return t==null?void 0:t[r]}return Wi=e,Wi}var Hi,Kc;function Fr(){if(Kc)return Hi;Kc=1;var e=eg(),t=tg();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Hi=r,Hi}var Gi,Yc;function Ki(){if(Yc)return Gi;Yc=1;var e=Fr(),t=ar(),r=e(t,"Map");return Gi=r,Gi}var Yi,Xc;function uo(){if(Xc)return Yi;Xc=1;var e=Fr(),t=e(Object,"create");return Yi=t,Yi}var Xi,Jc;function rg(){if(Jc)return Xi;Jc=1;var e=uo();function t(){this.__data__=e?e(null):{},this.size=0}return Xi=t,Xi}var Ji,Qc;function ng(){if(Qc)return Ji;Qc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ji=e,Ji}var Qi,Zc;function og(){if(Zc)return Qi;Zc=1;var e=uo(),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 Qi=i,Qi}var Zi,eu;function ig(){if(eu)return Zi;eu=1;var e=uo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Zi=n,Zi}var ea,tu;function ag(){if(tu)return ea;tu=1;var e=uo(),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 ea=r,ea}var ta,ru;function sg(){if(ru)return ta;ru=1;var e=rg(),t=ng(),r=og(),n=ig(),i=ag();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,ta=a,ta}var ra,nu;function lg(){if(nu)return ra;nu=1;var e=sg(),t=co(),r=Ki();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ra=n,ra}var na,ou;function cg(){if(ou)return na;ou=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return na=e,na}var oa,iu;function po(){if(iu)return oa;iu=1;var e=cg();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return oa=t,oa}var ia,au;function ug(){if(au)return ia;au=1;var e=po();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ia=t,ia}var aa,su;function pg(){if(su)return aa;su=1;var e=po();function t(r){return e(this,r).get(r)}return aa=t,aa}var sa,lu;function fg(){if(lu)return sa;lu=1;var e=po();function t(r){return e(this,r).has(r)}return sa=t,sa}var la,cu;function dg(){if(cu)return la;cu=1;var e=po();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 la=t,la}var ca,uu;function hg(){if(uu)return ca;uu=1;var e=lg(),t=ug(),r=pg(),n=fg(),i=dg();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,ca=a,ca}var ua,pu;function mg(){if(pu)return ua;pu=1;var e=co(),t=Ki(),r=hg(),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 ua=i,ua}var pa,fu;function du(){if(fu)return pa;fu=1;var e=co(),t=Hm(),r=Gm(),n=Km(),i=Ym(),a=mg();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,pa=l,pa}var fa,hu;function mu(){if(hu)return fa;hu=1;var e=Fr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return fa=t,fa}var da,gu;function ha(){if(gu)return da;gu=1;var e=mu();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return da=t,da}var ma,yu;function vu(){if(yu)return ma;yu=1;var e=ha(),t=so();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return ma=r,ma}var ga,bu;function gg(){if(bu)return ga;bu=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 ga=e,ga}var ya,xu;function yg(){if(xu)return ya;xu=1;var e=gg(),t=e();return ya=t,ya}var bn={exports:{}};bn.exports;var Ou;function Eu(){return Ou||(Ou=1,function(e,t){var r=ar(),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,f){if(f)return u.slice();var d=u.length,y=s?s(d):new u.constructor(d);return u.copy(y),y}e.exports=c}(bn,bn.exports)),bn.exports}var va,Cu;function vg(){if(Cu)return va;Cu=1;var e=ar(),t=e.Uint8Array;return va=t,va}var ba,Su;function xa(){if(Su)return ba;Su=1;var e=vg();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return ba=t,ba}var Oa,Tu;function wu(){if(Tu)return Oa;Tu=1;var e=xa();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return Oa=t,Oa}var Ea,Ru;function Pu(){if(Ru)return Ea;Ru=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 Ea=e,Ea}var Ca,_u;function bg(){if(_u)return Ca;_u=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 Ca=r,Ca}var Sa,Iu;function ku(){if(Iu)return Sa;Iu=1;function e(t,r){return function(n){return t(r(n))}}return Sa=e,Sa}var Ta,ju;function wa(){if(ju)return Ta;ju=1;var e=ku(),t=e(Object.getPrototypeOf,Object);return Ta=t,Ta}var Ra,Au;function Pa(){if(Au)return Ra;Au=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ra=t,Ra}var _a,Nu;function $u(){if(Nu)return _a;Nu=1;var e=bg(),t=wa(),r=Pa();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return _a=n,_a}var Ia,Mu;function Br(){if(Mu)return Ia;Mu=1;function e(t){return t!=null&&typeof t=="object"}return Ia=e,Ia}var ka,Du;function xg(){if(Du)return ka;Du=1;var e=vn(),t=Br(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ka=n,ka}var ja,Lu;function Fu(){if(Lu)return ja;Lu=1;var e=xg(),t=Br(),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 ja=a,ja}var Aa,Bu;function fo(){if(Bu)return Aa;Bu=1;var e=Array.isArray;return Aa=e,Aa}var Na,qu;function Vu(){if(qu)return Na;qu=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Na=t,Na}var $a,zu;function ho(){if(zu)return $a;zu=1;var e=Bi(),t=Vu();function r(n){return n!=null&&t(n.length)&&!e(n)}return $a=r,$a}var Ma,Uu;function Og(){if(Uu)return Ma;Uu=1;var e=ho(),t=Br();function r(n){return t(n)&&e(n)}return Ma=r,Ma}var xn={exports:{}},Da,Wu;function Eg(){if(Wu)return Da;Wu=1;function e(){return!1}return Da=e,Da}xn.exports;var Hu;function La(){return Hu||(Hu=1,function(e,t){var r=ar(),n=Eg(),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}(xn,xn.exports)),xn.exports}var Fa,Gu;function Cg(){if(Gu)return Fa;Gu=1;var e=vn(),t=wa(),r=Br(),n="[object Object]",i=Function.prototype,a=Object.prototype,l=i.toString,s=a.hasOwnProperty,c=l.call(Object);function u(f){if(!r(f)||e(f)!=n)return!1;var d=t(f);if(d===null)return!0;var y=s.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&l.call(y)==c}return Fa=u,Fa}var Ba,Ku;function Sg(){if(Ku)return Ba;Ku=1;var e=vn(),t=Vu(),r=Br(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",f="[object Number]",d="[object Object]",y="[object RegExp]",m="[object Set]",b="[object String]",h="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",w="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",O="[object Uint8ClampedArray]",g="[object Uint16Array]",p="[object Uint32Array]",x={};x[E]=x[S]=x[T]=x[w]=x[A]=x[M]=x[O]=x[g]=x[p]=!0,x[n]=x[i]=x[v]=x[a]=x[C]=x[l]=x[s]=x[c]=x[u]=x[f]=x[d]=x[y]=x[m]=x[b]=x[h]=!1;function R(P){return r(P)&&t(P.length)&&!!x[e(P)]}return Ba=R,Ba}var qa,Yu;function Va(){if(Yu)return qa;Yu=1;function e(t){return function(r){return t(r)}}return qa=e,qa}var On={exports:{}};On.exports;var Xu;function za(){return Xu||(Xu=1,function(e,t){var r=Nc(),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}(On,On.exports)),On.exports}var Ua,Ju;function Qu(){if(Ju)return Ua;Ju=1;var e=Sg(),t=Va(),r=za(),n=r&&r.isTypedArray,i=n?t(n):e;return Ua=i,Ua}var Wa,Zu;function ep(){if(Zu)return Wa;Zu=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Wa=e,Wa}var Ha,tp;function rp(){if(tp)return Ha;tp=1;var e=ha(),t=so(),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 Ha=i,Ha}var Ga,np;function Xr(){if(np)return Ga;np=1;var e=rp(),t=ha();function r(n,i,a,l){var s=!a;a||(a={});for(var c=-1,u=i.length;++c<u;){var f=i[c],d=l?l(a[f],n[f],f,a,n):void 0;d===void 0&&(d=n[f]),s?t(a,f,d):e(a,f,d)}return a}return Ga=r,Ga}var Ka,op;function Tg(){if(op)return Ka;op=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ka=e,Ka}var Ya,ip;function ap(){if(ip)return Ya;ip=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 Ya=r,Ya}var Xa,sp;function lp(){if(sp)return Xa;sp=1;var e=Tg(),t=Fu(),r=fo(),n=La(),i=ap(),a=Qu(),l=Object.prototype,s=l.hasOwnProperty;function c(u,f){var d=r(u),y=!d&&t(u),m=!d&&!y&&n(u),b=!d&&!y&&!m&&a(u),h=d||y||m||b,v=h?e(u.length,String):[],C=v.length;for(var E in u)(f||s.call(u,E))&&!(h&&(E=="length"||m&&(E=="offset"||E=="parent")||b&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&v.push(E);return v}return Xa=c,Xa}var Ja,cp;function wg(){if(cp)return Ja;cp=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Ja=e,Ja}var Qa,up;function Rg(){if(up)return Qa;up=1;var e=xr(),t=Pa(),r=wg(),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 Qa=a,Qa}var Za,pp;function Jr(){if(pp)return Za;pp=1;var e=lp(),t=Rg(),r=ho();function n(i){return r(i)?e(i,!0):t(i)}return Za=n,Za}var es,fp;function Pg(){if(fp)return es;fp=1;var e=Xr(),t=Jr();function r(n){return e(n,t(n))}return es=r,es}var ts,dp;function _g(){if(dp)return ts;dp=1;var e=vu(),t=Eu(),r=wu(),n=Pu(),i=$u(),a=Fu(),l=fo(),s=Og(),c=La(),u=Bi(),f=xr(),d=Cg(),y=Qu(),m=ep(),b=Pg();function h(v,C,E,S,T,w,A){var M=m(v,E),O=m(C,E),g=A.get(O);if(g){e(v,E,g);return}var p=w?w(M,O,E+"",v,C,A):void 0,x=p===void 0;if(x){var R=l(O),P=!R&&c(O),_=!R&&!P&&y(O);p=O,R||P||_?l(M)?p=M:s(M)?p=n(M):P?(x=!1,p=t(O,!0)):_?(x=!1,p=r(O,!0)):p=[]:d(O)||a(O)?(p=M,a(M)?p=b(M):(!f(M)||u(M))&&(p=i(O))):x=!1}x&&(A.set(O,p),T(p,O,S,w,A),A.delete(O)),e(v,E,p)}return ts=h,ts}var rs,hp;function Ig(){if(hp)return rs;hp=1;var e=du(),t=vu(),r=yg(),n=_g(),i=xr(),a=Jr(),l=ep();function s(c,u,f,d,y){c!==u&&r(u,function(m,b){if(y||(y=new e),i(m))n(c,u,b,f,s,d,y);else{var h=d?d(l(c,b),m,b+"",c,u,y):void 0;h===void 0&&(h=m),t(c,b,h)}},a)}return rs=s,rs}var ns,mp;function gp(){if(mp)return ns;mp=1;function e(t){return t}return ns=e,ns}var os,yp;function kg(){if(yp)return os;yp=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 os=e,os}var is,vp;function jg(){if(vp)return is;vp=1;var e=kg(),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 f=Array(i+1);++s<i;)f[s]=l[s];return f[i]=a(u),e(n,this,f)}}return is=r,is}var as,bp;function Ag(){if(bp)return as;bp=1;function e(t){return function(){return t}}return as=e,as}var ss,xp;function Ng(){if(xp)return ss;xp=1;var e=Ag(),t=mu(),r=gp(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return ss=n,ss}var ls,Op;function $g(){if(Op)return ls;Op=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 ls=n,ls}var cs,Ep;function Mg(){if(Ep)return cs;Ep=1;var e=Ng(),t=$g(),r=t(e);return cs=r,cs}var us,Cp;function Dg(){if(Cp)return us;Cp=1;var e=gp(),t=jg(),r=Mg();function n(i,a){return r(t(i,a,e),i+"")}return us=n,us}var ps,Sp;function Lg(){if(Sp)return ps;Sp=1;var e=so(),t=ho(),r=ap(),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 ps=i,ps}var fs,Tp;function wp(){if(Tp)return fs;Tp=1;var e=Dg(),t=Lg();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 f=a[l];f&&n(i,f,l,c)}return i})}return fs=r,fs}var ds,Rp;function Fg(){if(Rp)return ds;Rp=1;var e=Ig(),t=wp(),r=t(function(n,i,a){e(n,i,a)});return ds=r,ds}var Bg=Fg();const qg=Jt(Bg);var hs,Pp;function Vg(){if(Pp)return hs;Pp=1;function e(t){return t==null}return hs=e,hs}var zg=Vg();const _p=Jt(zg);var Ug=xr();const Wg=Jt(Ug);var ms,Ip;function Hg(){if(Ip)return ms;Ip=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 ms=e,ms}var gs,kp;function Gg(){if(kp)return gs;kp=1;var e=ku(),t=e(Object.keys,Object);return gs=t,gs}var ys,jp;function Kg(){if(jp)return ys;jp=1;var e=Pa(),t=Gg(),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 ys=i,ys}var vs,Ap;function bs(){if(Ap)return vs;Ap=1;var e=lp(),t=Kg(),r=ho();function n(i){return r(i)?e(i):t(i)}return vs=n,vs}var xs,Np;function Yg(){if(Np)return xs;Np=1;var e=Xr(),t=bs();function r(n,i){return n&&e(i,t(i),n)}return xs=r,xs}var Os,$p;function Xg(){if($p)return Os;$p=1;var e=Xr(),t=Jr();function r(n,i){return n&&e(i,t(i),n)}return Os=r,Os}var Es,Mp;function Jg(){if(Mp)return Es;Mp=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 Es=e,Es}var Cs,Dp;function Lp(){if(Dp)return Cs;Dp=1;function e(){return[]}return Cs=e,Cs}var Ss,Fp;function Ts(){if(Fp)return Ss;Fp=1;var e=Jg(),t=Lp(),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 Ss=a,Ss}var ws,Bp;function Qg(){if(Bp)return ws;Bp=1;var e=Xr(),t=Ts();function r(n,i){return e(n,t(n),i)}return ws=r,ws}var Rs,qp;function Vp(){if(qp)return Rs;qp=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 Rs=e,Rs}var Ps,zp;function Up(){if(zp)return Ps;zp=1;var e=Vp(),t=wa(),r=Ts(),n=Lp(),i=Object.getOwnPropertySymbols,a=i?function(l){for(var s=[];l;)e(s,r(l)),l=t(l);return s}:n;return Ps=a,Ps}var _s,Wp;function Zg(){if(Wp)return _s;Wp=1;var e=Xr(),t=Up();function r(n,i){return e(n,t(n),i)}return _s=r,_s}var Is,Hp;function Gp(){if(Hp)return Is;Hp=1;var e=Vp(),t=fo();function r(n,i,a){var l=i(n);return t(n)?l:e(l,a(n))}return Is=r,Is}var ks,Kp;function ey(){if(Kp)return ks;Kp=1;var e=Gp(),t=Ts(),r=bs();function n(i){return e(i,r,t)}return ks=n,ks}var js,Yp;function ty(){if(Yp)return js;Yp=1;var e=Gp(),t=Up(),r=Jr();function n(i){return e(i,r,t)}return js=n,js}var As,Xp;function ry(){if(Xp)return As;Xp=1;var e=Fr(),t=ar(),r=e(t,"DataView");return As=r,As}var Ns,Jp;function ny(){if(Jp)return Ns;Jp=1;var e=Fr(),t=ar(),r=e(t,"Promise");return Ns=r,Ns}var $s,Qp;function oy(){if(Qp)return $s;Qp=1;var e=Fr(),t=ar(),r=e(t,"Set");return $s=r,$s}var Ms,Zp;function iy(){if(Zp)return Ms;Zp=1;var e=Fr(),t=ar(),r=e(t,"WeakMap");return Ms=r,Ms}var Ds,ef;function Ls(){if(ef)return Ds;ef=1;var e=ry(),t=Ki(),r=ny(),n=oy(),i=iy(),a=vn(),l=Wc(),s="[object Map]",c="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",y="[object DataView]",m=l(e),b=l(t),h=l(r),v=l(n),C=l(i),E=a;return(e&&E(new e(new ArrayBuffer(1)))!=y||t&&E(new t)!=s||r&&E(r.resolve())!=u||n&&E(new n)!=f||i&&E(new i)!=d)&&(E=function(S){var T=a(S),w=T==c?S.constructor:void 0,A=w?l(w):"";if(A)switch(A){case m:return y;case b:return s;case h:return u;case v:return f;case C:return d}return T}),Ds=E,Ds}var Fs,tf;function ay(){if(tf)return Fs;tf=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 Fs=r,Fs}var Bs,rf;function sy(){if(rf)return Bs;rf=1;var e=xa();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Bs=t,Bs}var qs,nf;function ly(){if(nf)return qs;nf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return qs=t,qs}var Vs,of;function cy(){if(of)return Vs;of=1;var e=Ni(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Vs=n,Vs}var zs,af;function uy(){if(af)return zs;af=1;var e=xa(),t=sy(),r=ly(),n=cy(),i=wu(),a="[object Boolean]",l="[object Date]",s="[object Map]",c="[object Number]",u="[object RegExp]",f="[object Set]",d="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",b="[object DataView]",h="[object Float32Array]",v="[object Float64Array]",C="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",w="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]";function O(g,p,x){var R=g.constructor;switch(p){case m:return e(g);case a:case l:return new R(+g);case b:return t(g,x);case h:case v:case C:case E:case S:case T:case w:case A:case M:return i(g,x);case s:return new R;case c:case d:return new R(g);case u:return r(g);case f:return new R;case y:return n(g)}}return zs=O,zs}var Us,sf;function py(){if(sf)return Us;sf=1;var e=Ls(),t=Br(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Us=n,Us}var Ws,lf;function fy(){if(lf)return Ws;lf=1;var e=py(),t=Va(),r=za(),n=r&&r.isMap,i=n?t(n):e;return Ws=i,Ws}var Hs,cf;function dy(){if(cf)return Hs;cf=1;var e=Ls(),t=Br(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Hs=n,Hs}var Gs,uf;function hy(){if(uf)return Gs;uf=1;var e=dy(),t=Va(),r=za(),n=r&&r.isSet,i=n?t(n):e;return Gs=i,Gs}var Ks,pf;function my(){if(pf)return Ks;pf=1;var e=du(),t=Hg(),r=rp(),n=Yg(),i=Xg(),a=Eu(),l=Pu(),s=Qg(),c=Zg(),u=ey(),f=ty(),d=Ls(),y=ay(),m=uy(),b=$u(),h=fo(),v=La(),C=fy(),E=xr(),S=hy(),T=bs(),w=Jr(),A=1,M=2,O=4,g="[object Arguments]",p="[object Array]",x="[object Boolean]",R="[object Date]",P="[object Error]",_="[object Function]",k="[object GeneratorFunction]",D="[object Map]",W="[object Number]",Z="[object Object]",G="[object RegExp]",B="[object Set]",Y="[object String]",ae="[object Symbol]",oe="[object WeakMap]",ne="[object ArrayBuffer]",ue="[object DataView]",ce="[object Float32Array]",ye="[object Float64Array]",se="[object Int8Array]",le="[object Int16Array]",te="[object Int32Array]",ve="[object Uint8Array]",X="[object Uint8ClampedArray]",Re="[object Uint16Array]",V="[object Uint32Array]",pe={};pe[g]=pe[p]=pe[ne]=pe[ue]=pe[x]=pe[R]=pe[ce]=pe[ye]=pe[se]=pe[le]=pe[te]=pe[D]=pe[W]=pe[Z]=pe[G]=pe[B]=pe[Y]=pe[ae]=pe[ve]=pe[X]=pe[Re]=pe[V]=!0,pe[P]=pe[_]=pe[oe]=!1;function de(Ce,Te,$e,He,Ne,be){var Fe,Ye=Te&A,ht=Te&M,Ct=Te&O;if($e&&(Fe=Ne?$e(Ce,He,Ne,be):$e(Ce)),Fe!==void 0)return Fe;if(!E(Ce))return Ce;var pt=h(Ce);if(pt){if(Fe=y(Ce),!Ye)return l(Ce,Fe)}else{var Ue=d(Ce),Be=Ue==_||Ue==k;if(v(Ce))return a(Ce,Ye);if(Ue==Z||Ue==g||Be&&!Ne){if(Fe=ht||Be?{}:b(Ce),!Ye)return ht?c(Ce,i(Fe,Ce)):s(Ce,n(Fe,Ce))}else{if(!pe[Ue])return Ne?Ce:{};Fe=m(Ce,Ue,Ye)}}be||(be=new e);var st=be.get(Ce);if(st)return st;be.set(Ce,Fe),S(Ce)?Ce.forEach(function(mt){Fe.add(de(mt,Te,$e,mt,Ce,be))}):C(Ce)&&Ce.forEach(function(mt,ft){Fe.set(ft,de(mt,Te,$e,ft,Ce,be))});var De=Ct?ht?f:u:ht?w:T,Ze=pt?void 0:De(Ce);return t(Ze||Ce,function(mt,ft){Ze&&(ft=mt,mt=Ce[ft]),r(Fe,ft,de(mt,Te,$e,ft,Ce,be))}),Fe}return Ks=de,Ks}var Ys,ff;function gy(){if(ff)return Ys;ff=1;var e=my(),t=1,r=4;function n(i){return e(i,t|r)}return Ys=n,Ys}var yy=gy();const mo=Jt(yy);var Xs,df;function vy(){if(df)return Xs;df=1;var e=Xr(),t=wp(),r=Jr(),n=t(function(i,a){e(a,r(a),i)});return Xs=n,Xs}var Js,hf;function by(){return hf||(hf=1,Js=vy()),Js}var xy=by();const Oy=Jt(xy);var Qs,mf;function Ey(){if(mf)return Qs;mf=1;function e(t){return t===void 0}return Qs=e,Qs}var Cy=Ey();const Sy=Jt(Cy);var Zs={},gf;function Ty(){return gf||(gf=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,f;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!=="'")f=i.indexOf("]",c),f===-1&&(f=i.length),l.push(i.slice(a+1,f)),a=i.slice(f+1,f+2)==="."?f+2:f+1;else{for(f=i.indexOf(u+"]",c),f===-1&&(f=i.length);i.slice(f-1,f)==="\\"&&c<i.length;)c++,f=i.indexOf(u+"]",c);l.push(i.slice(a+2,f).replace(r[u],u).replace(/\\+/g,function(d){return new Array(Math.ceil(d.length/2)+1).join("\\")})),a=i.slice(f+2,f+3)==="."?f+3:f+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 f=c.toString();return!l&&/^[A-z_]\w*$/.exec(f)?u!==0?"."+f:f:!l&&/^\d+$/.exec(f)?"["+f+"]":(f=f.replace(s,"\\$1"),"["+a+f+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})()}(Zs)),Zs}var el,yf;function wy(){return yf||(yf=1,el=Ty().ObjectPath),el}var Ry=wy();const kt=Jt(Ry);var go={exports:{}},Py=go.exports,vf;function _y(){return vf||(vf=1,function(e){(function(t,r){e.exports?e.exports=r():t.tv4=r()})(Py,function(){Object.keys||(Object.keys=function(){var O=Object.prototype.hasOwnProperty,g=!{toString:null}.propertyIsEnumerable("toString"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=p.length;return function(R){if(typeof R!="object"&&typeof R!="function"||R===null)throw new TypeError("Object.keys called on non-object");var P=[];for(var _ in R)O.call(R,_)&&P.push(_);if(g)for(var k=0;k<x;k++)O.call(R,p[k])&&P.push(p[k]);return P}}()),Object.create||(Object.create=function(){function O(){}return function(g){if(arguments.length!==1)throw new Error("Object.create implementation only accepts one parameter.");return O.prototype=g,new O}}()),Array.isArray||(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(O){if(this===null)throw new TypeError;var g=Object(this),p=g.length>>>0;if(p===0)return-1;var x=0;if(arguments.length>1&&(x=Number(arguments[1]),x!==x?x=0:x!==0&&x!==1/0&&x!==-1/0&&(x=(x>0||-1)*Math.floor(Math.abs(x)))),x>=p)return-1;for(var R=x>=0?x:Math.max(p-Math.abs(x),0);R<p;R++)if(R in g&&g[R]===O)return R;return-1}),Object.isFrozen||(Object.isFrozen=function(O){for(var g="tv4_test_frozen_key";O.hasOwnProperty(g);)g+=Math.random();try{return O[g]=!0,delete O[g],!1}catch{return!0}});var t={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},r={"*":!0};function n(O){return encodeURI(O).replace(/%25[0-9][0-9]/g,function(g){return"%"+g.substring(3)})}function i(O){var g="";t[O.charAt(0)]&&(g=O.charAt(0),O=O.substring(1));var p="",x="",R=!0,P=!1,_=!1;g==="+"?R=!1:g==="."?(x=".",p="."):g==="/"?(x="/",p="/"):g==="#"?(x="#",R=!1):g===";"?(x=";",p=";",P=!0,_=!0):g==="?"?(x="?",p="&",P=!0):g==="&"&&(x="&",p="&",P=!0);for(var k=[],D=O.split(","),W=[],Z=0;Z<D.length;Z++){var G=D[Z],B=null;if(G.indexOf(":")!==-1){var Y=G.split(":");G=Y[0],B=parseInt(Y[1],10)}for(var ae={};r[G.charAt(G.length-1)];)ae[G.charAt(G.length-1)]=!0,G=G.substring(0,G.length-1);var oe={truncate:B,name:G,suffices:ae};W.push(oe),k.push(G)}var ne=function(ue){for(var ce="",ye=0,se=0;se<W.length;se++){var le=W[se],te=ue(le.name);if(te==null||Array.isArray(te)&&te.length===0||typeof te=="object"&&Object.keys(te).length===0){ye++;continue}if(se===ye?ce+=x:ce+=p||",",Array.isArray(te)){P&&(ce+=le.name+"=");for(var ve=0;ve<te.length;ve++)ve>0&&(ce+=le.suffices["*"]&&p||",",le.suffices["*"]&&P&&(ce+=le.name+"=")),ce+=R?encodeURIComponent(te[ve]).replace(/!/g,"%21"):n(te[ve])}else if(typeof te=="object"){P&&!le.suffices["*"]&&(ce+=le.name+"=");var X=!0;for(var Re in te)X||(ce+=le.suffices["*"]&&p||","),X=!1,ce+=R?encodeURIComponent(Re).replace(/!/g,"%21"):n(Re),ce+=le.suffices["*"]?"=":",",ce+=R?encodeURIComponent(te[Re]).replace(/!/g,"%21"):n(te[Re])}else P&&(ce+=le.name,(!_||te!=="")&&(ce+="=")),le.truncate!=null&&(te=te.substring(0,le.truncate)),ce+=R?encodeURIComponent(te).replace(/!/g,"%21"):n(te)}return ce};return ne.varNames=k,{prefix:x,substitution:ne}}function a(O){if(!(this instanceof a))return new a(O);for(var g=O.split("{"),p=[g.shift()],x=[],R=[],P=[];g.length>0;){var _=g.shift(),k=_.split("}")[0],D=_.substring(k.length+1),W=i(k);R.push(W.substitution),x.push(W.prefix),p.push(D),P=P.concat(W.substitution.varNames)}this.fill=function(Z){for(var G=p[0],B=0;B<R.length;B++){var Y=R[B];G+=Y(Z),G+=p[B+1]}return G},this.varNames=P,this.template=O}a.prototype={toString:function(){return this.template},fillFromObject:function(O){return this.fill(function(g){return O[g]})}};var l=function(g,p,x,R,P){if(this.missing=[],this.missingMap={},this.formatValidators=g?Object.create(g.formatValidators):{},this.schemas=g?Object.create(g.schemas):{},this.collectMultiple=p,this.errors=[],this.handleError=p?this.collectError:this.returnError,R&&(this.checkRecursive=!0,this.scanned=[],this.scannedFrozen=[],this.scannedFrozenSchemas=[],this.scannedFrozenValidationErrors=[],this.validatedSchemasKey="tv4_validation_id",this.validationErrorsKey="tv4_validation_errors_id"),P&&(this.trackUnknownProperties=!0,this.knownPropertyPaths={},this.unknownPropertyPaths={}),this.errorReporter=x||b("en"),typeof this.errorReporter=="string")throw new Error("debug");if(this.definedKeywords={},g)for(var _ in g.definedKeywords)this.definedKeywords[_]=g.definedKeywords[_].slice(0)};l.prototype.defineKeyword=function(O,g){this.definedKeywords[O]=this.definedKeywords[O]||[],this.definedKeywords[O].push(g)},l.prototype.createError=function(O,g,p,x,R,P,_){var k=new S(O,g,p,x,R);return k.message=this.errorReporter(k,P,_),k},l.prototype.returnError=function(O){return O},l.prototype.collectError=function(O){return O&&this.errors.push(O),null},l.prototype.prefixErrors=function(O,g,p){for(var x=O;x<this.errors.length;x++)this.errors[x]=this.errors[x].prefixWith(g,p);return this},l.prototype.banUnknownProperties=function(O,g){for(var p in this.unknownPropertyPaths){var x=this.createError(h.UNKNOWN_PROPERTY,{path:p},p,"",null,O,g),R=this.handleError(x);if(R)return R}return null},l.prototype.addFormat=function(O,g){if(typeof O=="object"){for(var p in O)this.addFormat(p,O[p]);return this}this.formatValidators[O]=g},l.prototype.resolveRefs=function(O,g){if(O.$ref!==void 0){if(g=g||{},g[O.$ref])return this.createError(h.CIRCULAR_REFERENCE,{urls:Object.keys(g).join(", ")},"","",null,void 0,O);g[O.$ref]=!0,O=this.getSchema(O.$ref,g)}return O},l.prototype.getSchema=function(O,g){var p;if(this.schemas[O]!==void 0)return p=this.schemas[O],this.resolveRefs(p,g);var x=O,R="";if(O.indexOf("#")!==-1&&(R=O.substring(O.indexOf("#")+1),x=O.substring(0,O.indexOf("#"))),typeof this.schemas[x]=="object"){p=this.schemas[x];var P=decodeURIComponent(R);if(P==="")return this.resolveRefs(p,g);if(P.charAt(0)!=="/")return;for(var _=P.split("/").slice(1),k=0;k<_.length;k++){var D=_[k].replace(/~1/g,"/").replace(/~0/g,"~");if(p[D]===void 0){p=void 0;break}p=p[D]}if(p!==void 0)return this.resolveRefs(p,g)}this.missing[x]===void 0&&(this.missing.push(x),this.missing[x]=x,this.missingMap[x]=x)},l.prototype.searchSchemas=function(O,g){if(Array.isArray(O))for(var p=0;p<O.length;p++)this.searchSchemas(O[p],g);else if(O&&typeof O=="object"){typeof O.id=="string"&&T(g,O.id)&&this.schemas[O.id]===void 0&&(this.schemas[O.id]=O);for(var x in O)if(x!=="enum"){if(typeof O[x]=="object")this.searchSchemas(O[x],g);else if(x==="$ref"){var R=y(O[x]);R&&this.schemas[R]===void 0&&this.missingMap[R]===void 0&&(this.missingMap[R]=R)}}}},l.prototype.addSchema=function(O,g){if(typeof O!="string"||typeof g>"u")if(typeof O=="object"&&typeof O.id=="string")g=O,O=g.id;else return;O===y(O)+"#"&&(O=y(O)),this.schemas[O]=g,delete this.missingMap[O],m(g,O),this.searchSchemas(g,O)},l.prototype.getSchemaMap=function(){var O={};for(var g in this.schemas)O[g]=this.schemas[g];return O},l.prototype.getSchemaUris=function(O){var g=[];for(var p in this.schemas)(!O||O.test(p))&&g.push(p);return g},l.prototype.getMissingUris=function(O){var g=[];for(var p in this.missingMap)(!O||O.test(p))&&g.push(p);return g},l.prototype.dropSchemas=function(){this.schemas={},this.reset()},l.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},l.prototype.validateAll=function(O,g,p,x,R){var P;if(g=this.resolveRefs(g),g){if(g instanceof S)return this.errors.push(g),g}else return null;var _=this.errors.length,k,D=null,W=null;if(this.checkRecursive&&O&&typeof O=="object"){if(P=!this.scanned.length,O[this.validatedSchemasKey]){var Z=O[this.validatedSchemasKey].indexOf(g);if(Z!==-1)return this.errors=this.errors.concat(O[this.validationErrorsKey][Z]),null}if(Object.isFrozen(O)&&(k=this.scannedFrozen.indexOf(O),k!==-1)){var G=this.scannedFrozenSchemas[k].indexOf(g);if(G!==-1)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[k][G]),null}if(this.scanned.push(O),Object.isFrozen(O))k===-1&&(k=this.scannedFrozen.length,this.scannedFrozen.push(O),this.scannedFrozenSchemas.push([])),D=this.scannedFrozenSchemas[k].length,this.scannedFrozenSchemas[k][D]=g,this.scannedFrozenValidationErrors[k][D]=[];else{if(!O[this.validatedSchemasKey])try{Object.defineProperty(O,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(O,this.validationErrorsKey,{value:[],configurable:!0})}catch{O[this.validatedSchemasKey]=[],O[this.validationErrorsKey]=[]}W=O[this.validatedSchemasKey].length,O[this.validatedSchemasKey][W]=g,O[this.validationErrorsKey][W]=[]}}var B=this.errors.length,Y=this.validateBasic(O,g,R)||this.validateNumeric(O,g,R)||this.validateString(O,g,R)||this.validateArray(O,g,R)||this.validateObject(O,g,R)||this.validateCombinations(O,g,R)||this.validateHypermedia(O,g,R)||this.validateFormat(O,g,R)||this.validateDefinedKeywords(O,g,R)||null;if(P){for(;this.scanned.length;){var ae=this.scanned.pop();delete ae[this.validatedSchemasKey]}this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(Y||B!==this.errors.length)for(;p&&p.length||x&&x.length;){var oe=p&&p.length?""+p.pop():null,ne=x&&x.length?""+x.pop():null;Y&&(Y=Y.prefixWith(oe,ne)),this.prefixErrors(B,oe,ne)}return D!==null?this.scannedFrozenValidationErrors[k][D]=this.errors.slice(_):W!==null&&(O[this.validationErrorsKey][W]=this.errors.slice(_)),this.handleError(Y)},l.prototype.validateFormat=function(O,g){if(typeof g.format!="string"||!this.formatValidators[g.format])return null;var p=this.formatValidators[g.format].call(null,O,g);return typeof p=="string"||typeof p=="number"?this.createError(h.FORMAT_CUSTOM,{message:p},"","/format",null,O,g):p&&typeof p=="object"?this.createError(h.FORMAT_CUSTOM,{message:p.message||"?"},p.dataPath||"",p.schemaPath||"/format",null,O,g):null},l.prototype.validateDefinedKeywords=function(O,g,p){for(var x in this.definedKeywords)if(!(typeof g[x]>"u"))for(var R=this.definedKeywords[x],P=0;P<R.length;P++){var _=R[P],k=_(O,g[x],g,p);if(typeof k=="string"||typeof k=="number")return this.createError(h.KEYWORD_CUSTOM,{key:x,message:k},"","",null,O,g).prefixWith(null,x);if(k&&typeof k=="object"){var D=k.code;if(typeof D=="string"){if(!h[D])throw new Error("Undefined error code (use defineError): "+D);D=h[D]}else typeof D!="number"&&(D=h.KEYWORD_CUSTOM);var W=typeof k.message=="object"?k.message:{key:x,message:k.message||"?"},Z=k.schemaPath||"/"+x.replace(/~/g,"~0").replace(/\//g,"~1");return this.createError(D,W,k.dataPath||null,Z,null,O,g)}}return null};function s(O,g){if(O===g)return!0;if(O&&g&&typeof O=="object"&&typeof g=="object"){if(Array.isArray(O)!==Array.isArray(g))return!1;if(Array.isArray(O)){if(O.length!==g.length)return!1;for(var p=0;p<O.length;p++)if(!s(O[p],g[p]))return!1}else{var x;for(x in O)if(g[x]===void 0&&O[x]!==void 0)return!1;for(x in g)if(O[x]===void 0&&g[x]!==void 0)return!1;for(x in O)if(!s(O[x],g[x]))return!1}return!0}return!1}l.prototype.validateBasic=function(g,p,x){var R;return(R=this.validateType(g,p,x))||(R=this.validateEnum(g,p,x))?R.prefixWith(null,"type"):null},l.prototype.validateType=function(g,p){if(p.type===void 0)return null;var x=typeof g;g===null?x="null":Array.isArray(g)&&(x="array");var R=p.type;Array.isArray(R)||(R=[R]);for(var P=0;P<R.length;P++){var _=R[P];if(_===x||_==="integer"&&x==="number"&&g%1===0)return null}return this.createError(h.INVALID_TYPE,{type:x,expected:R.join("/")},"","",null,g,p)},l.prototype.validateEnum=function(g,p){if(p.enum===void 0)return null;for(var x=0;x<p.enum.length;x++){var R=p.enum[x];if(s(g,R))return null}return this.createError(h.ENUM_MISMATCH,{value:typeof JSON<"u"?JSON.stringify(g):g},"","",null,g,p)},l.prototype.validateNumeric=function(g,p,x){return this.validateMultipleOf(g,p,x)||this.validateMinMax(g,p,x)||this.validateNaN(g,p,x)||null};var c=Math.pow(2,-51),u=1-c;l.prototype.validateMultipleOf=function(g,p){var x=p.multipleOf||p.divisibleBy;if(x===void 0)return null;if(typeof g=="number"){var R=g/x%1;if(R>=c&&R<u)return this.createError(h.NUMBER_MULTIPLE_OF,{value:g,multipleOf:x},"","",null,g,p)}return null},l.prototype.validateMinMax=function(g,p){if(typeof g!="number")return null;if(p.minimum!==void 0){if(g<p.minimum)return this.createError(h.NUMBER_MINIMUM,{value:g,minimum:p.minimum},"","/minimum",null,g,p);if(p.exclusiveMinimum&&g===p.minimum)return this.createError(h.NUMBER_MINIMUM_EXCLUSIVE,{value:g,minimum:p.minimum},"","/exclusiveMinimum",null,g,p)}if(p.maximum!==void 0){if(g>p.maximum)return this.createError(h.NUMBER_MAXIMUM,{value:g,maximum:p.maximum},"","/maximum",null,g,p);if(p.exclusiveMaximum&&g===p.maximum)return this.createError(h.NUMBER_MAXIMUM_EXCLUSIVE,{value:g,maximum:p.maximum},"","/exclusiveMaximum",null,g,p)}return null},l.prototype.validateNaN=function(g,p){return typeof g!="number"?null:isNaN(g)===!0||g===1/0||g===-1/0?this.createError(h.NUMBER_NOT_A_NUMBER,{value:g},"","/type",null,g,p):null},l.prototype.validateString=function(g,p,x){return this.validateStringLength(g,p,x)||this.validateStringPattern(g,p,x)||null},l.prototype.validateStringLength=function(g,p){return typeof g!="string"?null:p.minLength!==void 0&&g.length<p.minLength?this.createError(h.STRING_LENGTH_SHORT,{length:g.length,minimum:p.minLength},"","/minLength",null,g,p):p.maxLength!==void 0&&g.length>p.maxLength?this.createError(h.STRING_LENGTH_LONG,{length:g.length,maximum:p.maxLength},"","/maxLength",null,g,p):null},l.prototype.validateStringPattern=function(g,p){if(typeof g!="string"||typeof p.pattern!="string"&&!(p.pattern instanceof RegExp))return null;var x;if(p.pattern instanceof RegExp)x=p.pattern;else{var R,P="",_=p.pattern.match(/^\/(.+)\/([img]*)$/);_?(R=_[1],P=_[2]):R=p.pattern,x=new RegExp(R,P)}return x.test(g)?null:this.createError(h.STRING_PATTERN,{pattern:p.pattern},"","/pattern",null,g,p)},l.prototype.validateArray=function(g,p,x){return Array.isArray(g)&&(this.validateArrayLength(g,p,x)||this.validateArrayUniqueItems(g,p,x)||this.validateArrayItems(g,p,x))||null},l.prototype.validateArrayLength=function(g,p){var x;return p.minItems!==void 0&&g.length<p.minItems&&(x=this.createError(h.ARRAY_LENGTH_SHORT,{length:g.length,minimum:p.minItems},"","/minItems",null,g,p),this.handleError(x))||p.maxItems!==void 0&&g.length>p.maxItems&&(x=this.createError(h.ARRAY_LENGTH_LONG,{length:g.length,maximum:p.maxItems},"","/maxItems",null,g,p),this.handleError(x))?x:null},l.prototype.validateArrayUniqueItems=function(g,p){if(p.uniqueItems){for(var x=0;x<g.length;x++)for(var R=x+1;R<g.length;R++)if(s(g[x],g[R])){var P=this.createError(h.ARRAY_UNIQUE,{match1:x,match2:R},"","/uniqueItems",null,g,p);if(this.handleError(P))return P}}return null},l.prototype.validateArrayItems=function(g,p,x){if(p.items===void 0)return null;var R,P;if(Array.isArray(p.items)){for(P=0;P<g.length;P++)if(P<p.items.length){if(R=this.validateAll(g[P],p.items[P],[P],["items",P],x+"/"+P))return R}else if(p.additionalItems!==void 0){if(typeof p.additionalItems=="boolean"){if(!p.additionalItems&&(R=this.createError(h.ARRAY_ADDITIONAL_ITEMS,{},"/"+P,"/additionalItems",null,g,p),this.handleError(R)))return R}else if(R=this.validateAll(g[P],p.additionalItems,[P],["additionalItems"],x+"/"+P))return R}}else for(P=0;P<g.length;P++)if(R=this.validateAll(g[P],p.items,[P],["items"],x+"/"+P))return R;return null},l.prototype.validateObject=function(g,p,x){return typeof g!="object"||g===null||Array.isArray(g)?null:this.validateObjectMinMaxProperties(g,p,x)||this.validateObjectRequiredProperties(g,p,x)||this.validateObjectProperties(g,p,x)||this.validateObjectDependencies(g,p,x)||null},l.prototype.validateObjectMinMaxProperties=function(g,p){var x=Object.keys(g),R;return p.minProperties!==void 0&&x.length<p.minProperties&&(R=this.createError(h.OBJECT_PROPERTIES_MINIMUM,{propertyCount:x.length,minimum:p.minProperties},"","/minProperties",null,g,p),this.handleError(R))||p.maxProperties!==void 0&&x.length>p.maxProperties&&(R=this.createError(h.OBJECT_PROPERTIES_MAXIMUM,{propertyCount:x.length,maximum:p.maxProperties},"","/maxProperties",null,g,p),this.handleError(R))?R:null},l.prototype.validateObjectRequiredProperties=function(g,p){if(p.required!==void 0)for(var x=0;x<p.required.length;x++){var R=p.required[x];if(g[R]===void 0){var P=this.createError(h.OBJECT_REQUIRED,{key:R},"","/required/"+x,null,g,p);if(this.handleError(P))return P}}return null},l.prototype.validateObjectProperties=function(g,p,x){var R;for(var P in g){var _=x+"/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),k=!1;if(p.properties!==void 0&&p.properties[P]!==void 0&&(k=!0,R=this.validateAll(g[P],p.properties[P],[P],["properties",P],_)))return R;if(p.patternProperties!==void 0)for(var D in p.patternProperties){var W=new RegExp(D);if(W.test(P)&&(k=!0,R=this.validateAll(g[P],p.patternProperties[D],[P],["patternProperties",D],_)))return R}if(k)this.trackUnknownProperties&&(this.knownPropertyPaths[_]=!0,delete this.unknownPropertyPaths[_]);else if(p.additionalProperties!==void 0){if(this.trackUnknownProperties&&(this.knownPropertyPaths[_]=!0,delete this.unknownPropertyPaths[_]),typeof p.additionalProperties=="boolean"){if(!p.additionalProperties&&(R=this.createError(h.OBJECT_ADDITIONAL_PROPERTIES,{key:P},"","/additionalProperties",null,g,p).prefixWith(P,null),this.handleError(R)))return R}else if(R=this.validateAll(g[P],p.additionalProperties,[P],["additionalProperties"],_))return R}else this.trackUnknownProperties&&!this.knownPropertyPaths[_]&&(this.unknownPropertyPaths[_]=!0)}return null},l.prototype.validateObjectDependencies=function(g,p,x){var R;if(p.dependencies!==void 0){for(var P in p.dependencies)if(g[P]!==void 0){var _=p.dependencies[P];if(typeof _=="string"){if(g[_]===void 0&&(R=this.createError(h.OBJECT_DEPENDENCY_KEY,{key:P,missing:_},"","",null,g,p).prefixWith(null,P).prefixWith(null,"dependencies"),this.handleError(R)))return R}else if(Array.isArray(_))for(var k=0;k<_.length;k++){var D=_[k];if(g[D]===void 0&&(R=this.createError(h.OBJECT_DEPENDENCY_KEY,{key:P,missing:D},"","/"+k,null,g,p).prefixWith(null,P).prefixWith(null,"dependencies"),this.handleError(R)))return R}else if(R=this.validateAll(g,_,[],["dependencies",P],x))return R}}return null},l.prototype.validateCombinations=function(g,p,x){return this.validateAllOf(g,p,x)||this.validateAnyOf(g,p,x)||this.validateOneOf(g,p,x)||this.validateNot(g,p,x)||null},l.prototype.validateAllOf=function(g,p,x){if(p.allOf===void 0)return null;for(var R,P=0;P<p.allOf.length;P++){var _=p.allOf[P];if(R=this.validateAll(g,_,[],["allOf",P],x))return R}return null},l.prototype.validateAnyOf=function(g,p,x){if(p.anyOf===void 0)return null;var R=[],P=this.errors.length,_,k;this.trackUnknownProperties&&(_=this.unknownPropertyPaths,k=this.knownPropertyPaths);for(var D=!0,W=0;W<p.anyOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.anyOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["anyOf",W],x);if(B===null&&G===this.errors.length){if(this.errors=this.errors.slice(0,P),this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)k[Y]=!0,delete _[Y];for(var ae in this.unknownPropertyPaths)k[ae]||(_[ae]=!0);D=!1;continue}return null}B&&R.push(B.prefixWith(null,""+W).prefixWith(null,"anyOf"))}if(this.trackUnknownProperties&&(this.unknownPropertyPaths=_,this.knownPropertyPaths=k),D)return R=R.concat(this.errors.slice(P)),this.errors=this.errors.slice(0,P),this.createError(h.ANY_OF_MISSING,{},"","/anyOf",R,g,p)},l.prototype.validateOneOf=function(g,p,x){if(p.oneOf===void 0)return null;var R=null,P=[],_=this.errors.length,k,D;this.trackUnknownProperties&&(k=this.unknownPropertyPaths,D=this.knownPropertyPaths);for(var W=0;W<p.oneOf.length;W++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var Z=p.oneOf[W],G=this.errors.length,B=this.validateAll(g,Z,[],["oneOf",W],x);if(B===null&&G===this.errors.length){if(R===null)R=W;else return this.errors=this.errors.slice(0,_),this.createError(h.ONE_OF_MULTIPLE,{index1:R,index2:W},"","/oneOf",null,g,p);if(this.trackUnknownProperties){for(var Y in this.knownPropertyPaths)D[Y]=!0,delete k[Y];for(var ae in this.unknownPropertyPaths)D[ae]||(k[ae]=!0)}}else B&&P.push(B)}return this.trackUnknownProperties&&(this.unknownPropertyPaths=k,this.knownPropertyPaths=D),R===null?(P=P.concat(this.errors.slice(_)),this.errors=this.errors.slice(0,_),this.createError(h.ONE_OF_MISSING,{},"","/oneOf",P,g,p)):(this.errors=this.errors.slice(0,_),null)},l.prototype.validateNot=function(g,p,x){if(p.not===void 0)return null;var R=this.errors.length,P,_;this.trackUnknownProperties&&(P=this.unknownPropertyPaths,_=this.knownPropertyPaths,this.unknownPropertyPaths={},this.knownPropertyPaths={});var k=this.validateAll(g,p.not,null,null,x),D=this.errors.slice(R);return this.errors=this.errors.slice(0,R),this.trackUnknownProperties&&(this.unknownPropertyPaths=P,this.knownPropertyPaths=_),k===null&&D.length===0?this.createError(h.NOT_PASSED,{},"","/not",null,g,p):null},l.prototype.validateHypermedia=function(g,p,x){if(!p.links)return null;for(var R,P=0;P<p.links.length;P++){var _=p.links[P];if(_.rel==="describedby"){for(var k=new a(_.href),D=!0,W=0;W<k.varNames.length;W++)if(!(k.varNames[W]in g)){D=!1;break}if(D){var Z=k.fillFromObject(g),G={$ref:Z};if(R=this.validateAll(g,G,[],["links",P],x))return R}}}};function f(O){var g=String(O).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return g?{href:g[0]||"",protocol:g[1]||"",authority:g[2]||"",host:g[3]||"",hostname:g[4]||"",port:g[5]||"",pathname:g[6]||"",search:g[7]||"",hash:g[8]||""}:null}function d(O,g){function p(x){var R=[];return x.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(P){P==="/.."?R.pop():R.push(P)}),R.join("").replace(/^\//,x.charAt(0)==="/"?"/":"")}return g=f(g||""),O=f(O||""),!g||!O?null:(g.protocol||O.protocol)+(g.protocol||g.authority?g.authority:O.authority)+p(g.protocol||g.authority||g.pathname.charAt(0)==="/"?g.pathname:g.pathname?(O.authority&&!O.pathname?"/":"")+O.pathname.slice(0,O.pathname.lastIndexOf("/")+1)+g.pathname:O.pathname)+(g.protocol||g.authority||g.pathname?g.search:g.search||O.search)+g.hash}function y(O){return O.split("#")[0]}function m(O,g){if(O&&typeof O=="object")if(g===void 0?g=O.id:typeof O.id=="string"&&(g=d(g,O.id),O.id=g),Array.isArray(O))for(var p=0;p<O.length;p++)m(O[p],g);else{typeof O.$ref=="string"&&(O.$ref=d(g,O.$ref));for(var x in O)x!=="enum"&&m(O[x],g)}}function b(O){O=O||"en";var g=w[O];return function(p){var x=g[p.code]||E[p.code];if(typeof x!="string")return"Unknown error code "+p.code+": "+JSON.stringify(p.messageParams);var R=p.params;return x.replace(/\{([^{}]*)\}/g,function(P,_){var k=R[_];return typeof k=="string"||typeof k=="number"?k:P})}}var h={INVALID_TYPE:0,ENUM_MISMATCH:1,ANY_OF_MISSING:10,ONE_OF_MISSING:11,ONE_OF_MULTIPLE:12,NOT_PASSED:13,NUMBER_MULTIPLE_OF:100,NUMBER_MINIMUM:101,NUMBER_MINIMUM_EXCLUSIVE:102,NUMBER_MAXIMUM:103,NUMBER_MAXIMUM_EXCLUSIVE:104,NUMBER_NOT_A_NUMBER:105,STRING_LENGTH_SHORT:200,STRING_LENGTH_LONG:201,STRING_PATTERN:202,OBJECT_PROPERTIES_MINIMUM:300,OBJECT_PROPERTIES_MAXIMUM:301,OBJECT_REQUIRED:302,OBJECT_ADDITIONAL_PROPERTIES:303,OBJECT_DEPENDENCY_KEY:304,ARRAY_LENGTH_SHORT:400,ARRAY_LENGTH_LONG:401,ARRAY_UNIQUE:402,ARRAY_ADDITIONAL_ITEMS:403,FORMAT_CUSTOM:500,KEYWORD_CUSTOM:501,CIRCULAR_REFERENCE:600,UNKNOWN_PROPERTY:1e3},v={};for(var C in h)v[h[C]]=C;var E={INVALID_TYPE:"Invalid type: {type} (expected {expected})",ENUM_MISMATCH:"No enum match for: {value}",ANY_OF_MISSING:'Data does not match any schemas from "anyOf"',ONE_OF_MISSING:'Data does not match any schemas from "oneOf"',ONE_OF_MULTIPLE:'Data is valid against more than one schema from "oneOf": indices {index1} and {index2}',NOT_PASSED:'Data matches schema from "not"',NUMBER_MULTIPLE_OF:"Value {value} is not a multiple of {multipleOf}",NUMBER_MINIMUM:"Value {value} is less than minimum {minimum}",NUMBER_MINIMUM_EXCLUSIVE:"Value {value} is equal to exclusive minimum {minimum}",NUMBER_MAXIMUM:"Value {value} is greater than maximum {maximum}",NUMBER_MAXIMUM_EXCLUSIVE:"Value {value} is equal to exclusive maximum {maximum}",NUMBER_NOT_A_NUMBER:"Value {value} is not a valid number",STRING_LENGTH_SHORT:"String is too short ({length} chars), minimum {minimum}",STRING_LENGTH_LONG:"String is too long ({length} chars), maximum {maximum}",STRING_PATTERN:"String does not match pattern: {pattern}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({propertyCount}), minimum {minimum}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({propertyCount}), maximum {maximum}",OBJECT_REQUIRED:"Missing required property: {key}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {missing} (due to key: {key})",ARRAY_LENGTH_SHORT:"Array is too short ({length}), minimum {minimum}",ARRAY_LENGTH_LONG:"Array is too long ({length}), maximum {maximum}",ARRAY_UNIQUE:"Array items are not unique (indices {match1} and {match2})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",FORMAT_CUSTOM:"Format validation failed ({message})",KEYWORD_CUSTOM:"Keyword failed: {key} ({message})",CIRCULAR_REFERENCE:"Circular $refs: {urls}",UNKNOWN_PROPERTY:"Unknown property (not in schema)"};function S(O,g,p,x,R){if(Error.call(this),O===void 0)throw new Error("No error code supplied: "+x);this.message="",this.params=g,this.code=O,this.dataPath=p||"",this.schemaPath=x||"",this.subErrors=R||null;var P=new Error(this.message);if(this.stack=P.stack||P.stacktrace,!this.stack)try{throw P}catch(_){this.stack=_.stack||_.stacktrace}}S.prototype=Object.create(Error.prototype),S.prototype.constructor=S,S.prototype.name="ValidationError",S.prototype.prefixWith=function(O,g){if(O!==null&&(O=O.replace(/~/g,"~0").replace(/\//g,"~1"),this.dataPath="/"+O+this.dataPath),g!==null&&(g=g.replace(/~/g,"~0").replace(/\//g,"~1"),this.schemaPath="/"+g+this.schemaPath),this.subErrors!==null)for(var p=0;p<this.subErrors.length;p++)this.subErrors[p].prefixWith(O,g);return this};function T(O,g){if(g.substring(0,O.length)===O){var p=g.substring(O.length);if(g.length>0&&g.charAt(O.length-1)==="/"||p.charAt(0)==="#"||p.charAt(0)==="?")return!0}return!1}var w={};function A(O){var g=new l,p,x,R={setErrorReporter:function(P){return typeof P=="string"?this.language(P):(x=P,!0)},addFormat:function(){g.addFormat.apply(g,arguments)},language:function(P){return P?(w[P]||(P=P.split("-")[0]),w[P]?(p=P,P):!1):p},addLanguage:function(P,_){var k;for(k in h)_[k]&&!_[h[k]]&&(_[h[k]]=_[k]);var D=P.split("-")[0];if(!w[D])w[P]=_,w[D]=_;else{w[P]=Object.create(w[D]);for(k in _)typeof w[D][k]>"u"&&(w[D][k]=_[k]),w[P][k]=_[k]}return this},freshApi:function(P){var _=A();return P&&_.language(P),_},validate:function(P,_,k,D){var W=b(p),Z=x?function(Y,ae,oe){return x(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!1,Z,k,D);typeof _=="string"&&(_={$ref:_}),G.addSchema("",_);var B=G.validateAll(P,_,null,null,"");return!B&&D&&(B=G.banUnknownProperties(P,_)),this.error=B,this.missing=G.missing,this.valid=B===null,this.valid},validateResult:function(){var P={toString:function(){return this.valid?"valid":this.error.message}};return this.validate.apply(P,arguments),P},validateMultiple:function(P,_,k,D){var W=b(p),Z=x?function(Y,ae,oe){return x(Y,ae,oe)||W(Y,ae,oe)}:W,G=new l(g,!0,Z,k,D);typeof _=="string"&&(_={$ref:_}),G.addSchema("",_),G.validateAll(P,_,null,null,""),D&&G.banUnknownProperties(P,_);var B={toString:function(){return this.valid?"valid":this.error.message}};return B.errors=G.errors,B.missing=G.missing,B.valid=B.errors.length===0,B},addSchema:function(){return g.addSchema.apply(g,arguments)},getSchema:function(){return g.getSchema.apply(g,arguments)},getSchemaMap:function(){return g.getSchemaMap.apply(g,arguments)},getSchemaUris:function(){return g.getSchemaUris.apply(g,arguments)},getMissingUris:function(){return g.getMissingUris.apply(g,arguments)},dropSchemas:function(){g.dropSchemas.apply(g,arguments)},defineKeyword:function(){g.defineKeyword.apply(g,arguments)},defineError:function(P,_,k){if(typeof P!="string"||!/^[A-Z]+(_[A-Z]+)*$/.test(P))throw new Error("Code name must be a string in UPPER_CASE_WITH_UNDERSCORES");if(typeof _!="number"||_%1!==0||_<1e4)throw new Error("Code number must be an integer > 10000");if(typeof h[P]<"u")throw new Error("Error already defined: "+P+" as "+h[P]);if(typeof v[_]<"u")throw new Error("Error code already used: "+v[_]+" as "+_);h[P]=_,v[_]=P,E[P]=E[_]=k;for(var D in w){var W=w[D];W[P]&&(W[_]=W[_]||W[P])}},reset:function(){g.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:m,resolveUrl:d,getDocumentUri:y,errorCodes:h};return R.language("en"),R}var M=A();return M.addLanguage("en-gb",E),M.tv4=M,M})}(go)),go.exports}var Iy=_y();const bf=Jt(Iy),ky=(e,t)=>{try{return t.split(/[.[\]'"]/).filter(Boolean).reduce((r,n)=>r&&r[n],e)}catch(r){console.log(r);return}},jy=(e,t)=>{try{const r=mo(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],f=ky(r,i);let d;if(s!==void 0)d=s;else if(c!==void 0)d=c;else if(u!==void 0)d=parseFloat(u);else{console.warn(`Could not determine the type of the right-hand value in: ${e}`);return}switch(a){case"===":return f===d;case"!==":return f!==d;case">":return f>d;case"<":return f<d;default:console.warn(`Unsupported operator: ${a}`);return}}catch(r){console.error("Custom evaluation error:",r);return}},qt=e=>{if(Array.isArray(e)&&e.length===2){if(e[0]==="null")return e[1];if(e[1]==="null")return e[0]}return e},tl=e=>{const t=[];return e.forEach(r=>{t.push({name:r,value:r})}),t},xf=(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},Qt=(e,t,r)=>{r=r||{};const n=r.global&&r.global.formDefaults?mo(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=xf(t.enumNames,t.enum)),n.schema=t,n},Ay=(e,t,r)=>{if(qt(t.type)==="tBoolean"&&!t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="tBoolean",r.lookup[kt.stringify(r.path)]=n,n}},Of=(e,t,r)=>{if(qt(t.type)==="string"&&!t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="text",r.lookup[kt.stringify(r.path)]=n,n}},Ef=(e,t,r)=>{if(qt(t.type)==="number"){const n=Qt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},Cf=(e,t,r)=>{if(qt(t.type)==="integer"){const n=Qt(e,t,r);return n.key=r.path,n.type="number",r.lookup[kt.stringify(r.path)]=n,n}},Ny=(e,t,r)=>{if(qt(t.type)==="date"){const n=Qt(e,t,r);return n.key=r.path,n.type="date",r.lookup[kt.stringify(r.path)]=n,n}},Sf=(e,t,r)=>{if(qt(t.type)==="boolean"){const n=Qt(e,t,r);return n.key=r.path,n.type="checkbox",r.lookup[kt.stringify(r.path)]=n,n}},Tf=(e,t,r)=>{if(qt(t.type)==="string"&&t.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="select",!n.titleMap&&!t.isObject&&(n.titleMap=tl(t.enum)),r.lookup[kt.stringify(r.path)]=n,n}},wf=e=>Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"?wf(r):(r==null||r==="")&&delete e[t]}),Rf=(e,t,r)=>{if(qt(t.type)==="array"&&t.items&&t.items.enum){const n=Qt(e,t,r);return n.key=r.path,n.type="checkboxes",n.titleMap||(n.titleMap=tl(t.items.enum)),r.lookup[kt.stringify(r.path)]=n,n}},En=(e,t,r)=>{const n=Pr[qt(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"]&&Wg(i.schema["x-schema-form"])&&(i=Oy(i,i.schema["x-schema-form"])),i}},Pf=(e,t,r)=>{if(qt(t.type)==="object"){const n=Qt(e,t,r);return n.type="fieldset",n.items=[],r.lookup[kt.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[kt.stringify(a)]!==!0){const l=t.required&&t.required.indexOf(i)!==-1,s=En(i,t.properties[i],{path:a,required:l||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});s&&n.items.push(s)}}}),n}},$y=(e,t,r)=>{if(qt(t.type)==="array"){const n=Qt(e,t,r);if(n.type="tuple",n.key=r.path,r.lookup[kt.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=En(e,l,{path:c,required:i||!1,lookup:r.lookup,ignore:r.ignore,global:r.global});return u&&a.push(u),a},[]),n}}},_f=(e,t,r)=>{if(qt(t.type)==="array"){const n=Qt(e,t,r);if(n.type="array",n.key=r.path,r.lookup[kt.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=En(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}},Pr={string:[Tf,Of],object:[Pf],number:[Ef],integer:[Cf],boolean:[Sf],array:[Rf,$y,_f],date:[Ny],tBoolean:[Ay]},If=(e,t,r)=>{const n=[],i={};if(t=t||{},r=r||{},qt(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=En(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}},kf=e=>e,My=(e,t)=>{Pr[e]||(Pr[e]=[]),Pr[e].push(t)},Dy=(e,t)=>{Pr[e]||(Pr[e]=[]),Pr[e].unshift(t)},Ly=(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||[])},rl=(e,t)=>{t(e),e.items&&e.items.forEach(r=>{rl(r,t)}),e.tabs&&e.tabs.forEach(r=>{r.items.forEach(n=>{rl(n,t)})})},nl=(e,t,r,n,i)=>{t=t||["*"],n=n||{},i=i||e.readonly||e.readOnly;const a=If(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 kf(t.map(c=>{if(typeof c=="string"&&(c={key:c}),c&&c.key&&typeof c.key=="string"&&(c.key=kt.parse(c.key)),c&&c.itemForm){c.items=[];const u=kt.stringify(c.key);s[u].items.forEach(d=>{const y=mo(c.itemForm);y.key=d.key,c.items.push(y)})}if(c&&c.key){const u=kt.stringify(c.key);if(s[u]){const f=s[u];Object.keys(f).forEach(d=>{Object.prototype.hasOwnProperty.call(f,d)&&c[d]===void 0&&(c[d]=f[d])})}}return i===!0&&(c.readonly=!0),c&&c.items&&c.items.length>0&&(c.items=nl(e,c.items,r,n,c.readonly)),c&&c.tabs&&c.tabs.forEach(u=>{u.items=nl(e,u.items,r,n,c.readonly)}),c&&c.type==="checkbox"&&Sy(c.schema.default)&&(c.schema.default=!1),c}))};function Fy(e,t,r,n){const i=/^\d+$/;t||(t=this);const a=typeof e=="string"?kt.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 jt={traverseForm:rl,traverseSchema:Ly,prependRule:Dy,appendRule:My,postProcessFn:kf,getDefaults:If,defaultFormDefinition:En,defaults:Pr,array:_f,fieldset:Pf,checkboxes:Rf,select:Tf,checkbox:Sf,integer:Cf,number:Ef,text:Of,stdFormObj:Qt,canonicalTitleMap:xf,enumToTitleMap:tl,stripNullType:qt,merge:nl,validate:(e,t,r)=>{if(!e)return{valid:!0};const{schema:n}=e;if(!n)return{valid:!0};t===""&&(t=void 0),e.type==="number"&&t===null&&(t=void 0),e.type==="number"&&Number.isNaN(parseFloat(t))&&(t=void 0);const i={type:"object",properties:{}},a=e.key[e.key.length-1];i.properties[a]=n,e.required&&(i.required=[a]);const l={};typeof t<"u"&&(l[a]=t);const s=bf.validateResult(l,i);return s!=null&&!s.valid&&e.validationMessage!=null&&typeof t<"u"&&(s.error.message=r?r(e.validationMessage):e.validationMessage),s},validateBySchema:(e,t)=>bf.validateResult(t,e),safeEval:jy,selectOrSet:Fy,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:wf},By=e=>{let t;return e.form&&e.form.key&&(t=jt.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},qy=e=>e.displayName||e.name||"Component",At=(e,t={})=>class extends we.Component{constructor(n){super(n),this.displayName=`ComposedComponent(${qy(e)})`,this.onChangeValidate=this.onChangeValidate.bind(this),this.state=this.constructor.getDerivedStateFromProps(this.props)}static getDerivedStateFromProps(n){const{errorText:i,form:a,showErrors:l,localization:s}=n,c=s&&s.getLocalizedString,u=By(n);if(!l)return{value:u,valid:!0,error:""};const f=jt.validate(a,u||void 0,c),d=f.valid?void 0:f.error;return{value:u,valid:f.valid,error:(f.valid?null:d.message)||i}}onChangeValidate(n,i){const{form:a,onChange:l,localization:s}=this.props,c=s&&s.getLocalizedString;let u=null;switch(a.schema?a.schema.type:a.type){case"integer":case"number":{u=n;break}case"boolean":u=n.target.checked;break;case"array":u=n;break;case"object":if(a.type==="date"){n.target.value.length>0?u=new Date(n.target.value):u="";break}({value:u}=n.target);break;default:({value:u}=n.target)}const d=jt.validate(a,u,c);this.setState({value:u,valid:d.valid,error:d.valid?null:d.error.message}),l(a.key,u)}render(){return N.jsx(e,{...t,...this.props,...this.state,onChangeValidate:this.onChangeValidate})}};var yo={exports:{}},vo={exports:{}},et={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var jf;function By(){if(jf)return et;jf=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,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case f:case b:case m:case l:return w;default:return A}}case r:return A}}}function T(w){return S(w)===u}return et.AsyncMode=c,et.ConcurrentMode=u,et.ContextConsumer=s,et.ContextProvider=l,et.Element=t,et.ForwardRef=f,et.Fragment=n,et.Lazy=b,et.Memo=m,et.Portal=r,et.Profiler=a,et.StrictMode=i,et.Suspense=d,et.isAsyncMode=function(w){return T(w)||S(w)===c},et.isConcurrentMode=T,et.isContextConsumer=function(w){return S(w)===s},et.isContextProvider=function(w){return S(w)===l},et.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},et.isForwardRef=function(w){return S(w)===f},et.isFragment=function(w){return S(w)===n},et.isLazy=function(w){return S(w)===b},et.isMemo=function(w){return S(w)===m},et.isPortal=function(w){return S(w)===r},et.isProfiler=function(w){return S(w)===a},et.isStrictMode=function(w){return S(w)===i},et.isSuspense=function(w){return S(w)===d},et.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===d||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===b||w.$$typeof===m||w.$$typeof===l||w.$$typeof===s||w.$$typeof===f||w.$$typeof===v||w.$$typeof===C||w.$$typeof===E||w.$$typeof===h)},et.typeOf=S,et}var tt={};/** @license React v16.13.1
37
+ */var jf;function Vy(){if(jf)return et;jf=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,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case t:switch(w=w.type,w){case c:case u:case n:case a:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case f:case b:case m:case l:return w;default:return A}}case r:return A}}}function T(w){return S(w)===u}return et.AsyncMode=c,et.ConcurrentMode=u,et.ContextConsumer=s,et.ContextProvider=l,et.Element=t,et.ForwardRef=f,et.Fragment=n,et.Lazy=b,et.Memo=m,et.Portal=r,et.Profiler=a,et.StrictMode=i,et.Suspense=d,et.isAsyncMode=function(w){return T(w)||S(w)===c},et.isConcurrentMode=T,et.isContextConsumer=function(w){return S(w)===s},et.isContextProvider=function(w){return S(w)===l},et.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},et.isForwardRef=function(w){return S(w)===f},et.isFragment=function(w){return S(w)===n},et.isLazy=function(w){return S(w)===b},et.isMemo=function(w){return S(w)===m},et.isPortal=function(w){return S(w)===r},et.isProfiler=function(w){return S(w)===a},et.isStrictMode=function(w){return S(w)===i},et.isSuspense=function(w){return S(w)===d},et.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===a||w===i||w===d||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===b||w.$$typeof===m||w.$$typeof===l||w.$$typeof===s||w.$$typeof===f||w.$$typeof===v||w.$$typeof===C||w.$$typeof===E||w.$$typeof===h)},et.typeOf=S,et}var tt={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Af;function qy(){return Af||(Af=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,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(X){return typeof X=="string"||typeof X=="function"||X===n||X===u||X===a||X===i||X===d||X===y||typeof X=="object"&&X!==null&&(X.$$typeof===b||X.$$typeof===m||X.$$typeof===l||X.$$typeof===s||X.$$typeof===f||X.$$typeof===v||X.$$typeof===C||X.$$typeof===E||X.$$typeof===h)}function T(X){if(typeof X=="object"&&X!==null){var Re=X.$$typeof;switch(Re){case t:var z=X.type;switch(z){case c:case u:case n:case a:case i:case d:return z;default:var pe=z&&z.$$typeof;switch(pe){case s:case f:case b:case m:case l:return pe;default:return Re}}case r:return Re}}}var w=c,A=u,M=s,O=l,g=t,p=f,x=n,R=b,P=m,_=r,k=a,D=i,W=d,Z=!1;function G(X){return Z||(Z=!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.")),B(X)||T(X)===c}function B(X){return T(X)===u}function Y(X){return T(X)===s}function ae(X){return T(X)===l}function oe(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function ne(X){return T(X)===f}function ue(X){return T(X)===n}function ce(X){return T(X)===b}function ye(X){return T(X)===m}function se(X){return T(X)===r}function le(X){return T(X)===a}function te(X){return T(X)===i}function ve(X){return T(X)===d}tt.AsyncMode=w,tt.ConcurrentMode=A,tt.ContextConsumer=M,tt.ContextProvider=O,tt.Element=g,tt.ForwardRef=p,tt.Fragment=x,tt.Lazy=R,tt.Memo=P,tt.Portal=_,tt.Profiler=k,tt.StrictMode=D,tt.Suspense=W,tt.isAsyncMode=G,tt.isConcurrentMode=B,tt.isContextConsumer=Y,tt.isContextProvider=ae,tt.isElement=oe,tt.isForwardRef=ne,tt.isFragment=ue,tt.isLazy=ce,tt.isMemo=ye,tt.isPortal=se,tt.isProfiler=le,tt.isStrictMode=te,tt.isSuspense=ve,tt.isValidElementType=S,tt.typeOf=T}()),tt}var Nf;function $f(){return Nf||(Nf=1,process.env.NODE_ENV==="production"?yo.exports=By():yo.exports=qy()),yo.exports}/*
44
+ */var Af;function zy(){return Af||(Af=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,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(X){return typeof X=="string"||typeof X=="function"||X===n||X===u||X===a||X===i||X===d||X===y||typeof X=="object"&&X!==null&&(X.$$typeof===b||X.$$typeof===m||X.$$typeof===l||X.$$typeof===s||X.$$typeof===f||X.$$typeof===v||X.$$typeof===C||X.$$typeof===E||X.$$typeof===h)}function T(X){if(typeof X=="object"&&X!==null){var Re=X.$$typeof;switch(Re){case t:var V=X.type;switch(V){case c:case u:case n:case a:case i:case d:return V;default:var pe=V&&V.$$typeof;switch(pe){case s:case f:case b:case m:case l:return pe;default:return Re}}case r:return Re}}}var w=c,A=u,M=s,O=l,g=t,p=f,x=n,R=b,P=m,_=r,k=a,D=i,W=d,Z=!1;function G(X){return Z||(Z=!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.")),B(X)||T(X)===c}function B(X){return T(X)===u}function Y(X){return T(X)===s}function ae(X){return T(X)===l}function oe(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function ne(X){return T(X)===f}function ue(X){return T(X)===n}function ce(X){return T(X)===b}function ye(X){return T(X)===m}function se(X){return T(X)===r}function le(X){return T(X)===a}function te(X){return T(X)===i}function ve(X){return T(X)===d}tt.AsyncMode=w,tt.ConcurrentMode=A,tt.ContextConsumer=M,tt.ContextProvider=O,tt.Element=g,tt.ForwardRef=p,tt.Fragment=x,tt.Lazy=R,tt.Memo=P,tt.Portal=_,tt.Profiler=k,tt.StrictMode=D,tt.Suspense=W,tt.isAsyncMode=G,tt.isConcurrentMode=B,tt.isContextConsumer=Y,tt.isContextProvider=ae,tt.isElement=oe,tt.isForwardRef=ne,tt.isFragment=ue,tt.isLazy=ce,tt.isMemo=ye,tt.isPortal=se,tt.isProfiler=le,tt.isStrictMode=te,tt.isSuspense=ve,tt.isValidElementType=S,tt.typeOf=T}()),tt}var Nf;function $f(){return Nf||(Nf=1,process.env.NODE_ENV==="production"?vo.exports=Vy():vo.exports=zy()),vo.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var ol,Mf;function zy(){if(Mf)return ol;Mf=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(f){return l[f]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ol=i()?Object.assign:function(a,l){for(var s,c=n(a),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){u=e(s);for(var y=0;y<u.length;y++)r.call(s,u[y])&&(c[u[y]]=s[u[y]])}}return c},ol}var il,Df;function al(){if(Df)return il;Df=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return il=e,il}var sl,Lf;function Ff(){return Lf||(Lf=1,sl=Function.call.bind(Object.prototype.hasOwnProperty)),sl}var ll,Bf;function Vy(){if(Bf)return ll;Bf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=al(),r={},n=Ff();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 f in a)if(n(a,f)){var d;try{if(typeof a[f]!="function"){var y=Error((c||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}d=a[f](l,f,c,s,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var m=u?u():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ll=i,ll}var cl,qf;function Uy(){if(qf)return cl;qf=1;var e=$f(),t=zy(),r=al(),n=Ff(),i=Vy(),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 cl=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(B){var Y=B&&(u&&B[u]||B[f]);if(typeof Y=="function")return Y}var y="<<anonymous>>",m={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:E(),arrayOf:S,element:T(),elementType:w(),instanceOf:A,node:p(),objectOf:O,oneOf:M,oneOfType:g,shape:R,exact:P};function b(B,Y){return B===Y?B!==0||1/B===1/Y:B!==B&&Y!==Y}function h(B,Y){this.message=B,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}h.prototype=Error.prototype;function v(B){if(process.env.NODE_ENV!=="production")var Y={},ae=0;function oe(ue,ce,ye,se,le,te,ve){if(se=se||y,te=te||ye,ve!==r){if(c){var X=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 X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=se+":"+ye;!Y[Re]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+se+"`. 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."),Y[Re]=!0,ae++)}}return ce[ye]==null?ue?ce[ye]===null?new h("The "+le+" `"+te+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new h("The "+le+" `"+te+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:B(ce,ye,se,le,te)}var ne=oe.bind(null,!1);return ne.isRequired=oe.bind(null,!0),ne}function C(B){function Y(ae,oe,ne,ue,ce,ye){var se=ae[oe],le=D(se);if(le!==B){var te=W(se);return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+te+"` supplied to `"+ne+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return v(Y)}function E(){return v(l)}function S(B){function Y(ae,oe,ne,ue,ce){if(typeof B!="function")return new h("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[oe];if(!Array.isArray(ye)){var se=D(ye);return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected an array."))}for(var le=0;le<ye.length;le++){var te=B(ye,le,ne,ue,ce+"["+le+"]",r);if(te instanceof Error)return te}return null}return v(Y)}function T(){function B(Y,ae,oe,ne,ue){var ce=Y[ae];if(!s(ce)){var ye=D(ce);return new h("Invalid "+ne+" `"+ue+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return v(B)}function w(){function B(Y,ae,oe,ne,ue){var ce=Y[ae];if(!e.isValidElementType(ce)){var ye=D(ce);return new h("Invalid "+ne+" `"+ue+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return v(B)}function A(B){function Y(ae,oe,ne,ue,ce){if(!(ae[oe]instanceof B)){var ye=B.name||y,se=G(ae[oe]);return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return v(Y)}function M(B){if(!Array.isArray(B))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 Y(ae,oe,ne,ue,ce){for(var ye=ae[oe],se=0;se<B.length;se++)if(b(ye,B[se]))return null;var le=JSON.stringify(B,function(ve,X){var Re=W(X);return Re==="symbol"?String(X):X});return new h("Invalid "+ue+" `"+ce+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+le+"."))}return v(Y)}function O(B){function Y(ae,oe,ne,ue,ce){if(typeof B!="function")return new h("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[oe],se=D(ye);if(se!=="object")return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected an object."));for(var le in ye)if(n(ye,le)){var te=B(ye,le,ne,ue,ce+"."+le,r);if(te instanceof Error)return te}return null}return v(Y)}function g(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<B.length;Y++){var ae=B[Y];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(ae)+" at index "+Y+"."),l}function oe(ne,ue,ce,ye,se){for(var le=[],te=0;te<B.length;te++){var ve=B[te],X=ve(ne,ue,ce,ye,se,r);if(X==null)return null;X.data&&n(X.data,"expectedType")&&le.push(X.data.expectedType)}var Re=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new h("Invalid "+ye+" `"+se+"` supplied to "+("`"+ce+"`"+Re+"."))}return v(oe)}function p(){function B(Y,ae,oe,ne,ue){return _(Y[ae])?null:new h("Invalid "+ne+" `"+ue+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return v(B)}function x(B,Y,ae,oe,ne){return new h((B||"React class")+": "+Y+" type `"+ae+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function R(B){function Y(ae,oe,ne,ue,ce){var ye=ae[oe],se=D(ye);if(se!=="object")return new h("Invalid "+ue+" `"+ce+"` of type `"+se+"` "+("supplied to `"+ne+"`, expected `object`."));for(var le in B){var te=B[le];if(typeof te!="function")return x(ne,ue,ce,le,W(te));var ve=te(ye,le,ne,ue,ce+"."+le,r);if(ve)return ve}return null}return v(Y)}function P(B){function Y(ae,oe,ne,ue,ce){var ye=ae[oe],se=D(ye);if(se!=="object")return new h("Invalid "+ue+" `"+ce+"` of type `"+se+"` "+("supplied to `"+ne+"`, expected `object`."));var le=t({},ae[oe],B);for(var te in le){var ve=B[te];if(n(B,te)&&typeof ve!="function")return x(ne,ue,ce,te,W(ve));if(!ve)return new h("Invalid "+ue+" `"+ce+"` key `"+te+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(ae[oe],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(B),null," "));var X=ve(ye,te,ne,ue,ce+"."+te,r);if(X)return X}return null}return v(Y)}function _(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(_);if(B===null||s(B))return!0;var Y=d(B);if(Y){var ae=Y.call(B),oe;if(Y!==B.entries){for(;!(oe=ae.next()).done;)if(!_(oe.value))return!1}else for(;!(oe=ae.next()).done;){var ne=oe.value;if(ne&&!_(ne[1]))return!1}}else return!1;return!0;default:return!1}}function k(B,Y){return B==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function D(B){var Y=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":k(Y,B)?"symbol":Y}function W(B){if(typeof B>"u"||B===null)return""+B;var Y=D(B);if(Y==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return Y}function Z(B){var Y=W(B);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function G(B){return!B.constructor||!B.constructor.name?y:B.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},cl}var ul,zf;function Wy(){if(zf)return ul;zf=1;var e=al();function t(){}function r(){}return r.resetWarningCache=t,ul=function(){function n(l,s,c,u,f,d){if(d!==e){var y=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 y.name="Invariant Violation",y}}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},ul}var Vf;function Hy(){if(Vf)return go.exports;if(Vf=1,process.env.NODE_ENV!=="production"){var e=$f(),t=!0;go.exports=Uy()(e.isElement,t)}else go.exports=Wy()();return go.exports}var Gy=Hy();const o=Jt(Gy);function Uf(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=Uf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Pe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Uf(e))&&(n&&(n+=" "),n+=t);return n}function Ge(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 Wf=0;function Ky(e){const[t,r]=j.useState(e),n=e||t;return j.useEffect(()=>{t==null&&(Wf+=1,r(`mui-${Wf}`))},[t]),n}const Hf={...j}.useId;function vo(e){if(Hf!==void 0){const t=Hf();return e??t}return Ky(e)}const Dt=o.oneOfType([o.func,o.object]);function sr(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 he(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lr(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 Gf(e){if(j.isValidElement(e)||!lr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Gf(e[r])}),t}function At(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return lr(e)&&lr(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?n[i]=t[i]:lr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&lr(e[i])?n[i]=At(e[i],t[i],r):r.clone?n[i]=lr(t[i])?Gf(t[i]):t[i]:n[i]=t[i]}),n}function Cn(e,t){return t?At(e,t,{clone:!1}):e}const _r=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Yy(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var l,s;const a=/min-width:\s*([0-9.]+)/;return+(((l=n.match(a))==null?void 0:l[1])||0)-+(((s=i.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function Xy(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Jy(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>\`.
50
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function Qy(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 bo={xs:0,sm:600,md:900,lg:1200,xl:1536},Kf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bo[e]}px)`},Zy={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:bo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Or(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Kf;return t.reduce((l,s,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||Kf;return Object.keys(t).reduce((l,s)=>{if(Xy(a.keys,s)){const c=Jy(n.containerQueries?n:Zy,s);c&&(l[c]=r(t[s],s))}else if(Object.keys(a.values||bo).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 ev(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function tv(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function xo(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 Oo(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=xo(e,r)||n,t&&(i=t(i,n,e)),i}function xt(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=xo(c,n)||{};return Or(l,s,d=>{let y=Oo(u,i,d);return d===y&&typeof d=="string"&&(y=Oo(u,i,`${t}${d==="default"?"":he(d)}`,d)),r===!1?y:{[r]:y}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:_r}:{},a.filterProps=[t],a}function rv(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const nv={m:"margin",p:"padding"},ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iv=rv(e=>{if(e.length>2)if(Yf[e])e=Yf[e];else return[e];const[t,r]=e.split(""),n=nv[t],i=ov[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Eo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Co=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],av=[...Eo,...Co];function Sn(e,t,r,n){const i=xo(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"?`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(`
48
+ */var ol,Mf;function Uy(){if(Mf)return ol;Mf=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(f){return l[f]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ol=i()?Object.assign:function(a,l){for(var s,c=n(a),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){u=e(s);for(var y=0;y<u.length;y++)r.call(s,u[y])&&(c[u[y]]=s[u[y]])}}return c},ol}var il,Df;function al(){if(Df)return il;Df=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return il=e,il}var sl,Lf;function Ff(){return Lf||(Lf=1,sl=Function.call.bind(Object.prototype.hasOwnProperty)),sl}var ll,Bf;function Wy(){if(Bf)return ll;Bf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=al(),r={},n=Ff();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 f in a)if(n(a,f)){var d;try{if(typeof a[f]!="function"){var y=Error((c||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}d=a[f](l,f,c,s,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var m=u?u():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ll=i,ll}var cl,qf;function Hy(){if(qf)return cl;qf=1;var e=$f(),t=Uy(),r=al(),n=Ff(),i=Wy(),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 cl=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(B){var Y=B&&(u&&B[u]||B[f]);if(typeof Y=="function")return Y}var y="<<anonymous>>",m={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:E(),arrayOf:S,element:T(),elementType:w(),instanceOf:A,node:p(),objectOf:O,oneOf:M,oneOfType:g,shape:R,exact:P};function b(B,Y){return B===Y?B!==0||1/B===1/Y:B!==B&&Y!==Y}function h(B,Y){this.message=B,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}h.prototype=Error.prototype;function v(B){if(process.env.NODE_ENV!=="production")var Y={},ae=0;function oe(ue,ce,ye,se,le,te,ve){if(se=se||y,te=te||ye,ve!==r){if(c){var X=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 X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=se+":"+ye;!Y[Re]&&ae<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+se+"`. 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."),Y[Re]=!0,ae++)}}return ce[ye]==null?ue?ce[ye]===null?new h("The "+le+" `"+te+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new h("The "+le+" `"+te+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:B(ce,ye,se,le,te)}var ne=oe.bind(null,!1);return ne.isRequired=oe.bind(null,!0),ne}function C(B){function Y(ae,oe,ne,ue,ce,ye){var se=ae[oe],le=D(se);if(le!==B){var te=W(se);return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+te+"` supplied to `"+ne+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return v(Y)}function E(){return v(l)}function S(B){function Y(ae,oe,ne,ue,ce){if(typeof B!="function")return new h("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=ae[oe];if(!Array.isArray(ye)){var se=D(ye);return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected an array."))}for(var le=0;le<ye.length;le++){var te=B(ye,le,ne,ue,ce+"["+le+"]",r);if(te instanceof Error)return te}return null}return v(Y)}function T(){function B(Y,ae,oe,ne,ue){var ce=Y[ae];if(!s(ce)){var ye=D(ce);return new h("Invalid "+ne+" `"+ue+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return v(B)}function w(){function B(Y,ae,oe,ne,ue){var ce=Y[ae];if(!e.isValidElementType(ce)){var ye=D(ce);return new h("Invalid "+ne+" `"+ue+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return v(B)}function A(B){function Y(ae,oe,ne,ue,ce){if(!(ae[oe]instanceof B)){var ye=B.name||y,se=G(ae[oe]);return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return v(Y)}function M(B){if(!Array.isArray(B))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 Y(ae,oe,ne,ue,ce){for(var ye=ae[oe],se=0;se<B.length;se++)if(b(ye,B[se]))return null;var le=JSON.stringify(B,function(ve,X){var Re=W(X);return Re==="symbol"?String(X):X});return new h("Invalid "+ue+" `"+ce+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+le+"."))}return v(Y)}function O(B){function Y(ae,oe,ne,ue,ce){if(typeof B!="function")return new h("Property `"+ce+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=ae[oe],se=D(ye);if(se!=="object")return new h("Invalid "+ue+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected an object."));for(var le in ye)if(n(ye,le)){var te=B(ye,le,ne,ue,ce+"."+le,r);if(te instanceof Error)return te}return null}return v(Y)}function g(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<B.length;Y++){var ae=B[Y];if(typeof ae!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(ae)+" at index "+Y+"."),l}function oe(ne,ue,ce,ye,se){for(var le=[],te=0;te<B.length;te++){var ve=B[te],X=ve(ne,ue,ce,ye,se,r);if(X==null)return null;X.data&&n(X.data,"expectedType")&&le.push(X.data.expectedType)}var Re=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new h("Invalid "+ye+" `"+se+"` supplied to "+("`"+ce+"`"+Re+"."))}return v(oe)}function p(){function B(Y,ae,oe,ne,ue){return _(Y[ae])?null:new h("Invalid "+ne+" `"+ue+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return v(B)}function x(B,Y,ae,oe,ne){return new h((B||"React class")+": "+Y+" type `"+ae+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function R(B){function Y(ae,oe,ne,ue,ce){var ye=ae[oe],se=D(ye);if(se!=="object")return new h("Invalid "+ue+" `"+ce+"` of type `"+se+"` "+("supplied to `"+ne+"`, expected `object`."));for(var le in B){var te=B[le];if(typeof te!="function")return x(ne,ue,ce,le,W(te));var ve=te(ye,le,ne,ue,ce+"."+le,r);if(ve)return ve}return null}return v(Y)}function P(B){function Y(ae,oe,ne,ue,ce){var ye=ae[oe],se=D(ye);if(se!=="object")return new h("Invalid "+ue+" `"+ce+"` of type `"+se+"` "+("supplied to `"+ne+"`, expected `object`."));var le=t({},ae[oe],B);for(var te in le){var ve=B[te];if(n(B,te)&&typeof ve!="function")return x(ne,ue,ce,te,W(ve));if(!ve)return new h("Invalid "+ue+" `"+ce+"` key `"+te+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(ae[oe],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var X=ve(ye,te,ne,ue,ce+"."+te,r);if(X)return X}return null}return v(Y)}function _(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(_);if(B===null||s(B))return!0;var Y=d(B);if(Y){var ae=Y.call(B),oe;if(Y!==B.entries){for(;!(oe=ae.next()).done;)if(!_(oe.value))return!1}else for(;!(oe=ae.next()).done;){var ne=oe.value;if(ne&&!_(ne[1]))return!1}}else return!1;return!0;default:return!1}}function k(B,Y){return B==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function D(B){var Y=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":k(Y,B)?"symbol":Y}function W(B){if(typeof B>"u"||B===null)return""+B;var Y=D(B);if(Y==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return Y}function Z(B){var Y=W(B);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function G(B){return!B.constructor||!B.constructor.name?y:B.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},cl}var ul,Vf;function Gy(){if(Vf)return ul;Vf=1;var e=al();function t(){}function r(){}return r.resetWarningCache=t,ul=function(){function n(l,s,c,u,f,d){if(d!==e){var y=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 y.name="Invariant Violation",y}}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},ul}var zf;function Ky(){if(zf)return yo.exports;if(zf=1,process.env.NODE_ENV!=="production"){var e=$f(),t=!0;yo.exports=Hy()(e.isElement,t)}else yo.exports=Gy()();return yo.exports}var Yy=Ky();const o=Jt(Yy);function Uf(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=Uf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Pe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Uf(e))&&(n&&(n+=" "),n+=t);return n}function Ge(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 Wf=0;function Xy(e){const[t,r]=j.useState(e),n=e||t;return j.useEffect(()=>{t==null&&(Wf+=1,r(`mui-${Wf}`))},[t]),n}const Hf={...j}.useId;function bo(e){if(Hf!==void 0){const t=Hf();return e??t}return Xy(e)}const Dt=o.oneOfType([o.func,o.object]);function sr(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 he(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lr(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 Gf(e){if(j.isValidElement(e)||!lr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Gf(e[r])}),t}function Nt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return lr(e)&&lr(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?n[i]=t[i]:lr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&lr(e[i])?n[i]=Nt(e[i],t[i],r):r.clone?n[i]=lr(t[i])?Gf(t[i]):t[i]:n[i]=t[i]}),n}function Cn(e,t){return t?Nt(e,t,{clone:!1}):e}const _r=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Jy(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var l,s;const a=/min-width:\s*([0-9.]+)/;return+(((l=n.match(a))==null?void 0:l[1])||0)-+(((s=i.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function Qy(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Zy(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>\`.
50
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function ev(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 xo={xs:0,sm:600,md:900,lg:1200,xl:1536},Kf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xo[e]}px)`},tv={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:xo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Or(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Kf;return t.reduce((l,s,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||Kf;return Object.keys(t).reduce((l,s)=>{if(Qy(a.keys,s)){const c=Zy(n.containerQueries?n:tv,s);c&&(l[c]=r(t[s],s))}else if(Object.keys(a.values||xo).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 rv(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function nv(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Oo(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 Eo(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Oo(e,r)||n,t&&(i=t(i,n,e)),i}function xt(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=Oo(c,n)||{};return Or(l,s,d=>{let y=Eo(u,i,d);return d===y&&typeof d=="string"&&(y=Eo(u,i,`${t}${d==="default"?"":he(d)}`,d)),r===!1?y:{[r]:y}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:_r}:{},a.filterProps=[t],a}function ov(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const iv={m:"margin",p:"padding"},av={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sv=ov(e=>{if(e.length>2)if(Yf[e])e=Yf[e];else return[e];const[t,r]=e.split(""),n=iv[t],i=av[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Co=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],So=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],lv=[...Co,...So];function Sn(e,t,r,n){const i=Oo(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"?`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(`
51
51
  `)):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(`
52
52
  `)));const s=i[l];return a>=0?s:typeof s=="number"?-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(`
53
- `)),()=>{})}function pl(e){return Sn(e,"spacing",8,"spacing")}function Tn(e,t){return typeof t=="string"||t==null?t:e(t)}function sv(e,t){return r=>e.reduce((n,i)=>(n[i]=Tn(t,r),n),{})}function lv(e,t,r,n){if(!t.includes(r))return null;const i=iv(r),a=sv(i,n),l=e[r];return Or(e,l,a)}function Xf(e,t){const r=pl(e.theme);return Object.keys(e).map(n=>lv(e,t,n,r)).reduce(Cn,{})}function gt(e){return Xf(e,Eo)}gt.propTypes=process.env.NODE_ENV!=="production"?Eo.reduce((e,t)=>(e[t]=_r,e),{}):{},gt.filterProps=Eo;function yt(e){return Xf(e,Co)}yt.propTypes=process.env.NODE_ENV!=="production"?Co.reduce((e,t)=>(e[t]=_r,e),{}):{},yt.filterProps=Co,process.env.NODE_ENV!=="production"&&av.reduce((e,t)=>(e[t]=_r,e),{});function So(...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]?Cn(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 er(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const cv=er("border",Zt),uv=er("borderTop",Zt),pv=er("borderRight",Zt),fv=er("borderBottom",Zt),dv=er("borderLeft",Zt),hv=er("borderColor"),mv=er("borderTopColor"),gv=er("borderRightColor"),yv=er("borderBottomColor"),vv=er("borderLeftColor"),bv=er("outline",Zt),xv=er("outlineColor"),To=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Tn(t,n)});return Or(e,e.borderRadius,r)}return null};To.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:_r}:{},To.filterProps=["borderRadius"],So(cv,uv,pv,fv,dv,hv,mv,gv,yv,vv,To,bv,xv);const wo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sn(e.theme,"spacing",8,"gap"),r=n=>({gap:Tn(t,n)});return Or(e,e.gap,r)}return null};wo.propTypes=process.env.NODE_ENV!=="production"?{gap:_r}:{},wo.filterProps=["gap"];const Ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Tn(t,n)});return Or(e,e.columnGap,r)}return null};Ro.propTypes=process.env.NODE_ENV!=="production"?{columnGap:_r}:{},Ro.filterProps=["columnGap"];const Po=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Tn(t,n)});return Or(e,e.rowGap,r)}return null};Po.propTypes=process.env.NODE_ENV!=="production"?{rowGap:_r}:{},Po.filterProps=["rowGap"];const Ov=xt({prop:"gridColumn"}),Ev=xt({prop:"gridRow"}),Cv=xt({prop:"gridAutoFlow"}),Sv=xt({prop:"gridAutoColumns"}),Tv=xt({prop:"gridAutoRows"}),wv=xt({prop:"gridTemplateColumns"}),Rv=xt({prop:"gridTemplateRows"}),Pv=xt({prop:"gridTemplateAreas"}),_v=xt({prop:"gridArea"});So(wo,Ro,Po,Ov,Ev,Cv,Sv,Tv,wv,Rv,Pv,_v);function Qr(e,t){return t==="grey"?t:e}const Iv=xt({prop:"color",themeKey:"palette",transform:Qr}),kv=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qr}),jv=xt({prop:"backgroundColor",themeKey:"palette",transform:Qr});So(Iv,kv,jv);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const Av=xt({prop:"width",transform:Ut}),fl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,l,s,c;const n=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[r])||bo[r];return n?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ut(r)}};return Or(e,e.maxWidth,t)}return null};fl.filterProps=["maxWidth"];const Nv=xt({prop:"minWidth",transform:Ut}),$v=xt({prop:"height",transform:Ut}),Mv=xt({prop:"maxHeight",transform:Ut}),Dv=xt({prop:"minHeight",transform:Ut});xt({prop:"size",cssProperty:"width",transform:Ut}),xt({prop:"size",cssProperty:"height",transform:Ut});const Lv=xt({prop:"boxSizing"});So(Av,fl,Nv,$v,Mv,Dv,Lv);const wn={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:To},color:{themeKey:"palette",transform:Qr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qr},backgroundColor:{themeKey:"palette",transform:Qr},p:{style:yt},pt:{style:yt},pr:{style:yt},pb:{style:yt},pl:{style:yt},px:{style:yt},py:{style:yt},padding:{style:yt},paddingTop:{style:yt},paddingRight:{style:yt},paddingBottom:{style:yt},paddingLeft:{style:yt},paddingX:{style:yt},paddingY:{style:yt},paddingInline:{style:yt},paddingInlineStart:{style:yt},paddingInlineEnd:{style:yt},paddingBlock:{style:yt},paddingBlockStart:{style:yt},paddingBlockEnd:{style:yt},m:{style:gt},mt:{style:gt},mr:{style:gt},mb:{style:gt},ml:{style:gt},mx:{style:gt},my:{style:gt},margin:{style:gt},marginTop:{style:gt},marginRight:{style:gt},marginBottom:{style:gt},marginLeft:{style:gt},marginX:{style:gt},marginY:{style:gt},marginInline:{style:gt},marginInlineStart:{style:gt},marginInlineEnd:{style:gt},marginBlock:{style:gt},marginBlockStart:{style:gt},marginBlockEnd:{style:gt},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:wo},rowGap:{style:Po},columnGap:{style:Ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:fl},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},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 Fv(...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 Bv(e,t){return typeof e=="function"?e(t):e}function qv(){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:f,style:d}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=xo(i,u)||{};return d?d(l):Or(l,n,b=>{let h=Oo(y,f,b);return b===h&&typeof b=="string"&&(h=Oo(y,f,`${r}${b==="default"?"":he(b)}`,b)),c===!1?h:{[c]:h}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=i.unstable_sxConfig??wn;function l(s){let c=s;if(typeof s=="function")c=s(i);else if(typeof s!="object")return s;if(!c)return null;const u=ev(i.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(y=>{const m=Bv(c[y],i);if(m!=null)if(typeof m=="object")if(a[y])d=Cn(d,e(y,m,i,a));else{const b=Or({theme:i},m,h=>({[y]:h}));Fv(b,m)?d[y]=t({sx:m,theme:i}):d=Cn(d,b)}else d=Cn(d,e(y,m,i,a))}),Yy(i,tv(f,d))}return Array.isArray(n)?n.map(l):l(n)}return t}const Zr=qv();Zr.filterProps=["sx"];const zv=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??wn;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Vv(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=zv(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return lr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function Uv(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 Wv={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 Hv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Gv=!1,Kv=/[A-Z]|^ms/g,Yv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jf=function(t){return t.charCodeAt(1)===45},Qf=function(t){return t!=null&&typeof t!="boolean"},dl=Hv(function(e){return Jf(e)?e:e.replace(Kv,"-$&").toLowerCase()}),Zf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Yv,function(n,i,a){return Ir={name:i,styles:a,next:Ir},i})}return Wv[t]!==1&&!Jf(t)&&typeof r=="number"&&r!==0?r+"px":r},Xv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _o(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 Ir={name:i.name,styles:i.styles,next:Ir},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ir={name:l.name,styles:l.styles,next:Ir},l=l.next;var s=a.styles+";";return s}return Jv(e,t,r)}}var c=r;return c}function Jv(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=_o(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;Qf(s)&&(n+=dl(a)+":"+Zf(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Gv)throw new Error(Xv);if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Qf(l[c])&&(n+=dl(a)+":"+Zf(a,l[c])+";");else{var u=_o(e,t,l);switch(a){case"animation":case"animationName":{n+=dl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}}return n}var ed=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function Qv(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="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=_o(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=_o(r,t,e[s]),n){var c=a;i+=c[s]}ed.lastIndex=0;for(var u="",f;(f=ed.exec(i))!==null;)u+="-"+f[1];var d=Uv(i)+u;return{name:d,styles:i,next:Ir}}function Zv(e){return e==null||Object.keys(e).length===0}function td(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(Zv(i)?r:i):t;return N.jsx(hn.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(td.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
53
+ `)),()=>{})}function pl(e){return Sn(e,"spacing",8,"spacing")}function Tn(e,t){return typeof t=="string"||t==null?t:e(t)}function cv(e,t){return r=>e.reduce((n,i)=>(n[i]=Tn(t,r),n),{})}function uv(e,t,r,n){if(!t.includes(r))return null;const i=sv(r),a=cv(i,n),l=e[r];return Or(e,l,a)}function Xf(e,t){const r=pl(e.theme);return Object.keys(e).map(n=>uv(e,t,n,r)).reduce(Cn,{})}function gt(e){return Xf(e,Co)}gt.propTypes=process.env.NODE_ENV!=="production"?Co.reduce((e,t)=>(e[t]=_r,e),{}):{},gt.filterProps=Co;function yt(e){return Xf(e,So)}yt.propTypes=process.env.NODE_ENV!=="production"?So.reduce((e,t)=>(e[t]=_r,e),{}):{},yt.filterProps=So,process.env.NODE_ENV!=="production"&&lv.reduce((e,t)=>(e[t]=_r,e),{});function To(...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]?Cn(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 er(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const pv=er("border",Zt),fv=er("borderTop",Zt),dv=er("borderRight",Zt),hv=er("borderBottom",Zt),mv=er("borderLeft",Zt),gv=er("borderColor"),yv=er("borderTopColor"),vv=er("borderRightColor"),bv=er("borderBottomColor"),xv=er("borderLeftColor"),Ov=er("outline",Zt),Ev=er("outlineColor"),wo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Tn(t,n)});return Or(e,e.borderRadius,r)}return null};wo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:_r}:{},wo.filterProps=["borderRadius"],To(pv,fv,dv,hv,mv,gv,yv,vv,bv,xv,wo,Ov,Ev);const Ro=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sn(e.theme,"spacing",8,"gap"),r=n=>({gap:Tn(t,n)});return Or(e,e.gap,r)}return null};Ro.propTypes=process.env.NODE_ENV!=="production"?{gap:_r}:{},Ro.filterProps=["gap"];const Po=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Tn(t,n)});return Or(e,e.columnGap,r)}return null};Po.propTypes=process.env.NODE_ENV!=="production"?{columnGap:_r}:{},Po.filterProps=["columnGap"];const _o=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Tn(t,n)});return Or(e,e.rowGap,r)}return null};_o.propTypes=process.env.NODE_ENV!=="production"?{rowGap:_r}:{},_o.filterProps=["rowGap"];const Cv=xt({prop:"gridColumn"}),Sv=xt({prop:"gridRow"}),Tv=xt({prop:"gridAutoFlow"}),wv=xt({prop:"gridAutoColumns"}),Rv=xt({prop:"gridAutoRows"}),Pv=xt({prop:"gridTemplateColumns"}),_v=xt({prop:"gridTemplateRows"}),Iv=xt({prop:"gridTemplateAreas"}),kv=xt({prop:"gridArea"});To(Ro,Po,_o,Cv,Sv,Tv,wv,Rv,Pv,_v,Iv,kv);function Qr(e,t){return t==="grey"?t:e}const jv=xt({prop:"color",themeKey:"palette",transform:Qr}),Av=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qr}),Nv=xt({prop:"backgroundColor",themeKey:"palette",transform:Qr});To(jv,Av,Nv);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const $v=xt({prop:"width",transform:Ut}),fl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,l,s,c;const n=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[r])||xo[r];return n?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ut(r)}};return Or(e,e.maxWidth,t)}return null};fl.filterProps=["maxWidth"];const Mv=xt({prop:"minWidth",transform:Ut}),Dv=xt({prop:"height",transform:Ut}),Lv=xt({prop:"maxHeight",transform:Ut}),Fv=xt({prop:"minHeight",transform:Ut});xt({prop:"size",cssProperty:"width",transform:Ut}),xt({prop:"size",cssProperty:"height",transform:Ut});const Bv=xt({prop:"boxSizing"});To($v,fl,Mv,Dv,Lv,Fv,Bv);const wn={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:wo},color:{themeKey:"palette",transform:Qr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qr},backgroundColor:{themeKey:"palette",transform:Qr},p:{style:yt},pt:{style:yt},pr:{style:yt},pb:{style:yt},pl:{style:yt},px:{style:yt},py:{style:yt},padding:{style:yt},paddingTop:{style:yt},paddingRight:{style:yt},paddingBottom:{style:yt},paddingLeft:{style:yt},paddingX:{style:yt},paddingY:{style:yt},paddingInline:{style:yt},paddingInlineStart:{style:yt},paddingInlineEnd:{style:yt},paddingBlock:{style:yt},paddingBlockStart:{style:yt},paddingBlockEnd:{style:yt},m:{style:gt},mt:{style:gt},mr:{style:gt},mb:{style:gt},ml:{style:gt},mx:{style:gt},my:{style:gt},margin:{style:gt},marginTop:{style:gt},marginRight:{style:gt},marginBottom:{style:gt},marginLeft:{style:gt},marginX:{style:gt},marginY:{style:gt},marginInline:{style:gt},marginInlineStart:{style:gt},marginInlineEnd:{style:gt},marginBlock:{style:gt},marginBlockStart:{style:gt},marginBlockEnd:{style:gt},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:Ro},rowGap:{style:_o},columnGap:{style:Po},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:fl},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},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 qv(...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 Vv(e,t){return typeof e=="function"?e(t):e}function zv(){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:f,style:d}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=Oo(i,u)||{};return d?d(l):Or(l,n,b=>{let h=Eo(y,f,b);return b===h&&typeof b=="string"&&(h=Eo(y,f,`${r}${b==="default"?"":he(b)}`,b)),c===!1?h:{[c]:h}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=i.unstable_sxConfig??wn;function l(s){let c=s;if(typeof s=="function")c=s(i);else if(typeof s!="object")return s;if(!c)return null;const u=rv(i.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(y=>{const m=Vv(c[y],i);if(m!=null)if(typeof m=="object")if(a[y])d=Cn(d,e(y,m,i,a));else{const b=Or({theme:i},m,h=>({[y]:h}));qv(b,m)?d[y]=t({sx:m,theme:i}):d=Cn(d,b)}else d=Cn(d,e(y,m,i,a))}),Jy(i,nv(f,d))}return Array.isArray(n)?n.map(l):l(n)}return t}const Zr=zv();Zr.filterProps=["sx"];const Uv=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??wn;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Wv(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=Uv(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const s=t(...l);return lr(s)?{...n,...s}:n}:a={...n,...t},{...i,sx:a}}function Hv(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 Gv={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 Kv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yv=!1,Xv=/[A-Z]|^ms/g,Jv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jf=function(t){return t.charCodeAt(1)===45},Qf=function(t){return t!=null&&typeof t!="boolean"},dl=Kv(function(e){return Jf(e)?e:e.replace(Xv,"-$&").toLowerCase()}),Zf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Jv,function(n,i,a){return Ir={name:i,styles:a,next:Ir},i})}return Gv[t]!==1&&!Jf(t)&&typeof r=="number"&&r!==0?r+"px":r},Qv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Io(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 Ir={name:i.name,styles:i.styles,next:Ir},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ir={name:l.name,styles:l.styles,next:Ir},l=l.next;var s=a.styles+";";return s}return Zv(e,t,r)}}var c=r;return c}function Zv(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Io(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var s=l;Qf(s)&&(n+=dl(a)+":"+Zf(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Yv)throw new Error(Qv);if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var c=0;c<l.length;c++)Qf(l[c])&&(n+=dl(a)+":"+Zf(a,l[c])+";");else{var u=Io(e,t,l);switch(a){case"animation":case"animationName":{n+=dl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}}return n}var ed=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function eb(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="";Ir=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Io(r,t,a);else{var l=a;i+=l[0]}for(var s=1;s<e.length;s++)if(i+=Io(r,t,e[s]),n){var c=a;i+=c[s]}ed.lastIndex=0;for(var u="",f;(f=ed.exec(i))!==null;)u+="-"+f[1];var d=Hv(i)+u;return{name:d,styles:i,next:Ir}}function tb(e){return e==null||Object.keys(e).length===0}function td(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(tb(i)?r:i):t;return N.jsx(hn.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(td.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
54
54
  * @mui/styled-engine v6.1.10
55
55
  *
56
56
  * @license MIT
57
57
  * This source code is licensed under the MIT license found in the
58
58
  * LICENSE file in the root directory of this source tree.
59
- */function eb(e,t){const r=Yr(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(`
60
- `)):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 tb(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const rd=[];function nd(e){return rd[0]=e,Qv(rd)}const rb=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 nb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=rb(t),l=Object.keys(a);function s(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function u(y,m){const b=l.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:m)-n/100}${r})`}function f(y){return l.indexOf(y)+1<l.length?u(y,l[l.indexOf(y)+1]):s(y)}function d(y){const m=l.indexOf(y);return m===0?s(l[1]):m===l.length-1?c(l[m]):u(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:f,not:d,unit:r,...i}}const ob={borderRadius:4};function od(e=8,t=pl({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 ib(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function hl(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=nb(r),c=od(i);let u=At({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...ob,...a}},l);return u=Qy(u),u.applyStyles=ib,u=t.reduce((f,d)=>At(f,d),u),u.unstable_sxConfig={...wn,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(d){return Zr({sx:d,theme:this})},u}function ab(e){return Object.keys(e).length===0}function sb(e=null){const t=j.useContext(hn.ThemeContext);return!t||ab(t)?e:t}const lb=hl();function id(e=lb){return sb(e)}function ad({styles:e,themeId:t,defaultTheme:r={}}){const n=id(r),i=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(td,{styles:i})}process.env.NODE_ENV!=="production"&&(ad.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const sd=e=>e,cb=(()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}})(),ub={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 We(e,t,r="Mui"){const n=ub[t];return n?`${r}-${n}`:`${cb.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=We(e,i,r)}),n}var Io={exports:{}},rt={};/**
59
+ */function rb(e,t){const r=Yr(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(`
60
+ `)):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 nb(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const rd=[];function nd(e){return rd[0]=e,eb(rd)}const ob=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 ib(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=ob(t),l=Object.keys(a);function s(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function u(y,m){const b=l.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:m)-n/100}${r})`}function f(y){return l.indexOf(y)+1<l.length?u(y,l[l.indexOf(y)+1]):s(y)}function d(y){const m=l.indexOf(y);return m===0?s(l[1]):m===l.length-1?c(l[m]):u(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:s,down:c,between:u,only:f,not:d,unit:r,...i}}const ab={borderRadius:4};function od(e=8,t=pl({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 sb(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function hl(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...l}=e,s=ib(r),c=od(i);let u=Nt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...ab,...a}},l);return u=ev(u),u.applyStyles=sb,u=t.reduce((f,d)=>Nt(f,d),u),u.unstable_sxConfig={...wn,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(d){return Zr({sx:d,theme:this})},u}function lb(e){return Object.keys(e).length===0}function cb(e=null){const t=j.useContext(hn.ThemeContext);return!t||lb(t)?e:t}const ub=hl();function id(e=ub){return cb(e)}function ad({styles:e,themeId:t,defaultTheme:r={}}){const n=id(r),i=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(td,{styles:i})}process.env.NODE_ENV!=="production"&&(ad.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const sd=e=>e,pb=(()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}})(),fb={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 We(e,t,r="Mui"){const n=fb[t];return n?`${r}-${n}`:`${pb.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=We(e,i,r)}),n}var ko={exports:{}},rt={};/**
61
61
  * @license React
62
62
  * react-is.production.min.js
63
63
  *
@@ -65,7 +65,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return
65
65
  *
66
66
  * This source code is licensed under the MIT license found in the
67
67
  * LICENSE file in the root directory of this source tree.
68
- */var ld;function pb(){if(ld)return rt;ld=1;var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var C=v.$$typeof;switch(C){case e:switch(v=v.type,v){case r:case i:case n:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case c:case y:case d:case a:return v;default:return C}}case t:return C}}}return rt.ContextConsumer=l,rt.ContextProvider=a,rt.Element=e,rt.ForwardRef=c,rt.Fragment=r,rt.Lazy=y,rt.Memo=d,rt.Portal=t,rt.Profiler=i,rt.StrictMode=n,rt.Suspense=u,rt.SuspenseList=f,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return h(v)===l},rt.isContextProvider=function(v){return h(v)===a},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return h(v)===c},rt.isFragment=function(v){return h(v)===r},rt.isLazy=function(v){return h(v)===y},rt.isMemo=function(v){return h(v)===d},rt.isPortal=function(v){return h(v)===t},rt.isProfiler=function(v){return h(v)===i},rt.isStrictMode=function(v){return h(v)===n},rt.isSuspense=function(v){return h(v)===u},rt.isSuspenseList=function(v){return h(v)===f},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===f||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===d||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===b||v.getModuleId!==void 0)},rt.typeOf=h,rt}var nt={};/**
68
+ */var ld;function db(){if(ld)return rt;ld=1;var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var C=v.$$typeof;switch(C){case e:switch(v=v.type,v){case r:case i:case n:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case c:case y:case d:case a:return v;default:return C}}case t:return C}}}return rt.ContextConsumer=l,rt.ContextProvider=a,rt.Element=e,rt.ForwardRef=c,rt.Fragment=r,rt.Lazy=y,rt.Memo=d,rt.Portal=t,rt.Profiler=i,rt.StrictMode=n,rt.Suspense=u,rt.SuspenseList=f,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return h(v)===l},rt.isContextProvider=function(v){return h(v)===a},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return h(v)===c},rt.isFragment=function(v){return h(v)===r},rt.isLazy=function(v){return h(v)===y},rt.isMemo=function(v){return h(v)===d},rt.isPortal=function(v){return h(v)===t},rt.isProfiler=function(v){return h(v)===i},rt.isStrictMode=function(v){return h(v)===n},rt.isSuspense=function(v){return h(v)===u},rt.isSuspenseList=function(v){return h(v)===f},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===f||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===d||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===b||v.getModuleId!==void 0)},rt.typeOf=h,rt}var nt={};/**
69
69
  * @license React
70
70
  * react-is.development.js
71
71
  *
@@ -73,12 +73,12 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var cd;function fb(){return cd||(cd=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,h=!1,v=!1,C=!1,E=!1,S;S=Symbol.for("react.module.reference");function T(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===i||E||z===n||z===u||z===f||C||z===m||b||h||v||typeof z=="object"&&z!==null&&(z.$$typeof===y||z.$$typeof===d||z.$$typeof===a||z.$$typeof===l||z.$$typeof===c||z.$$typeof===S||z.getModuleId!==void 0))}function w(z){if(typeof z=="object"&&z!==null){var pe=z.$$typeof;switch(pe){case e:var de=z.type;switch(de){case r:case i:case n:case u:case f:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case s:case l:case c:case y:case d:case a:return Ce;default:return pe}}case t:return pe}}}var A=l,M=a,O=e,g=c,p=r,x=y,R=d,P=t,_=i,k=n,D=u,W=f,Z=!1,G=!1;function B(z){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(z){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(z){return w(z)===l}function oe(z){return w(z)===a}function ne(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ue(z){return w(z)===c}function ce(z){return w(z)===r}function ye(z){return w(z)===y}function se(z){return w(z)===d}function le(z){return w(z)===t}function te(z){return w(z)===i}function ve(z){return w(z)===n}function X(z){return w(z)===u}function Re(z){return w(z)===f}nt.ContextConsumer=A,nt.ContextProvider=M,nt.Element=O,nt.ForwardRef=g,nt.Fragment=p,nt.Lazy=x,nt.Memo=R,nt.Portal=P,nt.Profiler=_,nt.StrictMode=k,nt.Suspense=D,nt.SuspenseList=W,nt.isAsyncMode=B,nt.isConcurrentMode=Y,nt.isContextConsumer=ae,nt.isContextProvider=oe,nt.isElement=ne,nt.isForwardRef=ue,nt.isFragment=ce,nt.isLazy=ye,nt.isMemo=se,nt.isPortal=le,nt.isProfiler=te,nt.isStrictMode=ve,nt.isSuspense=X,nt.isSuspenseList=Re,nt.isValidElementType=T,nt.typeOf=w}()),nt}var ud;function db(){return ud||(ud=1,process.env.NODE_ENV==="production"?Io.exports=pb():Io.exports=fb()),Io.exports}var pd=db();function fd(e,t=""){return e.displayName||e.name||t}function dd(e,t,r){const n=fd(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function hb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case pd.ForwardRef:return dd(e,e.render,"ForwardRef");case pd.Memo:return dd(e,e.type,"memo");default:return}}}function hd(e){const{variants:t,...r}=e,n={variants:t,style:nd(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=nd(i.style))}),n}const mb=hl();function ml(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function gb(e){return e?(t,r)=>r[e]:null}function yb(e,t,r){e.theme=xb(e.theme)?r:e.theme[t]||e.theme}function ko(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>ko(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:i,...a}=r;n=a}return md(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function md(e,t,r=[]){var i;let n;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(n))continue}else for(const s in l.props)if(e[s]!==l.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==l.props[s])continue e;typeof l.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(l.style(n))):r.push(l.style)}return r}function gd(e={}){const{themeId:t,defaultTheme:r=mb,rootShouldForwardProp:n=ml,slotShouldForwardProp:i=ml}=e;function a(s){yb(s,t,r)}return(s,c={})=>{tb(s,w=>w.filter(A=>A!==Zr));const{name:u,slot:f,skipVariantsResolver:d,skipSx:y,overridesResolver:m=gb(yd(f)),...b}=c,h=d!==void 0?d:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let C=ml;f==="Root"||f==="root"?C=n:f?C=i:Ob(s)&&(C=void 0);const E=eb(s,{shouldForwardProp:C,label:bb(u,f),...b}),S=w=>{if(typeof w=="function"&&w.__emotion_real!==w)return function(M){return ko(M,w)};if(lr(w)){const A=hd(w);return A.variants?function(O){return ko(O,A)}:A.style}return w},T=(...w)=>{const A=[],M=w.map(S),O=[];if(A.push(a),u&&m&&O.push(function(R){var D,W;const _=(W=(D=R.theme.components)==null?void 0:D[u])==null?void 0:W.styleOverrides;if(!_)return null;const k={};for(const Z in _)k[Z]=ko(R,_[Z]);return m(R,k)}),u&&!h&&O.push(function(R){var k,D;const P=R.theme,_=(D=(k=P==null?void 0:P.components)==null?void 0:k[u])==null?void 0:D.variants;return _?md(R,_):null}),v||O.push(Zr),Array.isArray(M[0])){const x=M.shift(),R=new Array(A.length).fill(""),P=new Array(O.length).fill("");let _;_=[...R,...x,...P],_.raw=[...R,...x.raw,...P],A.unshift(_)}const g=[...A,...M,...O],p=E(...g);return s.muiName&&(p.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(p.displayName=vb(u,f,s)),p};return E.withConfig&&(T.withConfig=E.withConfig),T}}function vb(e,t,r){return e?`${e}${he(t||"")}`:`Styled(${hb(r)})`}function bb(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${yd(t||"Root")}`),r}function xb(e){for(const t in e)return!1;return!0}function Ob(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const jo=gd();function Ao(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const c=s;r[i][c]=Ao(a[c],l[c])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const cr=typeof window<"u"?j.useLayoutEffect:j.useEffect;function Eb(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function gl(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}].`),Eb(e,t,r)}function Cb(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)),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 kr(e){if(e.type)return e;if(e.charAt(0)==="#")return kr(Cb(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.
76
+ */var cd;function hb(){return cd||(cd=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,h=!1,v=!1,C=!1,E=!1,S;S=Symbol.for("react.module.reference");function T(V){return!!(typeof V=="string"||typeof V=="function"||V===r||V===i||E||V===n||V===u||V===f||C||V===m||b||h||v||typeof V=="object"&&V!==null&&(V.$$typeof===y||V.$$typeof===d||V.$$typeof===a||V.$$typeof===l||V.$$typeof===c||V.$$typeof===S||V.getModuleId!==void 0))}function w(V){if(typeof V=="object"&&V!==null){var pe=V.$$typeof;switch(pe){case e:var de=V.type;switch(de){case r:case i:case n:case u:case f:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case s:case l:case c:case y:case d:case a:return Ce;default:return pe}}case t:return pe}}}var A=l,M=a,O=e,g=c,p=r,x=y,R=d,P=t,_=i,k=n,D=u,W=f,Z=!1,G=!1;function B(V){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(V){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(V){return w(V)===l}function oe(V){return w(V)===a}function ne(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function ue(V){return w(V)===c}function ce(V){return w(V)===r}function ye(V){return w(V)===y}function se(V){return w(V)===d}function le(V){return w(V)===t}function te(V){return w(V)===i}function ve(V){return w(V)===n}function X(V){return w(V)===u}function Re(V){return w(V)===f}nt.ContextConsumer=A,nt.ContextProvider=M,nt.Element=O,nt.ForwardRef=g,nt.Fragment=p,nt.Lazy=x,nt.Memo=R,nt.Portal=P,nt.Profiler=_,nt.StrictMode=k,nt.Suspense=D,nt.SuspenseList=W,nt.isAsyncMode=B,nt.isConcurrentMode=Y,nt.isContextConsumer=ae,nt.isContextProvider=oe,nt.isElement=ne,nt.isForwardRef=ue,nt.isFragment=ce,nt.isLazy=ye,nt.isMemo=se,nt.isPortal=le,nt.isProfiler=te,nt.isStrictMode=ve,nt.isSuspense=X,nt.isSuspenseList=Re,nt.isValidElementType=T,nt.typeOf=w}()),nt}var ud;function mb(){return ud||(ud=1,process.env.NODE_ENV==="production"?ko.exports=db():ko.exports=hb()),ko.exports}var pd=mb();function fd(e,t=""){return e.displayName||e.name||t}function dd(e,t,r){const n=fd(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function gb(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case pd.ForwardRef:return dd(e,e.render,"ForwardRef");case pd.Memo:return dd(e,e.type,"memo");default:return}}}function hd(e){const{variants:t,...r}=e,n={variants:t,style:nd(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=nd(i.style))}),n}const yb=hl();function ml(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vb(e){return e?(t,r)=>r[e]:null}function bb(e,t,r){e.theme=Eb(e.theme)?r:e.theme[t]||e.theme}function jo(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>jo(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:i,...a}=r;n=a}return md(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function md(e,t,r=[]){var i;let n;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(n))continue}else for(const s in l.props)if(e[s]!==l.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==l.props[s])continue e;typeof l.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(l.style(n))):r.push(l.style)}return r}function gd(e={}){const{themeId:t,defaultTheme:r=yb,rootShouldForwardProp:n=ml,slotShouldForwardProp:i=ml}=e;function a(s){bb(s,t,r)}return(s,c={})=>{nb(s,w=>w.filter(A=>A!==Zr));const{name:u,slot:f,skipVariantsResolver:d,skipSx:y,overridesResolver:m=vb(yd(f)),...b}=c,h=d!==void 0?d:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let C=ml;f==="Root"||f==="root"?C=n:f?C=i:Cb(s)&&(C=void 0);const E=rb(s,{shouldForwardProp:C,label:Ob(u,f),...b}),S=w=>{if(typeof w=="function"&&w.__emotion_real!==w)return function(M){return jo(M,w)};if(lr(w)){const A=hd(w);return A.variants?function(O){return jo(O,A)}:A.style}return w},T=(...w)=>{const A=[],M=w.map(S),O=[];if(A.push(a),u&&m&&O.push(function(R){var D,W;const _=(W=(D=R.theme.components)==null?void 0:D[u])==null?void 0:W.styleOverrides;if(!_)return null;const k={};for(const Z in _)k[Z]=jo(R,_[Z]);return m(R,k)}),u&&!h&&O.push(function(R){var k,D;const P=R.theme,_=(D=(k=P==null?void 0:P.components)==null?void 0:k[u])==null?void 0:D.variants;return _?md(R,_):null}),v||O.push(Zr),Array.isArray(M[0])){const x=M.shift(),R=new Array(A.length).fill(""),P=new Array(O.length).fill("");let _;_=[...R,...x,...P],_.raw=[...R,...x.raw,...P],A.unshift(_)}const g=[...A,...M,...O],p=E(...g);return s.muiName&&(p.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(p.displayName=xb(u,f,s)),p};return E.withConfig&&(T.withConfig=E.withConfig),T}}function xb(e,t,r){return e?`${e}${he(t||"")}`:`Styled(${gb(r)})`}function Ob(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${yd(t||"Root")}`),r}function Eb(e){for(const t in e)return!1;return!0}function Cb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Ao=gd();function No(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const c=s;r[i][c]=No(a[c],l[c])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const cr=typeof window<"u"?j.useLayoutEffect:j.useEffect;function Sb(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function gl(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}].`),Sb(e,t,r)}function Tb(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)),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 kr(e){if(e.type)return e;if(e.charAt(0)==="#")return kr(Tb(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.
77
77
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:sr(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.
78
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:sr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const Sb=e=>{const t=kr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Rn=(e,t)=>{try{return Sb(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function No(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 vd(e){e=kr(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,f=(u+r/30)%12)=>i-a*Math.max(Math.min(f-3,9-f,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])),No({type:s,values:c})}function yl(e){e=kr(e);let t=e.type==="hsl"||e.type==="hsla"?kr(vd(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 bd(e,t){const r=yl(e),n=yl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qe(e,t){return e=kr(e),t=gl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,No(e)}function $o(e,t,r){try{return Qe(e,t)}catch{return e}}function vl(e,t){if(e=kr(e),t=gl(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 No(e)}function ct(e,t,r){try{return vl(e,t)}catch{return e}}function bl(e,t){if(e=kr(e),t=gl(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 No(e)}function ut(e,t,r){try{return bl(e,t)}catch{return e}}function Tb(e,t=.15){return yl(e)>.5?vl(e,t):bl(e,t)}function Mo(e,t,r){try{return Tb(e,t)}catch{return e}}function ur(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function wb(e){const{prototype:t={}}=e;return!!t.isReactComponent}function xd(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"&&!wb(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 Pn=ur(o.element,xd);Pn.isRequired=ur(o.element.isRequired,xd);function Rb(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Pb(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"&&!Rb(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 xl=ur(o.elementType,Pb),_b="exact-prop: ​";function Od(e){return process.env.NODE_ENV==="production"?e:{...e,[_b]: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}}}function Er(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 Ol(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Ed(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 El(e,t){var r,n,i;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:i.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function Cr(e){return Wt(e).defaultView||window}function Do(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ib(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 qr({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=j.useRef(e!==void 0),[a,l]=j.useState(t),s=i?e:a;if(process.env.NODE_ENV!=="production"){j.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${r} to be ${i?"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(`
78
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:sr(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const wb=e=>{const t=kr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Rn=(e,t)=>{try{return wb(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function $o(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 vd(e){e=kr(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,f=(u+r/30)%12)=>i-a*Math.max(Math.min(f-3,9-f,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])),$o({type:s,values:c})}function yl(e){e=kr(e);let t=e.type==="hsl"||e.type==="hsla"?kr(vd(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 bd(e,t){const r=yl(e),n=yl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qe(e,t){return e=kr(e),t=gl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$o(e)}function Mo(e,t,r){try{return Qe(e,t)}catch{return e}}function vl(e,t){if(e=kr(e),t=gl(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 $o(e)}function ct(e,t,r){try{return vl(e,t)}catch{return e}}function bl(e,t){if(e=kr(e),t=gl(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 $o(e)}function ut(e,t,r){try{return bl(e,t)}catch{return e}}function Rb(e,t=.15){return yl(e)>.5?vl(e,t):bl(e,t)}function Do(e,t,r){try{return Rb(e,t)}catch{return e}}function ur(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Pb(e){const{prototype:t={}}=e;return!!t.isReactComponent}function xd(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"&&!Pb(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 Pn=ur(o.element,xd);Pn.isRequired=ur(o.element.isRequired,xd);function _b(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ib(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"&&!_b(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 xl=ur(o.elementType,Ib),kb="exact-prop: ​";function Od(e){return process.env.NODE_ENV==="production"?e:{...e,[kb]: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}}}function Er(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 Ol(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Ed(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 El(e,t){var r,n,i;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:i.muiName))!==-1}function Wt(e){return e&&e.ownerDocument||document}function Cr(e){return Wt(e).defaultView||window}function Lo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function jb(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 qr({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=j.useRef(e!==void 0),[a,l]=j.useState(t),s=i?e:a;if(process.env.NODE_ENV!=="production"){j.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${r} to be ${i?"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(`
79
79
  `))},[n,r,e]);const{current:u}=j.useRef(t);j.useEffect(()=>{!i&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
80
- `))},[JSON.stringify(t)])}const c=j.useCallback(u=>{i||l(u)},[]);return[s,c]}function pr(e){const t=j.useRef(e);return cr(()=>{t.current=e}),j.useRef((...r)=>(0,t.current)(...r)).current}function Ot(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Do(r,t)})},e)}const Cd={};function Sd(e,t){const r=j.useRef(Cd);return r.current===Cd&&(r.current=e(t)),r}const kb=[];function jb(e){j.useEffect(e,kb)}class Cl{constructor(){Tt(this,"currentId",null);Tt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Tt(this,"disposeEffect",()=>this.clear)}static create(){return new Cl}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Td(){const e=Sd(Cl.create).current;return jb(e.disposeEffect),e}function wd(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(`
81
- `))}return!1}function Rd(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Ab=e=>{const t=j.useRef({});return j.useEffect(()=>{t.current=e}),t.current};function Nb(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 Pd(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=Nb(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function _d(e,t,...r){return e[t]===void 0?null:Pd(e,t,...r)}function Sl(){return null}_d.isRequired=Pd,Sl.isRequired=Sl;const Tl=process.env.NODE_ENV==="production"?Sl:_d;function $b(e){return typeof e=="string"}function Id(e,t,r){return e===void 0||$b(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function kd(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 jd(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 Ad(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const m=Pe(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...r,...i,...n};return m.length>0&&(h.className=m),Object.keys(b).length>0&&(h.style=b),{props:h,internalRef:void 0}}const l=kd({...i,...n}),s=jd(n),c=jd(i),u=t(l),f=Pe(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),d={...u==null?void 0:u.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},y={...u,...r,...c,...s};return f.length>0&&(y.className=f),Object.keys(d).length>0&&(y.style=d),{props:y,internalRef:u.ref}}function Nd(e,t,r){return typeof e=="function"?e(t,r):e}function wl(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Nd(r,n),{props:s,internalRef:c}=Ad({...a,externalSlotProps:l}),u=Ot(c,l==null?void 0:l.ref,(d=e.additionalProps)==null?void 0:d.ref);return Id(t,{...s,ref:u},n)}function _n(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Mb=j.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const $d=()=>j.useContext(Mb)??!1,Db=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Lb(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?Ao(i.defaultProps,n):!i.styleOverrides&&!i.variants?Ao(i,n):n}function Fb({props:e,name:t}){const r=j.useContext(Db);return Lb({props:e,name:t,theme:{components:r}})}const Md={theme:void 0};function Bb(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(Md.theme=i.theme,a=hd(e(Md)),t=a,r=i.theme),a}}function qb(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 Dd=(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])})},zb=(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)},Vb=(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 Rl(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return zb(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const f=`--${r?`${r}-`:""}${s.join("-")}`,d=Vb(s,c);Object.assign(i,{[f]:d}),Dd(a,s,`var(${f})`,u),Dd(l,s,`var(${f}, ${d})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function Ub(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:f,varsWithDefaults:d}=Rl(c,t);let y=d;const m={},{[s]:b,...h}=a;if(Object.entries(h||{}).forEach(([S,T])=>{const{vars:w,css:A,varsWithDefaults:M}=Rl(T,t);y=At(y,M),m[S]={css:A,vars:w}}),b){const{css:S,vars:T,varsWithDefaults:w}=Rl(b,t);y=At(y,w),m[s]={css:S,vars:T}}function v(S,T){var A,M;let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),S){if(w==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((M=(A=a[S])==null?void 0:A.palette)==null?void 0:M.mode)||S})`]:{":root":T}};if(w)return e.defaultColorScheme===S?`:root, ${w.replace("%s",String(S))}`:w.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...u};return Object.entries(m).forEach(([,{vars:T}])=>{S=At(S,T)}),S},generateStyleSheets:()=>{var O,g;const S=[],T=e.defaultColorScheme||"light";function w(p,x){Object.keys(x).length&&S.push(typeof p=="string"?{[p]:{...x}}:p)}w(r(void 0,{...f}),f);const{[T]:A,...M}=m;if(A){const{css:p}=A,x=(g=(O=a[T])==null?void 0:O.palette)==null?void 0:g.mode,R=!n&&x?{colorScheme:x,...p}:{...p};w(r(T,{...R}),R)}return Object.entries(M).forEach(([p,{css:x}])=>{var _,k;const R=(k=(_=a[p])==null?void 0:_.palette)==null?void 0:k.mode,P=!n&&R?{colorScheme:R,...x}:{...x};w(r(p,{...P}),P)}),S}}}function Wb(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 In={black:"#000",white:"#fff"},Hb={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"},en={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},tn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},kn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},nn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},on={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Ld(){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:In.white,default:In.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 Gb=Ld();function Fd(){return{text:{primary:In.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:In.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 Bd=Fd();function qd(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=bl(e.main,i):t==="dark"&&(e.dark=vl(e.main,a)))}function Kb(e="light"){return e==="dark"?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[700],light:rn[400],dark:rn[800]}}function Yb(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[500],light:en[300],dark:en[700]}}function Xb(e="light"){return e==="dark"?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}function Jb(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[500],dark:nn[900]}}function Qb(e="light"){return e==="dark"?{main:on[400],light:on[300],dark:on[700]}:{main:on[800],light:on[500],dark:on[900]}}function Zb(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:"#ed6c02",light:kn[500],dark:kn[900]}}function Pl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,a=e.primary||Kb(t),l=e.secondary||Yb(t),s=e.error||Xb(t),c=e.info||Jb(t),u=e.success||Qb(t),f=e.warning||Zb(t);function d(h){const v=bd(h,Bd.text.primary)>=r?Bd.text.primary:Gb.text.primary;if(process.env.NODE_ENV!=="production"){const C=bd(h,v);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${v} on ${h}`,"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(`
80
+ `))},[JSON.stringify(t)])}const c=j.useCallback(u=>{i||l(u)},[]);return[s,c]}function pr(e){const t=j.useRef(e);return cr(()=>{t.current=e}),j.useRef((...r)=>(0,t.current)(...r)).current}function Ot(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Lo(r,t)})},e)}const Cd={};function Sd(e,t){const r=j.useRef(Cd);return r.current===Cd&&(r.current=e(t)),r}const Ab=[];function Nb(e){j.useEffect(e,Ab)}class Cl{constructor(){Tt(this,"currentId",null);Tt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Tt(this,"disposeEffect",()=>this.clear)}static create(){return new Cl}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Td(){const e=Sd(Cl.create).current;return Nb(e.disposeEffect),e}function wd(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(`
81
+ `))}return!1}function Rd(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const $b=e=>{const t=j.useRef({});return j.useEffect(()=>{t.current=e}),t.current};function Mb(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 Pd(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=Mb(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function _d(e,t,...r){return e[t]===void 0?null:Pd(e,t,...r)}function Sl(){return null}_d.isRequired=Pd,Sl.isRequired=Sl;const Tl=process.env.NODE_ENV==="production"?Sl:_d;function Db(e){return typeof e=="string"}function Id(e,t,r){return e===void 0||Db(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function kd(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 jd(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 Ad(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const m=Pe(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...r,...i,...n};return m.length>0&&(h.className=m),Object.keys(b).length>0&&(h.style=b),{props:h,internalRef:void 0}}const l=kd({...i,...n}),s=jd(n),c=jd(i),u=t(l),f=Pe(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),d={...u==null?void 0:u.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},y={...u,...r,...c,...s};return f.length>0&&(y.className=f),Object.keys(d).length>0&&(y.style=d),{props:y,internalRef:u.ref}}function Nd(e,t,r){return typeof e=="function"?e(t,r):e}function wl(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Nd(r,n),{props:s,internalRef:c}=Ad({...a,externalSlotProps:l}),u=Ot(c,l==null?void 0:l.ref,(d=e.additionalProps)==null?void 0:d.ref);return Id(t,{...s,ref:u},n)}function _n(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Lb=j.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const $d=()=>j.useContext(Lb)??!1,Fb=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Bb(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?No(i.defaultProps,n):!i.styleOverrides&&!i.variants?No(i,n):n}function qb({props:e,name:t}){const r=j.useContext(Fb);return Bb({props:e,name:t,theme:{components:r}})}const Md={theme:void 0};function Vb(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(Md.theme=i.theme,a=hd(e(Md)),t=a,r=i.theme),a}}function zb(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 Dd=(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])})},Ub=(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)},Wb=(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 Rl(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},l={};return Ub(e,(s,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const f=`--${r?`${r}-`:""}${s.join("-")}`,d=Wb(s,c);Object.assign(i,{[f]:d}),Dd(a,s,`var(${f})`,u),Dd(l,s,`var(${f}, ${d})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function Hb(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:f,varsWithDefaults:d}=Rl(c,t);let y=d;const m={},{[s]:b,...h}=a;if(Object.entries(h||{}).forEach(([S,T])=>{const{vars:w,css:A,varsWithDefaults:M}=Rl(T,t);y=Nt(y,M),m[S]={css:A,vars:w}}),b){const{css:S,vars:T,varsWithDefaults:w}=Rl(b,t);y=Nt(y,w),m[s]={css:S,vars:T}}function v(S,T){var A,M;let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),S){if(w==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((M=(A=a[S])==null?void 0:A.palette)==null?void 0:M.mode)||S})`]:{":root":T}};if(w)return e.defaultColorScheme===S?`:root, ${w.replace("%s",String(S))}`:w.replace("%s",String(S))}return":root"}return{vars:y,generateThemeVars:()=>{let S={...u};return Object.entries(m).forEach(([,{vars:T}])=>{S=Nt(S,T)}),S},generateStyleSheets:()=>{var O,g;const S=[],T=e.defaultColorScheme||"light";function w(p,x){Object.keys(x).length&&S.push(typeof p=="string"?{[p]:{...x}}:p)}w(r(void 0,{...f}),f);const{[T]:A,...M}=m;if(A){const{css:p}=A,x=(g=(O=a[T])==null?void 0:O.palette)==null?void 0:g.mode,R=!n&&x?{colorScheme:x,...p}:{...p};w(r(T,{...R}),R)}return Object.entries(M).forEach(([p,{css:x}])=>{var _,k;const R=(k=(_=a[p])==null?void 0:_.palette)==null?void 0:k.mode,P=!n&&R?{colorScheme:R,...x}:{...x};w(r(p,{...P}),P)}),S}}}function Gb(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 In={black:"#000",white:"#fff"},Kb={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"},en={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},tn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},kn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},nn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},on={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Ld(){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:In.white,default:In.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 Yb=Ld();function Fd(){return{text:{primary:In.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:In.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 Bd=Fd();function qd(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=bl(e.main,i):t==="dark"&&(e.dark=vl(e.main,a)))}function Xb(e="light"){return e==="dark"?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[700],light:rn[400],dark:rn[800]}}function Jb(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[500],light:en[300],dark:en[700]}}function Qb(e="light"){return e==="dark"?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}function Zb(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[500],dark:nn[900]}}function e0(e="light"){return e==="dark"?{main:on[400],light:on[300],dark:on[700]}:{main:on[800],light:on[500],dark:on[900]}}function t0(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:"#ed6c02",light:kn[500],dark:kn[900]}}function Pl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,a=e.primary||Xb(t),l=e.secondary||Jb(t),s=e.error||Qb(t),c=e.info||Zb(t),u=e.success||e0(t),f=e.warning||t0(t);function d(h){const v=bd(h,Bd.text.primary)>=r?Bd.text.primary:Yb.text.primary;if(process.env.NODE_ENV!=="production"){const C=bd(h,v);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${v} on ${h}`,"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(`
82
82
  `))}return v}const y=({color:h,name:v,mainShade:C=500,lightShade:E=300,darkShade:S=700})=>{if(h={...h},!h.main&&h[C]&&(h.main=h[C]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
83
83
  The color object needs to have a \`main\` property or a \`${C}\` property.`:sr(11,v?` (${v})`:"",C));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
84
84
  \`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
@@ -93,20 +93,20 @@ const theme1 = createTheme({ palette: {
93
93
 
94
94
  const theme2 = createTheme({ palette: {
95
95
  primary: { main: green[500] },
96
- } });`:sr(12,v?` (${v})`:"",JSON.stringify(h.main)));return qd(h,"light",E,n),qd(h,"dark",S,n),h.contrastText||(h.contrastText=d(h.main)),h};let m;return t==="light"?m=Ld():t==="dark"&&(m=Fd()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At({common:{...In},mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:s,name:"error"}),warning:y({color:f,name:"warning"}),info:y({color:c,name:"info"}),success:y({color:u,name:"success"}),grey:Hb,contrastThreshold:r,getContrastText:d,augmentColor:y,tonalOffset:n,...m},i)}function e0(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 t0(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function r0(e){return Math.round(e*1e5)/1e5}const zd={textTransform:"uppercase"},Vd='"Roboto", "Helvetica", "Arial", sans-serif';function n0(e,t){const{fontFamily:r=Vd,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:f,...d}=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 y=n/14,m=f||(v=>`${v/c*y}rem`),b=(v,C,E,S,T)=>({fontFamily:r,fontWeight:v,fontSize:m(C),lineHeight:E,...r===Vd?{letterSpacing:`${r0(S/C)}em`}:{},...T,...u}),h={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(l,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(l,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(l,14,1.75,.4,zd),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,zd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s,...h},d,{clone:!1})}const o0=.2,i0=.14,a0=.12;function dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${o0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${i0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${a0})`].join(",")}const s0=["none",dt(0,2,1,-1,0,1,1,0,0,1,3,0),dt(0,3,1,-2,0,2,2,0,0,1,5,0),dt(0,3,3,-2,0,3,4,0,0,1,8,0),dt(0,2,4,-1,0,4,5,0,0,1,10,0),dt(0,3,5,-1,0,5,8,0,0,1,14,0),dt(0,3,5,-1,0,6,10,0,0,1,18,0),dt(0,4,5,-2,0,7,10,1,0,2,16,1),dt(0,5,5,-3,0,8,10,1,0,3,14,2),dt(0,5,6,-3,0,9,12,1,0,3,16,2),dt(0,6,6,-3,0,10,14,1,0,4,18,3),dt(0,6,7,-4,0,11,15,1,0,4,20,3),dt(0,7,8,-4,0,12,17,2,0,5,22,4),dt(0,7,8,-4,0,13,19,2,0,5,24,4),dt(0,7,9,-4,0,14,21,2,0,5,26,4),dt(0,8,9,-5,0,15,22,2,0,6,28,5),dt(0,8,10,-5,0,16,24,2,0,6,30,5),dt(0,8,11,-5,0,17,26,2,0,6,32,5),dt(0,9,11,-5,0,18,28,2,0,7,34,6),dt(0,9,12,-6,0,19,29,2,0,7,36,6),dt(0,10,13,-6,0,20,31,3,0,8,38,7),dt(0,10,13,-6,0,21,33,3,0,8,40,7),dt(0,10,14,-6,0,22,35,3,0,8,42,7),dt(0,11,14,-7,0,23,36,3,0,9,44,8),dt(0,11,15,-7,0,24,38,3,0,9,46,8)],l0={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)"},c0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ud(e){return`${Math.round(e)}ms`}function u0(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function p0(e){const t={...l0,...e.easing},r={...c0,...e.duration};return{getAutoHeightDuration:u0,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 f=y=>typeof y=="string",d=y=>!Number.isNaN(parseFloat(y));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(l)&&!f(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!f(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(`
97
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof l=="string"?l:Ud(l)} ${s} ${typeof c=="string"?c:Ud(c)}`).join(",")},...e,easing:t,duration:r}}const f0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function d0(e){return lr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wd(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];!d0(s)||l.startsWith("unstable_")?delete n[l]:lr(s)&&(n[l]={...s},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
96
+ } });`:sr(12,v?` (${v})`:"",JSON.stringify(h.main)));return qd(h,"light",E,n),qd(h,"dark",S,n),h.contrastText||(h.contrastText=d(h.main)),h};let m;return t==="light"?m=Ld():t==="dark"&&(m=Fd()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nt({common:{...In},mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:s,name:"error"}),warning:y({color:f,name:"warning"}),info:y({color:c,name:"info"}),success:y({color:u,name:"success"}),grey:Kb,contrastThreshold:r,getContrastText:d,augmentColor:y,tonalOffset:n,...m},i)}function r0(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 n0(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function o0(e){return Math.round(e*1e5)/1e5}const Vd={textTransform:"uppercase"},zd='"Roboto", "Helvetica", "Arial", sans-serif';function i0(e,t){const{fontFamily:r=zd,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:f,...d}=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 y=n/14,m=f||(v=>`${v/c*y}rem`),b=(v,C,E,S,T)=>({fontFamily:r,fontWeight:v,fontSize:m(C),lineHeight:E,...r===zd?{letterSpacing:`${o0(S/C)}em`}:{},...T,...u}),h={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(l,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(l,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(l,14,1.75,.4,Vd),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Vd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nt({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s,...h},d,{clone:!1})}const a0=.2,s0=.14,l0=.12;function dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${a0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${s0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${l0})`].join(",")}const c0=["none",dt(0,2,1,-1,0,1,1,0,0,1,3,0),dt(0,3,1,-2,0,2,2,0,0,1,5,0),dt(0,3,3,-2,0,3,4,0,0,1,8,0),dt(0,2,4,-1,0,4,5,0,0,1,10,0),dt(0,3,5,-1,0,5,8,0,0,1,14,0),dt(0,3,5,-1,0,6,10,0,0,1,18,0),dt(0,4,5,-2,0,7,10,1,0,2,16,1),dt(0,5,5,-3,0,8,10,1,0,3,14,2),dt(0,5,6,-3,0,9,12,1,0,3,16,2),dt(0,6,6,-3,0,10,14,1,0,4,18,3),dt(0,6,7,-4,0,11,15,1,0,4,20,3),dt(0,7,8,-4,0,12,17,2,0,5,22,4),dt(0,7,8,-4,0,13,19,2,0,5,24,4),dt(0,7,9,-4,0,14,21,2,0,5,26,4),dt(0,8,9,-5,0,15,22,2,0,6,28,5),dt(0,8,10,-5,0,16,24,2,0,6,30,5),dt(0,8,11,-5,0,17,26,2,0,6,32,5),dt(0,9,11,-5,0,18,28,2,0,7,34,6),dt(0,9,12,-6,0,19,29,2,0,7,36,6),dt(0,10,13,-6,0,20,31,3,0,8,38,7),dt(0,10,13,-6,0,21,33,3,0,8,40,7),dt(0,10,14,-6,0,22,35,3,0,8,42,7),dt(0,11,14,-7,0,23,36,3,0,9,44,8),dt(0,11,15,-7,0,24,38,3,0,9,46,8)],u0={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)"},p0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ud(e){return`${Math.round(e)}ms`}function f0(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function d0(e){const t={...u0,...e.easing},r={...p0,...e.duration};return{getAutoHeightDuration:f0,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 f=y=>typeof y=="string",d=y=>!Number.isNaN(parseFloat(y));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(l)&&!f(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!f(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(`
97
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof l=="string"?l:Ud(l)} ${s} ${typeof c=="string"?c:Ud(c)}`).join(",")},...e,easing:t,duration:r}}const h0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function m0(e){return lr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wd(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];!m0(s)||l.startsWith("unstable_")?delete n[l]:lr(s)&&(n[l]={...s},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
98
98
 
99
99
  const theme = ${JSON.stringify(t,null,2)};
100
100
 
101
101
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
102
102
  theme.transitions = createTransitions(theme.transitions || {});
103
103
 
104
- export default theme;`}function _l(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:l={},typography:s={},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.":sr(20));const f=Pl(a),d=hl(e);let y=At(d,{mixins:t0(d.breakpoints,n),palette:f,shadows:s0.slice(),typography:n0(f,s),transitions:p0(l),zIndex:{...f0}});if(y=At(y,u),y=t.reduce((m,b)=>At(m,b),y),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(h,v)=>{let C;for(C in h){const E=h[C];if(m.includes(C)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const S=We("",C);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
105
- `))}h[C]={}}}};Object.keys(y.components).forEach(h=>{const v=y.components[h].styleOverrides;v&&h.startsWith("Mui")&&b(v,h)})}return y.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},y.unstable_sx=function(b){return Zr({sx:b,theme:this})},y.toRuntimeSource=Wd,y}function Il(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 h0=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Il(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Hd(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gd(e){return e==="dark"?h0:[]}function m0(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,a=Pl(t);return{palette:a,opacity:{...Hd(a.mode),...r},overlays:n||Gd(a.mode),...i}}function g0(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 y0=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],v0=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!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return y0(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 b0(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Q(e,t,r){!e[t]&&r&&(e[t]=r)}function jn(e){return typeof e!="string"||!e.startsWith("hsl")?e:vd(e)}function Sr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Rn(jn(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().
106
- 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 x0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fr=e=>{try{return e()}catch{}},O0=(e="mui")=>qb(e);function kl(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=m0({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=_l({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Hd(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Gd(i)},l}function E0(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=g0,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(r)[0],d=n||(r.light&&f!=="light"?"light":f),y=O0(a),{[d]:m,light:b,dark:h,...v}=r,C={...v};let E=m;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:sr(21,d));const S=kl(C,E,u,d);b&&!C.light&&kl(C,b,void 0,"light"),h&&!C.dark&&kl(C,h,void 0,"dark");let T={defaultColorScheme:d,...S,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:y,colorSchemes:C,font:{...e0(S.typography),...S.font},spacing:x0(u.spacing)};Object.keys(T.colorSchemes).forEach(g=>{const p=T.colorSchemes[g].palette,x=R=>{const P=R.split("-"),_=P[1],k=P[2];return y(R,p[_][k])};if(p.mode==="light"&&(Q(p.common,"background","#fff"),Q(p.common,"onBackground","#000")),p.mode==="dark"&&(Q(p.common,"background","#000"),Q(p.common,"onBackground","#fff")),b0(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){Q(p.Alert,"errorColor",ct(p.error.light,.6)),Q(p.Alert,"infoColor",ct(p.info.light,.6)),Q(p.Alert,"successColor",ct(p.success.light,.6)),Q(p.Alert,"warningColor",ct(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",x("palette-error-main")),Q(p.Alert,"infoFilledBg",x("palette-info-main")),Q(p.Alert,"successFilledBg",x("palette-success-main")),Q(p.Alert,"warningFilledBg",x("palette-warning-main")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.main))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.main))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.main))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.main))),Q(p.Alert,"errorStandardBg",ut(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ut(p.info.light,.9)),Q(p.Alert,"successStandardBg",ut(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ut(p.warning.light,.9)),Q(p.Alert,"errorIconColor",x("palette-error-main")),Q(p.Alert,"infoIconColor",x("palette-info-main")),Q(p.Alert,"successIconColor",x("palette-success-main")),Q(p.Alert,"warningIconColor",x("palette-warning-main")),Q(p.AppBar,"defaultBg",x("palette-grey-100")),Q(p.Avatar,"defaultBg",x("palette-grey-400")),Q(p.Button,"inheritContainedBg",x("palette-grey-300")),Q(p.Button,"inheritContainedHoverBg",x("palette-grey-A100")),Q(p.Chip,"defaultBorder",x("palette-grey-400")),Q(p.Chip,"defaultAvatarColor",x("palette-grey-700")),Q(p.Chip,"defaultIconColor",x("palette-grey-700")),Q(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(p.LinearProgress,"primaryBg",ut(p.primary.main,.62)),Q(p.LinearProgress,"secondaryBg",ut(p.secondary.main,.62)),Q(p.LinearProgress,"errorBg",ut(p.error.main,.62)),Q(p.LinearProgress,"infoBg",ut(p.info.main,.62)),Q(p.LinearProgress,"successBg",ut(p.success.main,.62)),Q(p.LinearProgress,"warningBg",ut(p.warning.main,.62)),Q(p.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),Q(p.Slider,"primaryTrack",ut(p.primary.main,.62)),Q(p.Slider,"secondaryTrack",ut(p.secondary.main,.62)),Q(p.Slider,"errorTrack",ut(p.error.main,.62)),Q(p.Slider,"infoTrack",ut(p.info.main,.62)),Q(p.Slider,"successTrack",ut(p.success.main,.62)),Q(p.Slider,"warningTrack",ut(p.warning.main,.62));const R=Mo(p.background.default,.8);Q(p.SnackbarContent,"bg",R),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(R))),Q(p.SpeedDialAction,"fabHoverBg",Mo(p.background.paper,.15)),Q(p.StepConnector,"border",x("palette-grey-400")),Q(p.StepContent,"border",x("palette-grey-400")),Q(p.Switch,"defaultColor",x("palette-common-white")),Q(p.Switch,"defaultDisabledColor",x("palette-grey-100")),Q(p.Switch,"primaryDisabledColor",ut(p.primary.main,.62)),Q(p.Switch,"secondaryDisabledColor",ut(p.secondary.main,.62)),Q(p.Switch,"errorDisabledColor",ut(p.error.main,.62)),Q(p.Switch,"infoDisabledColor",ut(p.info.main,.62)),Q(p.Switch,"successDisabledColor",ut(p.success.main,.62)),Q(p.Switch,"warningDisabledColor",ut(p.warning.main,.62)),Q(p.TableCell,"border",ut($o(p.divider,1),.88)),Q(p.Tooltip,"bg",$o(p.grey[700],.92))}if(p.mode==="dark"){Q(p.Alert,"errorColor",ut(p.error.light,.6)),Q(p.Alert,"infoColor",ut(p.info.light,.6)),Q(p.Alert,"successColor",ut(p.success.light,.6)),Q(p.Alert,"warningColor",ut(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",x("palette-error-dark")),Q(p.Alert,"infoFilledBg",x("palette-info-dark")),Q(p.Alert,"successFilledBg",x("palette-success-dark")),Q(p.Alert,"warningFilledBg",x("palette-warning-dark")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.dark))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.dark))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.dark))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.dark))),Q(p.Alert,"errorStandardBg",ct(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ct(p.info.light,.9)),Q(p.Alert,"successStandardBg",ct(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ct(p.warning.light,.9)),Q(p.Alert,"errorIconColor",x("palette-error-main")),Q(p.Alert,"infoIconColor",x("palette-info-main")),Q(p.Alert,"successIconColor",x("palette-success-main")),Q(p.Alert,"warningIconColor",x("palette-warning-main")),Q(p.AppBar,"defaultBg",x("palette-grey-900")),Q(p.AppBar,"darkBg",x("palette-background-paper")),Q(p.AppBar,"darkColor",x("palette-text-primary")),Q(p.Avatar,"defaultBg",x("palette-grey-600")),Q(p.Button,"inheritContainedBg",x("palette-grey-800")),Q(p.Button,"inheritContainedHoverBg",x("palette-grey-700")),Q(p.Chip,"defaultBorder",x("palette-grey-700")),Q(p.Chip,"defaultAvatarColor",x("palette-grey-300")),Q(p.Chip,"defaultIconColor",x("palette-grey-300")),Q(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(p.LinearProgress,"primaryBg",ct(p.primary.main,.5)),Q(p.LinearProgress,"secondaryBg",ct(p.secondary.main,.5)),Q(p.LinearProgress,"errorBg",ct(p.error.main,.5)),Q(p.LinearProgress,"infoBg",ct(p.info.main,.5)),Q(p.LinearProgress,"successBg",ct(p.success.main,.5)),Q(p.LinearProgress,"warningBg",ct(p.warning.main,.5)),Q(p.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),Q(p.Slider,"primaryTrack",ct(p.primary.main,.5)),Q(p.Slider,"secondaryTrack",ct(p.secondary.main,.5)),Q(p.Slider,"errorTrack",ct(p.error.main,.5)),Q(p.Slider,"infoTrack",ct(p.info.main,.5)),Q(p.Slider,"successTrack",ct(p.success.main,.5)),Q(p.Slider,"warningTrack",ct(p.warning.main,.5));const R=Mo(p.background.default,.98);Q(p.SnackbarContent,"bg",R),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(R))),Q(p.SpeedDialAction,"fabHoverBg",Mo(p.background.paper,.15)),Q(p.StepConnector,"border",x("palette-grey-600")),Q(p.StepContent,"border",x("palette-grey-600")),Q(p.Switch,"defaultColor",x("palette-grey-300")),Q(p.Switch,"defaultDisabledColor",x("palette-grey-600")),Q(p.Switch,"primaryDisabledColor",ct(p.primary.main,.55)),Q(p.Switch,"secondaryDisabledColor",ct(p.secondary.main,.55)),Q(p.Switch,"errorDisabledColor",ct(p.error.main,.55)),Q(p.Switch,"infoDisabledColor",ct(p.info.main,.55)),Q(p.Switch,"successDisabledColor",ct(p.success.main,.55)),Q(p.Switch,"warningDisabledColor",ct(p.warning.main,.55)),Q(p.TableCell,"border",ct($o(p.divider,1),.68)),Q(p.Tooltip,"bg",$o(p.grey[700],.92))}Sr(p.background,"default"),Sr(p.background,"paper"),Sr(p.common,"background"),Sr(p.common,"onBackground"),Sr(p,"divider"),Object.keys(p).forEach(R=>{const P=p[R];R!=="tonalOffset"&&P&&typeof P=="object"&&(P.main&&Q(p[R],"mainChannel",Rn(jn(P.main))),P.light&&Q(p[R],"lightChannel",Rn(jn(P.light))),P.dark&&Q(p[R],"darkChannel",Rn(jn(P.dark))),P.contrastText&&Q(p[R],"contrastTextChannel",Rn(jn(P.contrastText))),R==="text"&&(Sr(p[R],"primary"),Sr(p[R],"secondary")),R==="action"&&(P.active&&Sr(p[R],"active"),P.selected&&Sr(p[R],"selected")))})}),T=t.reduce((g,p)=>At(g,p),T);const w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:v0(T)},{vars:A,generateThemeVars:M,generateStyleSheets:O}=Ub(T,w);return T.vars=A,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([g,p])=>{T[g]=p}),T.generateThemeVars=M,T.generateStyleSheets=O,T.generateSpacing=function(){return od(u.spacing,pl(this))},T.getColorSchemeSelector=Wb(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(p){return Zr({sx:p,theme:this})},T.toRuntimeSource=Wd,T}function Kd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pl({...r===!0?{}:r.palette,mode:t})})}function C0(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...l}=e,s=a||"light",c=i==null?void 0:i[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return _l(e,...t);let f=r;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const d=_l({...e,palette:f},...t);return d.defaultColorScheme=s,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},Kd(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},Kd(d,"light",u.light)),d}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),E0({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const jl=C0(),Al="$$material";function Nl(){const e=id(jl);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Al]||e}function Yd(e){return N.jsx(ad,{...e,defaultTheme:jl,themeId:Al})}process.env.NODE_ENV!=="production"&&(Yd.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function Xd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Nt=e=>Xd(e)&&e!=="classes",xe=gd({themeId:Al,defaultTheme:jl,rootShouldForwardProp:Nt});function S0(e){return function(r){return N.jsx(Yd,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function T0(){return Vv}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Je(e){return Fb(e)}function Lo(e){return parseInt(e,10)||0}const w0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Jd=j.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=j.useRef(s!=null),f=j.useRef(null),d=Ot(r,f),y=j.useRef(null),m=j.useRef(null),b=j.useCallback(()=>{const C=f.current,S=Cr(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=m.current;T.style.width=S.width,T.value=C.value||t.placeholder||"x",T.value.slice(-1)===`
107
- `&&(T.value+=" ");const w=S.boxSizing,A=Lo(S.paddingBottom)+Lo(S.paddingTop),M=Lo(S.borderBottomWidth)+Lo(S.borderTopWidth),O=T.scrollHeight;T.value="x";const g=T.scrollHeight;let p=O;a&&(p=Math.max(Number(a)*g,p)),i&&(p=Math.min(Number(i)*g,p)),p=Math.max(p,g);const x=p+(w==="border-box"?A+M:0),R=Math.abs(p-O)<=1;return{outerHeightStyle:x,overflowing:R}},[i,a,t.placeholder]),h=j.useCallback(()=>{const C=b();if(R0(C))return;const E=C.outerHeightStyle,S=f.current;y.current!==E&&(y.current=E,S.style.height=`${E}px`),S.style.overflow=C.overflowing?"hidden":""},[b]);cr(()=>{const C=()=>{h()};let E;const S=()=>{cancelAnimationFrame(E),E=requestAnimationFrame(()=>{C()})},T=Ed(C),w=f.current,A=Cr(w);A.addEventListener("resize",T);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(process.env.NODE_ENV==="test"?S:C),M.observe(w)),()=>{T.clear(),cancelAnimationFrame(E),A.removeEventListener("resize",T),M&&M.disconnect()}},[b,h]),cr(()=>{h()});const v=C=>{u||h(),n&&n(C)};return N.jsxs(j.Fragment,{children:[N.jsx("textarea",{value:s,onChange:v,ref:d,rows:a,style:l,...c}),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...w0.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Jd.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 $l(e){return typeof e=="string"}function jr({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 Fo=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Fo.displayName="FormControlContext");function dr(){return j.useContext(Fo)}const Ke=Bb;function Qd(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bo(e,t=!1){return e&&(Qd(e.value)&&e.value!==""||t&&Qd(e.defaultValue)&&e.defaultValue!=="")}function P0(e){return e.startAdornment}function _0(e){return We("MuiInputBase",e)}const Ht=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Zd;const qo=(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${he(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zo=(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]},I0=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:l,formControl:s,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:d,size:y,startAdornment:m,type:b}=e,h={root:["root",`color${he(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",s&&"formControl",y&&y!=="medium"&&`size${he(y)}`,f&&"multiline",m&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ge(h,_0,t)},Vo=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qo})(Ke(({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",[`&.${Ht.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%"}}]}))),Uo=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zo})(Ke(({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] + .${Ht.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},[`&.${Ht.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"}}]}})),eh=S0({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Wo=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,color:c,components:u={},componentsProps:f={},defaultValue:d,disabled:y,disableInjectingGlobalStyles:m,endAdornment:b,error:h,fullWidth:v=!1,id:C,inputComponent:E="input",inputProps:S={},inputRef:T,margin:w,maxRows:A,minRows:M,multiline:O=!1,name:g,onBlur:p,onChange:x,onClick:R,onFocus:P,onKeyDown:_,onKeyUp:k,placeholder:D,readOnly:W,renderSuffix:Z,rows:G,size:B,slotProps:Y={},slots:ae={},startAdornment:oe,type:ne="text",value:ue,...ce}=n,ye=S.value!=null?S.value:ue,{current:se}=j.useRef(ye!=null),le=j.useRef(),te=j.useCallback(De=>{process.env.NODE_ENV!=="production"&&De&&De.nodeName!=="INPUT"&&!De.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(`
108
- `))},[]),ve=Ot(le,T,S.ref,te),[X,Re]=j.useState(!1),z=dr();process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(z)return z.registerEffect()},[z]);const pe=jr({props:n,muiFormControl:z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=z?z.focused:X,j.useEffect(()=>{!z&&y&&X&&(Re(!1),p&&p())},[z,y,X,p]);const de=z&&z.onFilled,Ce=z&&z.onEmpty,Te=j.useCallback(De=>{Bo(De)?de&&de():Ce&&Ce()},[de,Ce]);cr(()=>{se&&Te({value:ye})},[ye,Te,se]);const $e=De=>{P&&P(De),S.onFocus&&S.onFocus(De),z&&z.onFocus?z.onFocus(De):Re(!0)},He=De=>{p&&p(De),S.onBlur&&S.onBlur(De),z&&z.onBlur?z.onBlur(De):Re(!1)},Ne=(De,...Ze)=>{if(!se){const mt=De.target||le.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.":sr(1));Te({value:mt.value})}S.onChange&&S.onChange(De,...Ze),x&&x(De,...Ze)};j.useEffect(()=>{Te(le.current)},[]);const be=De=>{le.current&&De.currentTarget===De.target&&le.current.focus(),R&&R(De)};let Fe=E,Ye=S;O&&Fe==="input"&&(G?(process.env.NODE_ENV!=="production"&&(M||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ye={type:void 0,minRows:G,maxRows:G,...Ye}):Ye={type:void 0,maxRows:A,minRows:M,...Ye},Fe=Jd);const ht=De=>{Te(De.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};j.useEffect(()=>{z&&z.setAdornedStart(!!oe)},[z,oe]);const Ct={...n,color:pe.color||"primary",disabled:pe.disabled,endAdornment:b,error:pe.error,focused:pe.focused,formControl:z,fullWidth:v,hiddenLabel:pe.hiddenLabel,multiline:O,size:pe.size,startAdornment:oe,type:ne},pt=I0(Ct),Ue=ae.root||u.Root||Vo,Be=Y.root||f.root||{},st=ae.input||u.Input||Uo;return Ye={...Ye,...Y.input??f.input},N.jsxs(j.Fragment,{children:[!m&&typeof eh=="function"&&(Zd||(Zd=N.jsx(eh,{}))),N.jsxs(Ue,{...Be,ref:r,onClick:be,...ce,...!$l(Ue)&&{ownerState:{...Ct,...Be.ownerState}},className:Pe(pt.root,Be.className,s,W&&"MuiInputBase-readOnly"),children:[oe,N.jsx(Fo.Provider,{value:null,children:N.jsx(st,{"aria-invalid":pe.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:pe.disabled,id:C,onAnimationStart:ht,name:g,placeholder:D,readOnly:W,required:pe.required,rows:G,value:ye,onKeyDown:_,onKeyUp:k,type:ne,...Ye,...!$l(st)&&{as:Fe,ownerState:{...Ct,...Ye.ownerState}},ref:ve,className:Pe(pt.input,Ye.className,W&&"MuiInputBase-readOnly"),onBlur:He,onChange:Ne,onFocus:$e})}),b,Z?Z({...pe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Wo.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:xl,inputProps:o.object,inputRef:Dt,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 k0(e){return typeof e.main=="string"}function j0(e,t=[]){if(!k0(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&&j0(t,e)}function A0(e){return We("MuiInput",e)}const Ar={...Ht,...qe("MuiInput",["root","underline","input"])},N0=e=>{const{classes:t,disableUnderline:r}=e,i=Ge({root:["root",!r&&"underline"],input:["input"]},A0,t);return{...t,...i}},$0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({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: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"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.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(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ar.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}`}}}))]}})),M0=xe(Uo,{name:"MuiInput",slot:"Input",overridesResolver:zo})({}),An=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:d={},type:y="text",...m}=n,b=N0(n),v={root:{ownerState:{disableUnderline:i}}},C=f??l?At(f??l,v):v,E=d.root??a.Root??$0,S=d.input??a.Input??M0;return N.jsx(Wo,{slots:{root:E,input:S},slotProps:C,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:y,...m,classes:b})});process.env.NODE_ENV!=="production"&&(An.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:Dt,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}),An&&(An.muiName="Input");function D0(e){return We("MuiFilledInput",e)}const Gt={...Ht,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function L0(e){return We("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const F0=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(r)}`]};return Ge(i,L0,n)},B0=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${he(r.color)}`],t[`fontSize${he(r.fontSize)}`]]}})(Ke(({theme:e})=>{var t,r,n,i,a,l,s,c,u,f,d,y,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:h=>!h.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=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var v,C;return{props:{color:h},style:{color:(C=(v=(e.vars??e).palette)==null?void 0:v[h])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(y=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nn=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:d,viewBox:y="0 0 24 24",...m}=n,b=j.isValidElement(i)&&i.type==="svg",h={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const C=F0(h);return N.jsxs(B0,{as:s,className:Pe(C.root,a),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...m,...b&&i.props,ownerState:h,children:[b?i.props.children:i,d?N.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Nn.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}),Nn&&(Nn.muiName="SvgIcon");function _t(e,t){function r(n,i){return N.jsx(Nn,{"data-testid":`${t}Icon`,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Nn.muiName,j.memo(j.forwardRef(r))}const q0=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${he(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Ge(c,D0,t);return{...t,...u}},z0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({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}},[`&.${Gt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Gt.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"},[`&.${Gt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gt.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(.${Gt.disabled}, .${Gt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($t()).map(([l])=>{var s;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[l])==null?void 0:s.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}}]}})),V0=xe(Uo,{name:"MuiFilledInput",slot:"Input",overridesResolver:zo})(Ke(({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}}]}))),$n=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:f=!1,slotProps:d,slots:y={},type:m="text",...b}=n,h={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:f,type:m},v=q0(n),C={root:{ownerState:h},input:{ownerState:h}},E=d??l?At(C,d??l):C,S=y.root??a.Root??z0,T=y.input??a.Input??V0;return N.jsx(Wo,{slots:{root:S,input:T},slotProps:E,fullWidth:s,inputComponent:u,multiline:f,ref:r,type:m,...b,classes:v})});process.env.NODE_ENV!=="production"&&($n.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:Dt,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}),$n&&($n.muiName="Input");var th;const U0=xe("fieldset",{shouldForwardProp:Nt})({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%"}),W0=xe("legend",{shouldForwardProp:Nt})(Ke(({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 rh(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 N.jsx(U0,{"aria-hidden":!0,className:n,ownerState:c,...l,children:N.jsx(W0,{ownerState:c,children:s?N.jsx("span",{children:i}):th||(th=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(rh.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function H0(e){return We("MuiOutlinedInput",e)}const tr={...Ht,...qe("MuiOutlinedInput",["root","notchedOutline","input"])},G0=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},H0,t);return{...t,...n}},K0=xe(Vo,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qo})(Ke(({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($t()).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:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Y0=xe(rh,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ke(({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}})),X0=xe(Uo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zo})(Ke(({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}}]}))),Mn=j.forwardRef(function(t,r){var n;const i=Je({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:s="input",label:c,multiline:u=!1,notched:f,slots:d={},type:y="text",...m}=i,b=G0(i),h=dr(),v=jr({props:i,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...i,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:h,fullWidth:l,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},E=d.root??a.Root??K0,S=d.input??a.Input??X0;return N.jsx(Wo,{slots:{root:E,input:S},renderSuffix:T=>N.jsx(Y0,{ownerState:C,className:b.notchedOutline,label:c!=null&&c!==""&&v.required?n||(n=N.jsxs(j.Fragment,{children:[c," ","*"]})):c,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:l,inputComponent:s,multiline:u,ref:r,type:y,...m,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Mn.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:Dt,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]),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}),Mn&&(Mn.muiName="Input");function J0(e){return We("MuiFormLabel",e)}const Dn=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Q0=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${he(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ge(c,J0,t)},Z0=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Ke(({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:{[`&.${Dn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ex=xe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}))),Nr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:f,focused:d,required:y,...m}=n,b=dr(),h=jr({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...n,color:h.color||"primary",component:s,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},C=Q0(v);return N.jsxs(Z0,{as:s,ownerState:v,className:Pe(C.root,a),ref:r,...m,children:[i,h.required&&N.jsxs(ex,{ownerState:v,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Nr.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 tx(e){return We("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const rx=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!=="normal"&&`size${he(n)}`,l],asterisk:[s&&"asterisk"]},u=Ge(c,tx,t);return{...t,...u}},nx=xe(Nr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dn.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]]}})(Ke(({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)"}}]}))),Ho=j.forwardRef(function(t,r){const n=Je({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,f=dr();let d=l;typeof d>"u"&&f&&(d=f.filled||f.focused||f.adornedStart);const y=jr({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),m={...n,disableAnimation:i,formControl:f,shrink:d,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=rx(m);return N.jsx(nx,{"data-shrink":d,ref:r,className:Pe(b.root,c),...u,ownerState:m,classes:b})});process.env.NODE_ENV!=="production"&&(Ho.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(["normal","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 ox(e){return We("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ix=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return Ge(i,ox,t)},ax=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${he(e.margin)}`],...e.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%"}}]}),an=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:d=!1,hiddenLabel:y=!1,margin:m="none",required:b=!1,size:h="medium",variant:v="outlined",...C}=n,E={...n,color:l,component:s,disabled:c,error:u,fullWidth:d,hiddenLabel:y,margin:m,required:b,size:h,variant:v},S=ix(E),[T,w]=j.useState(()=>{let _=!1;return i&&j.Children.forEach(i,k=>{if(!El(k,["Input","Select"]))return;const D=El(k,["Select"])?k.props.input:k;D&&P0(D.props)&&(_=!0)}),_}),[A,M]=j.useState(()=>{let _=!1;return i&&j.Children.forEach(i,k=>{El(k,["Input","Select"])&&(Bo(k.props,!0)||Bo(k.props.inputProps,!0))&&(_=!0)}),_}),[O,g]=j.useState(!1);c&&O&&g(!1);const p=f!==void 0&&!c?f:O;let x;const R=j.useRef(!1);process.env.NODE_ENV!=="production"&&(x=()=>(R.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
109
- `)),R.current=!0,()=>{R.current=!1}));const P=j.useMemo(()=>({adornedStart:T,setAdornedStart:w,color:l,disabled:c,error:u,filled:A,focused:p,fullWidth:d,hiddenLabel:y,size:h,onBlur:()=>{g(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{g(!0)},registerEffect:x,required:b,variant:v}),[T,l,c,u,A,p,d,y,x,b,h,v]);return N.jsx(Fo.Provider,{value:P,children:N.jsx(ax,{as:s,ownerState:E,className:Pe(S.root,a),ref:r,...C,children:i})})});process.env.NODE_ENV!=="production"&&(an.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 sx(e){return We("MuiFormHelperText",e)}const nh=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var oh;const lx=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${he(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Ge(u,sx,t)},cx=xe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${he(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nh.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}}]}))),Ln=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:f,margin:d,required:y,variant:m,...b}=n,h=dr(),v=jr({props:n,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),C={...n,component:l,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete C.ownerState;const E=lx(C);return N.jsx(cx,{as:l,className:Pe(E.root,a),ref:r,...b,ownerState:C,children:i===" "?oh||(oh=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(Ln.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])});var Go={exports:{}},ot={};/**
104
+ export default theme;`}function _l(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:l={},typography:s={},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.":sr(20));const f=Pl(a),d=hl(e);let y=Nt(d,{mixins:n0(d.breakpoints,n),palette:f,shadows:c0.slice(),typography:i0(f,s),transitions:d0(l),zIndex:{...h0}});if(y=Nt(y,u),y=t.reduce((m,b)=>Nt(m,b),y),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(h,v)=>{let C;for(C in h){const E=h[C];if(m.includes(C)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const S=We("",C);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
105
+ `))}h[C]={}}}};Object.keys(y.components).forEach(h=>{const v=y.components[h].styleOverrides;v&&h.startsWith("Mui")&&b(v,h)})}return y.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},y.unstable_sx=function(b){return Zr({sx:b,theme:this})},y.toRuntimeSource=Wd,y}function Il(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 g0=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Il(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Hd(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gd(e){return e==="dark"?g0:[]}function y0(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,a=Pl(t);return{palette:a,opacity:{...Hd(a.mode),...r},overlays:n||Gd(a.mode),...i}}function v0(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 b0=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],x0=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!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return b0(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 O0(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Q(e,t,r){!e[t]&&r&&(e[t]=r)}function jn(e){return typeof e!="string"||!e.startsWith("hsl")?e:vd(e)}function Sr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Rn(jn(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().
106
+ 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 E0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fr=e=>{try{return e()}catch{}},C0=(e="mui")=>zb(e);function kl(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=y0({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=_l({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Hd(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Gd(i)},l}function S0(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=v0,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(r)[0],d=n||(r.light&&f!=="light"?"light":f),y=C0(a),{[d]:m,light:b,dark:h,...v}=r,C={...v};let E=m;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:sr(21,d));const S=kl(C,E,u,d);b&&!C.light&&kl(C,b,void 0,"light"),h&&!C.dark&&kl(C,h,void 0,"dark");let T={defaultColorScheme:d,...S,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:y,colorSchemes:C,font:{...r0(S.typography),...S.font},spacing:E0(u.spacing)};Object.keys(T.colorSchemes).forEach(g=>{const p=T.colorSchemes[g].palette,x=R=>{const P=R.split("-"),_=P[1],k=P[2];return y(R,p[_][k])};if(p.mode==="light"&&(Q(p.common,"background","#fff"),Q(p.common,"onBackground","#000")),p.mode==="dark"&&(Q(p.common,"background","#000"),Q(p.common,"onBackground","#fff")),O0(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){Q(p.Alert,"errorColor",ct(p.error.light,.6)),Q(p.Alert,"infoColor",ct(p.info.light,.6)),Q(p.Alert,"successColor",ct(p.success.light,.6)),Q(p.Alert,"warningColor",ct(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",x("palette-error-main")),Q(p.Alert,"infoFilledBg",x("palette-info-main")),Q(p.Alert,"successFilledBg",x("palette-success-main")),Q(p.Alert,"warningFilledBg",x("palette-warning-main")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.main))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.main))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.main))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.main))),Q(p.Alert,"errorStandardBg",ut(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ut(p.info.light,.9)),Q(p.Alert,"successStandardBg",ut(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ut(p.warning.light,.9)),Q(p.Alert,"errorIconColor",x("palette-error-main")),Q(p.Alert,"infoIconColor",x("palette-info-main")),Q(p.Alert,"successIconColor",x("palette-success-main")),Q(p.Alert,"warningIconColor",x("palette-warning-main")),Q(p.AppBar,"defaultBg",x("palette-grey-100")),Q(p.Avatar,"defaultBg",x("palette-grey-400")),Q(p.Button,"inheritContainedBg",x("palette-grey-300")),Q(p.Button,"inheritContainedHoverBg",x("palette-grey-A100")),Q(p.Chip,"defaultBorder",x("palette-grey-400")),Q(p.Chip,"defaultAvatarColor",x("palette-grey-700")),Q(p.Chip,"defaultIconColor",x("palette-grey-700")),Q(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(p.LinearProgress,"primaryBg",ut(p.primary.main,.62)),Q(p.LinearProgress,"secondaryBg",ut(p.secondary.main,.62)),Q(p.LinearProgress,"errorBg",ut(p.error.main,.62)),Q(p.LinearProgress,"infoBg",ut(p.info.main,.62)),Q(p.LinearProgress,"successBg",ut(p.success.main,.62)),Q(p.LinearProgress,"warningBg",ut(p.warning.main,.62)),Q(p.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),Q(p.Slider,"primaryTrack",ut(p.primary.main,.62)),Q(p.Slider,"secondaryTrack",ut(p.secondary.main,.62)),Q(p.Slider,"errorTrack",ut(p.error.main,.62)),Q(p.Slider,"infoTrack",ut(p.info.main,.62)),Q(p.Slider,"successTrack",ut(p.success.main,.62)),Q(p.Slider,"warningTrack",ut(p.warning.main,.62));const R=Do(p.background.default,.8);Q(p.SnackbarContent,"bg",R),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(R))),Q(p.SpeedDialAction,"fabHoverBg",Do(p.background.paper,.15)),Q(p.StepConnector,"border",x("palette-grey-400")),Q(p.StepContent,"border",x("palette-grey-400")),Q(p.Switch,"defaultColor",x("palette-common-white")),Q(p.Switch,"defaultDisabledColor",x("palette-grey-100")),Q(p.Switch,"primaryDisabledColor",ut(p.primary.main,.62)),Q(p.Switch,"secondaryDisabledColor",ut(p.secondary.main,.62)),Q(p.Switch,"errorDisabledColor",ut(p.error.main,.62)),Q(p.Switch,"infoDisabledColor",ut(p.info.main,.62)),Q(p.Switch,"successDisabledColor",ut(p.success.main,.62)),Q(p.Switch,"warningDisabledColor",ut(p.warning.main,.62)),Q(p.TableCell,"border",ut(Mo(p.divider,1),.88)),Q(p.Tooltip,"bg",Mo(p.grey[700],.92))}if(p.mode==="dark"){Q(p.Alert,"errorColor",ut(p.error.light,.6)),Q(p.Alert,"infoColor",ut(p.info.light,.6)),Q(p.Alert,"successColor",ut(p.success.light,.6)),Q(p.Alert,"warningColor",ut(p.warning.light,.6)),Q(p.Alert,"errorFilledBg",x("palette-error-dark")),Q(p.Alert,"infoFilledBg",x("palette-info-dark")),Q(p.Alert,"successFilledBg",x("palette-success-dark")),Q(p.Alert,"warningFilledBg",x("palette-warning-dark")),Q(p.Alert,"errorFilledColor",fr(()=>p.getContrastText(p.error.dark))),Q(p.Alert,"infoFilledColor",fr(()=>p.getContrastText(p.info.dark))),Q(p.Alert,"successFilledColor",fr(()=>p.getContrastText(p.success.dark))),Q(p.Alert,"warningFilledColor",fr(()=>p.getContrastText(p.warning.dark))),Q(p.Alert,"errorStandardBg",ct(p.error.light,.9)),Q(p.Alert,"infoStandardBg",ct(p.info.light,.9)),Q(p.Alert,"successStandardBg",ct(p.success.light,.9)),Q(p.Alert,"warningStandardBg",ct(p.warning.light,.9)),Q(p.Alert,"errorIconColor",x("palette-error-main")),Q(p.Alert,"infoIconColor",x("palette-info-main")),Q(p.Alert,"successIconColor",x("palette-success-main")),Q(p.Alert,"warningIconColor",x("palette-warning-main")),Q(p.AppBar,"defaultBg",x("palette-grey-900")),Q(p.AppBar,"darkBg",x("palette-background-paper")),Q(p.AppBar,"darkColor",x("palette-text-primary")),Q(p.Avatar,"defaultBg",x("palette-grey-600")),Q(p.Button,"inheritContainedBg",x("palette-grey-800")),Q(p.Button,"inheritContainedHoverBg",x("palette-grey-700")),Q(p.Chip,"defaultBorder",x("palette-grey-700")),Q(p.Chip,"defaultAvatarColor",x("palette-grey-300")),Q(p.Chip,"defaultIconColor",x("palette-grey-300")),Q(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(p.LinearProgress,"primaryBg",ct(p.primary.main,.5)),Q(p.LinearProgress,"secondaryBg",ct(p.secondary.main,.5)),Q(p.LinearProgress,"errorBg",ct(p.error.main,.5)),Q(p.LinearProgress,"infoBg",ct(p.info.main,.5)),Q(p.LinearProgress,"successBg",ct(p.success.main,.5)),Q(p.LinearProgress,"warningBg",ct(p.warning.main,.5)),Q(p.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),Q(p.Slider,"primaryTrack",ct(p.primary.main,.5)),Q(p.Slider,"secondaryTrack",ct(p.secondary.main,.5)),Q(p.Slider,"errorTrack",ct(p.error.main,.5)),Q(p.Slider,"infoTrack",ct(p.info.main,.5)),Q(p.Slider,"successTrack",ct(p.success.main,.5)),Q(p.Slider,"warningTrack",ct(p.warning.main,.5));const R=Do(p.background.default,.98);Q(p.SnackbarContent,"bg",R),Q(p.SnackbarContent,"color",fr(()=>p.getContrastText(R))),Q(p.SpeedDialAction,"fabHoverBg",Do(p.background.paper,.15)),Q(p.StepConnector,"border",x("palette-grey-600")),Q(p.StepContent,"border",x("palette-grey-600")),Q(p.Switch,"defaultColor",x("palette-grey-300")),Q(p.Switch,"defaultDisabledColor",x("palette-grey-600")),Q(p.Switch,"primaryDisabledColor",ct(p.primary.main,.55)),Q(p.Switch,"secondaryDisabledColor",ct(p.secondary.main,.55)),Q(p.Switch,"errorDisabledColor",ct(p.error.main,.55)),Q(p.Switch,"infoDisabledColor",ct(p.info.main,.55)),Q(p.Switch,"successDisabledColor",ct(p.success.main,.55)),Q(p.Switch,"warningDisabledColor",ct(p.warning.main,.55)),Q(p.TableCell,"border",ct(Mo(p.divider,1),.68)),Q(p.Tooltip,"bg",Mo(p.grey[700],.92))}Sr(p.background,"default"),Sr(p.background,"paper"),Sr(p.common,"background"),Sr(p.common,"onBackground"),Sr(p,"divider"),Object.keys(p).forEach(R=>{const P=p[R];R!=="tonalOffset"&&P&&typeof P=="object"&&(P.main&&Q(p[R],"mainChannel",Rn(jn(P.main))),P.light&&Q(p[R],"lightChannel",Rn(jn(P.light))),P.dark&&Q(p[R],"darkChannel",Rn(jn(P.dark))),P.contrastText&&Q(p[R],"contrastTextChannel",Rn(jn(P.contrastText))),R==="text"&&(Sr(p[R],"primary"),Sr(p[R],"secondary")),R==="action"&&(P.active&&Sr(p[R],"active"),P.selected&&Sr(p[R],"selected")))})}),T=t.reduce((g,p)=>Nt(g,p),T);const w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:x0(T)},{vars:A,generateThemeVars:M,generateStyleSheets:O}=Hb(T,w);return T.vars=A,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([g,p])=>{T[g]=p}),T.generateThemeVars=M,T.generateStyleSheets=O,T.generateSpacing=function(){return od(u.spacing,pl(this))},T.getColorSchemeSelector=Gb(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...wn,...u==null?void 0:u.unstable_sxConfig},T.unstable_sx=function(p){return Zr({sx:p,theme:this})},T.toRuntimeSource=Wd,T}function Kd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pl({...r===!0?{}:r.palette,mode:t})})}function T0(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...l}=e,s=a||"light",c=i==null?void 0:i[s],u={...i,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return _l(e,...t);let f=r;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const d=_l({...e,palette:f},...t);return d.defaultColorScheme=s,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},Kd(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},Kd(d,"light",u.light)),d}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),S0({...l,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const jl=T0(),Al="$$material";function Nl(){const e=id(jl);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Al]||e}function Yd(e){return N.jsx(ad,{...e,defaultTheme:jl,themeId:Al})}process.env.NODE_ENV!=="production"&&(Yd.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function Xd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $t=e=>Xd(e)&&e!=="classes",xe=gd({themeId:Al,defaultTheme:jl,rootShouldForwardProp:$t});function w0(e){return function(r){return N.jsx(Yd,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function R0(){return Wv}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Je(e){return qb(e)}function Fo(e){return parseInt(e,10)||0}const P0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Jd=j.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:l,value:s,...c}=t,{current:u}=j.useRef(s!=null),f=j.useRef(null),d=Ot(r,f),y=j.useRef(null),m=j.useRef(null),b=j.useCallback(()=>{const C=f.current,S=Cr(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=m.current;T.style.width=S.width,T.value=C.value||t.placeholder||"x",T.value.slice(-1)===`
107
+ `&&(T.value+=" ");const w=S.boxSizing,A=Fo(S.paddingBottom)+Fo(S.paddingTop),M=Fo(S.borderBottomWidth)+Fo(S.borderTopWidth),O=T.scrollHeight;T.value="x";const g=T.scrollHeight;let p=O;a&&(p=Math.max(Number(a)*g,p)),i&&(p=Math.min(Number(i)*g,p)),p=Math.max(p,g);const x=p+(w==="border-box"?A+M:0),R=Math.abs(p-O)<=1;return{outerHeightStyle:x,overflowing:R}},[i,a,t.placeholder]),h=j.useCallback(()=>{const C=b();if(_0(C))return;const E=C.outerHeightStyle,S=f.current;y.current!==E&&(y.current=E,S.style.height=`${E}px`),S.style.overflow=C.overflowing?"hidden":""},[b]);cr(()=>{const C=()=>{h()};let E;const S=()=>{cancelAnimationFrame(E),E=requestAnimationFrame(()=>{C()})},T=Ed(C),w=f.current,A=Cr(w);A.addEventListener("resize",T);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(process.env.NODE_ENV==="test"?S:C),M.observe(w)),()=>{T.clear(),cancelAnimationFrame(E),A.removeEventListener("resize",T),M&&M.disconnect()}},[b,h]),cr(()=>{h()});const v=C=>{u||h(),n&&n(C)};return N.jsxs(j.Fragment,{children:[N.jsx("textarea",{value:s,onChange:v,ref:d,rows:a,style:l,...c}),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...P0.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Jd.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 $l(e){return typeof e=="string"}function jr({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 Bo=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Bo.displayName="FormControlContext");function dr(){return j.useContext(Bo)}const Ke=Vb;function Qd(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function qo(e,t=!1){return e&&(Qd(e.value)&&e.value!==""||t&&Qd(e.defaultValue)&&e.defaultValue!=="")}function I0(e){return e.startAdornment}function k0(e){return We("MuiInputBase",e)}const Ht=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Zd;const Vo=(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${he(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zo=(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]},j0=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:l,formControl:s,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:d,size:y,startAdornment:m,type:b}=e,h={root:["root",`color${he(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",l&&"focused",s&&"formControl",y&&y!=="medium"&&`size${he(y)}`,f&&"multiline",m&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ge(h,k0,t)},Uo=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Vo})(Ke(({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",[`&.${Ht.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%"}}]}))),Wo=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zo})(Ke(({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] + .${Ht.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},[`&.${Ht.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"}}]}})),eh=w0({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ho=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,color:c,components:u={},componentsProps:f={},defaultValue:d,disabled:y,disableInjectingGlobalStyles:m,endAdornment:b,error:h,fullWidth:v=!1,id:C,inputComponent:E="input",inputProps:S={},inputRef:T,margin:w,maxRows:A,minRows:M,multiline:O=!1,name:g,onBlur:p,onChange:x,onClick:R,onFocus:P,onKeyDown:_,onKeyUp:k,placeholder:D,readOnly:W,renderSuffix:Z,rows:G,size:B,slotProps:Y={},slots:ae={},startAdornment:oe,type:ne="text",value:ue,...ce}=n,ye=S.value!=null?S.value:ue,{current:se}=j.useRef(ye!=null),le=j.useRef(),te=j.useCallback(De=>{process.env.NODE_ENV!=="production"&&De&&De.nodeName!=="INPUT"&&!De.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(`
108
+ `))},[]),ve=Ot(le,T,S.ref,te),[X,Re]=j.useState(!1),V=dr();process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(V)return V.registerEffect()},[V]);const pe=jr({props:n,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=V?V.focused:X,j.useEffect(()=>{!V&&y&&X&&(Re(!1),p&&p())},[V,y,X,p]);const de=V&&V.onFilled,Ce=V&&V.onEmpty,Te=j.useCallback(De=>{qo(De)?de&&de():Ce&&Ce()},[de,Ce]);cr(()=>{se&&Te({value:ye})},[ye,Te,se]);const $e=De=>{P&&P(De),S.onFocus&&S.onFocus(De),V&&V.onFocus?V.onFocus(De):Re(!0)},He=De=>{p&&p(De),S.onBlur&&S.onBlur(De),V&&V.onBlur?V.onBlur(De):Re(!1)},Ne=(De,...Ze)=>{if(!se){const mt=De.target||le.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.":sr(1));Te({value:mt.value})}S.onChange&&S.onChange(De,...Ze),x&&x(De,...Ze)};j.useEffect(()=>{Te(le.current)},[]);const be=De=>{le.current&&De.currentTarget===De.target&&le.current.focus(),R&&R(De)};let Fe=E,Ye=S;O&&Fe==="input"&&(G?(process.env.NODE_ENV!=="production"&&(M||A)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ye={type:void 0,minRows:G,maxRows:G,...Ye}):Ye={type:void 0,maxRows:A,minRows:M,...Ye},Fe=Jd);const ht=De=>{Te(De.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};j.useEffect(()=>{V&&V.setAdornedStart(!!oe)},[V,oe]);const Ct={...n,color:pe.color||"primary",disabled:pe.disabled,endAdornment:b,error:pe.error,focused:pe.focused,formControl:V,fullWidth:v,hiddenLabel:pe.hiddenLabel,multiline:O,size:pe.size,startAdornment:oe,type:ne},pt=j0(Ct),Ue=ae.root||u.Root||Uo,Be=Y.root||f.root||{},st=ae.input||u.Input||Wo;return Ye={...Ye,...Y.input??f.input},N.jsxs(j.Fragment,{children:[!m&&typeof eh=="function"&&(Zd||(Zd=N.jsx(eh,{}))),N.jsxs(Ue,{...Be,ref:r,onClick:be,...ce,...!$l(Ue)&&{ownerState:{...Ct,...Be.ownerState}},className:Pe(pt.root,Be.className,s,W&&"MuiInputBase-readOnly"),children:[oe,N.jsx(Bo.Provider,{value:null,children:N.jsx(st,{"aria-invalid":pe.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:pe.disabled,id:C,onAnimationStart:ht,name:g,placeholder:D,readOnly:W,required:pe.required,rows:G,value:ye,onKeyDown:_,onKeyUp:k,type:ne,...Ye,...!$l(st)&&{as:Fe,ownerState:{...Ct,...Ye.ownerState}},ref:ve,className:Pe(pt.input,Ye.className,W&&"MuiInputBase-readOnly"),onBlur:He,onChange:Ne,onFocus:$e})}),b,Z?Z({...pe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Ho.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:xl,inputProps:o.object,inputRef:Dt,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 A0(e){return typeof e.main=="string"}function N0(e,t=[]){if(!A0(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Mt(e=[]){return([,t])=>t&&N0(t,e)}function $0(e){return We("MuiInput",e)}const Ar={...Ht,...qe("MuiInput",["root","underline","input"])},M0=e=>{const{classes:t,disableUnderline:r}=e,i=Ge({root:["root",!r&&"underline"],input:["input"]},$0,t);return{...t,...i}},D0=xe(Uo,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({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: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"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.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(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Mt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),L0=xe(Wo,{name:"MuiInput",slot:"Input",overridesResolver:zo})({}),An=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:d={},type:y="text",...m}=n,b=M0(n),v={root:{ownerState:{disableUnderline:i}}},C=f??l?Nt(f??l,v):v,E=d.root??a.Root??D0,S=d.input??a.Input??L0;return N.jsx(Ho,{slots:{root:E,input:S},slotProps:C,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:y,...m,classes:b})});process.env.NODE_ENV!=="production"&&(An.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:Dt,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}),An&&(An.muiName="Input");function F0(e){return We("MuiFilledInput",e)}const Gt={...Ht,...qe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function B0(e){return We("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const q0=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(r)}`]};return Ge(i,B0,n)},V0=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${he(r.color)}`],t[`fontSize${he(r.fontSize)}`]]}})(Ke(({theme:e})=>{var t,r,n,i,a,l,s,c,u,f,d,y,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:h=>!h.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=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var v,C;return{props:{color:h},style:{color:(C=(v=(e.vars??e).palette)==null?void 0:v[h])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(y=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nn=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:d,viewBox:y="0 0 24 24",...m}=n,b=j.isValidElement(i)&&i.type==="svg",h={...n,color:l,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const C=q0(h);return N.jsxs(V0,{as:s,className:Pe(C.root,a),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...m,...b&&i.props,ownerState:h,children:[b?i.props.children:i,d?N.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Nn.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}),Nn&&(Nn.muiName="SvgIcon");function _t(e,t){function r(n,i){return N.jsx(Nn,{"data-testid":`${t}Icon`,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Nn.muiName,j.memo(j.forwardRef(r))}const z0=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${he(a)}`,l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=Ge(c,F0,t);return{...t,...u}},U0=xe(Uo,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vo(e,t),!r.disableUnderline&&t.underline]}})(Ke(({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}},[`&.${Gt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Gt.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"},[`&.${Gt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gt.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(.${Gt.disabled}, .${Gt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Mt()).map(([l])=>{var s;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[l])==null?void 0:s.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}}]}})),W0=xe(Wo,{name:"MuiFilledInput",slot:"Input",overridesResolver:zo})(Ke(({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}}]}))),$n=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:s=!1,hiddenLabel:c,inputComponent:u="input",multiline:f=!1,slotProps:d,slots:y={},type:m="text",...b}=n,h={...n,disableUnderline:i,fullWidth:s,inputComponent:u,multiline:f,type:m},v=z0(n),C={root:{ownerState:h},input:{ownerState:h}},E=d??l?Nt(C,d??l):C,S=y.root??a.Root??U0,T=y.input??a.Input??W0;return N.jsx(Ho,{slots:{root:S,input:T},slotProps:E,fullWidth:s,inputComponent:u,multiline:f,ref:r,type:m,...b,classes:v})});process.env.NODE_ENV!=="production"&&($n.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:Dt,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}),$n&&($n.muiName="Input");var th;const H0=xe("fieldset",{shouldForwardProp:$t})({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%"}),G0=xe("legend",{shouldForwardProp:$t})(Ke(({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 rh(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 N.jsx(H0,{"aria-hidden":!0,className:n,ownerState:c,...l,children:N.jsx(G0,{ownerState:c,children:s?N.jsx("span",{children:i}):th||(th=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(rh.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function K0(e){return We("MuiOutlinedInput",e)}const tr={...Ht,...qe("MuiOutlinedInput",["root","notchedOutline","input"])},Y0=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},K0,t);return{...t,...n}},X0=xe(Uo,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vo})(Ke(({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(Mt()).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:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),J0=xe(rh,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ke(({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}})),Q0=xe(Wo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zo})(Ke(({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}}]}))),Mn=j.forwardRef(function(t,r){var n;const i=Je({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:s="input",label:c,multiline:u=!1,notched:f,slots:d={},type:y="text",...m}=i,b=Y0(i),h=dr(),v=jr({props:i,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...i,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:h,fullWidth:l,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},E=d.root??a.Root??X0,S=d.input??a.Input??Q0;return N.jsx(Ho,{slots:{root:E,input:S},renderSuffix:T=>N.jsx(J0,{ownerState:C,className:b.notchedOutline,label:c!=null&&c!==""&&v.required?n||(n=N.jsxs(j.Fragment,{children:[c," ","*"]})):c,notched:typeof f<"u"?f:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:l,inputComponent:s,multiline:u,ref:r,type:y,...m,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Mn.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:Dt,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]),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}),Mn&&(Mn.muiName="Input");function Z0(e){return We("MuiFormLabel",e)}const Dn=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ex=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:l,required:s}=e,c={root:["root",`color${he(r)}`,i&&"disabled",a&&"error",l&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ge(c,Z0,t)},tx=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Ke(({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(Mt()).map(([t])=>({props:{color:t},style:{[`&.${Dn.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),rx=xe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}))),Nr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:s="label",disabled:c,error:u,filled:f,focused:d,required:y,...m}=n,b=dr(),h=jr({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...n,color:h.color||"primary",component:s,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},C=ex(v);return N.jsxs(tx,{as:s,ownerState:v,className:Pe(C.root,a),ref:r,...m,children:[i,h.required&&N.jsxs(rx,{ownerState:v,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Nr.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 nx(e){return We("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ox=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!=="normal"&&`size${he(n)}`,l],asterisk:[s&&"asterisk"]},u=Ge(c,nx,t);return{...t,...u}},ix=xe(Nr,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dn.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]]}})(Ke(({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)"}}]}))),Go=j.forwardRef(function(t,r){const n=Je({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:s,className:c,...u}=n,f=dr();let d=l;typeof d>"u"&&f&&(d=f.filled||f.focused||f.adornedStart);const y=jr({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),m={...n,disableAnimation:i,formControl:f,shrink:d,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=ox(m);return N.jsx(ix,{"data-shrink":d,ref:r,className:Pe(b.root,c),...u,ownerState:m,classes:b})});process.env.NODE_ENV!=="production"&&(Go.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(["normal","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 ax(e){return We("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const sx=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${he(r)}`,n&&"fullWidth"]};return Ge(i,ax,t)},lx=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${he(e.margin)}`],...e.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%"}}]}),an=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:s="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:d=!1,hiddenLabel:y=!1,margin:m="none",required:b=!1,size:h="medium",variant:v="outlined",...C}=n,E={...n,color:l,component:s,disabled:c,error:u,fullWidth:d,hiddenLabel:y,margin:m,required:b,size:h,variant:v},S=sx(E),[T,w]=j.useState(()=>{let _=!1;return i&&j.Children.forEach(i,k=>{if(!El(k,["Input","Select"]))return;const D=El(k,["Select"])?k.props.input:k;D&&I0(D.props)&&(_=!0)}),_}),[A,M]=j.useState(()=>{let _=!1;return i&&j.Children.forEach(i,k=>{El(k,["Input","Select"])&&(qo(k.props,!0)||qo(k.props.inputProps,!0))&&(_=!0)}),_}),[O,g]=j.useState(!1);c&&O&&g(!1);const p=f!==void 0&&!c?f:O;let x;const R=j.useRef(!1);process.env.NODE_ENV!=="production"&&(x=()=>(R.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
109
+ `)),R.current=!0,()=>{R.current=!1}));const P=j.useMemo(()=>({adornedStart:T,setAdornedStart:w,color:l,disabled:c,error:u,filled:A,focused:p,fullWidth:d,hiddenLabel:y,size:h,onBlur:()=>{g(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{g(!0)},registerEffect:x,required:b,variant:v}),[T,l,c,u,A,p,d,y,x,b,h,v]);return N.jsx(Bo.Provider,{value:P,children:N.jsx(lx,{as:s,ownerState:E,className:Pe(S.root,a),ref:r,...C,children:i})})});process.env.NODE_ENV!=="production"&&(an.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 cx(e){return We("MuiFormHelperText",e)}const nh=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var oh;const ux=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${he(n)}`,r&&"contained",s&&"focused",l&&"filled",c&&"required"]};return Ge(u,cx,t)},px=xe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${he(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nh.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}}]}))),Ln=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:s,error:c,filled:u,focused:f,margin:d,required:y,variant:m,...b}=n,h=dr(),v=jr({props:n,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),C={...n,component:l,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete C.ownerState;const E=ux(C);return N.jsx(px,{as:l,className:Pe(E.root,a),ref:r,...b,ownerState:C,children:i===" "?oh||(oh=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(Ln.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])});var Ko={exports:{}},ot={};/**
110
110
  * @license React
111
111
  * react-is.production.min.js
112
112
  *
@@ -114,7 +114,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
114
114
  *
115
115
  * This source code is licensed under the MIT license found in the
116
116
  * LICENSE file in the root directory of this source tree.
117
- */var ih;function ux(){if(ih)return ot;ih=1;var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var C=v.$$typeof;switch(C){case e:switch(v=v.type,v){case r:case i:case n:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case c:case y:case d:case a:return v;default:return C}}case t:return C}}}return ot.ContextConsumer=l,ot.ContextProvider=a,ot.Element=e,ot.ForwardRef=c,ot.Fragment=r,ot.Lazy=y,ot.Memo=d,ot.Portal=t,ot.Profiler=i,ot.StrictMode=n,ot.Suspense=u,ot.SuspenseList=f,ot.isAsyncMode=function(){return!1},ot.isConcurrentMode=function(){return!1},ot.isContextConsumer=function(v){return h(v)===l},ot.isContextProvider=function(v){return h(v)===a},ot.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ot.isForwardRef=function(v){return h(v)===c},ot.isFragment=function(v){return h(v)===r},ot.isLazy=function(v){return h(v)===y},ot.isMemo=function(v){return h(v)===d},ot.isPortal=function(v){return h(v)===t},ot.isProfiler=function(v){return h(v)===i},ot.isStrictMode=function(v){return h(v)===n},ot.isSuspense=function(v){return h(v)===u},ot.isSuspenseList=function(v){return h(v)===f},ot.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===f||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===d||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===b||v.getModuleId!==void 0)},ot.typeOf=h,ot}var it={};/**
117
+ */var ih;function fx(){if(ih)return ot;ih=1;var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function h(v){if(typeof v=="object"&&v!==null){var C=v.$$typeof;switch(C){case e:switch(v=v.type,v){case r:case i:case n:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case l:case c:case y:case d:case a:return v;default:return C}}case t:return C}}}return ot.ContextConsumer=l,ot.ContextProvider=a,ot.Element=e,ot.ForwardRef=c,ot.Fragment=r,ot.Lazy=y,ot.Memo=d,ot.Portal=t,ot.Profiler=i,ot.StrictMode=n,ot.Suspense=u,ot.SuspenseList=f,ot.isAsyncMode=function(){return!1},ot.isConcurrentMode=function(){return!1},ot.isContextConsumer=function(v){return h(v)===l},ot.isContextProvider=function(v){return h(v)===a},ot.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ot.isForwardRef=function(v){return h(v)===c},ot.isFragment=function(v){return h(v)===r},ot.isLazy=function(v){return h(v)===y},ot.isMemo=function(v){return h(v)===d},ot.isPortal=function(v){return h(v)===t},ot.isProfiler=function(v){return h(v)===i},ot.isStrictMode=function(v){return h(v)===n},ot.isSuspense=function(v){return h(v)===u},ot.isSuspenseList=function(v){return h(v)===f},ot.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===f||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===d||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===b||v.getModuleId!==void 0)},ot.typeOf=h,ot}var it={};/**
118
118
  * @license React
119
119
  * react-is.development.js
120
120
  *
@@ -122,17 +122,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
122
122
  *
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
- */var ah;function px(){return ah||(ah=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,h=!1,v=!1,C=!1,E=!1,S;S=Symbol.for("react.module.reference");function T(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===i||E||z===n||z===u||z===f||C||z===m||b||h||v||typeof z=="object"&&z!==null&&(z.$$typeof===y||z.$$typeof===d||z.$$typeof===a||z.$$typeof===l||z.$$typeof===c||z.$$typeof===S||z.getModuleId!==void 0))}function w(z){if(typeof z=="object"&&z!==null){var pe=z.$$typeof;switch(pe){case e:var de=z.type;switch(de){case r:case i:case n:case u:case f:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case s:case l:case c:case y:case d:case a:return Ce;default:return pe}}case t:return pe}}}var A=l,M=a,O=e,g=c,p=r,x=y,R=d,P=t,_=i,k=n,D=u,W=f,Z=!1,G=!1;function B(z){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(z){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(z){return w(z)===l}function oe(z){return w(z)===a}function ne(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ue(z){return w(z)===c}function ce(z){return w(z)===r}function ye(z){return w(z)===y}function se(z){return w(z)===d}function le(z){return w(z)===t}function te(z){return w(z)===i}function ve(z){return w(z)===n}function X(z){return w(z)===u}function Re(z){return w(z)===f}it.ContextConsumer=A,it.ContextProvider=M,it.Element=O,it.ForwardRef=g,it.Fragment=p,it.Lazy=x,it.Memo=R,it.Portal=P,it.Profiler=_,it.StrictMode=k,it.Suspense=D,it.SuspenseList=W,it.isAsyncMode=B,it.isConcurrentMode=Y,it.isContextConsumer=ae,it.isContextProvider=oe,it.isElement=ne,it.isForwardRef=ue,it.isFragment=ce,it.isLazy=ye,it.isMemo=se,it.isPortal=le,it.isProfiler=te,it.isStrictMode=ve,it.isSuspense=X,it.isSuspenseList=Re,it.isValidElementType=T,it.typeOf=w}()),it}var sh;function fx(){return sh||(sh=1,process.env.NODE_ENV==="production"?Go.exports=ux():Go.exports=px()),Go.exports}var Ml=fx();const Ko=j.createContext({});process.env.NODE_ENV!=="production"&&(Ko.displayName="ListContext");function dx(e){return We("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const hx=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ge({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},dx,t)},mx=xe("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}}]}),lh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...f}=n,d=j.useMemo(()=>({dense:s}),[s]),y={...n,component:l,dense:s,disablePadding:c},m=hx(y);return N.jsx(Ko.Provider,{value:d,children:N.jsxs(mx,{as:l,className:Pe(m.root,a),ref:r,ownerState:y,...f,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lh.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 Dl(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ch(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uh(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 Fn(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")||!uh(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const ph=j.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:d="selectedMenu",...y}=t,m=j.useRef(null),b=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cr(()=>{i&&m.current.focus()},[i]),j.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:T})=>{const w=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&w){const A=`${Rd(Cr(S))}px`;m.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=A,m.current.style.width=`calc(100% + ${A})`}return m.current}}),[]);const h=S=>{const T=m.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){f&&f(S);return}const M=Wt(T).activeElement;if(w==="ArrowDown")S.preventDefault(),Fn(T,M,u,c,Dl);else if(w==="ArrowUp")S.preventDefault(),Fn(T,M,u,c,ch);else if(w==="Home")S.preventDefault(),Fn(T,null,u,c,Dl);else if(w==="End")S.preventDefault(),Fn(T,null,u,c,ch);else if(w.length===1){const O=b.current,g=w.toLowerCase(),p=performance.now();O.keys.length>0&&(p-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&g!==O.keys[0]&&(O.repeating=!1)),O.lastTime=p,O.keys.push(g);const x=M&&!O.repeating&&uh(M,O);O.previousKeyMatched&&(x||Fn(T,M,!1,c,Dl,O))?S.preventDefault():O.previousKeyMatched=!1}f&&f(S)},v=Ot(m,r);let C=-1;j.Children.forEach(l,(S,T)=>{if(!j.isValidElement(S)){C===T&&(C+=1,C>=l.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&Ml.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
126
- `)),S.props.disabled||(d==="selectedMenu"&&S.props.selected||C===-1)&&(C=T),C===T&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=l.length&&(C=-1))});const E=j.Children.map(l,(S,T)=>{if(T===C){const w={};return a&&(w.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),j.cloneElement(S,w)}return S});return N.jsx(lh,{role:"menu",ref:v,className:s,onKeyDown:h,tabIndex:i?0:-1,...y,children:E})});process.env.NODE_ENV!=="production"&&(ph.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 Ll(){return Ll=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},Ll.apply(null,arguments)}function fh(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Fl(e,t)}function dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fl(e,t)}const hh={disabled:!1};var gx=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 Yo=we.createContext(null);var yx=function(t){return t.scrollTop},Bn="unmounted",zr="exited",Vr="entering",sn="entered",Bl="exiting",hr=function(e){dh(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=zr,a.appearStatus=Vr):c=sn:n.unmountOnExit||n.mountOnEnter?c=Bn:c=zr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===Bn?{status:zr}: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!==Vr&&l!==sn&&(a=Vr):(l===Vr||l===sn)&&(a=Bl)}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===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);l&&yx(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:Bn})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[mn.findDOMNode(this),s],u=c[0],f=c[1],d=this.getTimeouts(),y=s?d.appear:d.enter;if(!i&&!l||hh.disabled){this.safeSetState({status:sn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Vr},function(){a.props.onEntering(u,f),a.onTransitionEnd(y,function(){a.safeSetState({status:sn},function(){a.props.onEntered(u,f)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!a||hh.disabled){this.safeSetState({status:zr},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Bl},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:zr},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:mn.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],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Bn)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=fh(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return we.createElement(Yo.Provider,{value:null},typeof l=="function"?l(i,s):we.cloneElement(we.Children.only(l),s))},t}(we.Component);hr.contextType=Yo,hr.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=gx;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 ln(){}hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ln,onEntering:ln,onEntered:ln,onExit:ln,onExiting:ln,onExited:ln},hr.UNMOUNTED=Bn,hr.EXITED=zr,hr.ENTERING=Vr,hr.ENTERED=sn,hr.EXITING=Bl;function vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e,t){var r=function(a){return t&&we.isValidElement(a)?t(a):a},n=Object.create(null);return e&&we.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function bx(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}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 Ur(e,t,r){return r[t]!=null?r[t]:e.props[t]}function xx(e,t){return ql(e.children,function(r){return we.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ur(r,"appear",e),enter:Ur(r,"enter",e),exit:Ur(r,"exit",e)})})}function Ox(e,t,r){var n=ql(e.children),i=bx(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(we.isValidElement(l)){var s=a in t,c=a in n,u=t[a],f=we.isValidElement(u)&&!u.props.in;c&&(!s||f)?i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}):!c&&s&&!f?i[a]=we.cloneElement(l,{in:!1}):c&&s&&we.isValidElement(u)&&(i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}))}}),i}var Ex=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Cx={component:"div",childFactory:function(t){return t}},zl=function(e){dh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(vx(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?xx(i,s):Ox(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=ql(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=Ll({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=fh(i,["component","childFactory"]),c=this.state.contextValue,u=Ex(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?we.createElement(Yo.Provider,{value:c},u):we.createElement(Yo.Provider,{value:c},we.createElement(a,s,u))},t}(we.Component);zl.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},zl.defaultProps=Cx;const mh=e=>e.scrollTop;function Xo(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 Vl(e){return`scale(${e}, ${e**2})`}const Sx={entering:{opacity:1,transform:Vl(1)},entered:{opacity:1,transform:"none"}},Ul=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jo=j.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:f,onExit:d,onExited:y,onExiting:m,style:b,timeout:h="auto",TransitionComponent:v=hr,...C}=t,E=Td(),S=j.useRef(),T=Nl(),w=j.useRef(null),A=Ot(w,_n(a),r),M=k=>D=>{if(k){const W=w.current;D===void 0?k(W):k(W,D)}},O=M(f),g=M((k,D)=>{mh(k);const{duration:W,delay:Z,easing:G}=Xo({style:b,timeout:h,easing:l},{mode:"enter"});let B;h==="auto"?(B=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=B):B=W,k.style.transition=[T.transitions.create("opacity",{duration:B,delay:Z}),T.transitions.create("transform",{duration:Ul?B:B*.666,delay:Z,easing:G})].join(","),c&&c(k,D)}),p=M(u),x=M(m),R=M(k=>{const{duration:D,delay:W,easing:Z}=Xo({style:b,timeout:h,easing:l},{mode:"exit"});let G;h==="auto"?(G=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=G):G=D,k.style.transition=[T.transitions.create("opacity",{duration:G,delay:W}),T.transitions.create("transform",{duration:Ul?G:G*.666,delay:Ul?W:W||G*.333,easing:Z})].join(","),k.style.opacity=0,k.style.transform=Vl(.75),d&&d(k)}),P=M(y),_=k=>{h==="auto"&&E.start(S.current||0,k),n&&n(w.current,k)};return N.jsx(v,{appear:i,in:s,nodeRef:w,onEnter:g,onEntered:p,onEntering:O,onExit:R,onExited:P,onExiting:x,addEndListener:_,timeout:h==="auto"?null:h,...C,children:(k,D)=>j.cloneElement(a,{style:{opacity:0,transform:Vl(.75),visibility:k==="exited"&&!s?"hidden":void 0,...Sx[k],...b,...a.props.style},ref:A,...D})})});process.env.NODE_ENV!=="production"&&(Jo.propTypes={addEndListener:o.func,appear:o.bool,children:Pn.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})])}),Jo&&(Jo.muiSupportAuto=!0);function Tx(e){const t=Wt(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gh(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function wx(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 yh(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!wx(l);s&&c&&qn(l,i)})}function Wl(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Rx(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Tx(n)){const l=Rd(Cr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gh(n)+l}px`;const s=Wt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${gh(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Wt(n).body;else{const l=n.parentElement,s=Cr(n);a=(l==null?void 0: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 Px(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class _x{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&&qn(t.modalRef,!1);const i=Px(r);yh(r,t.mount,t.modalRef,i,!0);const a=Wl(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=Wl(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=Rx(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Wl(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&&qn(t.modalRef,r),yh(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&&qn(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ix=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kx(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 jx(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 Ax(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jx(e))}function Nx(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ix)).forEach((n,i)=>{const a=kx(n);a===-1||!Ax(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 $x(){return!0}function Qo(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Nx,isEnabled:l=$x,open:s}=e,c=j.useRef(!1),u=j.useRef(null),f=j.useRef(null),d=j.useRef(null),y=j.useRef(null),m=j.useRef(!1),b=j.useRef(null),h=Ot(_n(t),b),v=j.useRef(null);j.useEffect(()=>{!s||!b.current||(m.current=!r)},[r,s]),j.useEffect(()=>{if(!s||!b.current)return;const S=Wt(b.current);return b.current.contains(S.activeElement)||(b.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(`
127
- `)),b.current.setAttribute("tabIndex","-1")),m.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),j.useEffect(()=>{if(!s||!b.current)return;const S=Wt(b.current),T=M=>{v.current=M,!(n||!l()||M.key!=="Tab")&&S.activeElement===b.current&&M.shiftKey&&(c.current=!0,f.current&&f.current.focus())},w=()=>{var g,p;const M=b.current;if(M===null)return;if(!S.hasFocus()||!l()||c.current){c.current=!1;return}if(M.contains(S.activeElement)||n&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!m.current)return;let O=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(O=a(b.current)),O.length>0){const x=!!((g=v.current)!=null&&g.shiftKey&&((p=v.current)==null?void 0:p.key)==="Tab"),R=O[0],P=O[O.length-1];typeof R!="string"&&typeof P!="string"&&(x?P.focus():R.focus())}else M.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",T,!0);const A=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(A),S.removeEventListener("focusin",w),S.removeEventListener("keydown",T,!0)}},[r,n,i,l,s,a]);const C=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0,y.current=S.target;const T=t.props.onFocus;T&&T(S)},E=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0};return N.jsxs(j.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:u,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:h,onFocus:C}),N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Qo.propTypes={children:Pn,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Qo.propTypes=Od(Qo.propTypes));function Mx(e){return typeof e=="function"?e():e}const zn=j.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=j.useState(null),c=Ot(j.isValidElement(n)?_n(n):null,r);if(cr(()=>{a||s(Mx(i)||document.body)},[i,a]),cr(()=>{if(l&&!a)return Do(r,l),()=>{Do(r,null)}},[r,l,a]),a){if(j.isValidElement(n)){const u={ref:c};return j.cloneElement(n,u)}return n}return l&&Dm.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:o.node,container:o.oneOfType([Er,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(zn.propTypes=Od(zn.propTypes));function Lt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...d}=a,y=u[e]||n,m=Nd(f[e],i),{props:{component:b,...h},internalRef:v}=Ad({className:r,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:m}),C=Ot(v,m==null?void 0:m.ref,t.ref),E=e==="root"?b||c:b,S=Id(y,{...e==="root"&&!c&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...h,...E&&{as:E},ref:C},i);return[y,S]}const Dx={entering:{opacity:1},entered:{opacity:1}},vh=j.forwardRef(function(t,r){const n=Nl(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:f,onEntered:d,onEntering:y,onExit:m,onExited:b,onExiting:h,style:v,timeout:C=i,TransitionComponent:E=hr,...S}=t,T=j.useRef(null),w=Ot(T,_n(s),r),A=_=>k=>{if(_){const D=T.current;k===void 0?_(D):_(D,k)}},M=A(y),O=A((_,k)=>{mh(_);const D=Xo({style:v,timeout:C,easing:c},{mode:"enter"});_.style.webkitTransition=n.transitions.create("opacity",D),_.style.transition=n.transitions.create("opacity",D),f&&f(_,k)}),g=A(d),p=A(h),x=A(_=>{const k=Xo({style:v,timeout:C,easing:c},{mode:"exit"});_.style.webkitTransition=n.transitions.create("opacity",k),_.style.transition=n.transitions.create("opacity",k),m&&m(_)}),R=A(b),P=_=>{a&&a(T.current,_)};return N.jsx(E,{appear:l,in:u,nodeRef:T,onEnter:O,onEntered:g,onEntering:M,onExit:x,onExited:R,onExiting:p,addEndListener:P,timeout:C,...S,children:(_,k)=>j.cloneElement(s,{style:{opacity:0,visibility:_==="exited"&&!u?"hidden":void 0,...Dx[_],...v,...s.props.style},ref:w,...k})})});process.env.NODE_ENV!=="production"&&(vh.propTypes={addEndListener:o.func,appear:o.bool,children:Pn.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 Lx(e){return We("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const Fx=e=>{const{ownerState:t,...r}=e;return r},Bx=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},Lx,t)},qx=xe("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"}}]}),bh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:f={},slotProps:d={},slots:y={},TransitionComponent:m,transitionDuration:b,...h}=n,v={...n,component:l,invisible:s},C=Bx(v),E={transition:m,root:u.Root,...y},S={...f,...d},T={slots:E,slotProps:S},[w,A]=Lt("root",{elementType:qx,externalForwardedProps:T,className:Pe(C.root,a),ownerState:v}),[M,O]=Lt("transition",{elementType:vh,externalForwardedProps:T,ownerState:v}),g=Fx(O);return N.jsx(M,{in:c,timeout:b,...h,...g,children:N.jsx(w,{"aria-hidden":!0,...A,classes:C,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(bh.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 zx(e){return typeof e=="function"?e():e}function Vx(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},Zo=new _x;function Ux(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:f}=e,d=j.useRef({}),y=j.useRef(null),m=j.useRef(null),b=Ot(m,f),[h,v]=j.useState(!u),C=Vx(s);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const S=()=>Wt(y.current),T=()=>(d.current.modalRef=m.current,d.current.mount=y.current,d.current),w=()=>{Zo.mount(T(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},A=pr(()=>{const k=zx(t)||S().body;Zo.add(T(),k),m.current&&w()}),M=()=>Zo.isTopModal(T()),O=pr(k=>{y.current=k,k&&(u&&M()?w():m.current&&qn(m.current,E))}),g=j.useCallback(()=>{Zo.remove(T(),E)},[E]);j.useEffect(()=>()=>{g()},[g]),j.useEffect(()=>{u?A():(!C||!i)&&g()},[u,g,C,i,A]);const p=k=>D=>{var W;(W=k.onKeyDown)==null||W.call(k,D),!(D.key!=="Escape"||D.which===229||!M())&&(r||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},x=k=>D=>{var W;(W=k.onClick)==null||W.call(k,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(k={})=>{const D=kd(e);delete D.onTransitionEnter,delete D.onTransitionExited;const W={...D,...k};return{role:"presentation",...W,onKeyDown:p(W),ref:b}},getBackdropProps:(k={})=>{const D=k;return{"aria-hidden":!0,...D,onClick:x(D),open:u}},getTransitionProps:()=>{const k=()=>{v(!1),a&&a()},D=()=>{v(!0),l&&l(),i&&g()};return{onEnter:Ol(k,(s==null?void 0:s.props.onEnter)??xh),onExited:Ol(D,(s==null?void 0:s.props.onExited)??xh)}},rootRef:b,portalRef:O,isTopModal:M,exited:h,hasTransition:C}}function Wx(e){return We("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const Hx=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Wx,n)},Gx=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ke(({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"}}]}))),Kx=xe(bh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Oh=j.forwardRef(function(t,r){const n=Je({name:"MuiModal",props:t}),{BackdropComponent:i=Kx,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:f,component:d,components:y={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:v=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:S=!1,hideBackdrop:T=!1,keepMounted:w=!1,onBackdropClick:A,onClose:M,onTransitionEnter:O,onTransitionExited:g,open:p,slotProps:x={},slots:R={},theme:P,..._}=n,k={...n,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:v,disablePortal:C,disableRestoreFocus:E,disableScrollLock:S,hideBackdrop:T,keepMounted:w},{getRootProps:D,getBackdropProps:W,getTransitionProps:Z,portalRef:G,isTopModal:B,exited:Y,hasTransition:ae}=Ux({...k,rootRef:r}),oe={...k,exited:Y},ne=Hx(oe),ue={};if(u.props.tabIndex===void 0&&(ue.tabIndex="-1"),ae){const{onEnter:X,onExited:Re}=Z();ue.onEnter=X,ue.onExited=Re}const ce={..._,slots:{root:y.Root,backdrop:y.Backdrop,...R},slotProps:{...m,...x}},[ye,se]=Lt("root",{elementType:Gx,externalForwardedProps:ce,getSlotProps:D,additionalProps:{ref:r,as:d},ownerState:oe,className:Pe(s,ne==null?void 0:ne.root,!oe.open&&oe.exited&&(ne==null?void 0:ne.hidden))}),[le,te]=Lt("backdrop",{elementType:i,externalForwardedProps:ce,additionalProps:a,getSlotProps:X=>W({...X,onClick:Re=>{A&&A(Re),X!=null&&X.onClick&&X.onClick(Re)}}),className:Pe(a==null?void 0:a.className,ne==null?void 0:ne.backdrop),ownerState:oe}),ve=Ot(a==null?void 0:a.ref,te.ref);return!w&&!p&&(!ae||Y)?null:N.jsx(zn,{ref:G,container:f,disablePortal:C,children:N.jsxs(ye,{...se,children:[!T&&i?N.jsx(le,{...te,ref:ve}):null,N.jsx(Qo,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:B,open:p,children:j.cloneElement(u,ue)})]})})});process.env.NODE_ENV!=="production"&&(Oh.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Pn.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([Er,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,onBackdropClick:o.func,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 Yx(e){return We("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Xx=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(a,Yx,i)},Jx=xe("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}`]]}})(Ke(({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)"}}]}))),Vn=j.forwardRef(function(t,r){var m;const n=Je({props:t,name:"MuiPaper"}),i=Nl(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...f}=n,d={...n,component:l,elevation:s,square:c,variant:u},y=Xx(d);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(`
128
- `)),N.jsx(Jx,{as:l,ownerState:d,className:Pe(y.root,a),ref:r,...f,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":(m=i.vars.overlays)==null?void 0:m[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Qe("#fff",Il(s))}, ${Qe("#fff",Il(s))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:ur(Tl,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 Qx(e){return We("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function Eh(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ch(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Sh(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 Zx=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},Qx,t)},eO=xe(Oh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Th=xe(Vn,{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}),wh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:f,container:d,elevation:y=8,marginThreshold:m=16,open:b,PaperProps:h={},slots:v={},slotProps:C={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=Jo,transitionDuration:T="auto",TransitionProps:{onEntering:w,...A}={},disableScrollLock:M=!1,...O}=n,g=(C==null?void 0:C.paper)??h,p=j.useRef(),x={...n,anchorOrigin:l,anchorReference:c,elevation:y,marginThreshold:m,externalPaperSlotProps:g,transformOrigin:E,TransitionComponent:S,transitionDuration:T,TransitionProps:A},R=Zx(x),P=j.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=ei(a),ve=te&&te.nodeType===1?te:Wt(p.current).body,X=ve.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Re=ve.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Re.top===0&&Re.left===0&&Re.right===0&&Re.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(`
129
- `))}return{top:X.top+Eh(X,l.vertical),left:X.left+Ch(X,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),_=j.useCallback(te=>({vertical:Eh(te,E.vertical),horizontal:Ch(te,E.horizontal)}),[E.horizontal,E.vertical]),k=j.useCallback(te=>{const ve={width:te.offsetWidth,height:te.offsetHeight},X=_(ve);if(c==="none")return{top:null,left:null,transformOrigin:Sh(X)};const Re=P();let z=Re.top-X.vertical,pe=Re.left-X.horizontal;const de=z+ve.height,Ce=pe+ve.width,Te=Cr(ei(a)),$e=Te.innerHeight-m,He=Te.innerWidth-m;if(m!==null&&z<m){const Ne=z-m;z-=Ne,X.vertical+=Ne}else if(m!==null&&de>$e){const Ne=de-$e;z-=Ne,X.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&ve.height>$e&&ve.height&&$e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ve.height-$e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
130
- `)),m!==null&&pe<m){const Ne=pe-m;pe-=Ne,X.horizontal+=Ne}else if(Ce>He){const Ne=Ce-He;pe-=Ne,X.horizontal+=Ne}return{top:`${Math.round(z)}px`,left:`${Math.round(pe)}px`,transformOrigin:Sh(X)}},[a,c,P,_,m]),[D,W]=j.useState(b),Z=j.useCallback(()=>{const te=p.current;if(!te)return;const ve=k(te);ve.top!==null&&te.style.setProperty("top",ve.top),ve.left!==null&&(te.style.left=ve.left),te.style.transformOrigin=ve.transformOrigin,W(!0)},[k]);j.useEffect(()=>(M&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[a,M,Z]);const G=(te,ve)=>{w&&w(te,ve),Z()},B=()=>{W(!1)};j.useEffect(()=>{b&&Z()}),j.useImperativeHandle(i,()=>b?{updatePosition:()=>{Z()}}:null,[b,Z]),j.useEffect(()=>{if(!b)return;const te=Ed(()=>{Z()}),ve=Cr(a);return ve.addEventListener("resize",te),()=>{te.clear(),ve.removeEventListener("resize",te)}},[a,b,Z]);let Y=T;T==="auto"&&!S.muiSupportAuto&&(Y=void 0);const ae=d||(a?Wt(ei(a)).body:void 0),oe={slots:v,slotProps:{...C,paper:g}},[ne,ue]=Lt("paper",{elementType:Th,externalForwardedProps:oe,additionalProps:{elevation:y,className:Pe(R.paper,g==null?void 0:g.className),style:D?g.style:{...g.style,opacity:0}},ownerState:x}),[ce,{slotProps:ye,...se}]=Lt("root",{elementType:eO,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ae,open:b},ownerState:x,className:Pe(R.root,f)}),le=Ot(p,ue.ref);return N.jsx(ce,{...se,...!$l(ce)&&{slotProps:ye,disableScrollLock:M},...O,ref:r,children:N.jsx(S,{appear:!0,in:b,onEntering:G,onExited:B,timeout:Y,...A,children:N.jsx(ne,{...ue,ref:le,children:u})})})});process.env.NODE_ENV!=="production"&&(wh.propTypes={action:Dt,anchorEl:ur(o.oneOfType([Er,o.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(`
125
+ */var ah;function dx(){return ah||(ah=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,h=!1,v=!1,C=!1,E=!1,S;S=Symbol.for("react.module.reference");function T(V){return!!(typeof V=="string"||typeof V=="function"||V===r||V===i||E||V===n||V===u||V===f||C||V===m||b||h||v||typeof V=="object"&&V!==null&&(V.$$typeof===y||V.$$typeof===d||V.$$typeof===a||V.$$typeof===l||V.$$typeof===c||V.$$typeof===S||V.getModuleId!==void 0))}function w(V){if(typeof V=="object"&&V!==null){var pe=V.$$typeof;switch(pe){case e:var de=V.type;switch(de){case r:case i:case n:case u:case f:return de;default:var Ce=de&&de.$$typeof;switch(Ce){case s:case l:case c:case y:case d:case a:return Ce;default:return pe}}case t:return pe}}}var A=l,M=a,O=e,g=c,p=r,x=y,R=d,P=t,_=i,k=n,D=u,W=f,Z=!1,G=!1;function B(V){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(V){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(V){return w(V)===l}function oe(V){return w(V)===a}function ne(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function ue(V){return w(V)===c}function ce(V){return w(V)===r}function ye(V){return w(V)===y}function se(V){return w(V)===d}function le(V){return w(V)===t}function te(V){return w(V)===i}function ve(V){return w(V)===n}function X(V){return w(V)===u}function Re(V){return w(V)===f}it.ContextConsumer=A,it.ContextProvider=M,it.Element=O,it.ForwardRef=g,it.Fragment=p,it.Lazy=x,it.Memo=R,it.Portal=P,it.Profiler=_,it.StrictMode=k,it.Suspense=D,it.SuspenseList=W,it.isAsyncMode=B,it.isConcurrentMode=Y,it.isContextConsumer=ae,it.isContextProvider=oe,it.isElement=ne,it.isForwardRef=ue,it.isFragment=ce,it.isLazy=ye,it.isMemo=se,it.isPortal=le,it.isProfiler=te,it.isStrictMode=ve,it.isSuspense=X,it.isSuspenseList=Re,it.isValidElementType=T,it.typeOf=w}()),it}var sh;function hx(){return sh||(sh=1,process.env.NODE_ENV==="production"?Ko.exports=fx():Ko.exports=dx()),Ko.exports}var Ml=hx();const Yo=j.createContext({});process.env.NODE_ENV!=="production"&&(Yo.displayName="ListContext");function mx(e){return We("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const gx=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ge({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},mx,t)},yx=xe("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}}]}),lh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:s=!1,disablePadding:c=!1,subheader:u,...f}=n,d=j.useMemo(()=>({dense:s}),[s]),y={...n,component:l,dense:s,disablePadding:c},m=gx(y);return N.jsx(Yo.Provider,{value:d,children:N.jsxs(yx,{as:l,className:Pe(m.root,a),ref:r,ownerState:y,...f,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lh.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 Dl(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ch(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uh(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 Fn(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")||!uh(s,a)||c)s=i(e,s,r);else return s.focus(),!0}return!1}const ph=j.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:d="selectedMenu",...y}=t,m=j.useRef(null),b=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cr(()=>{i&&m.current.focus()},[i]),j.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:T})=>{const w=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&w){const A=`${Rd(Cr(S))}px`;m.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=A,m.current.style.width=`calc(100% + ${A})`}return m.current}}),[]);const h=S=>{const T=m.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){f&&f(S);return}const M=Wt(T).activeElement;if(w==="ArrowDown")S.preventDefault(),Fn(T,M,u,c,Dl);else if(w==="ArrowUp")S.preventDefault(),Fn(T,M,u,c,ch);else if(w==="Home")S.preventDefault(),Fn(T,null,u,c,Dl);else if(w==="End")S.preventDefault(),Fn(T,null,u,c,ch);else if(w.length===1){const O=b.current,g=w.toLowerCase(),p=performance.now();O.keys.length>0&&(p-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&g!==O.keys[0]&&(O.repeating=!1)),O.lastTime=p,O.keys.push(g);const x=M&&!O.repeating&&uh(M,O);O.previousKeyMatched&&(x||Fn(T,M,!1,c,Dl,O))?S.preventDefault():O.previousKeyMatched=!1}f&&f(S)},v=Ot(m,r);let C=-1;j.Children.forEach(l,(S,T)=>{if(!j.isValidElement(S)){C===T&&(C+=1,C>=l.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&Ml.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
126
+ `)),S.props.disabled||(d==="selectedMenu"&&S.props.selected||C===-1)&&(C=T),C===T&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=l.length&&(C=-1))});const E=j.Children.map(l,(S,T)=>{if(T===C){const w={};return a&&(w.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),j.cloneElement(S,w)}return S});return N.jsx(lh,{role:"menu",ref:v,className:s,onKeyDown:h,tabIndex:i?0:-1,...y,children:E})});process.env.NODE_ENV!=="production"&&(ph.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 Ll(){return Ll=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},Ll.apply(null,arguments)}function fh(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Fl(e,t)}function dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fl(e,t)}const hh={disabled:!1};var vx=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 Xo=we.createContext(null);var bx=function(t){return t.scrollTop},Bn="unmounted",Vr="exited",zr="entering",sn="entered",Bl="exiting",hr=function(e){dh(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=Vr,a.appearStatus=zr):c=sn:n.unmountOnExit||n.mountOnEnter?c=Bn:c=Vr,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===Bn?{status:Vr}: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!==zr&&l!==sn&&(a=zr):(l===zr||l===sn)&&(a=Bl)}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===zr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);l&&bx(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vr&&this.setState({status:Bn})},r.performEnter=function(i){var a=this,l=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[mn.findDOMNode(this),s],u=c[0],f=c[1],d=this.getTimeouts(),y=s?d.appear:d.enter;if(!i&&!l||hh.disabled){this.safeSetState({status:sn},function(){a.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:zr},function(){a.props.onEntering(u,f),a.onTransitionEnd(y,function(){a.safeSetState({status:sn},function(){a.props.onEntered(u,f)})})})},r.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!a||hh.disabled){this.safeSetState({status:Vr},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Bl},function(){i.props.onExiting(s),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:Vr},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:mn.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],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Bn)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=fh(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return we.createElement(Xo.Provider,{value:null},typeof l=="function"?l(i,s):we.cloneElement(we.Children.only(l),s))},t}(we.Component);hr.contextType=Xo,hr.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=vx;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 ln(){}hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ln,onEntering:ln,onEntered:ln,onExit:ln,onExiting:ln,onExited:ln},hr.UNMOUNTED=Bn,hr.EXITED=Vr,hr.ENTERING=zr,hr.ENTERED=sn,hr.EXITING=Bl;function xx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e,t){var r=function(a){return t&&we.isValidElement(a)?t(a):a},n=Object.create(null);return e&&we.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function Ox(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}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 Ur(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Ex(e,t){return ql(e.children,function(r){return we.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ur(r,"appear",e),enter:Ur(r,"enter",e),exit:Ur(r,"exit",e)})})}function Cx(e,t,r){var n=ql(e.children),i=Ox(t,n);return Object.keys(i).forEach(function(a){var l=i[a];if(we.isValidElement(l)){var s=a in t,c=a in n,u=t[a],f=we.isValidElement(u)&&!u.props.in;c&&(!s||f)?i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}):!c&&s&&!f?i[a]=we.cloneElement(l,{in:!1}):c&&s&&we.isValidElement(u)&&(i[a]=we.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Ur(l,"exit",e),enter:Ur(l,"enter",e)}))}}),i}var Sx=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Tx={component:"div",childFactory:function(t){return t}},Vl=function(e){dh(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var l=a.handleExited.bind(xx(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?Ex(i,s):Cx(i,l,s),firstRender:!1}},r.handleExited=function(i,a){var l=ql(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var c=Ll({},s.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,l=i.childFactory,s=fh(i,["component","childFactory"]),c=this.state.contextValue,u=Sx(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,a===null?we.createElement(Xo.Provider,{value:c},u):we.createElement(Xo.Provider,{value:c},we.createElement(a,s,u))},t}(we.Component);Vl.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Vl.defaultProps=Tx;const mh=e=>e.scrollTop;function Jo(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 zl(e){return`scale(${e}, ${e**2})`}const wx={entering:{opacity:1,transform:zl(1)},entered:{opacity:1,transform:"none"}},Ul=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qo=j.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:f,onExit:d,onExited:y,onExiting:m,style:b,timeout:h="auto",TransitionComponent:v=hr,...C}=t,E=Td(),S=j.useRef(),T=Nl(),w=j.useRef(null),A=Ot(w,_n(a),r),M=k=>D=>{if(k){const W=w.current;D===void 0?k(W):k(W,D)}},O=M(f),g=M((k,D)=>{mh(k);const{duration:W,delay:Z,easing:G}=Jo({style:b,timeout:h,easing:l},{mode:"enter"});let B;h==="auto"?(B=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=B):B=W,k.style.transition=[T.transitions.create("opacity",{duration:B,delay:Z}),T.transitions.create("transform",{duration:Ul?B:B*.666,delay:Z,easing:G})].join(","),c&&c(k,D)}),p=M(u),x=M(m),R=M(k=>{const{duration:D,delay:W,easing:Z}=Jo({style:b,timeout:h,easing:l},{mode:"exit"});let G;h==="auto"?(G=T.transitions.getAutoHeightDuration(k.clientHeight),S.current=G):G=D,k.style.transition=[T.transitions.create("opacity",{duration:G,delay:W}),T.transitions.create("transform",{duration:Ul?G:G*.666,delay:Ul?W:W||G*.333,easing:Z})].join(","),k.style.opacity=0,k.style.transform=zl(.75),d&&d(k)}),P=M(y),_=k=>{h==="auto"&&E.start(S.current||0,k),n&&n(w.current,k)};return N.jsx(v,{appear:i,in:s,nodeRef:w,onEnter:g,onEntered:p,onEntering:O,onExit:R,onExited:P,onExiting:x,addEndListener:_,timeout:h==="auto"?null:h,...C,children:(k,D)=>j.cloneElement(a,{style:{opacity:0,transform:zl(.75),visibility:k==="exited"&&!s?"hidden":void 0,...wx[k],...b,...a.props.style},ref:A,...D})})});process.env.NODE_ENV!=="production"&&(Qo.propTypes={addEndListener:o.func,appear:o.bool,children:Pn.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})])}),Qo&&(Qo.muiSupportAuto=!0);function Rx(e){const t=Wt(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gh(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function Px(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 yh(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,l=>{const s=!a.includes(l),c=!Px(l);s&&c&&qn(l,i)})}function Wl(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function _x(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Rx(n)){const l=Rd(Cr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gh(n)+l}px`;const s=Wt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${gh(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Wt(n).body;else{const l=n.parentElement,s=Cr(n);a=(l==null?void 0: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 Ix(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class kx{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&&qn(t.modalRef,!1);const i=Ix(r);yh(r,t.mount,t.modalRef,i,!0);const a=Wl(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=Wl(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=_x(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Wl(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&&qn(t.modalRef,r),yh(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&&qn(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const jx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ax(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 Nx(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 $x(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Nx(e))}function Mx(e){const t=[],r=[];return Array.from(e.querySelectorAll(jx)).forEach((n,i)=>{const a=Ax(n);a===-1||!$x(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 Dx(){return!0}function Zo(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Mx,isEnabled:l=Dx,open:s}=e,c=j.useRef(!1),u=j.useRef(null),f=j.useRef(null),d=j.useRef(null),y=j.useRef(null),m=j.useRef(!1),b=j.useRef(null),h=Ot(_n(t),b),v=j.useRef(null);j.useEffect(()=>{!s||!b.current||(m.current=!r)},[r,s]),j.useEffect(()=>{if(!s||!b.current)return;const S=Wt(b.current);return b.current.contains(S.activeElement)||(b.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(`
127
+ `)),b.current.setAttribute("tabIndex","-1")),m.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),j.useEffect(()=>{if(!s||!b.current)return;const S=Wt(b.current),T=M=>{v.current=M,!(n||!l()||M.key!=="Tab")&&S.activeElement===b.current&&M.shiftKey&&(c.current=!0,f.current&&f.current.focus())},w=()=>{var g,p;const M=b.current;if(M===null)return;if(!S.hasFocus()||!l()||c.current){c.current=!1;return}if(M.contains(S.activeElement)||n&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!m.current)return;let O=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(O=a(b.current)),O.length>0){const x=!!((g=v.current)!=null&&g.shiftKey&&((p=v.current)==null?void 0:p.key)==="Tab"),R=O[0],P=O[O.length-1];typeof R!="string"&&typeof P!="string"&&(x?P.focus():R.focus())}else M.focus()};S.addEventListener("focusin",w),S.addEventListener("keydown",T,!0);const A=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(A),S.removeEventListener("focusin",w),S.removeEventListener("keydown",T,!0)}},[r,n,i,l,s,a]);const C=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0,y.current=S.target;const T=t.props.onFocus;T&&T(S)},E=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0};return N.jsxs(j.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:u,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:h,onFocus:C}),N.jsx("div",{tabIndex:s?0:-1,onFocus:E,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Zo.propTypes={children:Pn,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Zo.propTypes=Od(Zo.propTypes));function Lx(e){return typeof e=="function"?e():e}const Vn=j.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[l,s]=j.useState(null),c=Ot(j.isValidElement(n)?_n(n):null,r);if(cr(()=>{a||s(Lx(i)||document.body)},[i,a]),cr(()=>{if(l&&!a)return Lo(r,l),()=>{Lo(r,null)}},[r,l,a]),a){if(j.isValidElement(n)){const u={ref:c};return j.cloneElement(n,u)}return n}return l&&Dm.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:o.node,container:o.oneOfType([Er,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(Vn.propTypes=Od(Vn.propTypes));function Lt(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:l,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...d}=a,y=u[e]||n,m=Nd(f[e],i),{props:{component:b,...h},internalRef:v}=Ad({className:r,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:m}),C=Ot(v,m==null?void 0:m.ref,t.ref),E=e==="root"?b||c:b,S=Id(y,{...e==="root"&&!c&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...h,...E&&{as:E},ref:C},i);return[y,S]}const Fx={entering:{opacity:1},entered:{opacity:1}},vh=j.forwardRef(function(t,r){const n=Nl(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,easing:c,in:u,onEnter:f,onEntered:d,onEntering:y,onExit:m,onExited:b,onExiting:h,style:v,timeout:C=i,TransitionComponent:E=hr,...S}=t,T=j.useRef(null),w=Ot(T,_n(s),r),A=_=>k=>{if(_){const D=T.current;k===void 0?_(D):_(D,k)}},M=A(y),O=A((_,k)=>{mh(_);const D=Jo({style:v,timeout:C,easing:c},{mode:"enter"});_.style.webkitTransition=n.transitions.create("opacity",D),_.style.transition=n.transitions.create("opacity",D),f&&f(_,k)}),g=A(d),p=A(h),x=A(_=>{const k=Jo({style:v,timeout:C,easing:c},{mode:"exit"});_.style.webkitTransition=n.transitions.create("opacity",k),_.style.transition=n.transitions.create("opacity",k),m&&m(_)}),R=A(b),P=_=>{a&&a(T.current,_)};return N.jsx(E,{appear:l,in:u,nodeRef:T,onEnter:O,onEntered:g,onEntering:M,onExit:x,onExited:R,onExiting:p,addEndListener:P,timeout:C,...S,children:(_,k)=>j.cloneElement(s,{style:{opacity:0,visibility:_==="exited"&&!u?"hidden":void 0,...Fx[_],...v,...s.props.style},ref:w,...k})})});process.env.NODE_ENV!=="production"&&(vh.propTypes={addEndListener:o.func,appear:o.bool,children:Pn.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 Bx(e){return We("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const qx=e=>{const{ownerState:t,...r}=e;return r},Vx=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},Bx,t)},zx=xe("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"}}]}),bh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:s=!1,open:c,components:u={},componentsProps:f={},slotProps:d={},slots:y={},TransitionComponent:m,transitionDuration:b,...h}=n,v={...n,component:l,invisible:s},C=Vx(v),E={transition:m,root:u.Root,...y},S={...f,...d},T={slots:E,slotProps:S},[w,A]=Lt("root",{elementType:zx,externalForwardedProps:T,className:Pe(C.root,a),ownerState:v}),[M,O]=Lt("transition",{elementType:vh,externalForwardedProps:T,ownerState:v}),g=qx(O);return N.jsx(M,{in:c,timeout:b,...h,...g,children:N.jsx(w,{"aria-hidden":!0,...A,classes:C,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(bh.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 Ux(e){return typeof e=="function"?e():e}function Wx(e){return e?e.props.hasOwnProperty("in"):!1}const xh=()=>{},ei=new kx;function Hx(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:f}=e,d=j.useRef({}),y=j.useRef(null),m=j.useRef(null),b=Ot(m,f),[h,v]=j.useState(!u),C=Wx(s);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const S=()=>Wt(y.current),T=()=>(d.current.modalRef=m.current,d.current.mount=y.current,d.current),w=()=>{ei.mount(T(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},A=pr(()=>{const k=Ux(t)||S().body;ei.add(T(),k),m.current&&w()}),M=()=>ei.isTopModal(T()),O=pr(k=>{y.current=k,k&&(u&&M()?w():m.current&&qn(m.current,E))}),g=j.useCallback(()=>{ei.remove(T(),E)},[E]);j.useEffect(()=>()=>{g()},[g]),j.useEffect(()=>{u?A():(!C||!i)&&g()},[u,g,C,i,A]);const p=k=>D=>{var W;(W=k.onKeyDown)==null||W.call(k,D),!(D.key!=="Escape"||D.which===229||!M())&&(r||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},x=k=>D=>{var W;(W=k.onClick)==null||W.call(k,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(k={})=>{const D=kd(e);delete D.onTransitionEnter,delete D.onTransitionExited;const W={...D,...k};return{role:"presentation",...W,onKeyDown:p(W),ref:b}},getBackdropProps:(k={})=>{const D=k;return{"aria-hidden":!0,...D,onClick:x(D),open:u}},getTransitionProps:()=>{const k=()=>{v(!1),a&&a()},D=()=>{v(!0),l&&l(),i&&g()};return{onEnter:Ol(k,(s==null?void 0:s.props.onEnter)??xh),onExited:Ol(D,(s==null?void 0:s.props.onExited)??xh)}},rootRef:b,portalRef:O,isTopModal:M,exited:h,hasTransition:C}}function Gx(e){return We("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const Kx=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Gx,n)},Yx=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ke(({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"}}]}))),Xx=xe(bh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Oh=j.forwardRef(function(t,r){const n=Je({name:"MuiModal",props:t}),{BackdropComponent:i=Xx,BackdropProps:a,classes:l,className:s,closeAfterTransition:c=!1,children:u,container:f,component:d,components:y={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:v=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:S=!1,hideBackdrop:T=!1,keepMounted:w=!1,onBackdropClick:A,onClose:M,onTransitionEnter:O,onTransitionExited:g,open:p,slotProps:x={},slots:R={},theme:P,..._}=n,k={...n,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:v,disablePortal:C,disableRestoreFocus:E,disableScrollLock:S,hideBackdrop:T,keepMounted:w},{getRootProps:D,getBackdropProps:W,getTransitionProps:Z,portalRef:G,isTopModal:B,exited:Y,hasTransition:ae}=Hx({...k,rootRef:r}),oe={...k,exited:Y},ne=Kx(oe),ue={};if(u.props.tabIndex===void 0&&(ue.tabIndex="-1"),ae){const{onEnter:X,onExited:Re}=Z();ue.onEnter=X,ue.onExited=Re}const ce={..._,slots:{root:y.Root,backdrop:y.Backdrop,...R},slotProps:{...m,...x}},[ye,se]=Lt("root",{elementType:Yx,externalForwardedProps:ce,getSlotProps:D,additionalProps:{ref:r,as:d},ownerState:oe,className:Pe(s,ne==null?void 0:ne.root,!oe.open&&oe.exited&&(ne==null?void 0:ne.hidden))}),[le,te]=Lt("backdrop",{elementType:i,externalForwardedProps:ce,additionalProps:a,getSlotProps:X=>W({...X,onClick:Re=>{A&&A(Re),X!=null&&X.onClick&&X.onClick(Re)}}),className:Pe(a==null?void 0:a.className,ne==null?void 0:ne.backdrop),ownerState:oe}),ve=Ot(a==null?void 0:a.ref,te.ref);return!w&&!p&&(!ae||Y)?null:N.jsx(Vn,{ref:G,container:f,disablePortal:C,children:N.jsxs(ye,{...se,children:[!T&&i?N.jsx(le,{...te,ref:ve}):null,N.jsx(Zo,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:B,open:p,children:j.cloneElement(u,ue)})]})})});process.env.NODE_ENV!=="production"&&(Oh.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Pn.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([Er,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,onBackdropClick:o.func,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 Jx(e){return We("MuiPaper",e)}qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Qx=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(a,Jx,i)},Zx=xe("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}`]]}})(Ke(({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)"}}]}))),zn=j.forwardRef(function(t,r){var m;const n=Je({props:t,name:"MuiPaper"}),i=Nl(),{className:a,component:l="div",elevation:s=1,square:c=!1,variant:u="elevation",...f}=n,d={...n,component:l,elevation:s,square:c,variant:u},y=Qx(d);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(`
128
+ `)),N.jsx(Zx,{as:l,ownerState:d,className:Pe(y.root,a),ref:r,...f,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":(m=i.vars.overlays)==null?void 0:m[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Qe("#fff",Il(s))}, ${Qe("#fff",Il(s))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:ur(Tl,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 eO(e){return We("MuiPopover",e)}qe("MuiPopover",["root","paper"]);function Eh(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ch(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Sh(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ti(e){return typeof e=="function"?e():e}const tO=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},eO,t)},rO=xe(Oh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Th=xe(zn,{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}),wh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:f,container:d,elevation:y=8,marginThreshold:m=16,open:b,PaperProps:h={},slots:v={},slotProps:C={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=Qo,transitionDuration:T="auto",TransitionProps:{onEntering:w,...A}={},disableScrollLock:M=!1,...O}=n,g=(C==null?void 0:C.paper)??h,p=j.useRef(),x={...n,anchorOrigin:l,anchorReference:c,elevation:y,marginThreshold:m,externalPaperSlotProps:g,transformOrigin:E,TransitionComponent:S,transitionDuration:T,TransitionProps:A},R=tO(x),P=j.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=ti(a),ve=te&&te.nodeType===1?te:Wt(p.current).body,X=ve.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Re=ve.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Re.top===0&&Re.left===0&&Re.right===0&&Re.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(`
129
+ `))}return{top:X.top+Eh(X,l.vertical),left:X.left+Ch(X,l.horizontal)}},[a,l.horizontal,l.vertical,s,c]),_=j.useCallback(te=>({vertical:Eh(te,E.vertical),horizontal:Ch(te,E.horizontal)}),[E.horizontal,E.vertical]),k=j.useCallback(te=>{const ve={width:te.offsetWidth,height:te.offsetHeight},X=_(ve);if(c==="none")return{top:null,left:null,transformOrigin:Sh(X)};const Re=P();let V=Re.top-X.vertical,pe=Re.left-X.horizontal;const de=V+ve.height,Ce=pe+ve.width,Te=Cr(ti(a)),$e=Te.innerHeight-m,He=Te.innerWidth-m;if(m!==null&&V<m){const Ne=V-m;V-=Ne,X.vertical+=Ne}else if(m!==null&&de>$e){const Ne=de-$e;V-=Ne,X.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&ve.height>$e&&ve.height&&$e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ve.height-$e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
130
+ `)),m!==null&&pe<m){const Ne=pe-m;pe-=Ne,X.horizontal+=Ne}else if(Ce>He){const Ne=Ce-He;pe-=Ne,X.horizontal+=Ne}return{top:`${Math.round(V)}px`,left:`${Math.round(pe)}px`,transformOrigin:Sh(X)}},[a,c,P,_,m]),[D,W]=j.useState(b),Z=j.useCallback(()=>{const te=p.current;if(!te)return;const ve=k(te);ve.top!==null&&te.style.setProperty("top",ve.top),ve.left!==null&&(te.style.left=ve.left),te.style.transformOrigin=ve.transformOrigin,W(!0)},[k]);j.useEffect(()=>(M&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[a,M,Z]);const G=(te,ve)=>{w&&w(te,ve),Z()},B=()=>{W(!1)};j.useEffect(()=>{b&&Z()}),j.useImperativeHandle(i,()=>b?{updatePosition:()=>{Z()}}:null,[b,Z]),j.useEffect(()=>{if(!b)return;const te=Ed(()=>{Z()}),ve=Cr(a);return ve.addEventListener("resize",te),()=>{te.clear(),ve.removeEventListener("resize",te)}},[a,b,Z]);let Y=T;T==="auto"&&!S.muiSupportAuto&&(Y=void 0);const ae=d||(a?Wt(ti(a)).body:void 0),oe={slots:v,slotProps:{...C,paper:g}},[ne,ue]=Lt("paper",{elementType:Th,externalForwardedProps:oe,additionalProps:{elevation:y,className:Pe(R.paper,g==null?void 0:g.className),style:D?g.style:{...g.style,opacity:0}},ownerState:x}),[ce,{slotProps:ye,...se}]=Lt("root",{elementType:rO,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ae,open:b},ownerState:x,className:Pe(R.root,f)}),le=Ot(p,ue.ref);return N.jsx(ce,{...se,...!$l(ce)&&{slotProps:ye,disableScrollLock:M},...O,ref:r,children:N.jsx(S,{appear:!0,in:b,onEntering:G,onExited:B,timeout:Y,...A,children:N.jsx(ne,{...ue,ref:le,children:u})})})});process.env.NODE_ENV!=="production"&&(wh.propTypes={action:Dt,anchorEl:ur(o.oneOfType([Er,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ti(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(`
131
131
  `))}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(`
132
- `))}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([Er,o.func]),disableScrollLock:o.bool,elevation:Tl,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:xl}),slotProps:o.shape({paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({paper:o.elementType,root: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 tO(e){return We("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const rO={vertical:"top",horizontal:"right"},nO={vertical:"top",horizontal:"left"},oO=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},tO,t)},iO=xe(wh,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aO=xe(Th,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sO=xe(ph,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Rh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:f,PaperProps:d={},PopoverClasses:y,transitionDuration:m="auto",TransitionProps:{onEntering:b,...h}={},variant:v="selectedMenu",slots:C={},slotProps:E={},...S}=n,T=$d(),w={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:b,PaperProps:d,transitionDuration:m,TransitionProps:h,variant:v},A=oO(w),M=i&&!s&&f,O=j.useRef(null),g=(D,W)=>{O.current&&O.current.adjustStyleForScrollbar(D,{direction:T?"rtl":"ltr"}),b&&b(D,W)},p=D=>{D.key==="Tab"&&(D.preventDefault(),u&&u(D,"tabKeyDown"))};let x=-1;j.Children.map(a,(D,W)=>{j.isValidElement(D)&&(process.env.NODE_ENV!=="production"&&Ml.isFragment(D)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
133
- `)),D.props.disabled||(v==="selectedMenu"&&D.props.selected||x===-1)&&(x=W))});const R=C.paper??aO,P=E.paper??d,_=wl({elementType:C.root,externalSlotProps:E.root,ownerState:w,className:[A.root,l]}),k=wl({elementType:R,externalSlotProps:P,ownerState:w,className:A.paper});return N.jsx(iO,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?rO:nO,slots:{paper:R,root:C.root},slotProps:{root:_,paper:k},open:f,ref:r,transitionDuration:m,TransitionProps:{onEntering:g,...h},ownerState:w,...S,classes:y,children:N.jsx(sO,{onKeyDown:p,actions:O,autoFocus:i&&(x===-1||s),autoFocusItem:M,variant:v,...c,className:Pe(A.list,c.className),children:a})})});process.env.NODE_ENV!=="production"&&(Rh.propTypes={anchorEl:o.oneOfType([Er,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({paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({paper:o.elementType,root: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 lO(e){return We("MuiNativeSelect",e)}const Hl=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cO=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${he(r)}`,a&&"iconOpen",n&&"disabled"]};return Ge(s,lO,t)},Ph=xe("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hl.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}}}]})),uO=xe(Ph,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Nt,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Hl.multiple}`]:t.multiple}]}})({}),_h=xe("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Hl.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}}]})),pO=xe(_h,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})({}),Ih=j.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:l,inputRef:s,variant:c="standard",...u}=t,f={...t,disabled:i,variant:c,error:a},d=cO(f);return N.jsxs(j.Fragment,{children:[N.jsx(uO,{ownerState:f,className:Pe(d.select,n),disabled:i,ref:s||r,...u}),t.multiple?null:N.jsx(pO,{as:l,ownerState:f,className:d.icon})]})});process.env.NODE_ENV!=="production"&&(Ih.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Dt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function fO(e){return We("MuiSelect",e)}const Un=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var kh;const dO=xe(Ph,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Un.select}`]:t.select},{[`&.${Un.select}`]:t[r.variant]},{[`&.${Un.error}`]:t.error},{[`&.${Un.multiple}`]:t.multiple}]}})({[`&.${Un.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hO=xe(_h,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})({}),mO=xe("input",{shouldForwardProp:e=>Xd(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 jh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gO(e){return e==null||typeof e=="string"&&!e.trim()}const 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${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,fO,t)},Ah=j.forwardRef(function(t,r){var ft;const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:c,defaultOpen:u,defaultValue:f,disabled:d,displayEmpty:y,error:m=!1,IconComponent:b,inputRef:h,labelId:v,MenuProps:C={},multiple:E,name:S,onBlur:T,onChange:w,onClose:A,onFocus:M,onOpen:O,open:g,readOnly:p,renderValue:x,SelectDisplayProps:R={},tabIndex:P,type:_,value:k,variant:D="standard",...W}=t,[Z,G]=qr({controlled:k,default:f,name:"Select"}),[B,Y]=qr({controlled:g,default:u,name:"Select"}),ae=j.useRef(null),oe=j.useRef(null),[ne,ue]=j.useState(null),{current:ce}=j.useRef(g!=null),[ye,se]=j.useState(),le=Ot(r,h),te=j.useCallback(Ee=>{oe.current=Ee,Ee&&ue(Ee)},[]),ve=ne==null?void 0:ne.parentNode;j.useImperativeHandle(le,()=>({focus:()=>{oe.current.focus()},node:ae.current,value:Z}),[Z]),j.useEffect(()=>{u&&B&&ne&&!ce&&(se(l?null:ve.clientWidth),oe.current.focus())},[ne,l]),j.useEffect(()=>{a&&oe.current.focus()},[a]),j.useEffect(()=>{if(!v)return;const Ee=Wt(oe.current).getElementById(v);if(Ee){const Ae=()=>{getSelection().isCollapsed&&oe.current.focus()};return Ee.addEventListener("click",Ae),()=>{Ee.removeEventListener("click",Ae)}}},[v]);const X=(Ee,Ae)=>{Ee?O&&O(Ae):A&&A(Ae),ce||(se(l?null:ve.clientWidth),Y(Ee))},Re=Ee=>{Ee.button===0&&(Ee.preventDefault(),oe.current.focus(),X(!0,Ee))},z=Ee=>{X(!1,Ee)},pe=j.Children.toArray(s),de=Ee=>{const Ae=pe.find(at=>at.props.value===Ee.target.value);Ae!==void 0&&(G(Ae.props.value),w&&w(Ee,Ae))},Ce=Ee=>Ae=>{let at;if(Ae.currentTarget.hasAttribute("tabindex")){if(E){at=Array.isArray(Z)?Z.slice():[];const wt=Z.indexOf(Ee.props.value);wt===-1?at.push(Ee.props.value):at.splice(wt,1)}else at=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(Ae),Z!==at&&(G(at),w)){const wt=Ae.nativeEvent||Ae,St=new wt.constructor(wt.type,wt);Object.defineProperty(St,"target",{writable:!0,value:{value:at,name:S}}),w(St,Ee)}E||X(!1,Ae)}},Te=Ee=>{p||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),X(!0,Ee))},$e=ne!==null&&B,He=Ee=>{!$e&&T&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:Z,name:S}}),T(Ee))};delete W["aria-invalid"];let Ne,be;const Fe=[];let Ye=!1,ht=!1;(Bo({value:Z})||y)&&(x?Ne=x(Z):Ye=!0);const Ct=pe.map(Ee=>{if(!j.isValidElement(Ee))return null;process.env.NODE_ENV!=="production"&&Ml.isFragment(Ee)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
132
+ `))}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([Er,o.func]),disableScrollLock:o.bool,elevation:Tl,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:xl}),slotProps:o.shape({paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({paper:o.elementType,root: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 nO(e){return We("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const oO={vertical:"top",horizontal:"right"},iO={vertical:"top",horizontal:"left"},aO=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},nO,t)},sO=xe(wh,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lO=xe(Th,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cO=xe(ph,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Rh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:f,PaperProps:d={},PopoverClasses:y,transitionDuration:m="auto",TransitionProps:{onEntering:b,...h}={},variant:v="selectedMenu",slots:C={},slotProps:E={},...S}=n,T=$d(),w={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:b,PaperProps:d,transitionDuration:m,TransitionProps:h,variant:v},A=aO(w),M=i&&!s&&f,O=j.useRef(null),g=(D,W)=>{O.current&&O.current.adjustStyleForScrollbar(D,{direction:T?"rtl":"ltr"}),b&&b(D,W)},p=D=>{D.key==="Tab"&&(D.preventDefault(),u&&u(D,"tabKeyDown"))};let x=-1;j.Children.map(a,(D,W)=>{j.isValidElement(D)&&(process.env.NODE_ENV!=="production"&&Ml.isFragment(D)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
133
+ `)),D.props.disabled||(v==="selectedMenu"&&D.props.selected||x===-1)&&(x=W))});const R=C.paper??lO,P=E.paper??d,_=wl({elementType:C.root,externalSlotProps:E.root,ownerState:w,className:[A.root,l]}),k=wl({elementType:R,externalSlotProps:P,ownerState:w,className:A.paper});return N.jsx(sO,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?oO:iO,slots:{paper:R,root:C.root},slotProps:{root:_,paper:k},open:f,ref:r,transitionDuration:m,TransitionProps:{onEntering:g,...h},ownerState:w,...S,classes:y,children:N.jsx(cO,{onKeyDown:p,actions:O,autoFocus:i&&(x===-1||s),autoFocusItem:M,variant:v,...c,className:Pe(A.list,c.className),children:a})})});process.env.NODE_ENV!=="production"&&(Rh.propTypes={anchorEl:o.oneOfType([Er,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({paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({paper:o.elementType,root: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 uO(e){return We("MuiNativeSelect",e)}const Hl=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),pO=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${he(r)}`,a&&"iconOpen",n&&"disabled"]};return Ge(s,uO,t)},Ph=xe("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Hl.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}}}]})),fO=xe(Ph,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:$t,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Hl.multiple}`]:t.multiple}]}})({}),_h=xe("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Hl.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}}]})),dO=xe(_h,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})({}),Ih=j.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:l,inputRef:s,variant:c="standard",...u}=t,f={...t,disabled:i,variant:c,error:a},d=pO(f);return N.jsxs(j.Fragment,{children:[N.jsx(fO,{ownerState:f,className:Pe(d.select,n),disabled:i,ref:s||r,...u}),t.multiple?null:N.jsx(dO,{as:l,ownerState:f,className:d.icon})]})});process.env.NODE_ENV!=="production"&&(Ih.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Dt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function hO(e){return We("MuiSelect",e)}const Un=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var kh;const mO=xe(Ph,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Un.select}`]:t.select},{[`&.${Un.select}`]:t[r.variant]},{[`&.${Un.error}`]:t.error},{[`&.${Un.multiple}`]:t.multiple}]}})({[`&.${Un.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gO=xe(_h,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${he(r.variant)}`],r.open&&t.iconOpen]}})({}),yO=xe("input",{shouldForwardProp:e=>Xd(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 jh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vO(e){return e==null||typeof e=="string"&&!e.trim()}const bO=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${he(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,hO,t)},Ah=j.forwardRef(function(t,r){var ft;const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:c,defaultOpen:u,defaultValue:f,disabled:d,displayEmpty:y,error:m=!1,IconComponent:b,inputRef:h,labelId:v,MenuProps:C={},multiple:E,name:S,onBlur:T,onChange:w,onClose:A,onFocus:M,onOpen:O,open:g,readOnly:p,renderValue:x,SelectDisplayProps:R={},tabIndex:P,type:_,value:k,variant:D="standard",...W}=t,[Z,G]=qr({controlled:k,default:f,name:"Select"}),[B,Y]=qr({controlled:g,default:u,name:"Select"}),ae=j.useRef(null),oe=j.useRef(null),[ne,ue]=j.useState(null),{current:ce}=j.useRef(g!=null),[ye,se]=j.useState(),le=Ot(r,h),te=j.useCallback(Ee=>{oe.current=Ee,Ee&&ue(Ee)},[]),ve=ne==null?void 0:ne.parentNode;j.useImperativeHandle(le,()=>({focus:()=>{oe.current.focus()},node:ae.current,value:Z}),[Z]),j.useEffect(()=>{u&&B&&ne&&!ce&&(se(l?null:ve.clientWidth),oe.current.focus())},[ne,l]),j.useEffect(()=>{a&&oe.current.focus()},[a]),j.useEffect(()=>{if(!v)return;const Ee=Wt(oe.current).getElementById(v);if(Ee){const Ae=()=>{getSelection().isCollapsed&&oe.current.focus()};return Ee.addEventListener("click",Ae),()=>{Ee.removeEventListener("click",Ae)}}},[v]);const X=(Ee,Ae)=>{Ee?O&&O(Ae):A&&A(Ae),ce||(se(l?null:ve.clientWidth),Y(Ee))},Re=Ee=>{Ee.button===0&&(Ee.preventDefault(),oe.current.focus(),X(!0,Ee))},V=Ee=>{X(!1,Ee)},pe=j.Children.toArray(s),de=Ee=>{const Ae=pe.find(at=>at.props.value===Ee.target.value);Ae!==void 0&&(G(Ae.props.value),w&&w(Ee,Ae))},Ce=Ee=>Ae=>{let at;if(Ae.currentTarget.hasAttribute("tabindex")){if(E){at=Array.isArray(Z)?Z.slice():[];const wt=Z.indexOf(Ee.props.value);wt===-1?at.push(Ee.props.value):at.splice(wt,1)}else at=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(Ae),Z!==at&&(G(at),w)){const wt=Ae.nativeEvent||Ae,St=new wt.constructor(wt.type,wt);Object.defineProperty(St,"target",{writable:!0,value:{value:at,name:S}}),w(St,Ee)}E||X(!1,Ae)}},Te=Ee=>{p||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),X(!0,Ee))},$e=ne!==null&&B,He=Ee=>{!$e&&T&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:Z,name:S}}),T(Ee))};delete W["aria-invalid"];let Ne,be;const Fe=[];let Ye=!1,ht=!1;(qo({value:Z})||y)&&(x?Ne=x(Z):Ye=!0);const Ct=pe.map(Ee=>{if(!j.isValidElement(Ee))return null;process.env.NODE_ENV!=="production"&&Ml.isFragment(Ee)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
134
134
  `));let Ae;if(E){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`.":sr(2));Ae=Z.some(at=>jh(at,Ee.props.value)),Ae&&Ye&&Fe.push(Ee.props.children)}else Ae=jh(Z,Ee.props.value),Ae&&Ye&&(be=Ee.props.children);return Ae&&(ht=!0),j.cloneElement(Ee,{"aria-selected":Ae?"true":"false",onClick:Ce(Ee),onKeyUp:at=>{at.key===" "&&at.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(at)},role:"option",selected:Ae,value:void 0,"data-value":Ee.props.value})});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{if(!ht&&!E&&Z!==""){const Ee=pe.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${Z}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ee.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
135
- `))}},[ht,pe,E,S,Z]),Ye&&(E?Fe.length===0?Ne=null:Ne=Fe.reduce((Ee,Ae,at)=>(Ee.push(Ae),at<Fe.length-1&&Ee.push(", "),Ee),[]):Ne=be);let pt=ye;!l&&ce&&ne&&(pt=ve.clientWidth);let Ue;typeof P<"u"?Ue=P:Ue=d?null:0;const Be=R.id||(S?`mui-component-select-${S}`:void 0),st={...t,variant:D,value:Z,open:$e,error:m},De=yO(st),Ze={...C.PaperProps,...(ft=C.slotProps)==null?void 0:ft.paper},mt=vo();return N.jsxs(j.Fragment,{children:[N.jsx(dO,{as:"div",ref:te,tabIndex:Ue,role:"combobox","aria-controls":mt,"aria-disabled":d?"true":void 0,"aria-expanded":$e?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:Te,onMouseDown:d||p?null:Re,onBlur:He,onFocus:M,...R,ownerState:st,className:Pe(R.className,De.select,c),id:Be,children:gO(Ne)?kh||(kh=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ne}),N.jsx(mO,{"aria-invalid":m,value:Array.isArray(Z)?Z.join(","):Z,name:S,ref:ae,"aria-hidden":!0,onChange:de,tabIndex:-1,disabled:d,className:De.nativeInput,autoFocus:a,...W,ownerState:st}),N.jsx(hO,{as:b,className:De.icon,ownerState:st}),N.jsx(Rh,{id:`menu-${S||""}`,anchorEl:ve,open:$e,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:mt,...C.MenuListProps},slotProps:{...C.slotProps,paper:{...Ze,style:{minWidth:pt,...Ze!=null?Ze.style:null}}},children:Ct})]})});process.env.NODE_ENV!=="production"&&(Ah.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:Dt,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,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Nh=_t(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vO=e=>{const{classes:t}=e;return t},Gl={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Nt(e)&&e!=="variant",slot:"Root"},bO=xe(An,Gl)(""),xO=xe(Mn,Gl)(""),OO=xe($n,Gl)(""),Wn=j.forwardRef(function(t,r){const n=Je({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=Nh,id:d,input:y,inputProps:m,label:b,labelId:h,MenuProps:v,multiple:C=!1,native:E=!1,onClose:S,onOpen:T,open:w,renderValue:A,SelectDisplayProps:M,variant:O="outlined",...g}=n,p=E?Ih:Ah,x=dr(),R=jr({props:n,muiFormControl:x,states:["variant","error"]}),P=R.variant||O,_={...n,variant:P,classes:l},k=vO(_),{root:D,...W}=k,Z=y||{standard:N.jsx(bO,{ownerState:_}),outlined:N.jsx(xO,{label:b,ownerState:_}),filled:N.jsx(OO,{ownerState:_})}[P],G=Ot(r,_n(Z));return N.jsx(j.Fragment,{children:j.cloneElement(Z,{inputComponent:p,inputProps:{children:a,error:R.error,IconComponent:f,variant:P,type:void 0,multiple:C,...E?{id:d}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:h,MenuProps:v,onClose:S,onOpen:T,open:w,renderValue:A,SelectDisplayProps:{id:d,...M}},...m,classes:m?At(W,m.classes):W,...y?y.props.inputProps:{}},...(C&&E||u)&&P==="outlined"?{notched:!0}:{},ref:G,className:Pe(Z.props.className,s,k.root),...!y&&{variant:P},...g})})});process.env.NODE_ENV!=="production"&&(Wn.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"])}),Wn.muiName="Select";function EO(e){return We("MuiTextField",e)}qe("MuiTextField",["root"]);const CO={standard:An,filled:$n,outlined:Mn},SO=e=>{const{classes:t}=e;return Ge({root:["root"]},EO,t)},TO=xe(an,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ti=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:f=!1,error:d=!1,FormHelperTextProps:y,fullWidth:m=!1,helperText:b,id:h,InputLabelProps:v,inputProps:C,InputProps:E,inputRef:S,label:T,maxRows:w,minRows:A,multiline:M=!1,name:O,onBlur:g,onChange:p,onFocus:x,placeholder:R,required:P=!1,rows:_,select:k=!1,SelectProps:D,slots:W={},slotProps:Z={},type:G,value:B,variant:Y="outlined",...ae}=n,oe={...n,autoFocus:a,color:c,disabled:f,error:d,fullWidth:m,multiline:M,required:P,select:k,variant:Y},ne=SO(oe);process.env.NODE_ENV!=="production"&&k&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ue=vo(h),ce=b&&ue?`${ue}-helper-text`:void 0,ye=T&&ue?`${ue}-label`:void 0,se=CO[Y],le={slots:W,slotProps:{input:E,inputLabel:v,htmlInput:C,formHelperText:y,select:D,...Z}},te={},ve=le.slotProps.inputLabel;Y==="outlined"&&(ve&&typeof ve.shrink<"u"&&(te.notched=ve.shrink),te.label=T),k&&((!D||!D.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[X,Re]=Lt("input",{elementType:se,externalForwardedProps:le,additionalProps:te,ownerState:oe}),[z,pe]=Lt("inputLabel",{elementType:Ho,externalForwardedProps:le,ownerState:oe}),[de,Ce]=Lt("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:oe}),[Te,$e]=Lt("formHelperText",{elementType:Ln,externalForwardedProps:le,ownerState:oe}),[He,Ne]=Lt("select",{elementType:Wn,externalForwardedProps:le,ownerState:oe}),be=N.jsx(X,{"aria-describedby":ce,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:m,multiline:M,name:O,rows:_,maxRows:w,minRows:A,type:G,value:B,id:ue,inputRef:S,onBlur:g,onChange:p,onFocus:x,placeholder:R,inputProps:Ce,slots:{input:W.htmlInput?de:void 0},...Re});return N.jsxs(TO,{className:Pe(ne.root,s),disabled:f,error:d,fullWidth:m,ref:r,required:P,color:c,variant:Y,ownerState:oe,...ae,children:[T!=null&&T!==""&&N.jsx(z,{htmlFor:ue,id:ye,...pe,children:T}),k?N.jsx(He,{"aria-describedby":ce,id:ue,labelId:ye,value:B,input:be,...Ne,children:l}):be,b&&N.jsx(Te,{id:ce,...$e,children:b})]})});process.env.NODE_ENV!=="production"&&(ti.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:Dt,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,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"])});class $h extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n;a(l,r,n,i)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a},otherProps:l}=this.props;return N.jsx(ti,{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:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...l,...t.otherProps})}}$h.defaultProps={otherProps:void 0};const Hn=jt($h),wO=jt(e=>{const{form:t,value:r,localization:{getLocalizedNumber:n},onChangeValidate:i}=e;let a=r||r===0?r:"";t.useLocalizer&&(a=n(a));const l=s=>{const c=t.schema?t.schema.type:t.type;let u=null;if(c==="integer")u=parseInt(s.target.value,10);else if(c==="number"){const f=s.target.value.split(".");f.length<2?u=parseInt(s.target.value,10):f.length>1&&(f[1].length>0?u=parseFloat(s.target.value):u=`${parseInt(f[0],10)}.`)}i(u)};return N.jsx(Hn,{...e,form:{...t,type:"string"},value:a,otherProps:{onChange:l}})}),RO=jt(e=>{const{form:t}=e;return N.jsx(Hn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})}),PO=jt(e=>{const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c}=r;a(s,t,r,n),we.useState("write");const[u,f]=we.useState(n);return we.useEffect(()=>{l({target:{value:u}})},[u]),N.jsxs(we.Fragment,{children:[N.jsx(Nr,{required:r.required,children:c}),"form.readonly ? ",N.jsx(gc.Markdown,{source:markdownVal})," : ",N.jsx(gc,{value:n,onChange:d=>f(d)}),i?N.jsx(Ln,{error:!0,children:i}):null]})}),Mh={text:"name",value:"value"};class _O extends we.Component{constructor(){super(...arguments);Tt(this,"handleUpdate",(r,n)=>{const{key:i}=this.props.form,{type:a}=this.props.form.schema;return this.props.onChange(i,r[Mh.value],a,this.props.form)});Tt(this,"handleInit",r=>{if(!this.props.form.schema||!this.props.form.schema.enum)return r.toString();const n=this.props.form.schema.enumNames||this.props.form.schema.enum,i=this.props.form.schema.enum;return n[i.indexOf(r)]||r.toString()})}render(){const r=(i=>{switch(i){case"fuzzy":return AutoComplete.fuzzyFilter;default:return AutoComplete.caseInsensitiveFilter}})(this.props.form.filter),n=this.props.value&&this.handleInit(this.props.value);return N.jsx("div",{className:this.props.form.htmlClass,children:N.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:n,dataSource:this.props.form.titleMap||["Loading..."],filter:r,maxSearchResults:this.props.form.maxSearchResults||5,dataSourceConfig:Mh})})}}const IO=jt(_O);class ri{constructor(){Tt(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=Sd(ri.create).current,[r,n]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=n,j.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=jO(),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 kO(){return ri.use()}function jO(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Dh(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[f,d]=j.useState(!1),y=Pe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},b=Pe(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&d(!0),j.useEffect(()=>{if(!s&&c!=null){const h=setTimeout(c,u);return()=>{clearTimeout(h)}}},[c,s,u]),N.jsx("span",{className:y,style:m,children:N.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Dh.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 rr=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kl=550,AO=80,NO=hn.keyframes`
135
+ `))}},[ht,pe,E,S,Z]),Ye&&(E?Fe.length===0?Ne=null:Ne=Fe.reduce((Ee,Ae,at)=>(Ee.push(Ae),at<Fe.length-1&&Ee.push(", "),Ee),[]):Ne=be);let pt=ye;!l&&ce&&ne&&(pt=ve.clientWidth);let Ue;typeof P<"u"?Ue=P:Ue=d?null:0;const Be=R.id||(S?`mui-component-select-${S}`:void 0),st={...t,variant:D,value:Z,open:$e,error:m},De=bO(st),Ze={...C.PaperProps,...(ft=C.slotProps)==null?void 0:ft.paper},mt=bo();return N.jsxs(j.Fragment,{children:[N.jsx(mO,{as:"div",ref:te,tabIndex:Ue,role:"combobox","aria-controls":mt,"aria-disabled":d?"true":void 0,"aria-expanded":$e?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:Te,onMouseDown:d||p?null:Re,onBlur:He,onFocus:M,...R,ownerState:st,className:Pe(R.className,De.select,c),id:Be,children:vO(Ne)?kh||(kh=N.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ne}),N.jsx(yO,{"aria-invalid":m,value:Array.isArray(Z)?Z.join(","):Z,name:S,ref:ae,"aria-hidden":!0,onChange:de,tabIndex:-1,disabled:d,className:De.nativeInput,autoFocus:a,...W,ownerState:st}),N.jsx(gO,{as:b,className:De.icon,ownerState:st}),N.jsx(Rh,{id:`menu-${S||""}`,anchorEl:ve,open:$e,onClose:V,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:mt,...C.MenuListProps},slotProps:{...C.slotProps,paper:{...Ze,style:{minWidth:pt,...Ze!=null?Ze.style:null}}},children:Ct})]})});process.env.NODE_ENV!=="production"&&(Ah.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:Dt,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,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const Nh=_t(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),xO=e=>{const{classes:t}=e;return t},Gl={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>$t(e)&&e!=="variant",slot:"Root"},OO=xe(An,Gl)(""),EO=xe(Mn,Gl)(""),CO=xe($n,Gl)(""),Wn=j.forwardRef(function(t,r){const n=Je({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=Nh,id:d,input:y,inputProps:m,label:b,labelId:h,MenuProps:v,multiple:C=!1,native:E=!1,onClose:S,onOpen:T,open:w,renderValue:A,SelectDisplayProps:M,variant:O="outlined",...g}=n,p=E?Ih:Ah,x=dr(),R=jr({props:n,muiFormControl:x,states:["variant","error"]}),P=R.variant||O,_={...n,variant:P,classes:l},k=xO(_),{root:D,...W}=k,Z=y||{standard:N.jsx(OO,{ownerState:_}),outlined:N.jsx(EO,{label:b,ownerState:_}),filled:N.jsx(CO,{ownerState:_})}[P],G=Ot(r,_n(Z));return N.jsx(j.Fragment,{children:j.cloneElement(Z,{inputComponent:p,inputProps:{children:a,error:R.error,IconComponent:f,variant:P,type:void 0,multiple:C,...E?{id:d}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:h,MenuProps:v,onClose:S,onOpen:T,open:w,renderValue:A,SelectDisplayProps:{id:d,...M}},...m,classes:m?Nt(W,m.classes):W,...y?y.props.inputProps:{}},...(C&&E||u)&&P==="outlined"?{notched:!0}:{},ref:G,className:Pe(Z.props.className,s,k.root),...!y&&{variant:P},...g})})});process.env.NODE_ENV!=="production"&&(Wn.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"])}),Wn.muiName="Select";function SO(e){return We("MuiTextField",e)}qe("MuiTextField",["root"]);const TO={standard:An,filled:$n,outlined:Mn},wO=e=>{const{classes:t}=e;return Ge({root:["root"]},SO,t)},RO=xe(an,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ri=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:s,color:c="primary",defaultValue:u,disabled:f=!1,error:d=!1,FormHelperTextProps:y,fullWidth:m=!1,helperText:b,id:h,InputLabelProps:v,inputProps:C,InputProps:E,inputRef:S,label:T,maxRows:w,minRows:A,multiline:M=!1,name:O,onBlur:g,onChange:p,onFocus:x,placeholder:R,required:P=!1,rows:_,select:k=!1,SelectProps:D,slots:W={},slotProps:Z={},type:G,value:B,variant:Y="outlined",...ae}=n,oe={...n,autoFocus:a,color:c,disabled:f,error:d,fullWidth:m,multiline:M,required:P,select:k,variant:Y},ne=wO(oe);process.env.NODE_ENV!=="production"&&k&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ue=bo(h),ce=b&&ue?`${ue}-helper-text`:void 0,ye=T&&ue?`${ue}-label`:void 0,se=TO[Y],le={slots:W,slotProps:{input:E,inputLabel:v,htmlInput:C,formHelperText:y,select:D,...Z}},te={},ve=le.slotProps.inputLabel;Y==="outlined"&&(ve&&typeof ve.shrink<"u"&&(te.notched=ve.shrink),te.label=T),k&&((!D||!D.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[X,Re]=Lt("input",{elementType:se,externalForwardedProps:le,additionalProps:te,ownerState:oe}),[V,pe]=Lt("inputLabel",{elementType:Go,externalForwardedProps:le,ownerState:oe}),[de,Ce]=Lt("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:oe}),[Te,$e]=Lt("formHelperText",{elementType:Ln,externalForwardedProps:le,ownerState:oe}),[He,Ne]=Lt("select",{elementType:Wn,externalForwardedProps:le,ownerState:oe}),be=N.jsx(X,{"aria-describedby":ce,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:m,multiline:M,name:O,rows:_,maxRows:w,minRows:A,type:G,value:B,id:ue,inputRef:S,onBlur:g,onChange:p,onFocus:x,placeholder:R,inputProps:Ce,slots:{input:W.htmlInput?de:void 0},...Re});return N.jsxs(RO,{className:Pe(ne.root,s),disabled:f,error:d,fullWidth:m,ref:r,required:P,color:c,variant:Y,ownerState:oe,...ae,children:[T!=null&&T!==""&&N.jsx(V,{htmlFor:ue,id:ye,...pe,children:T}),k?N.jsx(He,{"aria-describedby":ce,id:ue,labelId:ye,value:B,input:be,...Ne,children:l}):be,b&&N.jsx(Te,{id:ce,...$e,children:b})]})});process.env.NODE_ENV!=="production"&&(ri.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:Dt,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,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"])});class $h extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n;a(l,r,n,i)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a},otherProps:l}=this.props;return N.jsx(ri,{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:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...l,...t.otherProps})}}$h.defaultProps={otherProps:void 0};const Hn=At($h),PO=At(e=>{const{form:t,value:r,localization:{getLocalizedNumber:n},onChangeValidate:i}=e;let a=r||r===0?r:"";t.useLocalizer&&(a=n(a));const l=s=>{const c=t.schema?t.schema.type:t.type;let u=null;if(c==="integer")u=parseInt(s.target.value,10);else if(c==="number"){const f=s.target.value.split(".");f.length<2?u=parseInt(s.target.value,10):f.length>1&&(f[1].length>0?u=parseFloat(s.target.value):u=`${parseInt(f[0],10)}.`)}i(u)};return N.jsx(Hn,{...e,form:{...t,type:"string"},value:a,otherProps:{onChange:l}})}),_O=At(e=>{const{form:t}=e;return N.jsx(Hn,{...e,otherProps:{multiline:!0,rows:t.rows,maxRows:t.maxRows}})}),IO=At(e=>{const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c}=r;a(s,t,r,n),we.useState("write");const[u,f]=we.useState(n);return we.useEffect(()=>{l({target:{value:u}})},[u]),N.jsxs(we.Fragment,{children:[N.jsx(Nr,{required:r.required,children:c}),"form.readonly ? ",N.jsx(gc.Markdown,{source:markdownVal})," : ",N.jsx(gc,{value:n,onChange:d=>f(d)}),i?N.jsx(Ln,{error:!0,children:i}):null]})}),Mh={text:"name",value:"value"};class kO extends we.Component{constructor(){super(...arguments);Tt(this,"handleUpdate",(r,n)=>{const{key:i}=this.props.form,{type:a}=this.props.form.schema;return this.props.onChange(i,r[Mh.value],a,this.props.form)});Tt(this,"handleInit",r=>{if(!this.props.form.schema||!this.props.form.schema.enum)return r.toString();const n=this.props.form.schema.enumNames||this.props.form.schema.enum,i=this.props.form.schema.enum;return n[i.indexOf(r)]||r.toString()})}render(){const r=(i=>{switch(i){case"fuzzy":return AutoComplete.fuzzyFilter;default:return AutoComplete.caseInsensitiveFilter}})(this.props.form.filter),n=this.props.value&&this.handleInit(this.props.value);return N.jsx("div",{className:this.props.form.htmlClass,children:N.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:n,dataSource:this.props.form.titleMap||["Loading..."],filter:r,maxSearchResults:this.props.form.maxSearchResults||5,dataSourceConfig:Mh})})}}const jO=At(kO);class ni{constructor(){Tt(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 ni}static use(){const t=Sd(ni.create).current,[r,n]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=n,j.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=NO(),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 AO(){return ni.use()}function NO(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Dh(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:l,in:s,onExited:c,timeout:u}=e,[f,d]=j.useState(!1),y=Pe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},b=Pe(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&d(!0),j.useEffect(()=>{if(!s&&c!=null){const h=setTimeout(c,u);return()=>{clearTimeout(h)}}},[c,s,u]),N.jsx("span",{className:y,style:m,children:N.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Dh.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 rr=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kl=550,$O=80,MO=hn.keyframes`
136
136
  0% {
137
137
  transform: scale(0);
138
138
  opacity: 0.1;
@@ -142,7 +142,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
142
142
  transform: scale(1);
143
143
  opacity: 0.3;
144
144
  }
145
- `,$O=hn.keyframes`
145
+ `,DO=hn.keyframes`
146
146
  0% {
147
147
  opacity: 1;
148
148
  }
@@ -150,7 +150,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
150
150
  100% {
151
151
  opacity: 0;
152
152
  }
153
- `,MO=hn.keyframes`
153
+ `,LO=hn.keyframes`
154
154
  0% {
155
155
  transform: scale(1);
156
156
  }
@@ -162,14 +162,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
162
162
  100% {
163
163
  transform: scale(1);
164
164
  }
165
- `,DO=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),LO=xe(Dh,{name:"MuiTouchRipple",slot:"Ripple"})`
165
+ `,FO=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),BO=xe(Dh,{name:"MuiTouchRipple",slot:"Ripple"})`
166
166
  opacity: 0;
167
167
  position: absolute;
168
168
 
169
169
  &.${rr.rippleVisible} {
170
170
  opacity: 0.3;
171
171
  transform: scale(1);
172
- animation-name: ${NO};
172
+ animation-name: ${MO};
173
173
  animation-duration: ${Kl}ms;
174
174
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
175
175
  }
@@ -189,7 +189,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
189
189
 
190
190
  & .${rr.childLeaving} {
191
191
  opacity: 0;
192
- animation-name: ${$O};
192
+ animation-name: ${DO};
193
193
  animation-duration: ${Kl}ms;
194
194
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
195
195
  }
@@ -199,30 +199,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
199
199
  /* @noflip */
200
200
  left: 0px;
201
201
  top: 0;
202
- animation-name: ${MO};
202
+ animation-name: ${LO};
203
203
  animation-duration: 2500ms;
204
204
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
205
205
  animation-iteration-count: infinite;
206
206
  animation-delay: 200ms;
207
207
  }
208
- `,Lh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=j.useState([]),f=j.useRef(0),d=j.useRef(null);j.useEffect(()=>{d.current&&(d.current(),d.current=null)},[c]);const y=j.useRef(!1),m=Td(),b=j.useRef(null),h=j.useRef(null),v=j.useCallback(T=>{const{pulsate:w,rippleX:A,rippleY:M,rippleSize:O,cb:g}=T;u(p=>[...p,N.jsx(LO,{classes:{ripple:Pe(a.ripple,rr.ripple),rippleVisible:Pe(a.rippleVisible,rr.rippleVisible),ripplePulsate:Pe(a.ripplePulsate,rr.ripplePulsate),child:Pe(a.child,rr.child),childLeaving:Pe(a.childLeaving,rr.childLeaving),childPulsate:Pe(a.childPulsate,rr.childPulsate)},timeout:Kl,pulsate:w,rippleX:A,rippleY:M,rippleSize:O},f.current)]),f.current+=1,d.current=g},[a]),C=j.useCallback((T={},w={},A=()=>{})=>{const{pulsate:M=!1,center:O=i||w.pulsate,fakeElement:g=!1}=w;if((T==null?void 0:T.type)==="mousedown"&&y.current){y.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(y.current=!0);const p=g?null:h.current,x=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,P,_;if(O||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)R=Math.round(x.width/2),P=Math.round(x.height/2);else{const{clientX:k,clientY:D}=T.touches&&T.touches.length>0?T.touches[0]:T;R=Math.round(k-x.left),P=Math.round(D-x.top)}if(O)_=Math.sqrt((2*x.width**2+x.height**2)/3),_%2===0&&(_+=1);else{const k=Math.max(Math.abs((p?p.clientWidth:0)-R),R)*2+2,D=Math.max(Math.abs((p?p.clientHeight:0)-P),P)*2+2;_=Math.sqrt(k**2+D**2)}T!=null&&T.touches?b.current===null&&(b.current=()=>{v({pulsate:M,rippleX:R,rippleY:P,rippleSize:_,cb:A})},m.start(AO,()=>{b.current&&(b.current(),b.current=null)})):v({pulsate:M,rippleX:R,rippleY:P,rippleSize:_,cb:A})},[i,v,m]),E=j.useCallback(()=>{C({},{pulsate:!0})},[C]),S=j.useCallback((T,w)=>{if(m.clear(),(T==null?void 0:T.type)==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{S(T,w)});return}b.current=null,u(A=>A.length>0?A.slice(1):A),d.current=w},[m]);return j.useImperativeHandle(r,()=>({pulsate:E,start:C,stop:S}),[E,C,S]),N.jsx(DO,{className:Pe(rr.root,a.root,l),ref:h,...s,children:N.jsx(zl,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Lh.propTypes={center:o.bool,classes:o.object,className:o.string});function FO(e){return We("MuiButtonBase",e)}const BO=qe("MuiButtonBase",["root","disabled","focusVisible"]),qO=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},FO,i);return r&&n&&(l.root+=` ${n}`),l},zO=xe("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"},[`&.${BO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:y=!1,focusVisibleClassName:m,LinkComponent:b="a",onBlur:h,onClick:v,onContextMenu:C,onDragLeave:E,onFocus:S,onFocusVisible:T,onKeyDown:w,onKeyUp:A,onMouseDown:M,onMouseLeave:O,onMouseUp:g,onTouchEnd:p,onTouchMove:x,onTouchStart:R,tabIndex:P=0,TouchRippleProps:_,touchRippleRef:k,type:D,...W}=n,Z=j.useRef(null),G=kO(),B=Ot(G.ref,k),[Y,ae]=j.useState(!1);u&&Y&&ae(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{ae(!0),Z.current.focus()}}),[]);const oe=G.shouldMount&&!f&&!u;j.useEffect(()=>{Y&&y&&!f&&G.pulsate()},[f,y,Y,G]);const ne=Tr(G,"start",M,d),ue=Tr(G,"stop",C,d),ce=Tr(G,"stop",E,d),ye=Tr(G,"stop",g,d),se=Tr(G,"stop",be=>{Y&&be.preventDefault(),O&&O(be)},d),le=Tr(G,"start",R,d),te=Tr(G,"stop",p,d),ve=Tr(G,"stop",x,d),X=Tr(G,"stop",be=>{wd(be.target)||ae(!1),h&&h(be)},!1),Re=pr(be=>{Z.current||(Z.current=be.currentTarget),wd(be.target)&&(ae(!0),T&&T(be)),S&&S(be)}),z=()=>{const be=Z.current;return c&&c!=="button"&&!(be.tagName==="A"&&be.href)},pe=pr(be=>{y&&!be.repeat&&Y&&be.key===" "&&G.stop(be,()=>{G.start(be)}),be.target===be.currentTarget&&z()&&be.key===" "&&be.preventDefault(),w&&w(be),be.target===be.currentTarget&&z()&&be.key==="Enter"&&!u&&(be.preventDefault(),v&&v(be))}),de=pr(be=>{y&&be.key===" "&&Y&&!be.defaultPrevented&&G.stop(be,()=>{G.pulsate(be)}),A&&A(be),v&&be.target===be.currentTarget&&z()&&be.key===" "&&!be.defaultPrevented&&v(be)});let Ce=c;Ce==="button"&&(W.href||W.to)&&(Ce=b);const Te={};Ce==="button"?(Te.type=D===void 0?"button":D,Te.disabled=u):(!W.href&&!W.to&&(Te.role="button"),u&&(Te["aria-disabled"]=u));const $e=Ot(r,Z),He={...n,centerRipple:a,component:c,disabled:u,disableRipple:f,disableTouchRipple:d,focusRipple:y,tabIndex:P,focusVisible:Y},Ne=qO(He);return N.jsxs(zO,{as:Ce,className:Pe(Ne.root,s),ownerState:He,onBlur:X,onClick:v,onContextMenu:ue,onFocus:Re,onKeyDown:pe,onKeyUp:de,onMouseDown:ne,onMouseLeave:se,onMouseUp:ye,onDragLeave:ce,onTouchEnd:te,onTouchMove:ve,onTouchStart:le,ref:$e,tabIndex:u?-1:P,type:D,...Te,...W,children:[l,oe?N.jsx(Lh,{ref:B,center:a,..._}):null]})});function Tr(e,t,r,n=!1){return pr(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Wr.propTypes={action:Dt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:xl,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName: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])});const Fh=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bh=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function VO(e){return We("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const UO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},WO=T0(),HO=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${he(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ge(s,VO,l)},GO=xe("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${he(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter($t()).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${he(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}}]}})),qh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ni=j.forwardRef(function(t,r){const{color:n,...i}=Je({props:t,name:"MuiTypography"}),a=!UO[n],l=WO({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:f=!1,noWrap:d=!1,paragraph:y=!1,variant:m="body1",variantMapping:b=qh,...h}=l,v={...l,align:s,color:n,className:c,component:u,gutterBottom:f,noWrap:d,paragraph:y,variant:m,variantMapping:b},C=u||(y?"p":b[m]||qh[m])||"span",E=HO(v);return N.jsx(GO,{as:C,ref:r,className:Pe(E.root,c),...h,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...h.style}})});process.env.NODE_ENV!=="production"&&(ni.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 zh=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function KO(e){return We("MuiMenuItem",e)}const Gn=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),YO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},XO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Ge({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},KO,l);return{...l,...c}},JO=xe(Wr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:YO})(Ke(({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"}},[`&.${Gn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(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})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fh.inset}`]:{marginLeft:52},[`& .${zh.root}`]:{marginTop:0,marginBottom:0},[`& .${zh.inset}`]:{paddingLeft:36},[`& .${Bh.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,[`& .${Bh.root} svg`]:{fontSize:"1.25rem"}}}]}))),oi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:d,className:y,...m}=n,b=j.useContext(Ko),h=j.useMemo(()=>({dense:l||b.dense||!1,disableGutters:c}),[b.dense,l,c]),v=j.useRef(null);cr(()=>{i&&(v.current?v.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 C={...n,dense:h.dense,divider:s,disableGutters:c},E=XO(n),S=Ot(v,r);let T;return n.disabled||(T=d!==void 0?d:-1),N.jsx(Ko.Provider,{value:h,children:N.jsx(JO,{ref:S,role:f,tabIndex:T,component:a,focusVisibleClassName:Pe(E.focusVisible,u),className:Pe(E.root,y),...m,ownerState:C,classes:E})})});process.env.NODE_ENV!=="production"&&(oi.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 QO(e){const{model:t,form:r,error:n,setDefault:i,onChange:a,onChangeValidate:l,localization:{getLocalizedString:s},form:{key:c,schema:{isObject:u,enum:f,findFn:d,displayFn:y,noLocalization:m}}}=e;let b=r&&r.selectProps&&r.selectProps.multiple?[]:"";e.form.default?b=e.form.default:e.form.schema&&e.form.schema.default&&(b=e.form.schema.default);const[h,v]=we.useState(Mt.getValueFromModel(t,r.key)||b);we.useEffect(()=>{i(c,t,r,h)},[]);const C=T=>{const w=T.target.value;if(v(w),u){const A=f.find(M=>d?d(M,w):M===w);a(c,A)}else l(T)},E=T=>y?y(T):m?T.name:s(T.name);let S=[];return u?S=r.schema.enum.map((T,w)=>N.jsx(oi,{value:T,children:E(T)},w)):S=r.titleMap.map((T,w)=>N.jsx(oi,{value:T.value,children:E(T)},w)),N.jsxs(an,{fullWidth:!0,error:!!n,...r.otherProps,children:[N.jsx(Ho,{required:r.required,...r.labelProps,children:r.title&&s(r.title)}),N.jsx(Wn,{value:h,placeholder:r.placeholder&&s(r.placeholder),disabled:r.readonly,onChange:C,...r.selectProps,children:S}),N.jsx(Ln,{...r.helperTextProps,children:(n||r.description)&&s(n||r.description)})]})}const ZO=jt(QO),eE=_t(N.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 tE(e){return We("MuiChip",e)}const Ve=qe("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"]),rE=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${he(n)}`,`color${he(i)}`,s&&"clickable",s&&`clickableColor${he(i)}`,l&&"deletable",l&&`deletableColor${he(i)}`,`${c}${he(i)}`],label:["label",`label${he(n)}`],avatar:["avatar",`avatar${he(n)}`,`avatarColor${he(i)}`],icon:["icon",`icon${he(n)}`,`iconColor${he(a)}`],deleteIcon:["deleteIcon",`deleteIcon${he(n)}`,`deleteIconColor${he(i)}`,`deleteIcon${he(c)}Color${he(i)}`]};return Ge(u,tE,t)},nE=xe("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${he(s)}`]},{[`& .${Ve.avatar}`]:t[`avatarColor${he(n)}`]},{[`& .${Ve.icon}`]:t.icon},{[`& .${Ve.icon}`]:t[`icon${he(s)}`]},{[`& .${Ve.icon}`]:t[`iconColor${he(i)}`]},{[`& .${Ve.deleteIcon}`]:t.deleteIcon},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${he(s)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIconColor${he(n)}`]},{[`& .${Ve.deleteIcon}`]:t[`deleteIcon${he(c)}Color${he(n)}`]},t.root,t[`size${he(s)}`],t[`color${he(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${he(n)})`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${he(n)}`],t[c],t[`${c}${he(n)}`]]}})(Ke(({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",[`&.${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.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qe(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)`:Qe(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.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:Qe(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.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+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.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+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.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7)}`,[`&.${Ve.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${Ve.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${Ve.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),oE=xe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${he(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 Vh(e){return e.key==="Backspace"||e.key==="Delete"}const Yl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:f=!1,icon:d,label:y,onClick:m,onDelete:b,onKeyDown:h,onKeyUp:v,size:C="medium",variant:E="filled",tabIndex:S,skipFocusWhenDisabled:T=!1,...w}=n,A=j.useRef(null),M=Ot(A,r),O=G=>{G.stopPropagation(),b&&b(G)},g=G=>{G.currentTarget===G.target&&Vh(G)&&G.preventDefault(),h&&h(G)},p=G=>{G.currentTarget===G.target&&b&&Vh(G)&&b(G),v&&v(G)},x=l!==!1&&m?!0:l,R=x||b?Wr:c||"div",P={...n,component:R,disabled:f,size:C,color:s,iconColor:j.isValidElement(d)&&d.props.color||s,onDelete:!!b,clickable:x,variant:E},_=rE(P),k=R===Wr?{component:c||"div",focusVisibleClassName:_.focusVisible,...b&&{disableRipple:!0}}:{};let D=null;b&&(D=u&&j.isValidElement(u)?j.cloneElement(u,{className:Pe(u.props.className,_.deleteIcon),onClick:O}):N.jsx(eE,{className:Pe(_.deleteIcon),onClick:O}));let W=null;i&&j.isValidElement(i)&&(W=j.cloneElement(i,{className:Pe(_.avatar,i.props.className)}));let Z=null;return d&&j.isValidElement(d)&&(Z=j.cloneElement(d,{className:Pe(_.icon,d.props.className)})),process.env.NODE_ENV!=="production"&&W&&Z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),N.jsxs(nE,{as:R,className:Pe(_.root,a),disabled:x&&f?!0:void 0,onClick:m,onKeyDown:g,onKeyUp:p,ref:M,tabIndex:T&&f?-1:S,ownerState:P,...k,...w,children:[W||Z,N.jsx(oE,{className:Pe(_.label),ownerState:P,children:y}),D]})});process.env.NODE_ENV!=="production"&&(Yl.propTypes={avatar:o.element,children:Ib,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,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 Kn="MultiSelect",mr={root:`${Kn}-root`,chips:`${Kn}-chips`,chip:`${Kn}-chip`,menuItem:`${Kn}-menuItem`,selectedMenuItem:`${Kn}-selectedMenuItem`},iE=jo("div")(({theme:e})=>({[`&.${mr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chip}`]:{margin:e.spacing(.25)},[`& .${mr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${mr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),aE={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}};class sE extends we.Component{constructor(r){super(r);Tt(this,"onSelected",r=>{const{onChangeValidate:n}=this.props,i=r.target.value;this.setState({currentValue:i}),n(i)});const{model:n,form:i}=this.props;this.state={currentValue:Mt.getValueFromModel(n,i.key)||[]}}static getDerivedStateFromProps(r){const{model:n,form:i}=r;return n&&i.key?{currentValue:Mt.getValueFromModel(n,i.key)||[]}:null}render(){const{form:r,localization:{getLocalizedString:n}}=this.props,{currentValue:i}=this.state,a=Mt.getTitleByValue.bind(this,r.titleMap),l=r.titleMap.map(s=>N.jsx(oi,{value:s.value,className:i.indexOf(s.value)===-1?mr.menuItem:mr.selectedMenuItem,children:s.name&&n(s.name)},s.value));return N.jsx(iE,{className:mr.root,children:N.jsxs(an,{fullWidth:!0,...r.otherProps,children:[N.jsx(Ho,{required:r.required,children:r.title&&n(r.title)}),N.jsx(Wn,{multiple:!0,value:i||"",placeholder:r.placeholder&&n(r.placeholder),disabled:r.readonly,onChange:this.onSelected,MenuProps:aE,renderValue:s=>N.jsx("div",{className:mr.chips,children:s.map(c=>N.jsx(Yl,{label:a(c)&&n(a(c)),className:mr.chip},c))}),children:l})]})})}}const lE=jt(sE);function cE(e){return We("MuiFormControlLabel",e)}const Yn=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uE=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${he(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ge(l,cE,t)},pE=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yn.label}`]:t.label},t.root,t[`labelPlacement${he(r.labelPlacement)}`]]}})(Ke(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Yn.disabled}`]:{cursor:"default"},[`& .${Yn.label}`]:{[`&.${Yn.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}}]}))),fE=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Yn.error}`]:{color:(e.vars||e).palette.error.main}}))),Xl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:f,label:d,labelPlacement:y="end",name:m,onChange:b,required:h,slots:v={},slotProps:C={},value:E,...S}=n,T=dr(),w=c??s.props.disabled??(T==null?void 0:T.disabled),A=h??s.props.required,M={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof s.props[k]>"u"&&typeof n[k]<"u"&&(M[k]=n[k])});const O=jr({props:n,muiFormControl:T,states:["error"]}),g={...n,disabled:w,labelPlacement:y,required:A,error:O.error},p=uE(g),x={slots:v,slotProps:{...l,...C}},[R,P]=Lt("typography",{elementType:ni,externalForwardedProps:x,ownerState:g});let _=d;return _!=null&&_.type!==ni&&!u&&(_=N.jsx(R,{component:"span",...P,className:Pe(p.label,P==null?void 0:P.className),children:_})),N.jsxs(pE,{className:Pe(p.root,a),ownerState:g,ref:r,...S,children:[j.cloneElement(s,M),A?N.jsxs("div",{children:[_,N.jsxs(fE,{ownerState:g,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(Xl.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:Dt,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 dE(e){return We("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const hE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},dE,t)},mE=xe("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"}}]}),Jl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=dr(),c=jr({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},f=hE(u);return N.jsx(mE,{className:Pe(f.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Jl.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 gE(e){return We("MuiRadioGroup",e)}qe("MuiRadioGroup",["root","row","error"]);const Ql=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ql.displayName="RadioGroupContext");const yE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},gE,t)},Uh=j.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...f}=t,d=j.useRef(null),y=yE(t),[m,b]=qr({controlled:u,default:l,name:"RadioGroup"});j.useImperativeHandle(n,()=>({focus:()=>{let E=d.current.querySelector("input:not(:disabled):checked");E||(E=d.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const h=Ot(r,d),v=vo(s),C=j.useMemo(()=>({name:v,onChange(E){b(E.target.value),c&&c(E,E.target.value)},value:m}),[v,c,b,m]);return N.jsx(Ql.Provider,{value:C,children:N.jsx(Jl,{role:"radiogroup",ref:h,className:Pe(y.root,a),...f,children:i})})});process.env.NODE_ENV!=="production"&&(Uh.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function vE(){return j.useContext(Ql)}function bE(e){return We("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const xE=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${he(i)}`],input:["input"]};return Ge(a,bE,t)},OE=xe(Wr)({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}}]}),EE=xe("input",{shouldForwardProp:Nt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zl=j.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:l,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:d,id:y,inputProps:m,inputRef:b,name:h,onBlur:v,onChange:C,onFocus:E,readOnly:S,required:T=!1,tabIndex:w,type:A,value:M,...O}=t,[g,p]=qr({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),x=dr(),R=G=>{E&&E(G),x&&x.onFocus&&x.onFocus(G)},P=G=>{v&&v(G),x&&x.onBlur&&x.onBlur(G)},_=G=>{if(G.nativeEvent.defaultPrevented)return;const B=G.target.checked;p(B),C&&C(G,B)};let k=c;x&&typeof k>"u"&&(k=x.disabled);const D=A==="checkbox"||A==="radio",W={...t,checked:g,disabled:k,disableFocusRipple:u,edge:f},Z=xE(W);return N.jsxs(OE,{component:"span",className:Pe(Z.root,l),centerRipple:!0,focusRipple:!u,disabled:k,tabIndex:null,role:void 0,onFocus:R,onBlur:P,ownerState:W,ref:r,...O,children:[N.jsx(EE,{autoFocus:n,checked:i,defaultChecked:s,className:Z.input,disabled:k,id:D?y:void 0,name:h,onChange:_,readOnly:S,ref:b,required:T,ownerState:W,tabIndex:w,type:A,...A==="checkbox"&&M===void 0?{}:{value:M},...m}),g?a:d]})});process.env.NODE_ENV!=="production"&&(Zl.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:Dt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const CE=_t(N.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"),SE=_t(N.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"),TE=xe("span",{shouldForwardProp:Nt})({position:"relative",display:"flex"}),wE=xe(CE)({transform:"scale(1)"}),RE=xe(SE)(Ke(({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 ec(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return N.jsxs(TE,{className:r.root,ownerState:i,children:[N.jsx(wE,{fontSize:n,className:r.background,ownerState:i}),N.jsx(RE,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(ec.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function PE(e){return We("MuiRadio",e)}const Wh=qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_E=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...t,...Ge(i,PE,t)}},IE=xe(Zl,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${he(r.size)}`],t[`color${he(r.color)}`]]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Wh.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})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).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})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Wh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function kE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Hh=N.jsx(ec,{checked:!0}),Gh=N.jsx(ec,{}),Kh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=Hh,color:l="primary",icon:s=Gh,name:c,onChange:u,size:f="medium",className:d,disabled:y,disableRipple:m=!1,...b}=n,h=dr();let v=y;h&&typeof v>"u"&&(v=h.disabled),v??(v=!1);const C={...n,disabled:v,disableRipple:m,color:l,size:f},E=_E(C),S=vE();let T=i;const w=Ol(u,S&&S.onChange);let A=c;return S&&(typeof T>"u"&&(T=kE(S.value,n.value)),typeof A>"u"&&(A=S.name)),N.jsx(IE,{type:"radio",icon:j.cloneElement(s,{fontSize:Gh.props.fontSize??f}),checkedIcon:j.cloneElement(a,{fontSize:Hh.props.fontSize??f}),disabled:v,ownerState:C,classes:E,name:A,checked:T,onChange:w,ref:r,className:Pe(E.root,d),...b})});process.env.NODE_ENV!=="production"&&(Kh.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:Dt,name:o.string,onChange:o.func,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]),value:o.any});const Yh="Radios",ii={formControl:`${Yh}-formControl`,group:`${Yh}-group`},jE=jo(an)(({theme:e})=>({[`&.${ii.formControl}`]:{marginTop:e.spacing(1)},[`& .${ii.group}`]:{margin:e.spacing(1,0)}}));class AE extends we.Component{constructor(){super(...arguments);Tt(this,"renderItems",r=>{const{localization:{getLocalizedString:n}}=this.props;return r.titleMap.map((i,a)=>N.jsx(Xl,{control:N.jsx(Kh,{}),label:i.name&&n(i.name),value:i.value,disabled:r.readonly},a))})}render(){const{form:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return N.jsxs(jE,{component:"fieldset",className:ii.formControl,...r.otherProps,children:[N.jsx(Nr,{component:"legend",required:r.required,children:r.title&&a(r.title)}),N.jsx(Uh,{value:n,name:r.title,onChange:i,className:ii.group,children:this.renderItems(r)})]})}}const NE=jt(AE),$E=jt(e=>{const{value:t,localization:{getLocalizedDate:r},form:n,type:i}=e;return N.jsx(Hn,{...e,form:{...n,type:i},value:r(t),otherProps:{InputLabelProps:{shrink:!0}},...n.otherProps})},{type:"date"});class ME extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n,c=new Date().toISOString().substring(0,16);a(l,r,n,i||c)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return N.jsx(ti,{type:"datetime-local",label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...t.otherProps})}}const DE=jt(ME),LE=_t(N.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"),FE=_t(N.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"),BE=_t(N.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 qE(e){return We("MuiCheckbox",e)}const tc=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zE=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(i)}`]},l=Ge(a,qE,t);return{...t,...l}},VE=xe(Zl,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${he(r.size)}`],r.color!=="default"&&t[`color${he(r.color)}`]]}})(Ke(({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})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($t()).map(([t])=>({props:{color:t},style:{[`&.${tc.checked}, &.${tc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${tc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),UE=N.jsx(FE,{}),WE=N.jsx(LE,{}),HE=N.jsx(BE,{}),Xh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=UE,color:a="primary",icon:l=WE,indeterminate:s=!1,indeterminateIcon:c=HE,inputProps:u,size:f="medium",disableRipple:d=!1,className:y,...m}=n,b=s?c:l,h=s?c:i,v={...n,disableRipple:d,color:a,indeterminate:s,size:f},C=zE(v);return N.jsx(VE,{type:"checkbox",inputProps:{"data-indeterminate":s,...u},icon:j.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:j.cloneElement(h,{fontSize:h.props.fontSize??f}),ownerState:v,ref:r,className:Pe(C.root,y),disableRipple:d,...m,classes:C})});process.env.NODE_ENV!=="production"&&(Xh.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,inputRef:Dt,onChange:o.func,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]),value:o.any});function GE(e){const{model:t,form:r,value:n,setDefault:i,localization:{getLocalizedString:a},onChangeValidate:l}=e,{key:s}=r;return i(s,t,r,n),N.jsx(Jl,{row:!0,children:N.jsx(Xl,{className:r.className,label:r.title&&a(r.title),control:N.jsx(Xh,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:n||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const KE=jt(GE),YE=({form:{description:e,variant:t,align:r,color:n,noWrap:i,paragraph:a,otherProps:l}})=>N.jsx(ni,{variant:t,align:r,color:n,noWrap:i,paragraph:a,...l,children:e});function XE(e){return We("MuiButton",e)}const cn=qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","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"]),Jh=j.createContext({});process.env.NODE_ENV!=="production"&&(Jh.displayName="ButtonGroupContext");const Qh=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qh.displayName="ButtonGroupButtonContext");const JE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:l}=e,s={root:["root",a,`${a}${he(t)}`,`size${he(i)}`,`${a}Size${he(i)}`,`color${he(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(i)}`],endIcon:["icon","endIcon",`iconSize${he(i)}`]},c=Ge(s,XE,l);return{...l,...c}},Zh=[{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}}}],QE=xe(Wr,{shouldForwardProp:e=>Nt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${he(r.color)}`],t[`size${he(r.size)}`],t[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Ke(({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"},[`&.${cn.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]},[`&.${cn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${cn.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)",[`&.${cn.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.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Qe(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.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].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})`:Qe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(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"},[`&.${cn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),ZE=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Zh]}),eC=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Zh]}),em=j.forwardRef(function(t,r){const n=j.useContext(Jh),i=j.useContext(Qh),a=Ao(n,t),l=Je({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:f,disabled:d=!1,disableElevation:y=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:h,fullWidth:v=!1,size:C="medium",startIcon:E,type:S,variant:T="text",...w}=l,A={...l,color:c,component:u,disabled:d,disableElevation:y,disableFocusRipple:m,fullWidth:v,size:C,type:S,variant:T},M=JE(A),O=E&&N.jsx(ZE,{className:M.startIcon,ownerState:A,children:E}),g=b&&N.jsx(eC,{className:M.endIcon,ownerState:A,children:b}),p=i||"";return N.jsxs(QE,{ownerState:A,className:Pe(n.className,M.root,f,p),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:Pe(M.focusVisible,h),ref:r,type:S,...w,classes:M,children:[O,s,g]})});process.env.NODE_ENV!=="production"&&(em.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,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 tC(e){return We("MuiCard",e)}qe("MuiCard",["root"]);const rC=e=>{const{classes:t}=e;return Ge({root:["root"]},tC,t)},nC=xe(Vn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),tm=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=rC(s);return N.jsx(nC,{className:Pe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(tm.propTypes={children:o.node,classes:o.object,className:o.string,raised:ur(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])});function oC(e){return We("MuiIconButton",e)}const iC=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),aC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,l={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,i&&`edge${he(i)}`,`size${he(a)}`]};return Ge(l,oC,t)},sC=xe(Wr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],r.edge&&t[`edge${he(r.edge)}`],t[`size${he(r.size)}`]]}})(Ke(({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})`:Qe(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}}]})),Ke(({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.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe((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)}}],[`&.${iC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),ai=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium",...d}=n,y={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,size:f},m=aC(y);return N.jsx(sC,{className:Pe(m.root,l),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,...d,ownerState:y,children:a})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:ur(o.node,e=>j.Children.toArray(e.children).some(r=>j.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(`
209
- `)):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]),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 lC=_t(N.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"),Xn="ArrayComponent",gr={arrayItem:`${Xn}-arrayItem`,deleteItemButton:`${Xn}-deleteItemButton`,addButton:`${Xn}-addButton`,elementsContainer:`${Xn}-elementsContainer`,title:`${Xn}-title`},cC=jo("div")(({theme:e})=>({[`& .${gr.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${gr.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${gr.addButton}`]:{marginLeft:e.spacing()},[`& .${gr.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${gr.title}`]:{margin:"auto 0"}})),Ft=class Ft extends we.Component{constructor(r){super(r);Tt(this,"SEQUENCE",1);Tt(this,"onAppend",()=>{const{form:r,options:n,onChangeValidate:i}=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={},(!n||n.setSchemaDefaults!==!1)&&(l=typeof c.default<"u"?c.default:l,l&&Mt.traverseSchema(c,(u,f)=>{typeof u.default<"u"&&Mt.selectOrSet(f,l,u.default)}))):(c.type&&c.type.indexOf("array")!==-1&&(l=[]),(!n||n.setSchemaDefaults!==!1)&&(l=c.default||l))}const s=a;Ft.assignItemId(l),s.push(l),this.setState({model:s}),i(a)});Tt(this,"onDelete",r=>()=>{const{model:n}=this.state,{onChangeValidate:i}=this.props,a=n;a.splice(r,1),this.setState({model:a}),i(n)});Tt(this,"getAddButton",()=>{const{form:r}=this.props,n=r.AddButton||(i=>N.jsx(em,{className:gr.addButton,variant:"contained",color:"primary",...i}));return N.jsx(n,{onClick:this.onAppend,children:r.add||"Add"})});const{form:n,model:i}=this.props;this.state={model:Mt.selectOrSet(n.key,i)||[]}}static assignItemId(r){let n=null;return r&&typeof r=="object"&&Array.isArray(r)?n=[...r]:r&&typeof r=="object"&&!r[Ft.ITEM_ID]&&(n={...r}),n?(Object.defineProperty(n,Ft.ITEM_ID,{enumerable:!1,writable:!0}),Ft.SEQUENCE+=1,n[Ft.ITEM_ID]=Ft.SEQUENCE,n):r}static getDerivedStateFromProps(r,n){const{form:i}=r,a=i.key;if(r.form&&a===n.formKey&&r.model&&r.model[a]===n.model)return null;const l=Mt.selectOrSet(a,r.model)||[];return{formKey:a,model:l.map(Ft.assignItemId)}}componentDidMount(){const{form:r,model:n}=this.props;r.startEmpty!==!0&&n.length===0&&this.onAppend()}render(){const{form:r,builder:n,model:i,mapper:a,onChange:l,localization:{getLocalizedString:s}}=this.props,{model:c}=this.state,u=[];for(let f=0;f<c.length;f+=1){const d=c[f],y=r.items.map((m,b)=>{const h=Ft.copyWithIndex(m,f);return n(h,i,b,a,l,n,{arrayIndex:f})});u.push(N.jsxs(tm,{className:gr.arrayItem,children:[N.jsx("div",{className:gr.elementsContainer,children:y}),N.jsx(ai,{onClick:this.onDelete(f),className:gr.deleteItemButton,size:"large",children:N.jsx(lC,{fontSize:"small"})})]},d&&d[Ft.ITEM_ID]||f))}return N.jsxs(cC,{children:[N.jsxs("div",{style:{display:"flex"},children:[N.jsx(Nr,{required:r.required,className:gr.title,children:r.title&&s(r.title)}),this.getAddButton()]}),N.jsx("div",{children:u})]})}};Tt(Ft,"setIndex",r=>n=>{n.key&&(n.key[n.key.indexOf("")]=r)}),Tt(Ft,"copyWithIndex",(r,n)=>{const i=Ys(r);return i.arrayIndex=n,Mt.traverseForm(i,Ft.setIndex(n)),i}),Tt(Ft,"ITEM_ID",Symbol("_SCHEMAFORM_ITEM_ID"));let rc=Ft;const rm=jt(rc);var nc={exports:{}};/*!
208
+ `,Lh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...s}=n,[c,u]=j.useState([]),f=j.useRef(0),d=j.useRef(null);j.useEffect(()=>{d.current&&(d.current(),d.current=null)},[c]);const y=j.useRef(!1),m=Td(),b=j.useRef(null),h=j.useRef(null),v=j.useCallback(T=>{const{pulsate:w,rippleX:A,rippleY:M,rippleSize:O,cb:g}=T;u(p=>[...p,N.jsx(BO,{classes:{ripple:Pe(a.ripple,rr.ripple),rippleVisible:Pe(a.rippleVisible,rr.rippleVisible),ripplePulsate:Pe(a.ripplePulsate,rr.ripplePulsate),child:Pe(a.child,rr.child),childLeaving:Pe(a.childLeaving,rr.childLeaving),childPulsate:Pe(a.childPulsate,rr.childPulsate)},timeout:Kl,pulsate:w,rippleX:A,rippleY:M,rippleSize:O},f.current)]),f.current+=1,d.current=g},[a]),C=j.useCallback((T={},w={},A=()=>{})=>{const{pulsate:M=!1,center:O=i||w.pulsate,fakeElement:g=!1}=w;if((T==null?void 0:T.type)==="mousedown"&&y.current){y.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(y.current=!0);const p=g?null:h.current,x=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,P,_;if(O||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)R=Math.round(x.width/2),P=Math.round(x.height/2);else{const{clientX:k,clientY:D}=T.touches&&T.touches.length>0?T.touches[0]:T;R=Math.round(k-x.left),P=Math.round(D-x.top)}if(O)_=Math.sqrt((2*x.width**2+x.height**2)/3),_%2===0&&(_+=1);else{const k=Math.max(Math.abs((p?p.clientWidth:0)-R),R)*2+2,D=Math.max(Math.abs((p?p.clientHeight:0)-P),P)*2+2;_=Math.sqrt(k**2+D**2)}T!=null&&T.touches?b.current===null&&(b.current=()=>{v({pulsate:M,rippleX:R,rippleY:P,rippleSize:_,cb:A})},m.start($O,()=>{b.current&&(b.current(),b.current=null)})):v({pulsate:M,rippleX:R,rippleY:P,rippleSize:_,cb:A})},[i,v,m]),E=j.useCallback(()=>{C({},{pulsate:!0})},[C]),S=j.useCallback((T,w)=>{if(m.clear(),(T==null?void 0:T.type)==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{S(T,w)});return}b.current=null,u(A=>A.length>0?A.slice(1):A),d.current=w},[m]);return j.useImperativeHandle(r,()=>({pulsate:E,start:C,stop:S}),[E,C,S]),N.jsx(FO,{className:Pe(rr.root,a.root,l),ref:h,...s,children:N.jsx(Vl,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Lh.propTypes={center:o.bool,classes:o.object,className:o.string});function qO(e){return We("MuiButtonBase",e)}const VO=qe("MuiButtonBase",["root","disabled","focusVisible"]),zO=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,l=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},qO,i);return r&&n&&(l.root+=` ${n}`),l},UO=xe("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"},[`&.${VO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wr=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:s,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:y=!1,focusVisibleClassName:m,LinkComponent:b="a",onBlur:h,onClick:v,onContextMenu:C,onDragLeave:E,onFocus:S,onFocusVisible:T,onKeyDown:w,onKeyUp:A,onMouseDown:M,onMouseLeave:O,onMouseUp:g,onTouchEnd:p,onTouchMove:x,onTouchStart:R,tabIndex:P=0,TouchRippleProps:_,touchRippleRef:k,type:D,...W}=n,Z=j.useRef(null),G=AO(),B=Ot(G.ref,k),[Y,ae]=j.useState(!1);u&&Y&&ae(!1),j.useImperativeHandle(i,()=>({focusVisible:()=>{ae(!0),Z.current.focus()}}),[]);const oe=G.shouldMount&&!f&&!u;j.useEffect(()=>{Y&&y&&!f&&G.pulsate()},[f,y,Y,G]);const ne=Tr(G,"start",M,d),ue=Tr(G,"stop",C,d),ce=Tr(G,"stop",E,d),ye=Tr(G,"stop",g,d),se=Tr(G,"stop",be=>{Y&&be.preventDefault(),O&&O(be)},d),le=Tr(G,"start",R,d),te=Tr(G,"stop",p,d),ve=Tr(G,"stop",x,d),X=Tr(G,"stop",be=>{wd(be.target)||ae(!1),h&&h(be)},!1),Re=pr(be=>{Z.current||(Z.current=be.currentTarget),wd(be.target)&&(ae(!0),T&&T(be)),S&&S(be)}),V=()=>{const be=Z.current;return c&&c!=="button"&&!(be.tagName==="A"&&be.href)},pe=pr(be=>{y&&!be.repeat&&Y&&be.key===" "&&G.stop(be,()=>{G.start(be)}),be.target===be.currentTarget&&V()&&be.key===" "&&be.preventDefault(),w&&w(be),be.target===be.currentTarget&&V()&&be.key==="Enter"&&!u&&(be.preventDefault(),v&&v(be))}),de=pr(be=>{y&&be.key===" "&&Y&&!be.defaultPrevented&&G.stop(be,()=>{G.pulsate(be)}),A&&A(be),v&&be.target===be.currentTarget&&V()&&be.key===" "&&!be.defaultPrevented&&v(be)});let Ce=c;Ce==="button"&&(W.href||W.to)&&(Ce=b);const Te={};Ce==="button"?(Te.type=D===void 0?"button":D,Te.disabled=u):(!W.href&&!W.to&&(Te.role="button"),u&&(Te["aria-disabled"]=u));const $e=Ot(r,Z),He={...n,centerRipple:a,component:c,disabled:u,disableRipple:f,disableTouchRipple:d,focusRipple:y,tabIndex:P,focusVisible:Y},Ne=zO(He);return N.jsxs(UO,{as:Ce,className:Pe(Ne.root,s),ownerState:He,onBlur:X,onClick:v,onContextMenu:ue,onFocus:Re,onKeyDown:pe,onKeyUp:de,onMouseDown:ne,onMouseLeave:se,onMouseUp:ye,onDragLeave:ce,onTouchEnd:te,onTouchMove:ve,onTouchStart:le,ref:$e,tabIndex:u?-1:P,type:D,...Te,...W,children:[l,oe?N.jsx(Lh,{ref:B,center:a,..._}):null]})});function Tr(e,t,r,n=!1){return pr(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Wr.propTypes={action:Dt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:xl,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName: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])});const Fh=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bh=qe("MuiListItemIcon",["root","alignItemsFlexStart"]);function WO(e){return We("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const HO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},GO=R0(),KO=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:l}=e,s={root:["root",a,e.align!=="inherit"&&`align${he(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ge(s,WO,l)},YO=xe("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${he(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(Mt()).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${he(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}}]}})),qh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oi=j.forwardRef(function(t,r){const{color:n,...i}=Je({props:t,name:"MuiTypography"}),a=!HO[n],l=GO({...i,...a&&{color:n}}),{align:s="inherit",className:c,component:u,gutterBottom:f=!1,noWrap:d=!1,paragraph:y=!1,variant:m="body1",variantMapping:b=qh,...h}=l,v={...l,align:s,color:n,className:c,component:u,gutterBottom:f,noWrap:d,paragraph:y,variant:m,variantMapping:b},C=u||(y?"p":b[m]||qh[m])||"span",E=KO(v);return N.jsx(YO,{as:C,ref:r,className:Pe(E.root,c),...h,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...h.style}})});process.env.NODE_ENV!=="production"&&(oi.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 Vh=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function XO(e){return We("MuiMenuItem",e)}const Gn=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),JO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},QO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:l}=e,c=Ge({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},XO,l);return{...l,...c}},ZO=xe(Wr,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:JO})(Ke(({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"}},[`&.${Gn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(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})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fh.inset}`]:{marginLeft:52},[`& .${Vh.root}`]:{marginTop:0,marginBottom:0},[`& .${Vh.inset}`]:{paddingLeft:36},[`& .${Bh.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,[`& .${Bh.root} svg`]:{fontSize:"1.25rem"}}}]}))),ii=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:d,className:y,...m}=n,b=j.useContext(Yo),h=j.useMemo(()=>({dense:l||b.dense||!1,disableGutters:c}),[b.dense,l,c]),v=j.useRef(null);cr(()=>{i&&(v.current?v.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 C={...n,dense:h.dense,divider:s,disableGutters:c},E=QO(n),S=Ot(v,r);let T;return n.disabled||(T=d!==void 0?d:-1),N.jsx(Yo.Provider,{value:h,children:N.jsx(ZO,{ref:S,role:f,tabIndex:T,component:a,focusVisibleClassName:Pe(E.focusVisible,u),className:Pe(E.root,y),...m,ownerState:C,classes:E})})});process.env.NODE_ENV!=="production"&&(ii.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 eE(e){const{model:t,form:r,error:n,setDefault:i,onChange:a,onChangeValidate:l,localization:{getLocalizedString:s},form:{key:c,schema:{isObject:u,enum:f,findFn:d,displayFn:y,noLocalization:m}}}=e;let b=r&&r.selectProps&&r.selectProps.multiple?[]:"";e.form.default?b=e.form.default:e.form.schema&&e.form.schema.default&&(b=e.form.schema.default);const[h,v]=we.useState(jt.getValueFromModel(t,r.key)||b);we.useEffect(()=>{i(c,t,r,h)},[]);const C=T=>{const w=T.target.value;if(v(w),u){const A=f.find(M=>d?d(M,w):M===w);a(c,A)}else l(T)},E=T=>y?y(T):m?T.name:s(T.name);let S=[];return u?S=r.schema.enum.map((T,w)=>N.jsx(ii,{value:T,children:E(T)},w)):S=r.titleMap.map((T,w)=>N.jsx(ii,{value:T.value,children:E(T)},w)),N.jsxs(an,{fullWidth:!0,error:!!n,...r.otherProps,children:[N.jsx(Go,{required:r.required,...r.labelProps,children:r.title&&s(r.title)}),N.jsx(Wn,{value:h,placeholder:r.placeholder&&s(r.placeholder),disabled:r.readonly,onChange:C,...r.selectProps,children:S}),N.jsx(Ln,{...r.helperTextProps,children:(n||r.description)&&s(n||r.description)})]})}const tE=At(eE),rE=_t(N.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 nE(e){return We("MuiChip",e)}const ze=qe("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"]),oE=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${he(n)}`,`color${he(i)}`,s&&"clickable",s&&`clickableColor${he(i)}`,l&&"deletable",l&&`deletableColor${he(i)}`,`${c}${he(i)}`],label:["label",`label${he(n)}`],avatar:["avatar",`avatar${he(n)}`,`avatarColor${he(i)}`],icon:["icon",`icon${he(n)}`,`iconColor${he(a)}`],deleteIcon:["deleteIcon",`deleteIcon${he(n)}`,`deleteIconColor${he(i)}`,`deleteIcon${he(c)}Color${he(i)}`]};return Ge(u,nE,t)},iE=xe("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[{[`& .${ze.avatar}`]:t.avatar},{[`& .${ze.avatar}`]:t[`avatar${he(s)}`]},{[`& .${ze.avatar}`]:t[`avatarColor${he(n)}`]},{[`& .${ze.icon}`]:t.icon},{[`& .${ze.icon}`]:t[`icon${he(s)}`]},{[`& .${ze.icon}`]:t[`iconColor${he(i)}`]},{[`& .${ze.deleteIcon}`]:t.deleteIcon},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${he(s)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIconColor${he(n)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${he(c)}Color${he(n)}`]},t.root,t[`size${he(s)}`],t[`color${he(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${he(n)})`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${he(n)}`],t[c],t[`${c}${he(n)}`]]}})(Ke(({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",[`&.${ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qe(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)`:Qe(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Mt(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:Qe(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Mt(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${ze.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}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Mt(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${ze.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]}`,[`&.${ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ze.avatar}`]:{marginLeft:4},[`& .${ze.avatarSmall}`]:{marginLeft:2},[`& .${ze.icon}`]:{marginLeft:4},[`& .${ze.iconSmall}`]:{marginLeft:2},[`& .${ze.deleteIcon}`]:{marginRight:5},[`& .${ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Mt()).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)`:Qe(e.palette[r].main,.7)}`,[`&.${ze.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qe(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${ze.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Qe(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),aE=xe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${he(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 zh(e){return e.key==="Backspace"||e.key==="Delete"}const Yl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:l,color:s="default",component:c,deleteIcon:u,disabled:f=!1,icon:d,label:y,onClick:m,onDelete:b,onKeyDown:h,onKeyUp:v,size:C="medium",variant:E="filled",tabIndex:S,skipFocusWhenDisabled:T=!1,...w}=n,A=j.useRef(null),M=Ot(A,r),O=G=>{G.stopPropagation(),b&&b(G)},g=G=>{G.currentTarget===G.target&&zh(G)&&G.preventDefault(),h&&h(G)},p=G=>{G.currentTarget===G.target&&b&&zh(G)&&b(G),v&&v(G)},x=l!==!1&&m?!0:l,R=x||b?Wr:c||"div",P={...n,component:R,disabled:f,size:C,color:s,iconColor:j.isValidElement(d)&&d.props.color||s,onDelete:!!b,clickable:x,variant:E},_=oE(P),k=R===Wr?{component:c||"div",focusVisibleClassName:_.focusVisible,...b&&{disableRipple:!0}}:{};let D=null;b&&(D=u&&j.isValidElement(u)?j.cloneElement(u,{className:Pe(u.props.className,_.deleteIcon),onClick:O}):N.jsx(rE,{className:Pe(_.deleteIcon),onClick:O}));let W=null;i&&j.isValidElement(i)&&(W=j.cloneElement(i,{className:Pe(_.avatar,i.props.className)}));let Z=null;return d&&j.isValidElement(d)&&(Z=j.cloneElement(d,{className:Pe(_.icon,d.props.className)})),process.env.NODE_ENV!=="production"&&W&&Z&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),N.jsxs(iE,{as:R,className:Pe(_.root,a),disabled:x&&f?!0:void 0,onClick:m,onKeyDown:g,onKeyUp:p,ref:M,tabIndex:T&&f?-1:S,ownerState:P,...k,...w,children:[W||Z,N.jsx(aE,{className:Pe(_.label),ownerState:P,children:y}),D]})});process.env.NODE_ENV!=="production"&&(Yl.propTypes={avatar:o.element,children:jb,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,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 Kn="MultiSelect",mr={root:`${Kn}-root`,chips:`${Kn}-chips`,chip:`${Kn}-chip`,menuItem:`${Kn}-menuItem`,selectedMenuItem:`${Kn}-selectedMenuItem`},sE=Ao("div")(({theme:e})=>({[`&.${mr.root}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${mr.chip}`]:{margin:e.spacing(.25)},[`& .${mr.menuItem}`]:{fontWeight:e.typography.fontWeightRegular},[`& .${mr.selectedMenuItem}`]:{fontWeight:e.typography.fontWeightMedium}})),lE={PaperProps:{style:{maxHeight:48*4.5+8,width:250}}};class cE extends we.Component{constructor(r){super(r);Tt(this,"onSelected",r=>{const{onChangeValidate:n}=this.props,i=r.target.value;this.setState({currentValue:i}),n(i)});const{model:n,form:i}=this.props;this.state={currentValue:jt.getValueFromModel(n,i.key)||[]}}static getDerivedStateFromProps(r){const{model:n,form:i}=r;return n&&i.key?{currentValue:jt.getValueFromModel(n,i.key)||[]}:null}render(){const{form:r,localization:{getLocalizedString:n}}=this.props,{currentValue:i}=this.state,a=jt.getTitleByValue.bind(this,r.titleMap),l=r.titleMap.map(s=>N.jsx(ii,{value:s.value,className:i.indexOf(s.value)===-1?mr.menuItem:mr.selectedMenuItem,children:s.name&&n(s.name)},s.value));return N.jsx(sE,{className:mr.root,children:N.jsxs(an,{fullWidth:!0,...r.otherProps,children:[N.jsx(Go,{required:r.required,children:r.title&&n(r.title)}),N.jsx(Wn,{multiple:!0,value:i||"",placeholder:r.placeholder&&n(r.placeholder),disabled:r.readonly,onChange:this.onSelected,MenuProps:lE,renderValue:s=>N.jsx("div",{className:mr.chips,children:s.map(c=>N.jsx(Yl,{label:a(c)&&n(a(c)),className:mr.chip},c))}),children:l})]})})}}const uE=At(cE);function pE(e){return We("MuiFormControlLabel",e)}const Yn=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fE=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,l={root:["root",r&&"disabled",`labelPlacement${he(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ge(l,pE,t)},dE=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yn.label}`]:t.label},t.root,t[`labelPlacement${he(r.labelPlacement)}`]]}})(Ke(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Yn.disabled}`]:{cursor:"default"},[`& .${Yn.label}`]:{[`&.${Yn.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}}]}))),hE=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ke(({theme:e})=>({[`&.${Yn.error}`]:{color:(e.vars||e).palette.error.main}}))),Xl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:l={},control:s,disabled:c,disableTypography:u,inputRef:f,label:d,labelPlacement:y="end",name:m,onChange:b,required:h,slots:v={},slotProps:C={},value:E,...S}=n,T=dr(),w=c??s.props.disabled??(T==null?void 0:T.disabled),A=h??s.props.required,M={disabled:w,required:A};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof s.props[k]>"u"&&typeof n[k]<"u"&&(M[k]=n[k])});const O=jr({props:n,muiFormControl:T,states:["error"]}),g={...n,disabled:w,labelPlacement:y,required:A,error:O.error},p=fE(g),x={slots:v,slotProps:{...l,...C}},[R,P]=Lt("typography",{elementType:oi,externalForwardedProps:x,ownerState:g});let _=d;return _!=null&&_.type!==oi&&!u&&(_=N.jsx(R,{component:"span",...P,className:Pe(p.label,P==null?void 0:P.className),children:_})),N.jsxs(dE,{className:Pe(p.root,a),ownerState:g,ref:r,...S,children:[j.cloneElement(s,M),A?N.jsxs("div",{children:[_,N.jsxs(hE,{ownerState:g,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(Xl.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:Dt,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 mE(e){return We("MuiFormGroup",e)}qe("MuiFormGroup",["root","row","error"]);const gE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},mE,t)},yE=xe("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"}}]}),Jl=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...l}=n,s=dr(),c=jr({props:n,muiFormControl:s,states:["error"]}),u={...n,row:a,error:c.error},f=gE(u);return N.jsx(yE,{className:Pe(f.root,i),ownerState:u,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Jl.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 vE(e){return We("MuiRadioGroup",e)}qe("MuiRadioGroup",["root","row","error"]);const Ql=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ql.displayName="RadioGroupContext");const bE=e=>{const{classes:t,row:r,error:n}=e;return Ge({root:["root",r&&"row",n&&"error"]},vE,t)},Uh=j.forwardRef(function(t,r){const{actions:n,children:i,className:a,defaultValue:l,name:s,onChange:c,value:u,...f}=t,d=j.useRef(null),y=bE(t),[m,b]=qr({controlled:u,default:l,name:"RadioGroup"});j.useImperativeHandle(n,()=>({focus:()=>{let E=d.current.querySelector("input:not(:disabled):checked");E||(E=d.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const h=Ot(r,d),v=bo(s),C=j.useMemo(()=>({name:v,onChange(E){b(E.target.value),c&&c(E,E.target.value)},value:m}),[v,c,b,m]);return N.jsx(Ql.Provider,{value:C,children:N.jsx(Jl,{role:"radiogroup",ref:h,className:Pe(y.root,a),...f,children:i})})});process.env.NODE_ENV!=="production"&&(Uh.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});function xE(){return j.useContext(Ql)}function OE(e){return We("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const EE=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${he(i)}`],input:["input"]};return Ge(a,OE,t)},CE=xe(Wr)({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}}]}),SE=xe("input",{shouldForwardProp:$t})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zl=j.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:l,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:d,id:y,inputProps:m,inputRef:b,name:h,onBlur:v,onChange:C,onFocus:E,readOnly:S,required:T=!1,tabIndex:w,type:A,value:M,...O}=t,[g,p]=qr({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),x=dr(),R=G=>{E&&E(G),x&&x.onFocus&&x.onFocus(G)},P=G=>{v&&v(G),x&&x.onBlur&&x.onBlur(G)},_=G=>{if(G.nativeEvent.defaultPrevented)return;const B=G.target.checked;p(B),C&&C(G,B)};let k=c;x&&typeof k>"u"&&(k=x.disabled);const D=A==="checkbox"||A==="radio",W={...t,checked:g,disabled:k,disableFocusRipple:u,edge:f},Z=EE(W);return N.jsxs(CE,{component:"span",className:Pe(Z.root,l),centerRipple:!0,focusRipple:!u,disabled:k,tabIndex:null,role:void 0,onFocus:R,onBlur:P,ownerState:W,ref:r,...O,children:[N.jsx(SE,{autoFocus:n,checked:i,defaultChecked:s,className:Z.input,disabled:k,id:D?y:void 0,name:h,onChange:_,readOnly:S,ref:b,required:T,ownerState:W,tabIndex:w,type:A,...A==="checkbox"&&M===void 0?{}:{value:M},...m}),g?a:d]})});process.env.NODE_ENV!=="production"&&(Zl.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:Dt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const TE=_t(N.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"),wE=_t(N.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"),RE=xe("span",{shouldForwardProp:$t})({position:"relative",display:"flex"}),PE=xe(TE)({transform:"scale(1)"}),_E=xe(wE)(Ke(({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 ec(e){const{checked:t=!1,classes:r={},fontSize:n}=e,i={...e,checked:t};return N.jsxs(RE,{className:r.root,ownerState:i,children:[N.jsx(PE,{fontSize:n,className:r.background,ownerState:i}),N.jsx(_E,{fontSize:n,className:r.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(ec.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});function IE(e){return We("MuiRadio",e)}const Wh=qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),kE=e=>{const{classes:t,color:r,size:n}=e,i={root:["root",`color${he(r)}`,n!=="medium"&&`size${he(n)}`]};return{...t,...Ge(i,IE,t)}},jE=xe(Zl,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${he(r.size)}`],t[`color${he(r.color)}`]]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Wh.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})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Mt()).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})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Mt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Wh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function AE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Hh=N.jsx(ec,{checked:!0}),Gh=N.jsx(ec,{}),Kh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=Hh,color:l="primary",icon:s=Gh,name:c,onChange:u,size:f="medium",className:d,disabled:y,disableRipple:m=!1,...b}=n,h=dr();let v=y;h&&typeof v>"u"&&(v=h.disabled),v??(v=!1);const C={...n,disabled:v,disableRipple:m,color:l,size:f},E=kE(C),S=xE();let T=i;const w=Ol(u,S&&S.onChange);let A=c;return S&&(typeof T>"u"&&(T=AE(S.value,n.value)),typeof A>"u"&&(A=S.name)),N.jsx(jE,{type:"radio",icon:j.cloneElement(s,{fontSize:Gh.props.fontSize??f}),checkedIcon:j.cloneElement(a,{fontSize:Hh.props.fontSize??f}),disabled:v,ownerState:C,classes:E,name:A,checked:T,onChange:w,ref:r,className:Pe(E.root,d),...b})});process.env.NODE_ENV!=="production"&&(Kh.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:Dt,name:o.string,onChange:o.func,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]),value:o.any});const Yh="Radios",ai={formControl:`${Yh}-formControl`,group:`${Yh}-group`},NE=Ao(an)(({theme:e})=>({[`&.${ai.formControl}`]:{marginTop:e.spacing(1)},[`& .${ai.group}`]:{margin:e.spacing(1,0)}}));class $E extends we.Component{constructor(){super(...arguments);Tt(this,"renderItems",r=>{const{localization:{getLocalizedString:n}}=this.props;return r.titleMap.map((i,a)=>N.jsx(Xl,{control:N.jsx(Kh,{}),label:i.name&&n(i.name),value:i.value,disabled:r.readonly},a))})}render(){const{form:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return N.jsxs(NE,{component:"fieldset",className:ai.formControl,...r.otherProps,children:[N.jsx(Nr,{component:"legend",required:r.required,children:r.title&&a(r.title)}),N.jsx(Uh,{value:n,name:r.title,onChange:i,className:ai.group,children:this.renderItems(r)})]})}}const ME=At($E),DE=At(e=>{const{value:t,localization:{getLocalizedDate:r},form:n,type:i}=e;return N.jsx(Hn,{...e,form:{...n,type:i},value:r(t),otherProps:{InputLabelProps:{shrink:!0}},...n.otherProps})},{type:"date"});class LE extends we.Component{constructor(t){super(t);const{model:r,form:n,value:i,setDefault:a}=this.props,{key:l}=n,c=new Date().toISOString().substring(0,16);a(l,r,n,i||c)}render(){const{form:t,error:r,value:n,onChangeValidate:i,localization:{getLocalizedString:a}}=this.props;return N.jsx(ri,{type:"datetime-local",label:t.title&&a(t.title),placeholder:t.placeholder&&a(t.placeholder),helperText:(r||t.description)&&a(r||t.description),error:!!r,onChange:i,value:n||"",disabled:t.readonly,fullWidth:!0,required:t.required,style:t.style,...t.otherProps})}}const FE=At(LE),BE=_t(N.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"),qE=_t(N.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"),VE=_t(N.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 zE(e){return We("MuiCheckbox",e)}const tc=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),UE=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${he(n)}`,`size${he(i)}`]},l=Ge(a,zE,t);return{...t,...l}},WE=xe(Zl,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${he(r.size)}`],r.color!=="default"&&t[`color${he(r.color)}`]]}})(Ke(({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})`:Qe(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Mt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Mt()).map(([t])=>({props:{color:t},style:{[`&.${tc.checked}, &.${tc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${tc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),HE=N.jsx(qE,{}),GE=N.jsx(BE,{}),KE=N.jsx(VE,{}),Xh=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=HE,color:a="primary",icon:l=GE,indeterminate:s=!1,indeterminateIcon:c=KE,inputProps:u,size:f="medium",disableRipple:d=!1,className:y,...m}=n,b=s?c:l,h=s?c:i,v={...n,disableRipple:d,color:a,indeterminate:s,size:f},C=UE(v);return N.jsx(WE,{type:"checkbox",inputProps:{"data-indeterminate":s,...u},icon:j.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:j.cloneElement(h,{fontSize:h.props.fontSize??f}),ownerState:v,ref:r,className:Pe(C.root,y),disableRipple:d,...m,classes:C})});process.env.NODE_ENV!=="production"&&(Xh.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,inputRef:Dt,onChange:o.func,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]),value:o.any});function YE(e){const{model:t,form:r,value:n,setDefault:i,localization:{getLocalizedString:a},onChangeValidate:l}=e,{key:s}=r;return i(s,t,r,n),N.jsx(Jl,{row:!0,children:N.jsx(Xl,{className:r.className,label:r.title&&a(r.title),control:N.jsx(Xh,{name:r.key.slice(-1)[0],value:r.key.slice(-1)[0],checked:n||!1,disabled:r.readonly,onChange:l}),...r.otherProps})})}const XE=At(YE),JE=({form:{description:e,variant:t,align:r,color:n,noWrap:i,paragraph:a,otherProps:l}})=>N.jsx(oi,{variant:t,align:r,color:n,noWrap:i,paragraph:a,...l,children:e});function QE(e){return We("MuiButton",e)}const cn=qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","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"]),Jh=j.createContext({});process.env.NODE_ENV!=="production"&&(Jh.displayName="ButtonGroupContext");const Qh=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qh.displayName="ButtonGroupButtonContext");const ZE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:l}=e,s={root:["root",a,`${a}${he(t)}`,`size${he(i)}`,`${a}Size${he(i)}`,`color${he(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${he(i)}`],endIcon:["icon","endIcon",`iconSize${he(i)}`]},c=Ge(s,QE,l);return{...l,...c}},Zh=[{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}}}],eC=xe(Wr,{shouldForwardProp:e=>$t(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${he(r.color)}`],t[`size${he(r.size)}`],t[`${r.variant}Size${he(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Ke(({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"},[`&.${cn.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]},[`&.${cn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${cn.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)",[`&.${cn.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(Mt()).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.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Qe(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.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(e.palette[n].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})`:Qe(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe(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"},[`&.${cn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${cn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),tC=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Zh]}),rC=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${he(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Zh]}),em=j.forwardRef(function(t,r){const n=j.useContext(Jh),i=j.useContext(Qh),a=No(n,t),l=Je({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:u="button",className:f,disabled:d=!1,disableElevation:y=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:h,fullWidth:v=!1,size:C="medium",startIcon:E,type:S,variant:T="text",...w}=l,A={...l,color:c,component:u,disabled:d,disableElevation:y,disableFocusRipple:m,fullWidth:v,size:C,type:S,variant:T},M=ZE(A),O=E&&N.jsx(tC,{className:M.startIcon,ownerState:A,children:E}),g=b&&N.jsx(rC,{className:M.endIcon,ownerState:A,children:b}),p=i||"";return N.jsxs(eC,{ownerState:A,className:Pe(n.className,M.root,f,p),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:Pe(M.focusVisible,h),ref:r,type:S,...w,classes:M,children:[O,s,g]})});process.env.NODE_ENV!=="production"&&(em.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,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 nC(e){return We("MuiCard",e)}qe("MuiCard",["root"]);const oC=e=>{const{classes:t}=e;return Ge({root:["root"]},nC,t)},iC=xe(zn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),tm=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...l}=n,s={...n,raised:a},c=oC(s);return N.jsx(iC,{className:Pe(c.root,i),elevation:a?8:void 0,ref:r,ownerState:s,...l})});process.env.NODE_ENV!=="production"&&(tm.propTypes={children:o.node,classes:o.object,className:o.string,raised:ur(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])});function aC(e){return We("MuiIconButton",e)}const sC=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),lC=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,l={root:["root",r&&"disabled",n!=="default"&&`color${he(n)}`,i&&`edge${he(i)}`,`size${he(a)}`]};return Ge(l,aC,t)},cC=xe(Wr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],r.edge&&t[`edge${he(r.edge)}`],t[`size${he(r.size)}`]]}})(Ke(({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})`:Qe(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}}]})),Ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Mt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Mt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qe((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)}}],[`&.${sC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),si=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium",...d}=n,y={...n,edge:i,color:s,disabled:c,disableFocusRipple:u,size:f},m=lC(y);return N.jsx(cC,{className:Pe(m.root,l),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,...d,ownerState:y,children:a})});process.env.NODE_ENV!=="production"&&(si.propTypes={children:ur(o.node,e=>j.Children.toArray(e.children).some(r=>j.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(`
209
+ `)):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]),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 uC=_t(N.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"),Xn="ArrayComponent",gr={arrayItem:`${Xn}-arrayItem`,deleteItemButton:`${Xn}-deleteItemButton`,addButton:`${Xn}-addButton`,elementsContainer:`${Xn}-elementsContainer`,title:`${Xn}-title`},pC=Ao("div")(({theme:e})=>({[`& .${gr.arrayItem}`]:{position:"relative",padding:e.spacing(),marginTop:e.spacing(),display:"flex"},[`& .${gr.deleteItemButton}`]:{margin:[[e.spacing(-1),e.spacing(-1),"auto","auto"]]},[`& .${gr.addButton}`]:{marginLeft:e.spacing()},[`& .${gr.elementsContainer}`]:{display:"flex",flexWrap:"wrap"},[`& .${gr.title}`]:{margin:"auto 0"}})),Ft=class Ft extends we.Component{constructor(r){super(r);Tt(this,"SEQUENCE",1);Tt(this,"onAppend",()=>{const{form:r,options:n,onChangeValidate:i}=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={},(!n||n.setSchemaDefaults!==!1)&&(l=typeof c.default<"u"?c.default:l,l&&jt.traverseSchema(c,(u,f)=>{typeof u.default<"u"&&jt.selectOrSet(f,l,u.default)}))):(c.type&&c.type.indexOf("array")!==-1&&(l=[]),(!n||n.setSchemaDefaults!==!1)&&(l=c.default||l))}const s=a;Ft.assignItemId(l),s.push(l),this.setState({model:s}),i(a)});Tt(this,"onDelete",r=>()=>{const{model:n}=this.state,{onChangeValidate:i}=this.props,a=n;a.splice(r,1),this.setState({model:a}),i(n)});Tt(this,"getAddButton",()=>{const{form:r}=this.props,n=r.AddButton||(i=>N.jsx(em,{className:gr.addButton,variant:"contained",color:"primary",...i}));return N.jsx(n,{onClick:this.onAppend,children:r.add||"Add"})});const{form:n,model:i}=this.props;this.state={model:jt.selectOrSet(n.key,i)||[]}}static assignItemId(r){let n=null;return r&&typeof r=="object"&&Array.isArray(r)?n=[...r]:r&&typeof r=="object"&&!r[Ft.ITEM_ID]&&(n={...r}),n?(Object.defineProperty(n,Ft.ITEM_ID,{enumerable:!1,writable:!0}),Ft.SEQUENCE+=1,n[Ft.ITEM_ID]=Ft.SEQUENCE,n):r}static getDerivedStateFromProps(r,n){const{form:i}=r,a=i.key;if(r.form&&a===n.formKey&&r.model&&r.model[a]===n.model)return null;const l=jt.selectOrSet(a,r.model)||[];return{formKey:a,model:l.map(Ft.assignItemId)}}componentDidMount(){const{form:r,model:n}=this.props;r.startEmpty!==!0&&n.length===0&&this.onAppend()}render(){const{form:r,builder:n,model:i,mapper:a,onChange:l,localization:{getLocalizedString:s}}=this.props,{model:c}=this.state,u=[];for(let f=0;f<c.length;f+=1){const d=c[f],y=r.items.map((m,b)=>{const h=Ft.copyWithIndex(m,f);return n(h,i,b,a,l,n,{arrayIndex:f})});u.push(N.jsxs(tm,{className:gr.arrayItem,children:[N.jsx("div",{className:gr.elementsContainer,children:y}),N.jsx(si,{onClick:this.onDelete(f),className:gr.deleteItemButton,size:"large",children:N.jsx(uC,{fontSize:"small"})})]},d&&d[Ft.ITEM_ID]||f))}return N.jsxs(pC,{children:[N.jsxs("div",{style:{display:"flex"},children:[N.jsx(Nr,{required:r.required,className:gr.title,children:r.title&&s(r.title)}),this.getAddButton()]}),N.jsx("div",{children:u})]})}};Tt(Ft,"setIndex",r=>n=>{n.key&&(n.key[n.key.indexOf("")]=r)}),Tt(Ft,"copyWithIndex",(r,n)=>{const i=mo(r);return i.arrayIndex=n,jt.traverseForm(i,Ft.setIndex(n)),i}),Tt(Ft,"ITEM_ID",Symbol("_SCHEMAFORM_ITEM_ID"));let rc=Ft;const rm=At(rc);var nc={exports:{}};/*!
210
210
  Copyright (c) 2018 Jed Watson.
211
211
  Licensed under the MIT License (MIT), see
212
212
  http://jedwatson.github.io/classnames
213
- */var nm;function uC(){return nm||(nm=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})()}(nc)),nc.exports}var pC=uC();const fC=Jt(pC),om="FieldSet",im={root:`${om}-root`,fields:`${om}-fields`},dC=jo(an)(({theme:e})=>({[`&.${im.root}`]:{marginTop:e.spacing(1)},[`& .${im.fields}`]:{marginLeft:e.spacing(1)}})),am=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,f)=>r(u,n,f,t,i,r)),c=fC(a.root,e.htmlClass);return N.jsxs(dC,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[N.jsx(Nr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),N.jsx("div",{className:a.fields,children:s})]})};class hC extends we.Component{constructor(r){super(r);Tt(this,"divStyle",{padding:"20px"});this.state={yesChecked:!1,noChecked:!1};const{model:n,form:i,value:a,setDefault:l}=this.props,{key:s}=i;l(s,n,i,a)}static getDerivedStateFromProps(r){return{yesChecked:r.value==="yes",noChecked:r.value==="no"}}displaySwitch(){const{form:{title:r,yesLabel:n,noLabel:i,clearButtonLabel:a,required:l},onChangeValidate:s,value:c,localization:{getLocalizedString:u}}=this.props,{yesChecked:f,noChecked:d}=this.state;return N.jsxs("div",{style:this.divStyle,children:[N.jsx(Nr,{required:l,children:r&&u(r)}),N.jsx("br",{}),N.jsxs(Lr.FormGroup,{children:[N.jsx(Lr.FormControlLabel,{control:N.jsx(Lr.Checkbox,{onClick:y=>{s(y,"yes")},checked:f}),label:n?u(n):"Yes"}),N.jsx(Lr.FormControlLabel,{control:N.jsx(Lr.Checkbox,{onClick:y=>{s(y,"no")},checked:d}),label:i?u(i):"No"})]}),c==="yes"||c==="no"?N.jsx(Lr.Button,{id:"temp",variant:"text",color:"primary",onClick:y=>s(y,"unanswered"),children:a?u(a):"clear response"}):""]})}render(){return N.jsx(Lr.Card,{children:this.displaySwitch()})}}const mC=jt(hC);var oc={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */var sm;function gC(){return sm||(sm=1,function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(r,n){e.exports=n(we)})(self,r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var f={}.hasOwnProperty;function d(){for(var y=[],m=0;m<arguments.length;m++){var b=arguments[m];if(b){var h=typeof b;if(h==="string"||h==="number")y.push(b);else if(Array.isArray(b)){if(b.length){var v=d.apply(null,b);v&&y.push(v)}}else if(h==="object")if(b.toString===Object.prototype.toString)for(var C in b)f.call(b,C)&&b[C]&&y.push(C);else y.push(b.toString())}}return y.join(" ")}s.exports?(d.default=d,s.exports=d):(u=(function(){return d}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var f=u(852)(u(5639),"DataView");s.exports=f},1989:(s,c,u)=>{var f=u(1789),d=u(401),y=u(7667),m=u(1327),b=u(1866);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},8407:(s,c,u)=>{var f=u(7040),d=u(4125),y=u(2117),m=u(7518),b=u(4705);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},7071:(s,c,u)=>{var f=u(852)(u(5639),"Map");s.exports=f},3369:(s,c,u)=>{var f=u(4785),d=u(1285),y=u(6e3),m=u(9916),b=u(5265);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},3818:(s,c,u)=>{var f=u(852)(u(5639),"Promise");s.exports=f},8525:(s,c,u)=>{var f=u(852)(u(5639),"Set");s.exports=f},8668:(s,c,u)=>{var f=u(3369),d=u(619),y=u(2385);function m(b){var h=-1,v=b==null?0:b.length;for(this.__data__=new f;++h<v;)this.add(b[h])}m.prototype.add=m.prototype.push=d,m.prototype.has=y,s.exports=m},6384:(s,c,u)=>{var f=u(8407),d=u(7465),y=u(3779),m=u(7599),b=u(4758),h=u(4309);function v(C){var E=this.__data__=new f(C);this.size=E.size}v.prototype.clear=d,v.prototype.delete=y,v.prototype.get=m,v.prototype.has=b,v.prototype.set=h,s.exports=v},2705:(s,c,u)=>{var f=u(5639).Symbol;s.exports=f},1149:(s,c,u)=>{var f=u(5639).Uint8Array;s.exports=f},577:(s,c,u)=>{var f=u(852)(u(5639),"WeakMap");s.exports=f},4963:s=>{s.exports=function(c,u){for(var f=-1,d=c==null?0:c.length,y=0,m=[];++f<d;){var b=c[f];u(b,f,c)&&(m[y++]=b)}return m}},4636:(s,c,u)=>{var f=u(2545),d=u(5694),y=u(1469),m=u(4144),b=u(5776),h=u(6719),v=Object.prototype.hasOwnProperty;s.exports=function(C,E){var S=y(C),T=!S&&d(C),w=!S&&!T&&m(C),A=!S&&!T&&!w&&h(C),M=S||T||w||A,O=M?f(C.length,String):[],g=O.length;for(var p in C)!E&&!v.call(C,p)||M&&(p=="length"||w&&(p=="offset"||p=="parent")||A&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||b(p,g))||O.push(p);return O}},2488:s=>{s.exports=function(c,u){for(var f=-1,d=u.length,y=c.length;++f<d;)c[y+f]=u[f];return c}},2908:s=>{s.exports=function(c,u){for(var f=-1,d=c==null?0:c.length;++f<d;)if(u(c[f],f,c))return!0;return!1}},8470:(s,c,u)=>{var f=u(7813);s.exports=function(d,y){for(var m=d.length;m--;)if(f(d[m][0],y))return m;return-1}},8866:(s,c,u)=>{var f=u(2488),d=u(1469);s.exports=function(y,m,b){var h=m(y);return d(y)?h:f(h,b(y))}},4239:(s,c,u)=>{var f=u(2705),d=u(9607),y=u(2333),m=f?f.toStringTag:void 0;s.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":m&&m in Object(b)?d(b):y(b)}},9454:(s,c,u)=>{var f=u(4239),d=u(7005);s.exports=function(y){return d(y)&&f(y)=="[object Arguments]"}},939:(s,c,u)=>{var f=u(2492),d=u(7005);s.exports=function y(m,b,h,v,C){return m===b||(m==null||b==null||!d(m)&&!d(b)?m!=m&&b!=b:f(m,b,h,v,y,C))}},2492:(s,c,u)=>{var f=u(6384),d=u(7114),y=u(8351),m=u(6096),b=u(4160),h=u(1469),v=u(4144),C=u(6719),E="[object Arguments]",S="[object Array]",T="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(A,M,O,g,p,x){var R=h(A),P=h(M),_=R?S:b(A),k=P?S:b(M),D=(_=_==E?T:_)==T,W=(k=k==E?T:k)==T,Z=_==k;if(Z&&v(A)){if(!v(M))return!1;R=!0,D=!1}if(Z&&!D)return x||(x=new f),R||C(A)?d(A,M,O,g,p,x):y(A,M,_,O,g,p,x);if(!(1&O)){var G=D&&w.call(A,"__wrapped__"),B=W&&w.call(M,"__wrapped__");if(G||B){var Y=G?A.value():A,ae=B?M.value():M;return x||(x=new f),p(Y,ae,O,g,x)}}return!!Z&&(x||(x=new f),m(A,M,O,g,p,x))}},8458:(s,c,u)=>{var f=u(3560),d=u(5346),y=u(3218),m=u(346),b=/^\[object .+?Constructor\]$/,h=Function.prototype,v=Object.prototype,C=h.toString,E=v.hasOwnProperty,S=RegExp("^"+C.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(T){return!(!y(T)||d(T))&&(f(T)?S:b).test(m(T))}},8749:(s,c,u)=>{var f=u(4239),d=u(1780),y=u(7005),m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1,s.exports=function(b){return y(b)&&d(b.length)&&!!m[f(b)]}},280:(s,c,u)=>{var f=u(5726),d=u(6916),y=Object.prototype.hasOwnProperty;s.exports=function(m){if(!f(m))return d(m);var b=[];for(var h in Object(m))y.call(m,h)&&h!="constructor"&&b.push(h);return b}},2545:s=>{s.exports=function(c,u){for(var f=-1,d=Array(c);++f<c;)d[f]=u(f);return d}},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 f=u(5639)["__core-js_shared__"];s.exports=f},7114:(s,c,u)=>{var f=u(8668),d=u(2908),y=u(4757);s.exports=function(m,b,h,v,C,E){var S=1&h,T=m.length,w=b.length;if(T!=w&&!(S&&w>T))return!1;var A=E.get(m),M=E.get(b);if(A&&M)return A==b&&M==m;var O=-1,g=!0,p=2&h?new f:void 0;for(E.set(m,b),E.set(b,m);++O<T;){var x=m[O],R=b[O];if(v)var P=S?v(R,x,O,b,m,E):v(x,R,O,m,b,E);if(P!==void 0){if(P)continue;g=!1;break}if(p){if(!d(b,function(_,k){if(!y(p,k)&&(x===_||C(x,_,h,v,E)))return p.push(k)})){g=!1;break}}else if(x!==R&&!C(x,R,h,v,E)){g=!1;break}}return E.delete(m),E.delete(b),g}},8351:(s,c,u)=>{var f=u(2705),d=u(1149),y=u(7813),m=u(7114),b=u(8776),h=u(1814),v=f?f.prototype:void 0,C=v?v.valueOf:void 0;s.exports=function(E,S,T,w,A,M,O){switch(T){case"[object DataView]":if(E.byteLength!=S.byteLength||E.byteOffset!=S.byteOffset)return!1;E=E.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(E.byteLength!=S.byteLength||!M(new d(E),new d(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+E,+S);case"[object Error]":return E.name==S.name&&E.message==S.message;case"[object RegExp]":case"[object String]":return E==S+"";case"[object Map]":var g=b;case"[object Set]":var p=1&w;if(g||(g=h),E.size!=S.size&&!p)return!1;var x=O.get(E);if(x)return x==S;w|=2,O.set(E,S);var R=m(g(E),g(S),w,A,M,O);return O.delete(E),R;case"[object Symbol]":if(C)return C.call(E)==C.call(S)}return!1}},6096:(s,c,u)=>{var f=u(8234),d=Object.prototype.hasOwnProperty;s.exports=function(y,m,b,h,v,C){var E=1&b,S=f(y),T=S.length;if(T!=f(m).length&&!E)return!1;for(var w=T;w--;){var A=S[w];if(!(E?A in m:d.call(m,A)))return!1}var M=C.get(y),O=C.get(m);if(M&&O)return M==m&&O==y;var g=!0;C.set(y,m),C.set(m,y);for(var p=E;++w<T;){var x=y[A=S[w]],R=m[A];if(h)var P=E?h(R,x,A,m,y,C):h(x,R,A,y,m,C);if(!(P===void 0?x===R||v(x,R,b,h,C):P)){g=!1;break}p||(p=A=="constructor")}if(g&&!p){var _=y.constructor,k=m.constructor;_==k||!("constructor"in y)||!("constructor"in m)||typeof _=="function"&&_ instanceof _&&typeof k=="function"&&k instanceof k||(g=!1)}return C.delete(y),C.delete(m),g}},1957:(s,c,u)=>{var f=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=f},8234:(s,c,u)=>{var f=u(8866),d=u(9551),y=u(3674);s.exports=function(m){return f(m,y,d)}},5050:(s,c,u)=>{var f=u(7019);s.exports=function(d,y){var m=d.__data__;return f(y)?m[typeof y=="string"?"string":"hash"]:m.map}},852:(s,c,u)=>{var f=u(8458),d=u(7801);s.exports=function(y,m){var b=d(y,m);return f(b)?b:void 0}},9607:(s,c,u)=>{var f=u(2705),d=Object.prototype,y=d.hasOwnProperty,m=d.toString,b=f?f.toStringTag:void 0;s.exports=function(h){var v=y.call(h,b),C=h[b];try{h[b]=void 0;var E=!0}catch{}var S=m.call(h);return E&&(v?h[b]=C:delete h[b]),S}},9551:(s,c,u)=>{var f=u(4963),d=u(479),y=Object.prototype.propertyIsEnumerable,m=Object.getOwnPropertySymbols,b=m?function(h){return h==null?[]:(h=Object(h),f(m(h),function(v){return y.call(h,v)}))}:d;s.exports=b},4160:(s,c,u)=>{var f=u(8552),d=u(7071),y=u(3818),m=u(8525),b=u(577),h=u(4239),v=u(346),C="[object Map]",E="[object Promise]",S="[object Set]",T="[object WeakMap]",w="[object DataView]",A=v(f),M=v(d),O=v(y),g=v(m),p=v(b),x=h;(f&&x(new f(new ArrayBuffer(1)))!=w||d&&x(new d)!=C||y&&x(y.resolve())!=E||m&&x(new m)!=S||b&&x(new b)!=T)&&(x=function(R){var P=h(R),_=P=="[object Object]"?R.constructor:void 0,k=_?v(_):"";if(k)switch(k){case A:return w;case M:return C;case O:return E;case g:return S;case p:return T}return P}),s.exports=x},7801:s=>{s.exports=function(c,u){return c==null?void 0:c[u]}},1789:(s,c,u)=>{var f=u(4536);s.exports=function(){this.__data__=f?f(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 f=u(4536),d=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;if(f){var b=m[y];return b==="__lodash_hash_undefined__"?void 0:b}return d.call(m,y)?m[y]:void 0}},1327:(s,c,u)=>{var f=u(4536),d=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;return f?m[y]!==void 0:d.call(m,y)}},1866:(s,c,u)=>{var f=u(4536);s.exports=function(d,y){var m=this.__data__;return this.size+=this.has(d)?0:1,m[d]=f&&y===void 0?"__lodash_hash_undefined__":y,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,f){var d=typeof u;return!!(f=f??9007199254740991)&&(d=="number"||d!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<f}},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 f,d=u(4429),y=(f=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"";s.exports=function(m){return!!y&&y in m}},5726:s=>{var c=Object.prototype;s.exports=function(u){var f=u&&u.constructor;return u===(typeof f=="function"&&f.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var f=u(8470),d=Array.prototype.splice;s.exports=function(y){var m=this.__data__,b=f(m,y);return!(b<0||(b==m.length-1?m.pop():d.call(m,b,1),--this.size,0))}},2117:(s,c,u)=>{var f=u(8470);s.exports=function(d){var y=this.__data__,m=f(y,d);return m<0?void 0:y[m][1]}},7518:(s,c,u)=>{var f=u(8470);s.exports=function(d){return f(this.__data__,d)>-1}},4705:(s,c,u)=>{var f=u(8470);s.exports=function(d,y){var m=this.__data__,b=f(m,d);return b<0?(++this.size,m.push([d,y])):m[b][1]=y,this}},4785:(s,c,u)=>{var f=u(1989),d=u(8407),y=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new f,map:new(y||d),string:new f}}},1285:(s,c,u)=>{var f=u(5050);s.exports=function(d){var y=f(this,d).delete(d);return this.size-=y?1:0,y}},6e3:(s,c,u)=>{var f=u(5050);s.exports=function(d){return f(this,d).get(d)}},9916:(s,c,u)=>{var f=u(5050);s.exports=function(d){return f(this,d).has(d)}},5265:(s,c,u)=>{var f=u(5050);s.exports=function(d,y){var m=f(this,d),b=m.size;return m.set(d,y),this.size+=m.size==b?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,f=Array(c.size);return c.forEach(function(d,y){f[++u]=[y,d]}),f}},4536:(s,c,u)=>{var f=u(852)(Object,"create");s.exports=f},6916:(s,c,u)=>{var f=u(5569)(Object.keys,Object);s.exports=f},1167:(s,c,u)=>{s=u.nmd(s);var f=u(1957),d=c&&!c.nodeType&&c,y=d&&s&&!s.nodeType&&s,m=y&&y.exports===d&&f.process,b=function(){try{return y&&y.require&&y.require("util").types||m&&m.binding&&m.binding("util")}catch{}}();s.exports=b},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(f){return c(u(f))}}},5639:(s,c,u)=>{var f=u(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,y=f||d||Function("return this")();s.exports=y},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,f=Array(c.size);return c.forEach(function(d){f[++u]=d}),f}},7465:(s,c,u)=>{var f=u(8407);s.exports=function(){this.__data__=new f,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f}},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 f=u(8407),d=u(7071),y=u(3369);s.exports=function(m,b){var h=this.__data__;if(h instanceof f){var v=h.__data__;if(!d||v.length<199)return v.push([m,b]),this.size=++h.size,this;h=this.__data__=new y(v)}return h.set(m,b),this.size=h.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 f=u(9454),d=u(7005),y=Object.prototype,m=y.hasOwnProperty,b=y.propertyIsEnumerable,h=f(function(){return arguments}())?f:function(v){return d(v)&&m.call(v,"callee")&&!b.call(v,"callee")};s.exports=h},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var f=u(3560),d=u(1780);s.exports=function(y){return y!=null&&d(y.length)&&!f(y)}},4144:(s,c,u)=>{s=u.nmd(s);var f=u(5639),d=u(5062),y=c&&!c.nodeType&&c,m=y&&s&&!s.nodeType&&s,b=m&&m.exports===y?f.Buffer:void 0,h=(b?b.isBuffer:void 0)||d;s.exports=h},8446:(s,c,u)=>{var f=u(939);s.exports=function(d,y){return f(d,y)}},3560:(s,c,u)=>{var f=u(4239),d=u(3218);s.exports=function(y){if(!d(y))return!1;var m=f(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[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 f=u(8749),d=u(1717),y=u(1167),m=y&&y.isTypedArray,b=m?d(m):f;s.exports=b},3674:(s,c,u)=>{var f=u(4636),d=u(280),y=u(8612);s.exports=function(m){return y(m)?f(m):d(m)}},8306:(s,c,u)=>{var f=u(3369);function d(y,m){if(typeof y!="function"||m!=null&&typeof m!="function")throw new TypeError("Expected a function");var b=function(){var h=arguments,v=m?m.apply(this,h):h[0],C=b.cache;if(C.has(v))return C.get(v);var E=y.apply(this,h);return b.cache=C.set(v,E)||C,E};return b.cache=new(d.Cache||f),b}d.Cache=f,s.exports=d},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var f=u(414);function d(){}function y(){}y.resetWarningCache=d,s.exports=function(){function m(v,C,E,S,T,w){if(w!==f){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}}function b(){return m}m.isRequired=m;var h={array:m,bigint:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:b,element:m,elementType:m,instanceOf:b,node:m,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:y,resetWarningCache:d};return h.PropTypes=h,h}},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:()=>Xt,expandNodesToLevel:()=>Yt});var s=a(4184),c=a.n(s),u=a(8446),f=a.n(u),d=a(8306),y=a.n(d);let m=(U=21)=>crypto.getRandomValues(new Uint8Array(U)).reduce(($,K)=>$+((K&=63)<36?K.toString(36):K<62?(K-26).toString(36).toUpperCase():K>62?"-":"_"),"");var b=a(5697),h=a.n(b),v=a(9787),C=a.n(v);function E(U){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},E(U)}var S=["children","title"];function T(){return T=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(U[V]=K[V])}return U},T.apply(this,arguments)}function w(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function A(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function M(U,$){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},M(U,$)}function O(U,$){if($&&(E($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function g(U){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},g(U)}function p(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var x=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&M(ee,L)})(je,U);var $,K,V,Se,ke=(V=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 ee,L=g(V);if(Se){var H=g(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return O(this,ee)});function je(){return w(this,je),ke.apply(this,arguments)}return $=je,(K=[{key:"render",value:function(){var ee=this.props,L=ee.children,H=ee.title,ie=function(Oe,Me){if(Oe==null)return{};var lt,I,J=function(F,q){if(F==null)return{};var re,me,ge={},Ie=Object.keys(F);for(me=0;me<Ie.length;me++)re=Ie[me],q.indexOf(re)>=0||(ge[re]=F[re]);return ge}(Oe,Me);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Oe);for(I=0;I<fe.length;I++)lt=fe[I],Me.indexOf(lt)>=0||Object.prototype.propertyIsEnumerable.call(Oe,lt)&&(J[lt]=Oe[lt])}return J}(ee,S);return C().createElement("button",T({"aria-label":H,title:H,type:"button"},ie),L)}}])&&A($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);p(x,"propTypes",{children:h().node.isRequired,title:h().string}),p(x,"defaultProps",{title:null});const R=x,P={ALL:"all",PARENT:"parent",LEAF:"leaf"};function _(U){this.message=U,this.stack=Error().stack}_.prototype=Object.create(Error.prototype),_.prototype.name="CheckboxTreeError";const k=_;function D(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function W(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}function Z(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function G(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}var B=P;const Y=function(){function U(V){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Z(this,U),this.props=V,this.flatNodes=Se}var $,K;return $=U,K=[{key:"setProps",value:function(V){this.props=V}},{key:"clone",value:function(){var V=this,Se={};return Object.keys(this.flatNodes).forEach(function(ke){var je=V.flatNodes[ke];Se[ke]=function(ee){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?D(Object(H),!0).forEach(function(ie){W(ee,ie,H[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ee,Object.getOwnPropertyDescriptors(H)):D(Object(H)).forEach(function(ie){Object.defineProperty(ee,ie,Object.getOwnPropertyDescriptor(H,ie))})}return ee}({},je)}),new U(this.props,Se)}},{key:"getNode",value:function(V){return this.flatNodes[V]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(V){var Se=this,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(V)&&V.length!==0){var ee=this.props,L=ee.disabled,H=ee.noCascade;V.forEach(function(ie,Oe){var Me=Se.nodeHasChildren(ie);if(Se.flatNodes[ie.value]!==void 0)throw new k("Duplicate value '".concat(ie.value,"' detected. All node values must be unique."));Se.flatNodes[ie.value]={label:ie.label,value:ie.value,children:ie.children,parent:ke,isChild:ke.value!==void 0,isParent:Me,isLeaf:!Me,showCheckbox:ie.showCheckbox===void 0||ie.showCheckbox,disabled:Se.getDisabledState(ie,ke,L,H),treeDepth:je,index:Oe},Se.flattenNodes(ie.children,ie,je+1)})}}},{key:"nodeHasChildren",value:function(V){return Array.isArray(V.children)}},{key:"getDisabledState",value:function(V,Se,ke,je){return!!ke||!(je||!Se.disabled)||!!V.disabled}},{key:"deserializeLists",value:function(V){var Se=this,ke=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(je){ke.forEach(function(ee){Se.flatNodes[je][ee]=!1})}),ke.forEach(function(je){V[je].forEach(function(ee){Se.flatNodes[ee]!==void 0&&(Se.flatNodes[ee][je]=!0)})})}},{key:"serializeList",value:function(V){var Se=this,ke=[];return Object.keys(this.flatNodes).forEach(function(je){Se.flatNodes[je][V]&&ke.push(je)}),ke}},{key:"expandAllNodes",value:function(V){var Se=this;return Object.keys(this.flatNodes).forEach(function(ke){Se.flatNodes[ke].isParent&&(Se.flatNodes[ke].expanded=V)}),this}},{key:"toggleChecked",value:function(V,Se,ke,je){var ee=this,L=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],H=this.flatNodes[V.value],ie=[B.PARENT,B.ALL].indexOf(ke)>-1,Oe=[B.LEAF,B.ALL].indexOf(ke)>-1;if(H.isLeaf||je){if(V.disabled)return this;this.toggleNode(V.value,"checked",Se)}else(ie||H.children.length===0)&&this.toggleNode(V.value,"checked",Se),Oe&&H.children.forEach(function(Me){ee.toggleChecked(Me,Se,ke,je,!1)});return L&&!je&&H.isChild&&ie&&this.toggleParentStatus(H.parent,ke),this}},{key:"toggleParentStatus",value:function(V,Se){var ke=this.flatNodes[V.value];ke.isChild?(Se===B.ALL&&this.toggleNode(V.value,"checked",this.isEveryChildChecked(ke)),this.toggleParentStatus(ke.parent,Se)):this.toggleNode(V.value,"checked",this.isEveryChildChecked(ke))}},{key:"isEveryChildChecked",value:function(V){var Se=this;return V.children.every(function(ke){return Se.getNode(ke.value).checked})}},{key:"toggleNode",value:function(V,Se,ke){return this.flatNodes[V][Se]=ke,this}}],K&&G($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),U}();function ae(U){return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},ae(U)}function oe(){return oe=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var V in K)Object.prototype.hasOwnProperty.call(K,V)&&(U[V]=K[V])}return U},oe.apply(this,arguments)}function ne(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function ue(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function ce(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function ye(U,$){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},ye(U,$)}function se(U,$){if($&&(ae($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function le(U){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},le(U)}function te(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var ve=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&ye(ee,L)})(je,U);var $,K,V,Se,ke=(V=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 ee,L=le(V);if(Se){var H=le(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return se(this,ee)});function je(){return ue(this,je),ke.apply(this,arguments)}return $=je,K=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var ee=this.props.indeterminate;this.checkbox.indeterminate=ee}},{key:"render",value:function(){var ee=this,L=function(H){for(var ie=1;ie<arguments.length;ie++){var Oe=arguments[ie]!=null?arguments[ie]:{};ie%2?ne(Object(Oe),!0).forEach(function(Me){te(H,Me,Oe[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Oe)):ne(Object(Oe)).forEach(function(Me){Object.defineProperty(H,Me,Object.getOwnPropertyDescriptor(Oe,Me))})}return H}({},this.props);return delete L.indeterminate,C().createElement("input",oe({},L,{ref:function(H){ee.checkbox=H},type:"checkbox"}))}}],K&&ce($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);te(ve,"propTypes",{indeterminate:h().bool}),te(ve,"defaultProps",{indeterminate:!1});const X=ve,Re=h().shape({check:h().node,uncheck:h().node,halfCheck:h().node,expandClose:h().node,expandOpen:h().node,expandAll:h().node,collapseAll:h().node,parentClose:h().node,parentOpen:h().node,leaf:h().node}),z=h().shape({collapseAll:h().string.isRequired,expandAll:h().string.isRequired,toggle:h().string.isRequired});function pe(U){return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},pe(U)}function de(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function Ce(U,$){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},Ce(U,$)}function Te(U,$){if($&&(pe($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(U)}function $e(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function He(U){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},He(U)}function Ne(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var be=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&Ce(ee,L)})(je,U);var $,K,V,Se,ke=(V=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 ee,L=He(V);if(Se){var H=He(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return Te(this,ee)});function je(ee){var L;return function(H,ie){if(!(H instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,je),(L=ke.call(this,ee)).onCheck=L.onCheck.bind($e(L)),L.onCheckboxKeyPress=L.onCheckboxKeyPress.bind($e(L)),L.onCheckboxKeyUp=L.onCheckboxKeyUp.bind($e(L)),L.onClick=L.onClick.bind($e(L)),L.onExpand=L.onExpand.bind($e(L)),L}return $=je,(K=[{key:"onCheck",value:function(){var ee=this.props,L=ee.value;(0,ee.onCheck)({value:L,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(ee){ee.which===32&&ee.preventDefault()}},{key:"onCheckboxKeyUp",value:function(ee){var L=ee.keyCode;[13,32].includes(L)&&this.onCheck()}},{key:"onClick",value:function(){var ee=this.props,L=ee.expandOnClick,H=ee.isParent,ie=ee.value,Oe=ee.onClick;H&&L&&this.onExpand(),Oe({value:ie,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var ee=this.props,L=ee.expanded,H=ee.value;(0,ee.onExpand)({value:H,expanded:!L})}},{key:"getCheckState",value:function(ee){var L=ee.toggle,H=this.props,ie=H.checked,Oe=H.optimisticToggle;return!(ie!==0||!L)||ie===1&&!L||ie===2&&Oe}},{key:"renderCollapseButton",value:function(){var ee=this.props,L=ee.expandDisabled,H=ee.isLeaf,ie=ee.lang;return H?C().createElement("span",{className:"rct-collapse"},C().createElement("span",{className:"rct-icon"})):C().createElement(R,{className:"rct-collapse rct-collapse-btn",disabled:L,title:ie.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icons,ie=H.expandClose,Oe=H.expandOpen;return L?Oe:ie}},{key:"renderCheckboxIcon",value:function(){var ee=this.props,L=ee.checked,H=ee.icons,ie=H.uncheck,Oe=H.check,Me=H.halfCheck;return L===0?ie:L===1?Oe:Me}},{key:"renderNodeIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icon,ie=ee.icons,Oe=ie.leaf,Me=ie.parentClose,lt=ie.parentOpen,I=ee.isLeaf;return H!==null?H:I?Oe:L?lt:Me}},{key:"renderBareLabel",value:function(ee){var L=this.props,H=L.onClick,ie=L.title,Oe=H!==null;return C().createElement("span",{className:"rct-bare-label",title:ie},Oe?C().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},ee):ee)}},{key:"renderCheckboxLabel",value:function(ee){var L=this.props,H=L.checked,ie=L.disabled,Oe=L.title,Me=L.treeId,lt=L.value,I=L.onClick!==null,J="".concat(Me,"-").concat(String(lt).split(" ").join("_")),fe=[C().createElement("label",{key:0,htmlFor:J,title:Oe},C().createElement(X,{checked:H===1,disabled:ie,id:J,indeterminate:H===2,onClick:this.onCheck,onChange:function(){}}),C().createElement("span",{"aria-checked":H===1,"aria-disabled":ie,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),I?null:ee)];return I&&fe.push(C().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},ee)),fe}},{key:"renderLabel",value:function(){var ee=this.props,L=ee.label,H=ee.showCheckbox,ie=[ee.showNodeIcon?C().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,C().createElement("span",{key:1,className:"rct-title"},L)];return H?this.renderCheckboxLabel(ie):this.renderBareLabel(ie)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var ee=this.props,L=ee.className,H=ee.disabled,ie=ee.expanded,Oe=ee.isLeaf,Me=c()({"rct-node":!0,"rct-node-leaf":Oe,"rct-node-parent":!Oe,"rct-node-expanded":!Oe&&ie,"rct-node-collapsed":!Oe&&!ie,"rct-disabled":H},L);return C().createElement("li",{className:Me},C().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&de($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);Ne(be,"propTypes",{checked:h().number.isRequired,disabled:h().bool.isRequired,expandDisabled:h().bool.isRequired,expanded:h().bool.isRequired,icons:Re.isRequired,isLeaf:h().bool.isRequired,isParent:h().bool.isRequired,label:h().node.isRequired,lang:z.isRequired,optimisticToggle:h().bool.isRequired,showNodeIcon:h().bool.isRequired,treeId:h().string.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,onCheck:h().func.isRequired,onExpand:h().func.isRequired,children:h().node,className:h().string,expandOnClick:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string,onClick:h().func}),Ne(be,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const Fe=be,Ye=h().oneOfType([h().arrayOf(h().string),h().arrayOf(h().number)]);function ht(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function Ct(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?ht(Object(K),!0).forEach(function(V){pt(U,V,K[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):ht(Object(K)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(K,V))})}return U}function pt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var Ue={label:h().node.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,disabled:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string};const Be=h().oneOfType([h().shape(Ue),h().shape(Ct(Ct({},Ue),{},{children:h().arrayOf(Ue).isRequired}))]);function st(U){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},st(U)}function De(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(U);$&&(V=V.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,V)}return K}function Ze(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?De(Object(K),!0).forEach(function(V){wt(U,V,K[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):De(Object(K)).forEach(function(V){Object.defineProperty(U,V,Object.getOwnPropertyDescriptor(K,V))})}return U}function mt(U,$){for(var K=0;K<$.length;K++){var V=$[K];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(U,V.key,V)}}function ft(U,$){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,V){return K.__proto__=V,K},ft(U,$)}function Ee(U,$){if($&&(st($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ae(U)}function Ae(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function at(U){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},at(U)}function wt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var St=function(U){(function(L,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(H&&H.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),H&&ft(L,H)})(ee,U);var $,K,V,Se,ke,je=(Se=ee,ke=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 L,H=at(Se);if(ke){var ie=at(this).constructor;L=Reflect.construct(H,arguments,ie)}else L=H.apply(this,arguments);return Ee(this,L)});function ee(L){var H;(function(Oe,Me){if(!(Oe instanceof Me))throw new TypeError("Cannot call a class as a function")})(this,ee),H=je.call(this,L);var ie=new Y(L);return ie.flattenNodes(L.nodes),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),H.state={id:L.id||"rct-".concat(m()),model:ie,prevProps:L},H.onCheck=H.onCheck.bind(Ae(H)),H.onExpand=H.onExpand.bind(Ae(H)),H.onNodeClick=H.onNodeClick.bind(Ae(H)),H.onExpandAll=H.onExpandAll.bind(Ae(H)),H.onCollapseAll=H.onCollapseAll.bind(Ae(H)),H.combineMemorized=y()(function(Oe,Me){return Ze(Ze({},Oe),Me)}).bind(Ae(H)),H}return $=ee,K=[{key:"onCheck",value:function(L){var H=this.props,ie=H.checkModel,Oe=H.noCascade,Me=H.onCheck,lt=this.state.model.clone(),I=lt.getNode(L.value);lt.toggleChecked(L,L.checked,ie,Oe),Me(lt.serializeList("checked"),Ze(Ze({},I),L))}},{key:"onExpand",value:function(L){var H=this.props.onExpand,ie=this.state.model.clone(),Oe=ie.getNode(L.value);ie.toggleNode(L.value,"expanded",L.expanded),H(ie.serializeList("expanded"),Ze(Ze({},Oe),L))}},{key:"onNodeClick",value:function(L){(0,this.props.onClick)(Ze(Ze({},this.state.model.getNode(L.value)),L))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var L=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],H=this.props.onExpand;H(this.state.model.clone().expandAllNodes(L).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(L,H){var ie=this.state.model.getNode(L.value);return ie.isLeaf||H||L.children.length===0?ie.checked?1:0:this.isEveryChildChecked(L)?1:this.isSomeChildChecked(L)?2:0}},{key:"isEveryChildChecked",value:function(L){var H=this;return L.children.every(function(ie){return H.state.model.getNode(ie.value).checkState===1})}},{key:"isSomeChildChecked",value:function(L){var H=this;return L.children.some(function(ie){return H.state.model.getNode(ie.value).checkState>0})}},{key:"renderTreeNodes",value:function(L){var H=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=this.props,Me=Oe.expandDisabled,lt=Oe.expandOnClick,I=Oe.icons,J=Oe.lang,fe=Oe.noCascade,F=Oe.onClick,q=Oe.onlyLeafCheckboxes,re=Oe.optimisticToggle,me=Oe.showNodeTitle,ge=Oe.showNodeIcon,Ie=this.state,_e=Ie.id,ze=Ie.model,Et=ee.defaultProps.icons,Rr=L.map(function(vt){var Pt=vt.value,It=ze.getNode(vt.value),Mr=It.isParent?H.renderTreeNodes(vt.children,vt):null;It.checkState=H.determineShallowCheckState(vt,fe);var Kr=q?It.isLeaf:It.showCheckbox;return!ie.value||ze.getNode(ie.value).expanded?C().createElement(Fe,{key:Pt,checked:It.checkState,className:vt.className,disabled:It.disabled,expandDisabled:Me,expandOnClick:lt,expanded:It.expanded,icon:vt.icon,icons:H.combineMemorized(Et,I),label:vt.label,lang:J,optimisticToggle:re,isLeaf:It.isLeaf,isParent:It.isParent,showCheckbox:Kr,showNodeIcon:ge,title:me?vt.title||vt.label:vt.title,treeId:_e,value:vt.value,onCheck:H.onCheck,onClick:F&&H.onNodeClick,onExpand:H.onExpand},Mr):null});return C().createElement("ol",null,Rr)}},{key:"renderExpandAll",value:function(){var L=this.props,H=L.icons,ie=H.expandAll,Oe=H.collapseAll,Me=L.lang;return L.showExpandAll?C().createElement("div",{className:"rct-options"},C().createElement(R,{className:"rct-option rct-option-expand-all",title:Me.expandAll,onClick:this.onExpandAll},ie),C().createElement(R,{className:"rct-option rct-option-collapse-all",title:Me.collapseAll,onClick:this.onCollapseAll},Oe)):null}},{key:"renderHiddenInput",value:function(){var L=this.props,H=L.name,ie=L.nameAsArray;return H===void 0?null:ie?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name;return H.map(function(Oe){var Me="".concat(ie,"[]");return C().createElement("input",{key:Oe,name:Me,type:"hidden",value:Oe})})}},{key:"renderJoinedHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name,Oe=H.join(",");return C().createElement("input",{name:ie,type:"hidden",value:Oe})}},{key:"render",value:function(){var L,H=this.props,ie=H.direction,Oe=H.disabled,Me=H.iconsClass,lt=H.nodes,I=H.nativeCheckboxes,J=this.state.id,fe=this.renderTreeNodes(lt),F=c()((wt(L={"react-checkbox-tree":!0,"rct-disabled":Oe},"rct-icons-".concat(Me),!0),wt(L,"rct-native-display",I),wt(L,"rct-direction-rtl",ie==="rtl"),L));return C().createElement("div",{className:F,id:J},this.renderExpandAll(),this.renderHiddenInput(),fe)}}],V=[{key:"getDerivedStateFromProps",value:function(L,H){var ie=H.model,Oe=H.prevProps,Me=L.disabled,lt=L.id,I=L.nodes,J=Ze(Ze({},H),{},{prevProps:L});return ie.setProps(L),f()(Oe.nodes,I)&&Oe.disabled===Me||(ie.reset(),ie.flattenNodes(I)),lt!==null&&(J=Ze(Ze({},J),{},{id:lt})),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),J}}],K&&mt($.prototype,K),V&&mt($,V),Object.defineProperty($,"prototype",{writable:!1}),ee}(C().Component);function Bt(U){return function($){if(Array.isArray($))return Rt($)}(U)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(U)||function($,K){if($){if(typeof $=="string")return Rt($,K);var V=Object.prototype.toString.call($).slice(8,-1);return V==="Object"&&$.constructor&&(V=$.constructor.name),V==="Map"||V==="Set"?Array.from($):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?Rt($,K):void 0}}(U)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
214
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rt(U,$){($==null||$>U.length)&&($=U.length);for(var K=0,V=new Array($);K<$;K++)V[K]=U[K];return V}function Yt(U,$){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(K>$)return[];var V=[];return U.forEach(function(Se){Se.children&&(V=[].concat(Bt(V),[Se.value],Bt(Yt(Se.children,$,K+1))))}),V}wt(St,"propTypes",{nodes:h().arrayOf(Be).isRequired,checkModel:h().oneOf([P.LEAF,P.ALL]),checked:Ye,direction:h().string,disabled:h().bool,expandDisabled:h().bool,expandOnClick:h().bool,expanded:Ye,icons:Re,iconsClass:h().string,id:h().string,lang:z,name:h().string,nameAsArray:h().bool,nativeCheckboxes:h().bool,noCascade:h().bool,onlyLeafCheckboxes:h().bool,optimisticToggle:h().bool,showExpandAll:h().bool,showNodeIcon:h().bool,showNodeTitle:h().bool,onCheck:h().func,onClick:h().func,onExpand:h().func}),wt(St,"defaultProps",{checkModel:P.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:C().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:C().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:C().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:C().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:C().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:C().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:C().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:C().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:C().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:C().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 Xt=St})(),l})())}(oc)),oc.exports}var yC=gC();const vC=Jt(yC),bC=_t(N.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"),xC=_t(N.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"),lm=_t(N.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"),OC=_t(N.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),EC=_t(N.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),CC=_t(N.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"),SC=_t(N.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"),TC=_t(N.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"),wC=_t(N.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 si={};/*!
213
+ */var nm;function fC(){return nm||(nm=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})()}(nc)),nc.exports}var dC=fC();const hC=Jt(dC),om="FieldSet",im={root:`${om}-root`,fields:`${om}-fields`},mC=Ao(an)(({theme:e})=>({[`&.${im.root}`]:{marginTop:e.spacing(1)},[`& .${im.fields}`]:{marginLeft:e.spacing(1)}})),am=({form:e,mapper:t,builder:r,model:n,onChange:i,classes:a,localization:{getLocalizedString:l}})=>{const s=e.items.map((u,f)=>r(u,n,f,t,i,r)),c=hC(a.root,e.htmlClass);return N.jsxs(mC,{component:"fieldset",className:c,style:e.style,...e.otherProps,children:[N.jsx(Nr,{component:"legend",required:e.required,children:e.title&&l(e.title)}),N.jsx("div",{className:a.fields,children:s})]})};class gC extends we.Component{constructor(r){super(r);Tt(this,"divStyle",{padding:"20px"});this.state={yesChecked:!1,noChecked:!1};const{model:n,form:i,value:a,setDefault:l}=this.props,{key:s}=i;l(s,n,i,a)}static getDerivedStateFromProps(r){return{yesChecked:r.value==="yes",noChecked:r.value==="no"}}displaySwitch(){const{form:{title:r,yesLabel:n,noLabel:i,clearButtonLabel:a,required:l},onChangeValidate:s,value:c,localization:{getLocalizedString:u}}=this.props,{yesChecked:f,noChecked:d}=this.state;return N.jsxs("div",{style:this.divStyle,children:[N.jsx(Nr,{required:l,children:r&&u(r)}),N.jsx("br",{}),N.jsxs(Lr.FormGroup,{children:[N.jsx(Lr.FormControlLabel,{control:N.jsx(Lr.Checkbox,{onClick:y=>{s(y,"yes")},checked:f}),label:n?u(n):"Yes"}),N.jsx(Lr.FormControlLabel,{control:N.jsx(Lr.Checkbox,{onClick:y=>{s(y,"no")},checked:d}),label:i?u(i):"No"})]}),c==="yes"||c==="no"?N.jsx(Lr.Button,{id:"temp",variant:"text",color:"primary",onClick:y=>s(y,"unanswered"),children:a?u(a):"clear response"}):""]})}render(){return N.jsx(Lr.Card,{children:this.displaySwitch()})}}const yC=At(gC);var oc={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */var sm;function vC(){return sm||(sm=1,function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(r,n){e.exports=n(we)})(self,r=>(()=>{var n={4184:(s,c)=>{var u;(function(){var f={}.hasOwnProperty;function d(){for(var y=[],m=0;m<arguments.length;m++){var b=arguments[m];if(b){var h=typeof b;if(h==="string"||h==="number")y.push(b);else if(Array.isArray(b)){if(b.length){var v=d.apply(null,b);v&&y.push(v)}}else if(h==="object")if(b.toString===Object.prototype.toString)for(var C in b)f.call(b,C)&&b[C]&&y.push(C);else y.push(b.toString())}}return y.join(" ")}s.exports?(d.default=d,s.exports=d):(u=(function(){return d}).apply(c,[]))===void 0||(s.exports=u)})()},8552:(s,c,u)=>{var f=u(852)(u(5639),"DataView");s.exports=f},1989:(s,c,u)=>{var f=u(1789),d=u(401),y=u(7667),m=u(1327),b=u(1866);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},8407:(s,c,u)=>{var f=u(7040),d=u(4125),y=u(2117),m=u(7518),b=u(4705);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},7071:(s,c,u)=>{var f=u(852)(u(5639),"Map");s.exports=f},3369:(s,c,u)=>{var f=u(4785),d=u(1285),y=u(6e3),m=u(9916),b=u(5265);function h(v){var C=-1,E=v==null?0:v.length;for(this.clear();++C<E;){var S=v[C];this.set(S[0],S[1])}}h.prototype.clear=f,h.prototype.delete=d,h.prototype.get=y,h.prototype.has=m,h.prototype.set=b,s.exports=h},3818:(s,c,u)=>{var f=u(852)(u(5639),"Promise");s.exports=f},8525:(s,c,u)=>{var f=u(852)(u(5639),"Set");s.exports=f},8668:(s,c,u)=>{var f=u(3369),d=u(619),y=u(2385);function m(b){var h=-1,v=b==null?0:b.length;for(this.__data__=new f;++h<v;)this.add(b[h])}m.prototype.add=m.prototype.push=d,m.prototype.has=y,s.exports=m},6384:(s,c,u)=>{var f=u(8407),d=u(7465),y=u(3779),m=u(7599),b=u(4758),h=u(4309);function v(C){var E=this.__data__=new f(C);this.size=E.size}v.prototype.clear=d,v.prototype.delete=y,v.prototype.get=m,v.prototype.has=b,v.prototype.set=h,s.exports=v},2705:(s,c,u)=>{var f=u(5639).Symbol;s.exports=f},1149:(s,c,u)=>{var f=u(5639).Uint8Array;s.exports=f},577:(s,c,u)=>{var f=u(852)(u(5639),"WeakMap");s.exports=f},4963:s=>{s.exports=function(c,u){for(var f=-1,d=c==null?0:c.length,y=0,m=[];++f<d;){var b=c[f];u(b,f,c)&&(m[y++]=b)}return m}},4636:(s,c,u)=>{var f=u(2545),d=u(5694),y=u(1469),m=u(4144),b=u(5776),h=u(6719),v=Object.prototype.hasOwnProperty;s.exports=function(C,E){var S=y(C),T=!S&&d(C),w=!S&&!T&&m(C),A=!S&&!T&&!w&&h(C),M=S||T||w||A,O=M?f(C.length,String):[],g=O.length;for(var p in C)!E&&!v.call(C,p)||M&&(p=="length"||w&&(p=="offset"||p=="parent")||A&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||b(p,g))||O.push(p);return O}},2488:s=>{s.exports=function(c,u){for(var f=-1,d=u.length,y=c.length;++f<d;)c[y+f]=u[f];return c}},2908:s=>{s.exports=function(c,u){for(var f=-1,d=c==null?0:c.length;++f<d;)if(u(c[f],f,c))return!0;return!1}},8470:(s,c,u)=>{var f=u(7813);s.exports=function(d,y){for(var m=d.length;m--;)if(f(d[m][0],y))return m;return-1}},8866:(s,c,u)=>{var f=u(2488),d=u(1469);s.exports=function(y,m,b){var h=m(y);return d(y)?h:f(h,b(y))}},4239:(s,c,u)=>{var f=u(2705),d=u(9607),y=u(2333),m=f?f.toStringTag:void 0;s.exports=function(b){return b==null?b===void 0?"[object Undefined]":"[object Null]":m&&m in Object(b)?d(b):y(b)}},9454:(s,c,u)=>{var f=u(4239),d=u(7005);s.exports=function(y){return d(y)&&f(y)=="[object Arguments]"}},939:(s,c,u)=>{var f=u(2492),d=u(7005);s.exports=function y(m,b,h,v,C){return m===b||(m==null||b==null||!d(m)&&!d(b)?m!=m&&b!=b:f(m,b,h,v,y,C))}},2492:(s,c,u)=>{var f=u(6384),d=u(7114),y=u(8351),m=u(6096),b=u(4160),h=u(1469),v=u(4144),C=u(6719),E="[object Arguments]",S="[object Array]",T="[object Object]",w=Object.prototype.hasOwnProperty;s.exports=function(A,M,O,g,p,x){var R=h(A),P=h(M),_=R?S:b(A),k=P?S:b(M),D=(_=_==E?T:_)==T,W=(k=k==E?T:k)==T,Z=_==k;if(Z&&v(A)){if(!v(M))return!1;R=!0,D=!1}if(Z&&!D)return x||(x=new f),R||C(A)?d(A,M,O,g,p,x):y(A,M,_,O,g,p,x);if(!(1&O)){var G=D&&w.call(A,"__wrapped__"),B=W&&w.call(M,"__wrapped__");if(G||B){var Y=G?A.value():A,ae=B?M.value():M;return x||(x=new f),p(Y,ae,O,g,x)}}return!!Z&&(x||(x=new f),m(A,M,O,g,p,x))}},8458:(s,c,u)=>{var f=u(3560),d=u(5346),y=u(3218),m=u(346),b=/^\[object .+?Constructor\]$/,h=Function.prototype,v=Object.prototype,C=h.toString,E=v.hasOwnProperty,S=RegExp("^"+C.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");s.exports=function(T){return!(!y(T)||d(T))&&(f(T)?S:b).test(m(T))}},8749:(s,c,u)=>{var f=u(4239),d=u(1780),y=u(7005),m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1,s.exports=function(b){return y(b)&&d(b.length)&&!!m[f(b)]}},280:(s,c,u)=>{var f=u(5726),d=u(6916),y=Object.prototype.hasOwnProperty;s.exports=function(m){if(!f(m))return d(m);var b=[];for(var h in Object(m))y.call(m,h)&&h!="constructor"&&b.push(h);return b}},2545:s=>{s.exports=function(c,u){for(var f=-1,d=Array(c);++f<c;)d[f]=u(f);return d}},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 f=u(5639)["__core-js_shared__"];s.exports=f},7114:(s,c,u)=>{var f=u(8668),d=u(2908),y=u(4757);s.exports=function(m,b,h,v,C,E){var S=1&h,T=m.length,w=b.length;if(T!=w&&!(S&&w>T))return!1;var A=E.get(m),M=E.get(b);if(A&&M)return A==b&&M==m;var O=-1,g=!0,p=2&h?new f:void 0;for(E.set(m,b),E.set(b,m);++O<T;){var x=m[O],R=b[O];if(v)var P=S?v(R,x,O,b,m,E):v(x,R,O,m,b,E);if(P!==void 0){if(P)continue;g=!1;break}if(p){if(!d(b,function(_,k){if(!y(p,k)&&(x===_||C(x,_,h,v,E)))return p.push(k)})){g=!1;break}}else if(x!==R&&!C(x,R,h,v,E)){g=!1;break}}return E.delete(m),E.delete(b),g}},8351:(s,c,u)=>{var f=u(2705),d=u(1149),y=u(7813),m=u(7114),b=u(8776),h=u(1814),v=f?f.prototype:void 0,C=v?v.valueOf:void 0;s.exports=function(E,S,T,w,A,M,O){switch(T){case"[object DataView]":if(E.byteLength!=S.byteLength||E.byteOffset!=S.byteOffset)return!1;E=E.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(E.byteLength!=S.byteLength||!M(new d(E),new d(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+E,+S);case"[object Error]":return E.name==S.name&&E.message==S.message;case"[object RegExp]":case"[object String]":return E==S+"";case"[object Map]":var g=b;case"[object Set]":var p=1&w;if(g||(g=h),E.size!=S.size&&!p)return!1;var x=O.get(E);if(x)return x==S;w|=2,O.set(E,S);var R=m(g(E),g(S),w,A,M,O);return O.delete(E),R;case"[object Symbol]":if(C)return C.call(E)==C.call(S)}return!1}},6096:(s,c,u)=>{var f=u(8234),d=Object.prototype.hasOwnProperty;s.exports=function(y,m,b,h,v,C){var E=1&b,S=f(y),T=S.length;if(T!=f(m).length&&!E)return!1;for(var w=T;w--;){var A=S[w];if(!(E?A in m:d.call(m,A)))return!1}var M=C.get(y),O=C.get(m);if(M&&O)return M==m&&O==y;var g=!0;C.set(y,m),C.set(m,y);for(var p=E;++w<T;){var x=y[A=S[w]],R=m[A];if(h)var P=E?h(R,x,A,m,y,C):h(x,R,A,y,m,C);if(!(P===void 0?x===R||v(x,R,b,h,C):P)){g=!1;break}p||(p=A=="constructor")}if(g&&!p){var _=y.constructor,k=m.constructor;_==k||!("constructor"in y)||!("constructor"in m)||typeof _=="function"&&_ instanceof _&&typeof k=="function"&&k instanceof k||(g=!1)}return C.delete(y),C.delete(m),g}},1957:(s,c,u)=>{var f=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;s.exports=f},8234:(s,c,u)=>{var f=u(8866),d=u(9551),y=u(3674);s.exports=function(m){return f(m,y,d)}},5050:(s,c,u)=>{var f=u(7019);s.exports=function(d,y){var m=d.__data__;return f(y)?m[typeof y=="string"?"string":"hash"]:m.map}},852:(s,c,u)=>{var f=u(8458),d=u(7801);s.exports=function(y,m){var b=d(y,m);return f(b)?b:void 0}},9607:(s,c,u)=>{var f=u(2705),d=Object.prototype,y=d.hasOwnProperty,m=d.toString,b=f?f.toStringTag:void 0;s.exports=function(h){var v=y.call(h,b),C=h[b];try{h[b]=void 0;var E=!0}catch{}var S=m.call(h);return E&&(v?h[b]=C:delete h[b]),S}},9551:(s,c,u)=>{var f=u(4963),d=u(479),y=Object.prototype.propertyIsEnumerable,m=Object.getOwnPropertySymbols,b=m?function(h){return h==null?[]:(h=Object(h),f(m(h),function(v){return y.call(h,v)}))}:d;s.exports=b},4160:(s,c,u)=>{var f=u(8552),d=u(7071),y=u(3818),m=u(8525),b=u(577),h=u(4239),v=u(346),C="[object Map]",E="[object Promise]",S="[object Set]",T="[object WeakMap]",w="[object DataView]",A=v(f),M=v(d),O=v(y),g=v(m),p=v(b),x=h;(f&&x(new f(new ArrayBuffer(1)))!=w||d&&x(new d)!=C||y&&x(y.resolve())!=E||m&&x(new m)!=S||b&&x(new b)!=T)&&(x=function(R){var P=h(R),_=P=="[object Object]"?R.constructor:void 0,k=_?v(_):"";if(k)switch(k){case A:return w;case M:return C;case O:return E;case g:return S;case p:return T}return P}),s.exports=x},7801:s=>{s.exports=function(c,u){return c==null?void 0:c[u]}},1789:(s,c,u)=>{var f=u(4536);s.exports=function(){this.__data__=f?f(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 f=u(4536),d=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;if(f){var b=m[y];return b==="__lodash_hash_undefined__"?void 0:b}return d.call(m,y)?m[y]:void 0}},1327:(s,c,u)=>{var f=u(4536),d=Object.prototype.hasOwnProperty;s.exports=function(y){var m=this.__data__;return f?m[y]!==void 0:d.call(m,y)}},1866:(s,c,u)=>{var f=u(4536);s.exports=function(d,y){var m=this.__data__;return this.size+=this.has(d)?0:1,m[d]=f&&y===void 0?"__lodash_hash_undefined__":y,this}},5776:s=>{var c=/^(?:0|[1-9]\d*)$/;s.exports=function(u,f){var d=typeof u;return!!(f=f??9007199254740991)&&(d=="number"||d!="symbol"&&c.test(u))&&u>-1&&u%1==0&&u<f}},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 f,d=u(4429),y=(f=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"";s.exports=function(m){return!!y&&y in m}},5726:s=>{var c=Object.prototype;s.exports=function(u){var f=u&&u.constructor;return u===(typeof f=="function"&&f.prototype||c)}},7040:s=>{s.exports=function(){this.__data__=[],this.size=0}},4125:(s,c,u)=>{var f=u(8470),d=Array.prototype.splice;s.exports=function(y){var m=this.__data__,b=f(m,y);return!(b<0||(b==m.length-1?m.pop():d.call(m,b,1),--this.size,0))}},2117:(s,c,u)=>{var f=u(8470);s.exports=function(d){var y=this.__data__,m=f(y,d);return m<0?void 0:y[m][1]}},7518:(s,c,u)=>{var f=u(8470);s.exports=function(d){return f(this.__data__,d)>-1}},4705:(s,c,u)=>{var f=u(8470);s.exports=function(d,y){var m=this.__data__,b=f(m,d);return b<0?(++this.size,m.push([d,y])):m[b][1]=y,this}},4785:(s,c,u)=>{var f=u(1989),d=u(8407),y=u(7071);s.exports=function(){this.size=0,this.__data__={hash:new f,map:new(y||d),string:new f}}},1285:(s,c,u)=>{var f=u(5050);s.exports=function(d){var y=f(this,d).delete(d);return this.size-=y?1:0,y}},6e3:(s,c,u)=>{var f=u(5050);s.exports=function(d){return f(this,d).get(d)}},9916:(s,c,u)=>{var f=u(5050);s.exports=function(d){return f(this,d).has(d)}},5265:(s,c,u)=>{var f=u(5050);s.exports=function(d,y){var m=f(this,d),b=m.size;return m.set(d,y),this.size+=m.size==b?0:1,this}},8776:s=>{s.exports=function(c){var u=-1,f=Array(c.size);return c.forEach(function(d,y){f[++u]=[y,d]}),f}},4536:(s,c,u)=>{var f=u(852)(Object,"create");s.exports=f},6916:(s,c,u)=>{var f=u(5569)(Object.keys,Object);s.exports=f},1167:(s,c,u)=>{s=u.nmd(s);var f=u(1957),d=c&&!c.nodeType&&c,y=d&&s&&!s.nodeType&&s,m=y&&y.exports===d&&f.process,b=function(){try{return y&&y.require&&y.require("util").types||m&&m.binding&&m.binding("util")}catch{}}();s.exports=b},2333:s=>{var c=Object.prototype.toString;s.exports=function(u){return c.call(u)}},5569:s=>{s.exports=function(c,u){return function(f){return c(u(f))}}},5639:(s,c,u)=>{var f=u(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,y=f||d||Function("return this")();s.exports=y},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,f=Array(c.size);return c.forEach(function(d){f[++u]=d}),f}},7465:(s,c,u)=>{var f=u(8407);s.exports=function(){this.__data__=new f,this.size=0}},3779:s=>{s.exports=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f}},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 f=u(8407),d=u(7071),y=u(3369);s.exports=function(m,b){var h=this.__data__;if(h instanceof f){var v=h.__data__;if(!d||v.length<199)return v.push([m,b]),this.size=++h.size,this;h=this.__data__=new y(v)}return h.set(m,b),this.size=h.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 f=u(9454),d=u(7005),y=Object.prototype,m=y.hasOwnProperty,b=y.propertyIsEnumerable,h=f(function(){return arguments}())?f:function(v){return d(v)&&m.call(v,"callee")&&!b.call(v,"callee")};s.exports=h},1469:s=>{var c=Array.isArray;s.exports=c},8612:(s,c,u)=>{var f=u(3560),d=u(1780);s.exports=function(y){return y!=null&&d(y.length)&&!f(y)}},4144:(s,c,u)=>{s=u.nmd(s);var f=u(5639),d=u(5062),y=c&&!c.nodeType&&c,m=y&&s&&!s.nodeType&&s,b=m&&m.exports===y?f.Buffer:void 0,h=(b?b.isBuffer:void 0)||d;s.exports=h},8446:(s,c,u)=>{var f=u(939);s.exports=function(d,y){return f(d,y)}},3560:(s,c,u)=>{var f=u(4239),d=u(3218);s.exports=function(y){if(!d(y))return!1;var m=f(y);return m=="[object Function]"||m=="[object GeneratorFunction]"||m=="[object AsyncFunction]"||m=="[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 f=u(8749),d=u(1717),y=u(1167),m=y&&y.isTypedArray,b=m?d(m):f;s.exports=b},3674:(s,c,u)=>{var f=u(4636),d=u(280),y=u(8612);s.exports=function(m){return y(m)?f(m):d(m)}},8306:(s,c,u)=>{var f=u(3369);function d(y,m){if(typeof y!="function"||m!=null&&typeof m!="function")throw new TypeError("Expected a function");var b=function(){var h=arguments,v=m?m.apply(this,h):h[0],C=b.cache;if(C.has(v))return C.get(v);var E=y.apply(this,h);return b.cache=C.set(v,E)||C,E};return b.cache=new(d.Cache||f),b}d.Cache=f,s.exports=d},479:s=>{s.exports=function(){return[]}},5062:s=>{s.exports=function(){return!1}},2703:(s,c,u)=>{var f=u(414);function d(){}function y(){}y.resetWarningCache=d,s.exports=function(){function m(v,C,E,S,T,w){if(w!==f){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}}function b(){return m}m.isRequired=m;var h={array:m,bigint:m,bool:m,func:m,number:m,object:m,string:m,symbol:m,any:m,arrayOf:b,element:m,elementType:m,instanceOf:b,node:m,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:y,resetWarningCache:d};return h.PropTypes=h,h}},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:()=>Xt,expandNodesToLevel:()=>Yt});var s=a(4184),c=a.n(s),u=a(8446),f=a.n(u),d=a(8306),y=a.n(d);let m=(U=21)=>crypto.getRandomValues(new Uint8Array(U)).reduce(($,K)=>$+((K&=63)<36?K.toString(36):K<62?(K-26).toString(36).toUpperCase():K>62?"-":"_"),"");var b=a(5697),h=a.n(b),v=a(9787),C=a.n(v);function E(U){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},E(U)}var S=["children","title"];function T(){return T=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(U[z]=K[z])}return U},T.apply(this,arguments)}function w(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function A(U,$){for(var K=0;K<$.length;K++){var z=$[K];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(U,z.key,z)}}function M(U,$){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,z){return K.__proto__=z,K},M(U,$)}function O(U,$){if($&&(E($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function g(U){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},g(U)}function p(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var x=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&M(ee,L)})(je,U);var $,K,z,Se,ke=(z=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 ee,L=g(z);if(Se){var H=g(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return O(this,ee)});function je(){return w(this,je),ke.apply(this,arguments)}return $=je,(K=[{key:"render",value:function(){var ee=this.props,L=ee.children,H=ee.title,ie=function(Oe,Me){if(Oe==null)return{};var lt,I,J=function(F,q){if(F==null)return{};var re,me,ge={},Ie=Object.keys(F);for(me=0;me<Ie.length;me++)re=Ie[me],q.indexOf(re)>=0||(ge[re]=F[re]);return ge}(Oe,Me);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Oe);for(I=0;I<fe.length;I++)lt=fe[I],Me.indexOf(lt)>=0||Object.prototype.propertyIsEnumerable.call(Oe,lt)&&(J[lt]=Oe[lt])}return J}(ee,S);return C().createElement("button",T({"aria-label":H,title:H,type:"button"},ie),L)}}])&&A($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);p(x,"propTypes",{children:h().node.isRequired,title:h().string}),p(x,"defaultProps",{title:null});const R=x,P={ALL:"all",PARENT:"parent",LEAF:"leaf"};function _(U){this.message=U,this.stack=Error().stack}_.prototype=Object.create(Error.prototype),_.prototype.name="CheckboxTreeError";const k=_;function D(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(U);$&&(z=z.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,z)}return K}function W(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}function Z(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function G(U,$){for(var K=0;K<$.length;K++){var z=$[K];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(U,z.key,z)}}var B=P;const Y=function(){function U(z){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Z(this,U),this.props=z,this.flatNodes=Se}var $,K;return $=U,K=[{key:"setProps",value:function(z){this.props=z}},{key:"clone",value:function(){var z=this,Se={};return Object.keys(this.flatNodes).forEach(function(ke){var je=z.flatNodes[ke];Se[ke]=function(ee){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?D(Object(H),!0).forEach(function(ie){W(ee,ie,H[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ee,Object.getOwnPropertyDescriptors(H)):D(Object(H)).forEach(function(ie){Object.defineProperty(ee,ie,Object.getOwnPropertyDescriptor(H,ie))})}return ee}({},je)}),new U(this.props,Se)}},{key:"getNode",value:function(z){return this.flatNodes[z]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(z){var Se=this,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(z)&&z.length!==0){var ee=this.props,L=ee.disabled,H=ee.noCascade;z.forEach(function(ie,Oe){var Me=Se.nodeHasChildren(ie);if(Se.flatNodes[ie.value]!==void 0)throw new k("Duplicate value '".concat(ie.value,"' detected. All node values must be unique."));Se.flatNodes[ie.value]={label:ie.label,value:ie.value,children:ie.children,parent:ke,isChild:ke.value!==void 0,isParent:Me,isLeaf:!Me,showCheckbox:ie.showCheckbox===void 0||ie.showCheckbox,disabled:Se.getDisabledState(ie,ke,L,H),treeDepth:je,index:Oe},Se.flattenNodes(ie.children,ie,je+1)})}}},{key:"nodeHasChildren",value:function(z){return Array.isArray(z.children)}},{key:"getDisabledState",value:function(z,Se,ke,je){return!!ke||!(je||!Se.disabled)||!!z.disabled}},{key:"deserializeLists",value:function(z){var Se=this,ke=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(je){ke.forEach(function(ee){Se.flatNodes[je][ee]=!1})}),ke.forEach(function(je){z[je].forEach(function(ee){Se.flatNodes[ee]!==void 0&&(Se.flatNodes[ee][je]=!0)})})}},{key:"serializeList",value:function(z){var Se=this,ke=[];return Object.keys(this.flatNodes).forEach(function(je){Se.flatNodes[je][z]&&ke.push(je)}),ke}},{key:"expandAllNodes",value:function(z){var Se=this;return Object.keys(this.flatNodes).forEach(function(ke){Se.flatNodes[ke].isParent&&(Se.flatNodes[ke].expanded=z)}),this}},{key:"toggleChecked",value:function(z,Se,ke,je){var ee=this,L=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],H=this.flatNodes[z.value],ie=[B.PARENT,B.ALL].indexOf(ke)>-1,Oe=[B.LEAF,B.ALL].indexOf(ke)>-1;if(H.isLeaf||je){if(z.disabled)return this;this.toggleNode(z.value,"checked",Se)}else(ie||H.children.length===0)&&this.toggleNode(z.value,"checked",Se),Oe&&H.children.forEach(function(Me){ee.toggleChecked(Me,Se,ke,je,!1)});return L&&!je&&H.isChild&&ie&&this.toggleParentStatus(H.parent,ke),this}},{key:"toggleParentStatus",value:function(z,Se){var ke=this.flatNodes[z.value];ke.isChild?(Se===B.ALL&&this.toggleNode(z.value,"checked",this.isEveryChildChecked(ke)),this.toggleParentStatus(ke.parent,Se)):this.toggleNode(z.value,"checked",this.isEveryChildChecked(ke))}},{key:"isEveryChildChecked",value:function(z){var Se=this;return z.children.every(function(ke){return Se.getNode(ke.value).checked})}},{key:"toggleNode",value:function(z,Se,ke){return this.flatNodes[z][Se]=ke,this}}],K&&G($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),U}();function ae(U){return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},ae(U)}function oe(){return oe=Object.assign?Object.assign.bind():function(U){for(var $=1;$<arguments.length;$++){var K=arguments[$];for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(U[z]=K[z])}return U},oe.apply(this,arguments)}function ne(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(U);$&&(z=z.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,z)}return K}function ue(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function ce(U,$){for(var K=0;K<$.length;K++){var z=$[K];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(U,z.key,z)}}function ye(U,$){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,z){return K.__proto__=z,K},ye(U,$)}function se(U,$){if($&&(ae($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}(U)}function le(U){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},le(U)}function te(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var ve=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&ye(ee,L)})(je,U);var $,K,z,Se,ke=(z=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 ee,L=le(z);if(Se){var H=le(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return se(this,ee)});function je(){return ue(this,je),ke.apply(this,arguments)}return $=je,K=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var ee=this.props.indeterminate;this.checkbox.indeterminate=ee}},{key:"render",value:function(){var ee=this,L=function(H){for(var ie=1;ie<arguments.length;ie++){var Oe=arguments[ie]!=null?arguments[ie]:{};ie%2?ne(Object(Oe),!0).forEach(function(Me){te(H,Me,Oe[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Oe)):ne(Object(Oe)).forEach(function(Me){Object.defineProperty(H,Me,Object.getOwnPropertyDescriptor(Oe,Me))})}return H}({},this.props);return delete L.indeterminate,C().createElement("input",oe({},L,{ref:function(H){ee.checkbox=H},type:"checkbox"}))}}],K&&ce($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);te(ve,"propTypes",{indeterminate:h().bool}),te(ve,"defaultProps",{indeterminate:!1});const X=ve,Re=h().shape({check:h().node,uncheck:h().node,halfCheck:h().node,expandClose:h().node,expandOpen:h().node,expandAll:h().node,collapseAll:h().node,parentClose:h().node,parentOpen:h().node,leaf:h().node}),V=h().shape({collapseAll:h().string.isRequired,expandAll:h().string.isRequired,toggle:h().string.isRequired});function pe(U){return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},pe(U)}function de(U,$){for(var K=0;K<$.length;K++){var z=$[K];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(U,z.key,z)}}function Ce(U,$){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,z){return K.__proto__=z,K},Ce(U,$)}function Te(U,$){if($&&(pe($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(U)}function $e(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function He(U){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},He(U)}function Ne(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var be=function(U){(function(ee,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(L&&L.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),L&&Ce(ee,L)})(je,U);var $,K,z,Se,ke=(z=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 ee,L=He(z);if(Se){var H=He(this).constructor;ee=Reflect.construct(L,arguments,H)}else ee=L.apply(this,arguments);return Te(this,ee)});function je(ee){var L;return function(H,ie){if(!(H instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,je),(L=ke.call(this,ee)).onCheck=L.onCheck.bind($e(L)),L.onCheckboxKeyPress=L.onCheckboxKeyPress.bind($e(L)),L.onCheckboxKeyUp=L.onCheckboxKeyUp.bind($e(L)),L.onClick=L.onClick.bind($e(L)),L.onExpand=L.onExpand.bind($e(L)),L}return $=je,(K=[{key:"onCheck",value:function(){var ee=this.props,L=ee.value;(0,ee.onCheck)({value:L,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(ee){ee.which===32&&ee.preventDefault()}},{key:"onCheckboxKeyUp",value:function(ee){var L=ee.keyCode;[13,32].includes(L)&&this.onCheck()}},{key:"onClick",value:function(){var ee=this.props,L=ee.expandOnClick,H=ee.isParent,ie=ee.value,Oe=ee.onClick;H&&L&&this.onExpand(),Oe({value:ie,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var ee=this.props,L=ee.expanded,H=ee.value;(0,ee.onExpand)({value:H,expanded:!L})}},{key:"getCheckState",value:function(ee){var L=ee.toggle,H=this.props,ie=H.checked,Oe=H.optimisticToggle;return!(ie!==0||!L)||ie===1&&!L||ie===2&&Oe}},{key:"renderCollapseButton",value:function(){var ee=this.props,L=ee.expandDisabled,H=ee.isLeaf,ie=ee.lang;return H?C().createElement("span",{className:"rct-collapse"},C().createElement("span",{className:"rct-icon"})):C().createElement(R,{className:"rct-collapse rct-collapse-btn",disabled:L,title:ie.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icons,ie=H.expandClose,Oe=H.expandOpen;return L?Oe:ie}},{key:"renderCheckboxIcon",value:function(){var ee=this.props,L=ee.checked,H=ee.icons,ie=H.uncheck,Oe=H.check,Me=H.halfCheck;return L===0?ie:L===1?Oe:Me}},{key:"renderNodeIcon",value:function(){var ee=this.props,L=ee.expanded,H=ee.icon,ie=ee.icons,Oe=ie.leaf,Me=ie.parentClose,lt=ie.parentOpen,I=ee.isLeaf;return H!==null?H:I?Oe:L?lt:Me}},{key:"renderBareLabel",value:function(ee){var L=this.props,H=L.onClick,ie=L.title,Oe=H!==null;return C().createElement("span",{className:"rct-bare-label",title:ie},Oe?C().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},ee):ee)}},{key:"renderCheckboxLabel",value:function(ee){var L=this.props,H=L.checked,ie=L.disabled,Oe=L.title,Me=L.treeId,lt=L.value,I=L.onClick!==null,J="".concat(Me,"-").concat(String(lt).split(" ").join("_")),fe=[C().createElement("label",{key:0,htmlFor:J,title:Oe},C().createElement(X,{checked:H===1,disabled:ie,id:J,indeterminate:H===2,onClick:this.onCheck,onChange:function(){}}),C().createElement("span",{"aria-checked":H===1,"aria-disabled":ie,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),I?null:ee)];return I&&fe.push(C().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},ee)),fe}},{key:"renderLabel",value:function(){var ee=this.props,L=ee.label,H=ee.showCheckbox,ie=[ee.showNodeIcon?C().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,C().createElement("span",{key:1,className:"rct-title"},L)];return H?this.renderCheckboxLabel(ie):this.renderBareLabel(ie)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var ee=this.props,L=ee.className,H=ee.disabled,ie=ee.expanded,Oe=ee.isLeaf,Me=c()({"rct-node":!0,"rct-node-leaf":Oe,"rct-node-parent":!Oe,"rct-node-expanded":!Oe&&ie,"rct-node-collapsed":!Oe&&!ie,"rct-disabled":H},L);return C().createElement("li",{className:Me},C().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&de($.prototype,K),Object.defineProperty($,"prototype",{writable:!1}),je}(C().PureComponent);Ne(be,"propTypes",{checked:h().number.isRequired,disabled:h().bool.isRequired,expandDisabled:h().bool.isRequired,expanded:h().bool.isRequired,icons:Re.isRequired,isLeaf:h().bool.isRequired,isParent:h().bool.isRequired,label:h().node.isRequired,lang:V.isRequired,optimisticToggle:h().bool.isRequired,showNodeIcon:h().bool.isRequired,treeId:h().string.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,onCheck:h().func.isRequired,onExpand:h().func.isRequired,children:h().node,className:h().string,expandOnClick:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string,onClick:h().func}),Ne(be,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const Fe=be,Ye=h().oneOfType([h().arrayOf(h().string),h().arrayOf(h().number)]);function ht(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(U);$&&(z=z.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,z)}return K}function Ct(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?ht(Object(K),!0).forEach(function(z){pt(U,z,K[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):ht(Object(K)).forEach(function(z){Object.defineProperty(U,z,Object.getOwnPropertyDescriptor(K,z))})}return U}function pt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var Ue={label:h().node.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,disabled:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string};const Be=h().oneOfType([h().shape(Ue),h().shape(Ct(Ct({},Ue),{},{children:h().arrayOf(Ue).isRequired}))]);function st(U){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},st(U)}function De(U,$){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(U);$&&(z=z.filter(function(Se){return Object.getOwnPropertyDescriptor(U,Se).enumerable})),K.push.apply(K,z)}return K}function Ze(U){for(var $=1;$<arguments.length;$++){var K=arguments[$]!=null?arguments[$]:{};$%2?De(Object(K),!0).forEach(function(z){wt(U,z,K[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):De(Object(K)).forEach(function(z){Object.defineProperty(U,z,Object.getOwnPropertyDescriptor(K,z))})}return U}function mt(U,$){for(var K=0;K<$.length;K++){var z=$[K];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(U,z.key,z)}}function ft(U,$){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,z){return K.__proto__=z,K},ft(U,$)}function Ee(U,$){if($&&(st($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ae(U)}function Ae(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function at(U){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},at(U)}function wt(U,$,K){return $ in U?Object.defineProperty(U,$,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[$]=K,U}var St=function(U){(function(L,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(H&&H.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),H&&ft(L,H)})(ee,U);var $,K,z,Se,ke,je=(Se=ee,ke=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 L,H=at(Se);if(ke){var ie=at(this).constructor;L=Reflect.construct(H,arguments,ie)}else L=H.apply(this,arguments);return Ee(this,L)});function ee(L){var H;(function(Oe,Me){if(!(Oe instanceof Me))throw new TypeError("Cannot call a class as a function")})(this,ee),H=je.call(this,L);var ie=new Y(L);return ie.flattenNodes(L.nodes),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),H.state={id:L.id||"rct-".concat(m()),model:ie,prevProps:L},H.onCheck=H.onCheck.bind(Ae(H)),H.onExpand=H.onExpand.bind(Ae(H)),H.onNodeClick=H.onNodeClick.bind(Ae(H)),H.onExpandAll=H.onExpandAll.bind(Ae(H)),H.onCollapseAll=H.onCollapseAll.bind(Ae(H)),H.combineMemorized=y()(function(Oe,Me){return Ze(Ze({},Oe),Me)}).bind(Ae(H)),H}return $=ee,K=[{key:"onCheck",value:function(L){var H=this.props,ie=H.checkModel,Oe=H.noCascade,Me=H.onCheck,lt=this.state.model.clone(),I=lt.getNode(L.value);lt.toggleChecked(L,L.checked,ie,Oe),Me(lt.serializeList("checked"),Ze(Ze({},I),L))}},{key:"onExpand",value:function(L){var H=this.props.onExpand,ie=this.state.model.clone(),Oe=ie.getNode(L.value);ie.toggleNode(L.value,"expanded",L.expanded),H(ie.serializeList("expanded"),Ze(Ze({},Oe),L))}},{key:"onNodeClick",value:function(L){(0,this.props.onClick)(Ze(Ze({},this.state.model.getNode(L.value)),L))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var L=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],H=this.props.onExpand;H(this.state.model.clone().expandAllNodes(L).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(L,H){var ie=this.state.model.getNode(L.value);return ie.isLeaf||H||L.children.length===0?ie.checked?1:0:this.isEveryChildChecked(L)?1:this.isSomeChildChecked(L)?2:0}},{key:"isEveryChildChecked",value:function(L){var H=this;return L.children.every(function(ie){return H.state.model.getNode(ie.value).checkState===1})}},{key:"isSomeChildChecked",value:function(L){var H=this;return L.children.some(function(ie){return H.state.model.getNode(ie.value).checkState>0})}},{key:"renderTreeNodes",value:function(L){var H=this,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=this.props,Me=Oe.expandDisabled,lt=Oe.expandOnClick,I=Oe.icons,J=Oe.lang,fe=Oe.noCascade,F=Oe.onClick,q=Oe.onlyLeafCheckboxes,re=Oe.optimisticToggle,me=Oe.showNodeTitle,ge=Oe.showNodeIcon,Ie=this.state,_e=Ie.id,Ve=Ie.model,Et=ee.defaultProps.icons,Rr=L.map(function(vt){var Pt=vt.value,It=Ve.getNode(vt.value),Mr=It.isParent?H.renderTreeNodes(vt.children,vt):null;It.checkState=H.determineShallowCheckState(vt,fe);var Kr=q?It.isLeaf:It.showCheckbox;return!ie.value||Ve.getNode(ie.value).expanded?C().createElement(Fe,{key:Pt,checked:It.checkState,className:vt.className,disabled:It.disabled,expandDisabled:Me,expandOnClick:lt,expanded:It.expanded,icon:vt.icon,icons:H.combineMemorized(Et,I),label:vt.label,lang:J,optimisticToggle:re,isLeaf:It.isLeaf,isParent:It.isParent,showCheckbox:Kr,showNodeIcon:ge,title:me?vt.title||vt.label:vt.title,treeId:_e,value:vt.value,onCheck:H.onCheck,onClick:F&&H.onNodeClick,onExpand:H.onExpand},Mr):null});return C().createElement("ol",null,Rr)}},{key:"renderExpandAll",value:function(){var L=this.props,H=L.icons,ie=H.expandAll,Oe=H.collapseAll,Me=L.lang;return L.showExpandAll?C().createElement("div",{className:"rct-options"},C().createElement(R,{className:"rct-option rct-option-expand-all",title:Me.expandAll,onClick:this.onExpandAll},ie),C().createElement(R,{className:"rct-option rct-option-collapse-all",title:Me.collapseAll,onClick:this.onCollapseAll},Oe)):null}},{key:"renderHiddenInput",value:function(){var L=this.props,H=L.name,ie=L.nameAsArray;return H===void 0?null:ie?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name;return H.map(function(Oe){var Me="".concat(ie,"[]");return C().createElement("input",{key:Oe,name:Me,type:"hidden",value:Oe})})}},{key:"renderJoinedHiddenInput",value:function(){var L=this.props,H=L.checked,ie=L.name,Oe=H.join(",");return C().createElement("input",{name:ie,type:"hidden",value:Oe})}},{key:"render",value:function(){var L,H=this.props,ie=H.direction,Oe=H.disabled,Me=H.iconsClass,lt=H.nodes,I=H.nativeCheckboxes,J=this.state.id,fe=this.renderTreeNodes(lt),F=c()((wt(L={"react-checkbox-tree":!0,"rct-disabled":Oe},"rct-icons-".concat(Me),!0),wt(L,"rct-native-display",I),wt(L,"rct-direction-rtl",ie==="rtl"),L));return C().createElement("div",{className:F,id:J},this.renderExpandAll(),this.renderHiddenInput(),fe)}}],z=[{key:"getDerivedStateFromProps",value:function(L,H){var ie=H.model,Oe=H.prevProps,Me=L.disabled,lt=L.id,I=L.nodes,J=Ze(Ze({},H),{},{prevProps:L});return ie.setProps(L),f()(Oe.nodes,I)&&Oe.disabled===Me||(ie.reset(),ie.flattenNodes(I)),lt!==null&&(J=Ze(Ze({},J),{},{id:lt})),ie.deserializeLists({checked:L.checked,expanded:L.expanded}),J}}],K&&mt($.prototype,K),z&&mt($,z),Object.defineProperty($,"prototype",{writable:!1}),ee}(C().Component);function Bt(U){return function($){if(Array.isArray($))return Rt($)}(U)||function($){if(typeof Symbol<"u"&&$[Symbol.iterator]!=null||$["@@iterator"]!=null)return Array.from($)}(U)||function($,K){if($){if(typeof $=="string")return Rt($,K);var z=Object.prototype.toString.call($).slice(8,-1);return z==="Object"&&$.constructor&&(z=$.constructor.name),z==="Map"||z==="Set"?Array.from($):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?Rt($,K):void 0}}(U)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
214
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rt(U,$){($==null||$>U.length)&&($=U.length);for(var K=0,z=new Array($);K<$;K++)z[K]=U[K];return z}function Yt(U,$){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(K>$)return[];var z=[];return U.forEach(function(Se){Se.children&&(z=[].concat(Bt(z),[Se.value],Bt(Yt(Se.children,$,K+1))))}),z}wt(St,"propTypes",{nodes:h().arrayOf(Be).isRequired,checkModel:h().oneOf([P.LEAF,P.ALL]),checked:Ye,direction:h().string,disabled:h().bool,expandDisabled:h().bool,expandOnClick:h().bool,expanded:Ye,icons:Re,iconsClass:h().string,id:h().string,lang:V,name:h().string,nameAsArray:h().bool,nativeCheckboxes:h().bool,noCascade:h().bool,onlyLeafCheckboxes:h().bool,optimisticToggle:h().bool,showExpandAll:h().bool,showNodeIcon:h().bool,showNodeTitle:h().bool,onCheck:h().func,onClick:h().func,onExpand:h().func}),wt(St,"defaultProps",{checkModel:P.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:C().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:C().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:C().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:C().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:C().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:C().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:C().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:C().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:C().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:C().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 Xt=St})(),l})())}(oc)),oc.exports}var bC=vC();const xC=Jt(bC),OC=_t(N.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"),EC=_t(N.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"),lm=_t(N.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"),CC=_t(N.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),SC=_t(N.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),TC=_t(N.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"),wC=_t(N.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"),RC=_t(N.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"),PC=_t(N.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 li={};/*!
215
215
  * cookie
216
216
  * Copyright(c) 2012-2014 Roman Shtylman
217
217
  * Copyright(c) 2015 Douglas Christopher Wilson
218
218
  * MIT Licensed
219
- */var cm;function RC(){if(cm)return si;cm=1,si.parse=l,si.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[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(m,b){if(typeof m!="string")throw new TypeError("argument str must be a string");var h={},v=m.length;if(v<2)return h;var C=b&&b.decode||f,E=0,S=0,T=0;do{if(S=m.indexOf("=",E),S===-1)break;if(T=m.indexOf(";",E),T===-1)T=v;else if(S>T){E=m.lastIndexOf(";",S-1)+1;continue}var w=s(m,E,S),A=c(m,S,w),M=m.slice(w,A);if(!t.call(h,M)){var O=s(m,S+1,T),g=c(m,T,O);m.charCodeAt(O)===34&&m.charCodeAt(g-1)===34&&(O++,g--);var p=m.slice(O,g);h[M]=y(p,C)}E=T+1}while(E<v);return h}function s(m,b,h){do{var v=m.charCodeAt(b);if(v!==32&&v!==9)return b}while(++b<h);return h}function c(m,b,h){for(;b>h;){var v=m.charCodeAt(--b);if(v!==32&&v!==9)return b+1}return h}function u(m,b,h){var v=h&&h.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!r.test(m))throw new TypeError("argument name is invalid");var C=v(b);if(!n.test(C))throw new TypeError("argument val is invalid");var E=m+"="+C;if(!h)return E;if(h.maxAge!=null){var S=Math.floor(h.maxAge);if(!isFinite(S))throw new TypeError("option maxAge is invalid");E+="; Max-Age="+S}if(h.domain){if(!i.test(h.domain))throw new TypeError("option domain is invalid");E+="; Domain="+h.domain}if(h.path){if(!a.test(h.path))throw new TypeError("option path is invalid");E+="; Path="+h.path}if(h.expires){var T=h.expires;if(!d(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");E+="; Expires="+T.toUTCString()}if(h.httpOnly&&(E+="; HttpOnly"),h.secure&&(E+="; Secure"),h.partitioned&&(E+="; Partitioned"),h.priority){var w=typeof h.priority=="string"?h.priority.toLowerCase():h.priority;switch(w){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(h.sameSite){var A=typeof h.sameSite=="string"?h.sameSite.toLowerCase():h.sameSite;switch(A){case!0:E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"strict":E+="; SameSite=Strict";break;case"none":E+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return E}function f(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function d(m){return e.call(m)==="[object Date]"}function y(m,b){try{return b(m)}catch{return m}}return si}var li=RC();function PC(){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 _C(e){return typeof e=="string"?li.parse(e):typeof e=="object"&&e!==null?e:{}}function ic(e,t={}){const r=IC(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function IC(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class um{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=li.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=_C(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=PC()}_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:ic(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),ic(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=ic(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=li.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=li.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())}}function kC(e){const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c,action:u}=r;a(s,t,r,n);const[f,d]=we.useState(n||[]),[y,m]=we.useState([]),[b,h]=we.useState([]);we.useEffect(()=>{l(f)},[f]);const v=E=>{const S=new um,T={"Content-Type":"application/json"};S.get("csrf")&&Object.assign(T,{"X-CSRF-TOKEN":S.get("csrf")}),fetch(E,{headers:T,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(A=>{throw new Error(A)})).then(w=>{h(w)}).catch(w=>{console.error(w)})};we.useEffect(()=>{const{url:E}=u;v(E)},[]);const C={check:N.jsx(bC,{className:"rct-icon rct-icon-check"}),uncheck:N.jsx(xC,{className:"rct-icon rct-icon-uncheck"}),halfCheck:N.jsx(lm,{className:"rct-icon rct-icon-half-check"}),expandClose:N.jsx(OC,{className:"rct-icon rct-icon-expand-close"}),expandOpen:N.jsx(EC,{className:"rct-icon rct-icon-expand-open"}),expandAll:N.jsx(CC,{className:"rct-icon rct-icon-expand-all"}),collapseAll:N.jsx(lm,{className:"rct-icon rct-icon-collapse-all"}),parentClose:N.jsx(SC,{className:"rct-icon rct-icon-parent-close"}),parentOpen:N.jsx(TC,{className:"rct-icon rct-icon-parent-open"}),leaf:N.jsx(wC,{className:"rct-icon rct-icon-leaf-close"})};return N.jsxs(we.Fragment,{children:[N.jsx(Nr,{required:r.required,children:c}),N.jsx(vC,{nodes:b,checked:f,expanded:y,onCheck:E=>d(E),onExpand:E=>m(E),icons:C,noCascade:!0}),i?N.jsx(Ln,{error:!0,children:i}):null]})}const jC=jt(kC);function pm(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function AC(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 f=l?c.trim():c;r&&(f=f.toLowerCase()),t&&(f=pm(f));const d=f?s.filter(y=>{let m=(a||u)(y);return r&&(m=m.toLowerCase()),t&&(m=pm(m)),i==="start"?m.startsWith(f):m.includes(f)}):s;return typeof n=="number"?d.slice(0,n):d}}const NC=AC(),fm=5,$C=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},MC=[];function DC(e){const{unstable_isActiveElementInListbox:t=$C,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:f=e.multiple?MC:null,disableClearable:d=!1,disableCloseOnSelect:y=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:h=!1,filterOptions:v=NC,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:S,getOptionKey:T,getOptionLabel:w=F=>F.label??F,groupBy:A,handleHomeEndKeys:M=!e.freeSolo,id:O,includeInputInList:g=!1,inputValue:p,isOptionEqualToValue:x=(F,q)=>F===q,multiple:R=!1,onChange:P,onClose:_,onHighlightChange:k,onInputChange:D,onOpen:W,open:Z,openOnFocus:G=!1,options:B,readOnly:Y=!1,selectOnFocus:ae=!e.freeSolo,value:oe}=e,ne=vo(O);let ue=w;ue=F=>{const q=w(F);if(typeof q!="string"){if(process.env.NODE_ENV!=="production"){const re=q===void 0?"undefined":`${typeof q} (${q})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${re} instead of a string for ${JSON.stringify(F)}.`)}return String(q)}return q};const ce=j.useRef(!1),ye=j.useRef(!0),se=j.useRef(null),le=j.useRef(null),[te,ve]=j.useState(null),[X,Re]=j.useState(-1),z=i?0:-1,pe=j.useRef(z),[de,Ce]=qr({controlled:oe,default:f,name:u}),[Te,$e]=qr({controlled:p,default:"",name:u,state:"inputValue"}),[He,Ne]=j.useState(!1),be=j.useCallback((F,q,re)=>{if(!(R?de.length<q.length:q!==null)&&!s)return;let ge;if(R)ge="";else if(q==null)ge="";else{const Ie=ue(q);ge=typeof Ie=="string"?Ie:""}Te!==ge&&($e(ge),D&&D(F,ge,re))},[ue,Te,R,D,$e,s,de]),[Fe,Ye]=qr({controlled:Z,default:!1,name:u,state:"open"}),[ht,Ct]=j.useState(!0),pt=!R&&de!=null&&Te===ue(de),Ue=Fe&&!Y,Be=Ue?v(B.filter(F=>!(C&&(R?de:[de]).some(q=>q!==null&&x(F,q)))),{inputValue:pt&&ht?"":Te,getOptionLabel:ue}):[],st=Ab({filteredOptions:Be,value:de,inputValue:Te});j.useEffect(()=>{const F=de!==st.value;He&&!F||E&&!F||be(null,de,"reset")},[de,be,He,st.value,E]);const De=Fe&&Be.length>0&&!Y,Ze=pr(F=>{F===-1?se.current.focus():te.querySelector(`[data-tag-index="${F}"]`).focus()});j.useEffect(()=>{R&&X>de.length-1&&(Re(-1),Ze(-1))},[de,R,X,Ze]);function mt(F,q){if(!le.current||F<0||F>=Be.length)return-1;let re=F;for(;;){const me=le.current.querySelector(`[data-option-index="${re}"]`),ge=b?!1:!me||me.disabled||me.getAttribute("aria-disabled")==="true";if(me&&me.hasAttribute("tabindex")&&!ge)return re;if(q==="next"?re=(re+1)%Be.length:re=(re-1+Be.length)%Be.length,re===F)return-1}}const ft=pr(({event:F,index:q,reason:re="auto"})=>{if(pe.current=q,q===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ne}-option-${q}`),k&&k(F,q===-1?null:Be[q],re),!le.current)return;const me=le.current.querySelector(`[role="option"].${r}-focused`);me&&(me.classList.remove(`${r}-focused`),me.classList.remove(`${r}-focusVisible`));let ge=le.current;if(le.current.getAttribute("role")!=="listbox"&&(ge=le.current.parentElement.querySelector('[role="listbox"]')),!ge)return;if(q===-1){ge.scrollTop=0;return}const Ie=le.current.querySelector(`[data-option-index="${q}"]`);if(Ie&&(Ie.classList.add(`${r}-focused`),re==="keyboard"&&Ie.classList.add(`${r}-focusVisible`),ge.scrollHeight>ge.clientHeight&&re!=="mouse"&&re!=="touch")){const _e=Ie,ze=ge.clientHeight+ge.scrollTop,Et=_e.offsetTop+_e.offsetHeight;Et>ze?ge.scrollTop=Et-ge.clientHeight:_e.offsetTop-_e.offsetHeight*(A?1.3:0)<ge.scrollTop&&(ge.scrollTop=_e.offsetTop-_e.offsetHeight*(A?1.3:0))}}),Ee=pr(({event:F,diff:q,direction:re="next",reason:me="auto"})=>{if(!Ue)return;const Ie=mt((()=>{const _e=Be.length-1;if(q==="reset")return z;if(q==="start")return 0;if(q==="end")return _e;const ze=pe.current+q;return ze<0?ze===-1&&g?-1:h&&pe.current!==-1||Math.abs(q)>1?0:_e:ze>_e?ze===_e+1&&g?-1:h||Math.abs(q)>1?_e:0:ze})(),re);if(ft({index:Ie,reason:me,event:F}),n&&q!=="reset")if(Ie===-1)se.current.value=Te;else{const _e=ue(Be[Ie]);se.current.value=_e,_e.toLowerCase().indexOf(Te.toLowerCase())===0&&Te.length>0&&se.current.setSelectionRange(Te.length,_e.length)}}),Ae=()=>{const F=(q,re)=>{const me=q?ue(q):"",ge=re?ue(re):"";return me===ge};if(pe.current!==-1&&st.filteredOptions&&st.filteredOptions.length!==Be.length&&st.inputValue===Te&&(R?de.length===st.value.length&&st.value.every((q,re)=>ue(de[re])===ue(q)):F(st.value,de))){const q=st.filteredOptions[pe.current];if(q)return Be.findIndex(re=>ue(re)===ue(q))}return-1},at=j.useCallback(()=>{if(!Ue)return;const F=Ae();if(F!==-1){pe.current=F;return}const q=R?de[0]:de;if(Be.length===0||q==null){Ee({diff:"reset"});return}if(le.current){if(q!=null){const re=Be[pe.current];if(R&&re&&de.findIndex(ge=>x(re,ge))!==-1)return;const me=Be.findIndex(ge=>x(ge,q));me===-1?Ee({diff:"reset"}):ft({index:me});return}if(pe.current>=Be.length-1){ft({index:Be.length-1});return}ft({index:pe.current})}},[Be.length,R?!1:de,C,Ee,ft,Ue,Te,R]),wt=pr(F=>{Do(le,F),F&&at()});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{(!se.current||se.current.nodeName!=="INPUT")&&(se.current&&se.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(`
219
+ */var cm;function _C(){if(cm)return li;cm=1,li.parse=l,li.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[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(m,b){if(typeof m!="string")throw new TypeError("argument str must be a string");var h={},v=m.length;if(v<2)return h;var C=b&&b.decode||f,E=0,S=0,T=0;do{if(S=m.indexOf("=",E),S===-1)break;if(T=m.indexOf(";",E),T===-1)T=v;else if(S>T){E=m.lastIndexOf(";",S-1)+1;continue}var w=s(m,E,S),A=c(m,S,w),M=m.slice(w,A);if(!t.call(h,M)){var O=s(m,S+1,T),g=c(m,T,O);m.charCodeAt(O)===34&&m.charCodeAt(g-1)===34&&(O++,g--);var p=m.slice(O,g);h[M]=y(p,C)}E=T+1}while(E<v);return h}function s(m,b,h){do{var v=m.charCodeAt(b);if(v!==32&&v!==9)return b}while(++b<h);return h}function c(m,b,h){for(;b>h;){var v=m.charCodeAt(--b);if(v!==32&&v!==9)return b+1}return h}function u(m,b,h){var v=h&&h.encode||encodeURIComponent;if(typeof v!="function")throw new TypeError("option encode is invalid");if(!r.test(m))throw new TypeError("argument name is invalid");var C=v(b);if(!n.test(C))throw new TypeError("argument val is invalid");var E=m+"="+C;if(!h)return E;if(h.maxAge!=null){var S=Math.floor(h.maxAge);if(!isFinite(S))throw new TypeError("option maxAge is invalid");E+="; Max-Age="+S}if(h.domain){if(!i.test(h.domain))throw new TypeError("option domain is invalid");E+="; Domain="+h.domain}if(h.path){if(!a.test(h.path))throw new TypeError("option path is invalid");E+="; Path="+h.path}if(h.expires){var T=h.expires;if(!d(T)||isNaN(T.valueOf()))throw new TypeError("option expires is invalid");E+="; Expires="+T.toUTCString()}if(h.httpOnly&&(E+="; HttpOnly"),h.secure&&(E+="; Secure"),h.partitioned&&(E+="; Partitioned"),h.priority){var w=typeof h.priority=="string"?h.priority.toLowerCase():h.priority;switch(w){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(h.sameSite){var A=typeof h.sameSite=="string"?h.sameSite.toLowerCase():h.sameSite;switch(A){case!0:E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"strict":E+="; SameSite=Strict";break;case"none":E+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return E}function f(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function d(m){return e.call(m)==="[object Date]"}function y(m,b){try{return b(m)}catch{return m}}return li}var ci=_C();function IC(){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 kC(e){return typeof e=="string"?ci.parse(e):typeof e=="object"&&e!==null?e:{}}function ic(e,t={}){const r=jC(e);if(!t.doNotParse)try{return JSON.parse(r)}catch{}return e}function jC(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class um{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=ci.parse(document.cookie),this._checkChanges(i)};const n=typeof document>"u"?"":document.cookie;this.cookies=kC(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=IC()}_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:ic(this.cookies[n])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),ic(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();const r={};for(let n in this.cookies)r[n]=ic(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=ci.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=ci.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())}}function AC(e){const{model:t,form:r,value:n,error:i,setDefault:a,onChangeValidate:l}=e,{key:s,title:c,action:u}=r;a(s,t,r,n);const[f,d]=we.useState(n||[]),[y,m]=we.useState([]),[b,h]=we.useState([]);we.useEffect(()=>{l(f)},[f]);const v=E=>{const S=new um,T={"Content-Type":"application/json"};S.get("csrf")&&Object.assign(T,{"X-CSRF-TOKEN":S.get("csrf")}),fetch(E,{headers:T,credentials:"include"}).then(w=>w.ok?w.json():w.text().then(A=>{throw new Error(A)})).then(w=>{h(w)}).catch(w=>{console.error(w)})};we.useEffect(()=>{const{url:E}=u;v(E)},[]);const C={check:N.jsx(OC,{className:"rct-icon rct-icon-check"}),uncheck:N.jsx(EC,{className:"rct-icon rct-icon-uncheck"}),halfCheck:N.jsx(lm,{className:"rct-icon rct-icon-half-check"}),expandClose:N.jsx(CC,{className:"rct-icon rct-icon-expand-close"}),expandOpen:N.jsx(SC,{className:"rct-icon rct-icon-expand-open"}),expandAll:N.jsx(TC,{className:"rct-icon rct-icon-expand-all"}),collapseAll:N.jsx(lm,{className:"rct-icon rct-icon-collapse-all"}),parentClose:N.jsx(wC,{className:"rct-icon rct-icon-parent-close"}),parentOpen:N.jsx(RC,{className:"rct-icon rct-icon-parent-open"}),leaf:N.jsx(PC,{className:"rct-icon rct-icon-leaf-close"})};return N.jsxs(we.Fragment,{children:[N.jsx(Nr,{required:r.required,children:c}),N.jsx(xC,{nodes:b,checked:f,expanded:y,onCheck:E=>d(E),onExpand:E=>m(E),icons:C,noCascade:!0}),i?N.jsx(Ln,{error:!0,children:i}):null]})}const NC=At(AC);function pm(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function $C(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 f=l?c.trim():c;r&&(f=f.toLowerCase()),t&&(f=pm(f));const d=f?s.filter(y=>{let m=(a||u)(y);return r&&(m=m.toLowerCase()),t&&(m=pm(m)),i==="start"?m.startsWith(f):m.includes(f)}):s;return typeof n=="number"?d.slice(0,n):d}}const MC=$C(),fm=5,DC=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},LC=[];function FC(e){const{unstable_isActiveElementInListbox:t=DC,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:f=e.multiple?LC:null,disableClearable:d=!1,disableCloseOnSelect:y=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:h=!1,filterOptions:v=MC,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:S,getOptionKey:T,getOptionLabel:w=F=>F.label??F,groupBy:A,handleHomeEndKeys:M=!e.freeSolo,id:O,includeInputInList:g=!1,inputValue:p,isOptionEqualToValue:x=(F,q)=>F===q,multiple:R=!1,onChange:P,onClose:_,onHighlightChange:k,onInputChange:D,onOpen:W,open:Z,openOnFocus:G=!1,options:B,readOnly:Y=!1,selectOnFocus:ae=!e.freeSolo,value:oe}=e,ne=bo(O);let ue=w;ue=F=>{const q=w(F);if(typeof q!="string"){if(process.env.NODE_ENV!=="production"){const re=q===void 0?"undefined":`${typeof q} (${q})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${re} instead of a string for ${JSON.stringify(F)}.`)}return String(q)}return q};const ce=j.useRef(!1),ye=j.useRef(!0),se=j.useRef(null),le=j.useRef(null),[te,ve]=j.useState(null),[X,Re]=j.useState(-1),V=i?0:-1,pe=j.useRef(V),[de,Ce]=qr({controlled:oe,default:f,name:u}),[Te,$e]=qr({controlled:p,default:"",name:u,state:"inputValue"}),[He,Ne]=j.useState(!1),be=j.useCallback((F,q,re)=>{if(!(R?de.length<q.length:q!==null)&&!s)return;let ge;if(R)ge="";else if(q==null)ge="";else{const Ie=ue(q);ge=typeof Ie=="string"?Ie:""}Te!==ge&&($e(ge),D&&D(F,ge,re))},[ue,Te,R,D,$e,s,de]),[Fe,Ye]=qr({controlled:Z,default:!1,name:u,state:"open"}),[ht,Ct]=j.useState(!0),pt=!R&&de!=null&&Te===ue(de),Ue=Fe&&!Y,Be=Ue?v(B.filter(F=>!(C&&(R?de:[de]).some(q=>q!==null&&x(F,q)))),{inputValue:pt&&ht?"":Te,getOptionLabel:ue}):[],st=$b({filteredOptions:Be,value:de,inputValue:Te});j.useEffect(()=>{const F=de!==st.value;He&&!F||E&&!F||be(null,de,"reset")},[de,be,He,st.value,E]);const De=Fe&&Be.length>0&&!Y,Ze=pr(F=>{F===-1?se.current.focus():te.querySelector(`[data-tag-index="${F}"]`).focus()});j.useEffect(()=>{R&&X>de.length-1&&(Re(-1),Ze(-1))},[de,R,X,Ze]);function mt(F,q){if(!le.current||F<0||F>=Be.length)return-1;let re=F;for(;;){const me=le.current.querySelector(`[data-option-index="${re}"]`),ge=b?!1:!me||me.disabled||me.getAttribute("aria-disabled")==="true";if(me&&me.hasAttribute("tabindex")&&!ge)return re;if(q==="next"?re=(re+1)%Be.length:re=(re-1+Be.length)%Be.length,re===F)return-1}}const ft=pr(({event:F,index:q,reason:re="auto"})=>{if(pe.current=q,q===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${ne}-option-${q}`),k&&k(F,q===-1?null:Be[q],re),!le.current)return;const me=le.current.querySelector(`[role="option"].${r}-focused`);me&&(me.classList.remove(`${r}-focused`),me.classList.remove(`${r}-focusVisible`));let ge=le.current;if(le.current.getAttribute("role")!=="listbox"&&(ge=le.current.parentElement.querySelector('[role="listbox"]')),!ge)return;if(q===-1){ge.scrollTop=0;return}const Ie=le.current.querySelector(`[data-option-index="${q}"]`);if(Ie&&(Ie.classList.add(`${r}-focused`),re==="keyboard"&&Ie.classList.add(`${r}-focusVisible`),ge.scrollHeight>ge.clientHeight&&re!=="mouse"&&re!=="touch")){const _e=Ie,Ve=ge.clientHeight+ge.scrollTop,Et=_e.offsetTop+_e.offsetHeight;Et>Ve?ge.scrollTop=Et-ge.clientHeight:_e.offsetTop-_e.offsetHeight*(A?1.3:0)<ge.scrollTop&&(ge.scrollTop=_e.offsetTop-_e.offsetHeight*(A?1.3:0))}}),Ee=pr(({event:F,diff:q,direction:re="next",reason:me="auto"})=>{if(!Ue)return;const Ie=mt((()=>{const _e=Be.length-1;if(q==="reset")return V;if(q==="start")return 0;if(q==="end")return _e;const Ve=pe.current+q;return Ve<0?Ve===-1&&g?-1:h&&pe.current!==-1||Math.abs(q)>1?0:_e:Ve>_e?Ve===_e+1&&g?-1:h||Math.abs(q)>1?_e:0:Ve})(),re);if(ft({index:Ie,reason:me,event:F}),n&&q!=="reset")if(Ie===-1)se.current.value=Te;else{const _e=ue(Be[Ie]);se.current.value=_e,_e.toLowerCase().indexOf(Te.toLowerCase())===0&&Te.length>0&&se.current.setSelectionRange(Te.length,_e.length)}}),Ae=()=>{const F=(q,re)=>{const me=q?ue(q):"",ge=re?ue(re):"";return me===ge};if(pe.current!==-1&&st.filteredOptions&&st.filteredOptions.length!==Be.length&&st.inputValue===Te&&(R?de.length===st.value.length&&st.value.every((q,re)=>ue(de[re])===ue(q)):F(st.value,de))){const q=st.filteredOptions[pe.current];if(q)return Be.findIndex(re=>ue(re)===ue(q))}return-1},at=j.useCallback(()=>{if(!Ue)return;const F=Ae();if(F!==-1){pe.current=F;return}const q=R?de[0]:de;if(Be.length===0||q==null){Ee({diff:"reset"});return}if(le.current){if(q!=null){const re=Be[pe.current];if(R&&re&&de.findIndex(ge=>x(re,ge))!==-1)return;const me=Be.findIndex(ge=>x(ge,q));me===-1?Ee({diff:"reset"}):ft({index:me});return}if(pe.current>=Be.length-1){ft({index:Be.length-1});return}ft({index:pe.current})}},[Be.length,R?!1:de,C,Ee,ft,Ue,Te,R]),wt=pr(F=>{Lo(le,F),F&&at()});process.env.NODE_ENV!=="production"&&j.useEffect(()=>{(!se.current||se.current.nodeName!=="INPUT")&&(se.current&&se.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(`
220
220
  `)):console.error([`MUI: Unable to find the input element. It was resolved to ${se.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(`
221
- `)))},[u]),j.useEffect(()=>{at()},[at]);const St=F=>{Fe||(Ye(!0),Ct(!0),W&&W(F))},Bt=(F,q)=>{Fe&&(Ye(!1),_&&_(F,q))},Rt=(F,q,re,me)=>{if(R){if(de.length===q.length&&de.every((ge,Ie)=>ge===q[Ie]))return}else if(de===q)return;P&&P(F,q,re,me),Ce(q)},Yt=j.useRef(!1),Xt=(F,q,re="selectOption",me="options")=>{let ge=re,Ie=q;if(R){if(Ie=Array.isArray(de)?de.slice():[],process.env.NODE_ENV!=="production"){const ze=Ie.filter(Et=>x(q,Et));ze.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 ${ze.length} matches.`].join(`
222
- `))}const _e=Ie.findIndex(ze=>x(q,ze));_e===-1?Ie.push(q):me!=="freeSolo"&&(Ie.splice(_e,1),ge="removeOption")}be(F,Ie,ge),Rt(F,Ie,ge,{option:q}),!y&&(!F||!F.ctrlKey&&!F.metaKey)&&Bt(F,ge),(l===!0||l==="touch"&&Yt.current||l==="mouse"&&!Yt.current)&&se.current.blur()};function U(F,q){if(F===-1)return-1;let re=F;for(;;){if(q==="next"&&re===de.length||q==="previous"&&re===-1)return-1;const me=te.querySelector(`[data-tag-index="${re}"]`);if(!me||!me.hasAttribute("tabindex")||me.disabled||me.getAttribute("aria-disabled")==="true")re+=q==="next"?1:-1;else return re}}const $=(F,q)=>{if(!R)return;Te===""&&Bt(F,"toggleInput");let re=X;X===-1?Te===""&&q==="previous"&&(re=de.length-1):(re+=q==="next"?1:-1,re<0&&(re=0),re===de.length&&(re=-1)),re=U(re,q),Re(re),Ze(re)},K=F=>{ce.current=!0,$e(""),D&&D(F,"","clear"),Rt(F,R?[]:null,"clear")},V=F=>q=>{if(F.onKeyDown&&F.onKeyDown(q),!q.defaultMuiPrevented&&(X!==-1&&!["ArrowLeft","ArrowRight"].includes(q.key)&&(Re(-1),Ze(-1)),q.which!==229))switch(q.key){case"Home":Ue&&M&&(q.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":Ue&&M&&(q.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),Ee({diff:-fm,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"PageDown":q.preventDefault(),Ee({diff:fm,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowDown":q.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowUp":q.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"ArrowLeft":$(q,"previous");break;case"ArrowRight":$(q,"next");break;case"Enter":if(pe.current!==-1&&Ue){const re=Be[pe.current],me=S?S(re):!1;if(q.preventDefault(),me)return;Xt(q,re,"selectOption"),n&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else E&&Te!==""&&pt===!1&&(R&&q.preventDefault(),Xt(q,Te,"createOption","freeSolo"));break;case"Escape":Ue?(q.preventDefault(),q.stopPropagation(),Bt(q,"escape")):c&&(Te!==""||R&&de.length>0)&&(q.preventDefault(),q.stopPropagation(),K(q));break;case"Backspace":if(R&&!Y&&Te===""&&de.length>0){const re=X===-1?de.length-1:X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break;case"Delete":if(R&&!Y&&Te===""&&de.length>0&&X!==-1){const re=X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break}},Se=F=>{Ne(!0),G&&!ce.current&&St(F)},ke=F=>{if(t(le)){se.current.focus();return}Ne(!1),ye.current=!0,ce.current=!1,a&&pe.current!==-1&&Ue?Xt(F,Be[pe.current],"blur"):a&&E&&Te!==""?Xt(F,Te,"blur","freeSolo"):s&&be(F,de,"blur"),Bt(F,"blur")},je=F=>{const q=F.target.value;Te!==q&&($e(q),Ct(!1),D&&D(F,q,"input")),q===""?!d&&!R&&Rt(F,null,"clear"):St(F)},ee=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));pe.current!==q&&ft({event:F,index:q,reason:"mouse"})},L=F=>{ft({event:F,index:Number(F.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yt.current=!0},H=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));Xt(F,Be[q],"selectOption"),Yt.current=!1},ie=F=>q=>{const re=de.slice();re.splice(F,1),Rt(q,re,"removeOption",{option:de[F]})},Oe=F=>{Fe?Bt(F,"toggleInput"):St(F)},Me=F=>{F.currentTarget.contains(F.target)&&F.target.getAttribute("id")!==ne&&F.preventDefault()},lt=F=>{F.currentTarget.contains(F.target)&&(se.current.focus(),ae&&ye.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ye.current=!1)},I=F=>{!m&&(Te===""||!Fe)&&Oe(F)};let J=E&&Te.length>0;J=J||(R?de.length>0:de!==null);let fe=Be;if(A){const F=new Map;let q=!1;fe=Be.reduce((re,me,ge)=>{const Ie=A(me);return re.length>0&&re[re.length-1].group===Ie?re[re.length-1].options.push(me):(process.env.NODE_ENV!=="production"&&(F.get(Ie)&&!q&&(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`."),q=!0),F.set(Ie,!0)),re.push({key:ge,index:ge,group:Ie,options:[me]})),re},[])}return m&&He&&ke(),{getRootProps:(F={})=>({"aria-owns":De?`${ne}-listbox`:null,...F,onKeyDown:V(F),onMouseDown:Me,onClick:lt}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Te,onBlur:ke,onFocus:Se,onChange:je,onMouseDown:I,"aria-activedescendant":Ue?"":null,"aria-autocomplete":n?"both":"list","aria-controls":De?`${ne}-listbox`:void 0,"aria-expanded":De,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:K}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oe}),getTagProps:({index:F})=>({key:F,"data-tag-index":F,tabIndex:-1,...!Y&&{onDelete:ie(F)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:wt,onMouseDown:F=>{F.preventDefault()}}),getOptionProps:({index:F,option:q})=>{const re=(R?de:[de]).some(ge=>ge!=null&&x(q,ge)),me=S?S(q):!1;return{key:(T==null?void 0:T(q))??ue(q),tabIndex:-1,role:"option",id:`${ne}-option-${F}`,onMouseMove:ee,onClick:H,onTouchStart:L,"data-option-index":F,"aria-disabled":me,"aria-selected":re}},id:ne,inputValue:Te,value:de,dirty:J,expanded:Ue&&te,popupOpen:Ue,focused:He||X!==-1,anchorEl:te,setAnchorEl:ve,focusedTag:X,groupedOptions:fe}}var zt="top",nr="bottom",or="right",Vt="left",ac="auto",Jn=[zt,nr,or,Vt],un="start",Qn="end",LC="clippingParents",dm="viewport",Zn="popper",FC="reference",hm=Jn.reduce(function(e,t){return e.concat([t+"-"+un,t+"-"+Qn])},[]),mm=[].concat(Jn,[ac]).reduce(function(e,t){return e.concat([t,t+"-"+un,t+"-"+Qn])},[]),BC="beforeRead",qC="read",zC="afterRead",VC="beforeMain",UC="main",WC="afterMain",HC="beforeWrite",GC="write",KC="afterWrite",YC=[BC,qC,zC,VC,UC,WC,HC,GC,KC];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sc(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XC(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];!ir(a)||!yr(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 JC(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},{});!ir(i)||!yr(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const QC={name:"applyStyles",enabled:!0,phase:"write",fn:XC,effect:JC,requires:["computeStyles"]};function vr(e){return e.split("-")[0]}var Gr=Math.max,ci=Math.min,pn=Math.round;function lc(){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 gm(){return!/^((?!chrome|android).)*safari/i.test(lc())}function fn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&ir(e)&&(i=e.offsetWidth>0&&pn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&pn(n.height)/e.offsetHeight||1);var l=Hr(e)?Kt(e):window,s=l.visualViewport,c=!gm()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,f=(n.top+(c&&s?s.offsetTop:0))/a,d=n.width/i,y=n.height/a;return{width:d,height:y,top:f,right:u+d,bottom:f+y,left:u,x:u,y:f}}function cc(e){var t=fn(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 ym(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wr(e){return Kt(e).getComputedStyle(e)}function ZC(e){return["table","td","th"].indexOf(yr(e))>=0}function $r(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ui(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(sc(e)?e.host:null)||$r(e)}function vm(e){return!ir(e)||wr(e).position==="fixed"?null:e.offsetParent}function e1(e){var t=/firefox/i.test(lc()),r=/Trident/i.test(lc());if(r&&ir(e)){var n=wr(e);if(n.position==="fixed")return null}var i=ui(e);for(sc(i)&&(i=i.host);ir(i)&&["html","body"].indexOf(yr(i))<0;){var a=wr(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 eo(e){for(var t=Kt(e),r=vm(e);r&&ZC(r)&&wr(r).position==="static";)r=vm(r);return r&&(yr(r)==="html"||yr(r)==="body"&&wr(r).position==="static")?t:r||e1(e)||t}function uc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function to(e,t,r){return Gr(e,ci(t,r))}function t1(e,t,r){var n=to(e,t,r);return n>r?r:n}function bm(){return{top:0,right:0,bottom:0,left:0}}function xm(e){return Object.assign({},bm(),e)}function Om(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var r1=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xm(typeof t!="number"?t:Om(t,Jn))};function n1(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=vr(r.placement),c=uc(s),u=[Vt,or].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!l)){var d=r1(i.padding,r),y=cc(a),m=c==="y"?zt:Vt,b=c==="y"?nr:or,h=r.rects.reference[f]+r.rects.reference[c]-l[c]-r.rects.popper[f],v=l[c]-r.rects.reference[c],C=eo(a),E=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,S=h/2-v/2,T=d[m],w=E-y[f]-d[b],A=E/2-y[f]/2+S,M=to(T,A,w),O=c;r.modifiersData[n]=(t={},t[O]=M,t.centerOffset=M-A,t)}}function o1(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)||ym(t.elements.popper,i)&&(t.elements.arrow=i))}const i1={name:"arrow",enabled:!0,phase:"main",fn:n1,effect:o1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dn(e){return e.split("-")[1]}var a1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s1(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:pn(r*i)/i||0,y:pn(n*i)/i||0}}function Em(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,f=e.roundOffsets,d=e.isFixed,y=l.x,m=y===void 0?0:y,b=l.y,h=b===void 0?0:b,v=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=v.x,h=v.y;var C=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),S=Vt,T=zt,w=window;if(u){var A=eo(r),M="clientHeight",O="clientWidth";if(A===Kt(r)&&(A=$r(r),wr(A).position!=="static"&&s==="absolute"&&(M="scrollHeight",O="scrollWidth")),A=A,i===zt||(i===Vt||i===or)&&a===Qn){T=nr;var g=d&&A===w&&w.visualViewport?w.visualViewport.height:A[M];h-=g-n.height,h*=c?1:-1}if(i===Vt||(i===zt||i===nr)&&a===Qn){S=or;var p=d&&A===w&&w.visualViewport?w.visualViewport.width:A[O];m-=p-n.width,m*=c?1:-1}}var x=Object.assign({position:s},u&&a1),R=f===!0?s1({x:m,y:h},Kt(r)):{x:m,y:h};if(m=R.x,h=R.y,c){var P;return Object.assign({},x,(P={},P[T]=E?"0":"",P[S]=C?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",P))}return Object.assign({},x,(t={},t[T]=E?h+"px":"",t[S]=C?m+"px":"",t.transform="",t))}function l1(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:vr(t.placement),variation:dn(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,Em(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,Em(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 c1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:l1,data:{}};var pi={passive:!0};function u1(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=Kt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,pi)}),s&&c.addEventListener("resize",r.update,pi),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,pi)}),s&&c.removeEventListener("resize",r.update,pi)}}const p1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:u1,data:{}};var f1={left:"right",right:"left",bottom:"top",top:"bottom"};function fi(e){return e.replace(/left|right|bottom|top/g,function(t){return f1[t]})}var d1={start:"end",end:"start"};function Cm(e){return e.replace(/start|end/g,function(t){return d1[t]})}function pc(e){var t=Kt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function fc(e){return fn($r(e)).left+pc(e).scrollLeft}function h1(e,t){var r=Kt(e),n=$r(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=gm();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+fc(e),y:c}}function m1(e){var t,r=$r(e),n=pc(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Gr(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Gr(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+fc(e),c=-n.scrollTop;return wr(i||r).direction==="rtl"&&(s+=Gr(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function dc(e){var t=wr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Sm(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:ir(e)&&dc(e)?e:Sm(ui(e))}function ro(e,t){var r;t===void 0&&(t=[]);var n=Sm(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Kt(n),l=i?[a].concat(a.visualViewport||[],dc(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(ro(ui(l)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function g1(e,t){var r=fn(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 Tm(e,t,r){return t===dm?hc(h1(e,r)):Hr(t)?g1(t,r):hc(m1($r(e)))}function y1(e){var t=ro(ui(e)),r=["absolute","fixed"].indexOf(wr(e).position)>=0,n=r&&ir(e)?eo(e):e;return Hr(n)?t.filter(function(i){return Hr(i)&&ym(i,n)&&yr(i)!=="body"}):[]}function v1(e,t,r,n){var i=t==="clippingParents"?y1(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var f=Tm(e,u,n);return c.top=Gr(f.top,c.top),c.right=ci(f.right,c.right),c.bottom=ci(f.bottom,c.bottom),c.left=Gr(f.left,c.left),c},Tm(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 wm(e){var t=e.reference,r=e.element,n=e.placement,i=n?vr(n):null,a=n?dn(n):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case zt:c={x:l,y:t.y-r.height};break;case nr:c={x:l,y:t.y+t.height};break;case or:c={x:t.x+t.width,y:s};break;case Vt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?uc(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case un:c[u]=c[u]-(t[f]/2-r[f]/2);break;case Qn:c[u]=c[u]+(t[f]/2-r[f]/2);break}}return c}function no(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?LC:s,u=r.rootBoundary,f=u===void 0?dm:u,d=r.elementContext,y=d===void 0?Zn:d,m=r.altBoundary,b=m===void 0?!1:m,h=r.padding,v=h===void 0?0:h,C=xm(typeof v!="number"?v:Om(v,Jn)),E=y===Zn?FC:Zn,S=e.rects.popper,T=e.elements[b?E:y],w=v1(Hr(T)?T:T.contextElement||$r(e.elements.popper),c,f,l),A=fn(e.elements.reference),M=wm({reference:A,element:S,strategy:"absolute",placement:i}),O=hc(Object.assign({},S,M)),g=y===Zn?O:A,p={top:w.top-g.top+C.top,bottom:g.bottom-w.bottom+C.bottom,left:w.left-g.left+C.left,right:g.right-w.right+C.right},x=e.modifiersData.offset;if(y===Zn&&x){var R=x[i];Object.keys(p).forEach(function(P){var _=[or,nr].indexOf(P)>=0?1:-1,k=[zt,nr].indexOf(P)>=0?"y":"x";p[P]+=R[k]*_})}return p}function b1(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?mm:c,f=dn(n),d=f?s?hm:hm.filter(function(b){return dn(b)===f}):Jn,y=d.filter(function(b){return u.indexOf(b)>=0});y.length===0&&(y=d);var m=y.reduce(function(b,h){return b[h]=no(e,{placement:h,boundary:i,rootBoundary:a,padding:l})[vr(h)],b},{});return Object.keys(m).sort(function(b,h){return m[b]-m[h]})}function x1(e){if(vr(e)===ac)return[];var t=fi(e);return[Cm(e),t,Cm(t)]}function O1(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,f=r.boundary,d=r.rootBoundary,y=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,h=r.allowedAutoPlacements,v=t.options.placement,C=vr(v),E=C===v,S=c||(E||!b?[fi(v)]:x1(v)),T=[v].concat(S).reduce(function(ne,ue){return ne.concat(vr(ue)===ac?b1(t,{placement:ue,boundary:f,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:h}):ue)},[]),w=t.rects.reference,A=t.rects.popper,M=new Map,O=!0,g=T[0],p=0;p<T.length;p++){var x=T[p],R=vr(x),P=dn(x)===un,_=[zt,nr].indexOf(R)>=0,k=_?"width":"height",D=no(t,{placement:x,boundary:f,rootBoundary:d,altBoundary:y,padding:u}),W=_?P?or:Vt:P?nr:zt;w[k]>A[k]&&(W=fi(W));var Z=fi(W),G=[];if(a&&G.push(D[R]<=0),s&&G.push(D[W]<=0,D[Z]<=0),G.every(function(ne){return ne})){g=x,O=!1;break}M.set(x,G)}if(O)for(var B=b?3:1,Y=function(ue){var ce=T.find(function(ye){var se=M.get(ye);if(se)return se.slice(0,ue).every(function(le){return le})});if(ce)return g=ce,"break"},ae=B;ae>0;ae--){var oe=Y(ae);if(oe==="break")break}t.placement!==g&&(t.modifiersData[n]._skip=!0,t.placement=g,t.reset=!0)}}const E1={name:"flip",enabled:!0,phase:"main",fn:O1,requiresIfExists:["offset"],data:{_skip:!1}};function Rm(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 Pm(e){return[zt,or,nr,Vt].some(function(t){return e[t]>=0})}function C1(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),s=no(t,{altBoundary:!0}),c=Rm(l,n),u=Rm(s,i,a),f=Pm(c),d=Pm(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const S1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C1};function T1(e,t,r){var n=vr(e),i=[Vt,zt].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,[Vt,or].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function w1(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=mm.reduce(function(f,d){return f[d]=T1(d,t.rects,a),f},{}),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 R1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:w1};function P1(e){var t=e.state,r=e.name;t.modifiersData[r]=wm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const _1={name:"popperOffsets",enabled:!0,phase:"read",fn:P1,data:{}};function I1(e){return e==="x"?"y":"x"}function k1(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,f=r.altBoundary,d=r.padding,y=r.tether,m=y===void 0?!0:y,b=r.tetherOffset,h=b===void 0?0:b,v=no(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:f}),C=vr(t.placement),E=dn(t.placement),S=!E,T=uc(C),w=I1(T),A=t.modifiersData.popperOffsets,M=t.rects.reference,O=t.rects.popper,g=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,p=typeof g=="number"?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(A){if(a){var P,_=T==="y"?zt:Vt,k=T==="y"?nr:or,D=T==="y"?"height":"width",W=A[T],Z=W+v[_],G=W-v[k],B=m?-O[D]/2:0,Y=E===un?M[D]:O[D],ae=E===un?-O[D]:-M[D],oe=t.elements.arrow,ne=m&&oe?cc(oe):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bm(),ce=ue[_],ye=ue[k],se=to(0,M[D],ne[D]),le=S?M[D]/2-B-se-ce-p.mainAxis:Y-se-ce-p.mainAxis,te=S?-M[D]/2+B+se+ye+p.mainAxis:ae+se+ye+p.mainAxis,ve=t.elements.arrow&&eo(t.elements.arrow),X=ve?T==="y"?ve.clientTop||0:ve.clientLeft||0:0,Re=(P=x==null?void 0:x[T])!=null?P:0,z=W+le-Re-X,pe=W+te-Re,de=to(m?ci(Z,z):Z,W,m?Gr(G,pe):G);A[T]=de,R[T]=de-W}if(s){var Ce,Te=T==="x"?zt:Vt,$e=T==="x"?nr:or,He=A[w],Ne=w==="y"?"height":"width",be=He+v[Te],Fe=He-v[$e],Ye=[zt,Vt].indexOf(C)!==-1,ht=(Ce=x==null?void 0:x[w])!=null?Ce:0,Ct=Ye?be:He-M[Ne]-O[Ne]-ht+p.altAxis,pt=Ye?He+M[Ne]+O[Ne]-ht-p.altAxis:Fe,Ue=m&&Ye?t1(Ct,He,pt):to(m?Ct:be,He,m?pt:Fe);A[w]=Ue,R[w]=Ue-He}t.modifiersData[n]=R}}const j1={name:"preventOverflow",enabled:!0,phase:"main",fn:k1,requiresIfExists:["offset"]};function A1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N1(e){return e===Kt(e)||!ir(e)?pc(e):A1(e)}function $1(e){var t=e.getBoundingClientRect(),r=pn(t.width)/e.offsetWidth||1,n=pn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function M1(e,t,r){r===void 0&&(r=!1);var n=ir(t),i=ir(t)&&$1(t),a=$r(t),l=fn(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((yr(t)!=="body"||dc(a))&&(s=N1(t)),ir(t)?(c=fn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=fc(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function D1(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 L1(e){var t=D1(e);return YC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function F1(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function B1(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 _m={placement:"bottom",modifiers:[],strategy:"absolute"};function Im(){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 q1(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?_m:i;return function(s,c,u){u===void 0&&(u=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_m,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],y=!1,m={state:f,setOptions:function(C){var E=typeof C=="function"?C(f.options):C;h(),f.options=Object.assign({},a,f.options,E),f.scrollParents={reference:Hr(s)?ro(s):s.contextElement?ro(s.contextElement):[],popper:ro(c)};var S=L1(B1([].concat(n,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),b(),m.update()},forceUpdate:function(){if(!y){var C=f.elements,E=C.reference,S=C.popper;if(Im(E,S)){f.rects={reference:M1(E,eo(S),f.options.strategy==="fixed"),popper:cc(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(p){return f.modifiersData[p.name]=Object.assign({},p.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var w=f.orderedModifiers[T],A=w.fn,M=w.options,O=M===void 0?{}:M,g=w.name;typeof A=="function"&&(f=A({state:f,options:O,name:g,instance:m})||f)}}}},update:F1(function(){return new Promise(function(v){m.forceUpdate(),v(f)})}),destroy:function(){h(),y=!0}};if(!Im(s,c))return m;m.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var C=v.name,E=v.options,S=E===void 0?{}:E,T=v.effect;if(typeof T=="function"){var w=T({state:f,name:C,instance:m,options:S}),A=function(){};d.push(w||A)}})}function h(){d.forEach(function(v){return v()}),d=[]}return m}}var z1=[p1,_1,c1,QC,R1,E1,j1,i1,S1],V1=q1({defaultModifiers:z1});function U1(e){return We("MuiPopper",e)}qe("MuiPopper",["root"]);function W1(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 di(e){return typeof e=="function"?e():e}function hi(e){return e.nodeType!==void 0}function H1(e){return!hi(e)}const G1=e=>{const{classes:t}=e;return Ge({root:["root"]},U1,t)},K1={},Y1=j.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:f,popperRef:d,slotProps:y={},slots:m={},TransitionProps:b,ownerState:h,...v}=t,C=j.useRef(null),E=Ot(C,r),S=j.useRef(null),T=Ot(S,d),w=j.useRef(T);cr(()=>{w.current=T},[T]),j.useImperativeHandle(d,()=>S.current,[]);const A=W1(u,a),[M,O]=j.useState(A),[g,p]=j.useState(di(n));j.useEffect(()=>{S.current&&S.current.forceUpdate()}),j.useEffect(()=>{n&&p(di(n))},[n]),cr(()=>{if(!g||!c)return;const k=Z=>{O(Z.placement)};if(process.env.NODE_ENV!=="production"&&g&&hi(g)&&g.nodeType===1){const Z=g.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(`
223
- `))}let D=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{k(Z)}}];s!=null&&(D=D.concat(s)),f&&f.modifiers!=null&&(D=D.concat(f.modifiers));const W=V1(g,C.current,{placement:A,...f,modifiers:D});return w.current(W),()=>{W.destroy(),w.current(null)}},[g,l,s,c,f,A]);const x={placement:M};b!==null&&(x.TransitionProps=b);const R=G1(t),P=m.root??"div",_=wl({elementType:P,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:R.root});return N.jsx(P,{..._,children:typeof i=="function"?i(x):i})}),km=j.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:f,placement:d="bottom",popperOptions:y=K1,popperRef:m,style:b,transition:h=!1,slotProps:v={},slots:C={},...E}=t,[S,T]=j.useState(!0),w=()=>{T(!1)},A=()=>{T(!0)};if(!c&&!f&&(!h||S))return null;let M;if(a)M=a;else if(n){const p=di(n);M=p&&hi(p)?Wt(p).body:Wt(null).body}const O=!f&&c&&(!h||S)?"none":void 0,g=h?{in:f,onEnter:w,onExited:A}:void 0;return N.jsx(zn,{disablePortal:s,container:M,children:N.jsx(Y1,{anchorEl:n,direction:l,disablePortal:s,modifiers:u,ref:r,open:h?!S:f,placement:d,popperOptions:y,popperRef:m,slotProps:v,slots:C,...E,style:{position:"fixed",top:0,left:0,display:O,...b},TransitionProps:g,children:i})})});process.env.NODE_ENV!=="production"&&(km.propTypes={anchorEl:ur(o.oneOfType([Er,o.object,o.func]),e=>{if(e.open){const t=di(e.anchorEl);if(t&&hi(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(`
224
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||H1(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(`
225
- `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Er,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:Dt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const X1=xe(km,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mc=j.forwardRef(function(t,r){const n=$d(),i=Je({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:f,keepMounted:d,modifiers:y,open:m,placement:b,popperOptions:h,popperRef:v,transition:C,slots:E,slotProps:S,...T}=i,w=(E==null?void 0:E.root)??(s==null?void 0:s.Root),A={anchorEl:a,container:u,disablePortal:f,keepMounted:d,modifiers:y,open:m,placement:b,popperOptions:h,popperRef:v,transition:C,...T};return N.jsx(X1,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:S??c,...A,ref:r})});process.env.NODE_ENV!=="production"&&(mc.propTypes={anchorEl:o.oneOfType([Er,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([Er,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:Dt,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 J1(e){return We("MuiListSubheader",e)}qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Q1=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${he(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Ge(l,J1,t)},Z1=xe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ke(({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}}]}))),mi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...f}=n,d={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},y=Q1(d);return N.jsx(Z1,{as:l,className:Pe(y.root,i),ref:r,ownerState:d,...f})});mi&&(mi.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(mi.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])});const eS=_t(N.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 tS(e){return We("MuiAutocomplete",e)}const Le=qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var jm,Am;const rS=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:f}=e,d={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${he(f)}`],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 Ge(d,tS,t)},nS=xe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Le.tag}`]:t.tag},{[`& .${Le.tag}`]:t[`tagSize${he(s)}`]},{[`& .${Le.inputRoot}`]:t.inputRoot},{[`& .${Le.input}`]:t.input},{[`& .${Le.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Le.focused} .${Le.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Le.clearIndicator}`]:{visibility:"visible"}},[`& .${Le.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Le.inputRoot}`]:{[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:30},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:56},[`& .${Le.input}`]:{width:0,minWidth:30}},[`& .${Ar.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ar.root}.${Ht.sizeSmall}`]:{[`& .${Ar.input}`]:{padding:"2px 4px 3px 0"}},[`& .${tr.root}`]:{padding:9,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Le.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${tr.root}.${Ht.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Le.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Gt.input}`]:{padding:"7px 4px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${Gt.root}.${Ht.sizeSmall}`]:{paddingBottom:1,[`& .${Gt.input}`]:{padding:"2.5px 4px"}},[`& .${Ht.hiddenLabel}`]:{paddingTop:8},[`& .${Gt.root}.${Ht.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Le.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gt.root}.${Ht.hiddenLabel}.${Ht.sizeSmall}`]:{[`& .${Le.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Le.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Le.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Le.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Le.inputRoot}`]:{flexWrap:"wrap"}}}]}),oS=xe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),iS=xe(ai,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),aS=xe(ai,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),sS=xe(mc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Le.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),lS=xe(Vn,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Ke(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),cS=xe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),uS=xe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),pS=xe("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Ke(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Le.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"},[`&.${Le.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"},[`&.${Le.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})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Le.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Le.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),fS=xe(mi,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),dS=xe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Le.option}`]:{paddingLeft:24}}),Nm=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:f=jm||(jm=N.jsx(eS,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:y=!1,clearText:m="Clear",closeText:b="Close",componentsProps:h,defaultValue:v=n.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:E=!1,disabled:S=!1,disabledItemsFocusable:T=!1,disableListWrap:w=!1,disablePortal:A=!1,filterOptions:M,filterSelectedOptions:O=!1,forcePopupIcon:g="auto",freeSolo:p=!1,fullWidth:x=!1,getLimitTagsText:R=Xe=>`+${Xe}`,getOptionDisabled:P,getOptionKey:_,getOptionLabel:k,isOptionEqualToValue:D,groupBy:W,handleHomeEndKeys:Z=!n.freeSolo,id:G,includeInputInList:B=!1,inputValue:Y,limitTags:ae=-1,ListboxComponent:oe,ListboxProps:ne,loading:ue=!1,loadingText:ce="Loading…",multiple:ye=!1,noOptionsText:se="No options",onChange:le,onClose:te,onHighlightChange:ve,onInputChange:X,onOpen:Re,open:z,openOnFocus:pe=!1,openText:de="Open",options:Ce,PaperComponent:Te,PopperComponent:$e,popupIcon:He=Am||(Am=N.jsx(Nh,{})),readOnly:Ne=!1,renderGroup:be,renderInput:Fe,renderOption:Ye,renderTags:ht,selectOnFocus:Ct=!n.freeSolo,size:pt="medium",slots:Ue={},slotProps:Be={},value:st,...De}=n,{getRootProps:Ze,getInputProps:mt,getInputLabelProps:ft,getPopupIndicatorProps:Ee,getClearProps:Ae,getTagProps:at,getListboxProps:wt,getOptionProps:St,value:Bt,dirty:Rt,expanded:Yt,id:Xt,popupOpen:U,focused:$,focusedTag:K,anchorEl:V,setAnchorEl:Se,inputValue:ke,groupedOptions:je}=DC({...n,componentName:"Autocomplete"}),ee=!C&&!S&&Rt&&!Ne,L=(!p||g===!0)&&g!==!1,{onMouseDown:H}=mt(),{ref:ie,...Oe}=wt(),lt=k||(Xe=>Xe.label??Xe),I={...n,disablePortal:A,expanded:Yt,focused:$,fullWidth:x,getOptionLabel:lt,hasClearIcon:ee,hasPopupIcon:L,inputFocused:K===-1,popupOpen:U,size:pt},J=rS(I),fe={slots:{paper:Te,popper:$e,...Ue},slotProps:{chip:c,listbox:ne,...h,...Be}},[F,q]=Lt("listbox",{elementType:pS,externalForwardedProps:fe,ownerState:I,className:J.listbox,additionalProps:Oe,ref:ie}),[re,me]=Lt("paper",{elementType:Vn,externalForwardedProps:fe,ownerState:I,className:J.paper}),[ge,Ie]=Lt("popper",{elementType:mc,externalForwardedProps:fe,ownerState:I,className:J.popper,additionalProps:{disablePortal:A,style:{width:V?V.clientWidth:null},role:"presentation",anchorEl:V,open:U}});let _e;if(ye&&Bt.length>0){const Xe=br=>({className:J.tag,disabled:S,...at(br)});ht?_e=ht(Bt,Xe,I):_e=Bt.map((br,Dr)=>{const{key:oo,...OS}=Xe({index:Dr});return N.jsx(Yl,{label:lt(br),size:pt,...OS,...fe.slotProps.chip},oo)})}if(ae>-1&&Array.isArray(_e)){const Xe=_e.length-ae;!$&&Xe>0&&(_e=_e.splice(0,ae),_e.push(N.jsx("span",{className:J.tag,children:R(Xe)},_e.length)))}const Et=be||(Xe=>N.jsxs("li",{children:[N.jsx(fS,{className:J.groupLabel,ownerState:I,component:"div",children:Xe.group}),N.jsx(dS,{className:J.groupUl,ownerState:I,children:Xe.children})]},Xe.key)),vt=Ye||((Xe,br)=>{const{key:Dr,...oo}=Xe;return N.jsx("li",{...oo,children:lt(br)},Dr)}),Pt=(Xe,br)=>{const Dr=St({option:Xe,index:br});return vt({...Dr,className:J.option},Xe,{selected:Dr["aria-selected"],index:br,inputValue:ke},I)},It=fe.slotProps.clearIndicator,Mr=fe.slotProps.popupIndicator,Kr=Xe=>N.jsx(sS,{as:ge,...Ie,children:N.jsx(lS,{as:re,...me,children:Xe})});let yi=null;return je.length>0?yi=Kr(N.jsx(F,{as:oe,...q,children:je.map((Xe,br)=>W?Et({key:Xe.key,group:Xe.group,children:Xe.options.map((Dr,oo)=>Pt(Dr,Xe.index+oo))}):Pt(Xe,br))})):ue&&je.length===0?yi=Kr(N.jsx(cS,{className:J.loading,ownerState:I,children:ce})):je.length===0&&!p&&!ue&&(yi=Kr(N.jsx(uS,{className:J.noOptions,ownerState:I,role:"presentation",onMouseDown:Xe=>{Xe.preventDefault()},children:se}))),N.jsxs(j.Fragment,{children:[N.jsx(nS,{ref:r,className:Pe(J.root,u),ownerState:I,...Ze(De),children:Fe({id:Xt,disabled:S,fullWidth:!0,size:pt==="small"?"small":void 0,InputLabelProps:ft(),InputProps:{ref:Se,className:J.inputRoot,startAdornment:_e,onMouseDown:Xe=>{Xe.target===Xe.currentTarget&&H(Xe)},...(ee||L)&&{endAdornment:N.jsxs(oS,{className:J.endAdornment,ownerState:I,children:[ee?N.jsx(iS,{...Ae(),"aria-label":m,title:m,ownerState:I,...It,className:Pe(J.clearIndicator,It==null?void 0:It.className),children:f}):null,L?N.jsx(aS,{...Ee(),disabled:S,"aria-label":U?b:de,title:U?b:de,ownerState:I,...Mr,className:Pe(J.popupIndicator,Mr==null?void 0:Mr.className),children:He}):null]})}},inputProps:{className:J.input,disabled:S,readOnly:Ne,...mt()}})}),V?yi:null]})});process.env.NODE_ENV!=="production"&&(Nm.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:ur(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(`
221
+ `)))},[u]),j.useEffect(()=>{at()},[at]);const St=F=>{Fe||(Ye(!0),Ct(!0),W&&W(F))},Bt=(F,q)=>{Fe&&(Ye(!1),_&&_(F,q))},Rt=(F,q,re,me)=>{if(R){if(de.length===q.length&&de.every((ge,Ie)=>ge===q[Ie]))return}else if(de===q)return;P&&P(F,q,re,me),Ce(q)},Yt=j.useRef(!1),Xt=(F,q,re="selectOption",me="options")=>{let ge=re,Ie=q;if(R){if(Ie=Array.isArray(de)?de.slice():[],process.env.NODE_ENV!=="production"){const Ve=Ie.filter(Et=>x(q,Et));Ve.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 ${Ve.length} matches.`].join(`
222
+ `))}const _e=Ie.findIndex(Ve=>x(q,Ve));_e===-1?Ie.push(q):me!=="freeSolo"&&(Ie.splice(_e,1),ge="removeOption")}be(F,Ie,ge),Rt(F,Ie,ge,{option:q}),!y&&(!F||!F.ctrlKey&&!F.metaKey)&&Bt(F,ge),(l===!0||l==="touch"&&Yt.current||l==="mouse"&&!Yt.current)&&se.current.blur()};function U(F,q){if(F===-1)return-1;let re=F;for(;;){if(q==="next"&&re===de.length||q==="previous"&&re===-1)return-1;const me=te.querySelector(`[data-tag-index="${re}"]`);if(!me||!me.hasAttribute("tabindex")||me.disabled||me.getAttribute("aria-disabled")==="true")re+=q==="next"?1:-1;else return re}}const $=(F,q)=>{if(!R)return;Te===""&&Bt(F,"toggleInput");let re=X;X===-1?Te===""&&q==="previous"&&(re=de.length-1):(re+=q==="next"?1:-1,re<0&&(re=0),re===de.length&&(re=-1)),re=U(re,q),Re(re),Ze(re)},K=F=>{ce.current=!0,$e(""),D&&D(F,"","clear"),Rt(F,R?[]:null,"clear")},z=F=>q=>{if(F.onKeyDown&&F.onKeyDown(q),!q.defaultMuiPrevented&&(X!==-1&&!["ArrowLeft","ArrowRight"].includes(q.key)&&(Re(-1),Ze(-1)),q.which!==229))switch(q.key){case"Home":Ue&&M&&(q.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:q}));break;case"End":Ue&&M&&(q.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:q}));break;case"PageUp":q.preventDefault(),Ee({diff:-fm,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"PageDown":q.preventDefault(),Ee({diff:fm,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowDown":q.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:q}),St(q);break;case"ArrowUp":q.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:q}),St(q);break;case"ArrowLeft":$(q,"previous");break;case"ArrowRight":$(q,"next");break;case"Enter":if(pe.current!==-1&&Ue){const re=Be[pe.current],me=S?S(re):!1;if(q.preventDefault(),me)return;Xt(q,re,"selectOption"),n&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else E&&Te!==""&&pt===!1&&(R&&q.preventDefault(),Xt(q,Te,"createOption","freeSolo"));break;case"Escape":Ue?(q.preventDefault(),q.stopPropagation(),Bt(q,"escape")):c&&(Te!==""||R&&de.length>0)&&(q.preventDefault(),q.stopPropagation(),K(q));break;case"Backspace":if(R&&!Y&&Te===""&&de.length>0){const re=X===-1?de.length-1:X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break;case"Delete":if(R&&!Y&&Te===""&&de.length>0&&X!==-1){const re=X,me=de.slice();me.splice(re,1),Rt(q,me,"removeOption",{option:de[re]})}break}},Se=F=>{Ne(!0),G&&!ce.current&&St(F)},ke=F=>{if(t(le)){se.current.focus();return}Ne(!1),ye.current=!0,ce.current=!1,a&&pe.current!==-1&&Ue?Xt(F,Be[pe.current],"blur"):a&&E&&Te!==""?Xt(F,Te,"blur","freeSolo"):s&&be(F,de,"blur"),Bt(F,"blur")},je=F=>{const q=F.target.value;Te!==q&&($e(q),Ct(!1),D&&D(F,q,"input")),q===""?!d&&!R&&Rt(F,null,"clear"):St(F)},ee=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));pe.current!==q&&ft({event:F,index:q,reason:"mouse"})},L=F=>{ft({event:F,index:Number(F.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yt.current=!0},H=F=>{const q=Number(F.currentTarget.getAttribute("data-option-index"));Xt(F,Be[q],"selectOption"),Yt.current=!1},ie=F=>q=>{const re=de.slice();re.splice(F,1),Rt(q,re,"removeOption",{option:de[F]})},Oe=F=>{Fe?Bt(F,"toggleInput"):St(F)},Me=F=>{F.currentTarget.contains(F.target)&&F.target.getAttribute("id")!==ne&&F.preventDefault()},lt=F=>{F.currentTarget.contains(F.target)&&(se.current.focus(),ae&&ye.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ye.current=!1)},I=F=>{!m&&(Te===""||!Fe)&&Oe(F)};let J=E&&Te.length>0;J=J||(R?de.length>0:de!==null);let fe=Be;if(A){const F=new Map;let q=!1;fe=Be.reduce((re,me,ge)=>{const Ie=A(me);return re.length>0&&re[re.length-1].group===Ie?re[re.length-1].options.push(me):(process.env.NODE_ENV!=="production"&&(F.get(Ie)&&!q&&(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`."),q=!0),F.set(Ie,!0)),re.push({key:ge,index:ge,group:Ie,options:[me]})),re},[])}return m&&He&&ke(),{getRootProps:(F={})=>({"aria-owns":De?`${ne}-listbox`:null,...F,onKeyDown:z(F),onMouseDown:Me,onClick:lt}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Te,onBlur:ke,onFocus:Se,onChange:je,onMouseDown:I,"aria-activedescendant":Ue?"":null,"aria-autocomplete":n?"both":"list","aria-controls":De?`${ne}-listbox`:void 0,"aria-expanded":De,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:K}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oe}),getTagProps:({index:F})=>({key:F,"data-tag-index":F,tabIndex:-1,...!Y&&{onDelete:ie(F)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:wt,onMouseDown:F=>{F.preventDefault()}}),getOptionProps:({index:F,option:q})=>{const re=(R?de:[de]).some(ge=>ge!=null&&x(q,ge)),me=S?S(q):!1;return{key:(T==null?void 0:T(q))??ue(q),tabIndex:-1,role:"option",id:`${ne}-option-${F}`,onMouseMove:ee,onClick:H,onTouchStart:L,"data-option-index":F,"aria-disabled":me,"aria-selected":re}},id:ne,inputValue:Te,value:de,dirty:J,expanded:Ue&&te,popupOpen:Ue,focused:He||X!==-1,anchorEl:te,setAnchorEl:ve,focusedTag:X,groupedOptions:fe}}var Vt="top",nr="bottom",or="right",zt="left",ac="auto",Jn=[Vt,nr,or,zt],un="start",Qn="end",BC="clippingParents",dm="viewport",Zn="popper",qC="reference",hm=Jn.reduce(function(e,t){return e.concat([t+"-"+un,t+"-"+Qn])},[]),mm=[].concat(Jn,[ac]).reduce(function(e,t){return e.concat([t,t+"-"+un,t+"-"+Qn])},[]),VC="beforeRead",zC="read",UC="afterRead",WC="beforeMain",HC="main",GC="afterMain",KC="beforeWrite",YC="write",XC="afterWrite",JC=[VC,zC,UC,WC,HC,GC,KC,YC,XC];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sc(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QC(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];!ir(a)||!yr(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 ZC(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},{});!ir(i)||!yr(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const e1={name:"applyStyles",enabled:!0,phase:"write",fn:QC,effect:ZC,requires:["computeStyles"]};function vr(e){return e.split("-")[0]}var Gr=Math.max,ui=Math.min,pn=Math.round;function lc(){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 gm(){return!/^((?!chrome|android).)*safari/i.test(lc())}function fn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&ir(e)&&(i=e.offsetWidth>0&&pn(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&pn(n.height)/e.offsetHeight||1);var l=Hr(e)?Kt(e):window,s=l.visualViewport,c=!gm()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,f=(n.top+(c&&s?s.offsetTop:0))/a,d=n.width/i,y=n.height/a;return{width:d,height:y,top:f,right:u+d,bottom:f+y,left:u,x:u,y:f}}function cc(e){var t=fn(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 ym(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wr(e){return Kt(e).getComputedStyle(e)}function t1(e){return["table","td","th"].indexOf(yr(e))>=0}function $r(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function pi(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(sc(e)?e.host:null)||$r(e)}function vm(e){return!ir(e)||wr(e).position==="fixed"?null:e.offsetParent}function r1(e){var t=/firefox/i.test(lc()),r=/Trident/i.test(lc());if(r&&ir(e)){var n=wr(e);if(n.position==="fixed")return null}var i=pi(e);for(sc(i)&&(i=i.host);ir(i)&&["html","body"].indexOf(yr(i))<0;){var a=wr(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 eo(e){for(var t=Kt(e),r=vm(e);r&&t1(r)&&wr(r).position==="static";)r=vm(r);return r&&(yr(r)==="html"||yr(r)==="body"&&wr(r).position==="static")?t:r||r1(e)||t}function uc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function to(e,t,r){return Gr(e,ui(t,r))}function n1(e,t,r){var n=to(e,t,r);return n>r?r:n}function bm(){return{top:0,right:0,bottom:0,left:0}}function xm(e){return Object.assign({},bm(),e)}function Om(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var o1=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xm(typeof t!="number"?t:Om(t,Jn))};function i1(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,s=vr(r.placement),c=uc(s),u=[zt,or].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!l)){var d=o1(i.padding,r),y=cc(a),m=c==="y"?Vt:zt,b=c==="y"?nr:or,h=r.rects.reference[f]+r.rects.reference[c]-l[c]-r.rects.popper[f],v=l[c]-r.rects.reference[c],C=eo(a),E=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,S=h/2-v/2,T=d[m],w=E-y[f]-d[b],A=E/2-y[f]/2+S,M=to(T,A,w),O=c;r.modifiersData[n]=(t={},t[O]=M,t.centerOffset=M-A,t)}}function a1(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)||ym(t.elements.popper,i)&&(t.elements.arrow=i))}const s1={name:"arrow",enabled:!0,phase:"main",fn:i1,effect:a1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dn(e){return e.split("-")[1]}var l1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c1(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:pn(r*i)/i||0,y:pn(n*i)/i||0}}function Em(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,f=e.roundOffsets,d=e.isFixed,y=l.x,m=y===void 0?0:y,b=l.y,h=b===void 0?0:b,v=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=v.x,h=v.y;var C=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),S=zt,T=Vt,w=window;if(u){var A=eo(r),M="clientHeight",O="clientWidth";if(A===Kt(r)&&(A=$r(r),wr(A).position!=="static"&&s==="absolute"&&(M="scrollHeight",O="scrollWidth")),A=A,i===Vt||(i===zt||i===or)&&a===Qn){T=nr;var g=d&&A===w&&w.visualViewport?w.visualViewport.height:A[M];h-=g-n.height,h*=c?1:-1}if(i===zt||(i===Vt||i===nr)&&a===Qn){S=or;var p=d&&A===w&&w.visualViewport?w.visualViewport.width:A[O];m-=p-n.width,m*=c?1:-1}}var x=Object.assign({position:s},u&&l1),R=f===!0?c1({x:m,y:h},Kt(r)):{x:m,y:h};if(m=R.x,h=R.y,c){var P;return Object.assign({},x,(P={},P[T]=E?"0":"",P[S]=C?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",P))}return Object.assign({},x,(t={},t[T]=E?h+"px":"",t[S]=C?m+"px":"",t.transform="",t))}function u1(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:vr(t.placement),variation:dn(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,Em(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,Em(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 p1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u1,data:{}};var fi={passive:!0};function f1(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=Kt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,fi)}),s&&c.addEventListener("resize",r.update,fi),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,fi)}),s&&c.removeEventListener("resize",r.update,fi)}}const d1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:f1,data:{}};var h1={left:"right",right:"left",bottom:"top",top:"bottom"};function di(e){return e.replace(/left|right|bottom|top/g,function(t){return h1[t]})}var m1={start:"end",end:"start"};function Cm(e){return e.replace(/start|end/g,function(t){return m1[t]})}function pc(e){var t=Kt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function fc(e){return fn($r(e)).left+pc(e).scrollLeft}function g1(e,t){var r=Kt(e),n=$r(e),i=r.visualViewport,a=n.clientWidth,l=n.clientHeight,s=0,c=0;if(i){a=i.width,l=i.height;var u=gm();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:l,x:s+fc(e),y:c}}function y1(e){var t,r=$r(e),n=pc(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Gr(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Gr(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+fc(e),c=-n.scrollTop;return wr(i||r).direction==="rtl"&&(s+=Gr(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:l,x:s,y:c}}function dc(e){var t=wr(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Sm(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:ir(e)&&dc(e)?e:Sm(pi(e))}function ro(e,t){var r;t===void 0&&(t=[]);var n=Sm(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Kt(n),l=i?[a].concat(a.visualViewport||[],dc(n)?n:[]):n,s=t.concat(l);return i?s:s.concat(ro(pi(l)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function v1(e,t){var r=fn(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 Tm(e,t,r){return t===dm?hc(g1(e,r)):Hr(t)?v1(t,r):hc(y1($r(e)))}function b1(e){var t=ro(pi(e)),r=["absolute","fixed"].indexOf(wr(e).position)>=0,n=r&&ir(e)?eo(e):e;return Hr(n)?t.filter(function(i){return Hr(i)&&ym(i,n)&&yr(i)!=="body"}):[]}function x1(e,t,r,n){var i=t==="clippingParents"?b1(e):[].concat(t),a=[].concat(i,[r]),l=a[0],s=a.reduce(function(c,u){var f=Tm(e,u,n);return c.top=Gr(f.top,c.top),c.right=ui(f.right,c.right),c.bottom=ui(f.bottom,c.bottom),c.left=Gr(f.left,c.left),c},Tm(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 wm(e){var t=e.reference,r=e.element,n=e.placement,i=n?vr(n):null,a=n?dn(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 nr:c={x:l,y:t.y+t.height};break;case or:c={x:t.x+t.width,y:s};break;case zt:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?uc(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case un:c[u]=c[u]-(t[f]/2-r[f]/2);break;case Qn:c[u]=c[u]+(t[f]/2-r[f]/2);break}}return c}function no(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?BC:s,u=r.rootBoundary,f=u===void 0?dm:u,d=r.elementContext,y=d===void 0?Zn:d,m=r.altBoundary,b=m===void 0?!1:m,h=r.padding,v=h===void 0?0:h,C=xm(typeof v!="number"?v:Om(v,Jn)),E=y===Zn?qC:Zn,S=e.rects.popper,T=e.elements[b?E:y],w=x1(Hr(T)?T:T.contextElement||$r(e.elements.popper),c,f,l),A=fn(e.elements.reference),M=wm({reference:A,element:S,strategy:"absolute",placement:i}),O=hc(Object.assign({},S,M)),g=y===Zn?O:A,p={top:w.top-g.top+C.top,bottom:g.bottom-w.bottom+C.bottom,left:w.left-g.left+C.left,right:g.right-w.right+C.right},x=e.modifiersData.offset;if(y===Zn&&x){var R=x[i];Object.keys(p).forEach(function(P){var _=[or,nr].indexOf(P)>=0?1:-1,k=[Vt,nr].indexOf(P)>=0?"y":"x";p[P]+=R[k]*_})}return p}function O1(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?mm:c,f=dn(n),d=f?s?hm:hm.filter(function(b){return dn(b)===f}):Jn,y=d.filter(function(b){return u.indexOf(b)>=0});y.length===0&&(y=d);var m=y.reduce(function(b,h){return b[h]=no(e,{placement:h,boundary:i,rootBoundary:a,padding:l})[vr(h)],b},{});return Object.keys(m).sort(function(b,h){return m[b]-m[h]})}function E1(e){if(vr(e)===ac)return[];var t=di(e);return[Cm(e),t,Cm(t)]}function C1(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,f=r.boundary,d=r.rootBoundary,y=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,h=r.allowedAutoPlacements,v=t.options.placement,C=vr(v),E=C===v,S=c||(E||!b?[di(v)]:E1(v)),T=[v].concat(S).reduce(function(ne,ue){return ne.concat(vr(ue)===ac?O1(t,{placement:ue,boundary:f,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:h}):ue)},[]),w=t.rects.reference,A=t.rects.popper,M=new Map,O=!0,g=T[0],p=0;p<T.length;p++){var x=T[p],R=vr(x),P=dn(x)===un,_=[Vt,nr].indexOf(R)>=0,k=_?"width":"height",D=no(t,{placement:x,boundary:f,rootBoundary:d,altBoundary:y,padding:u}),W=_?P?or:zt:P?nr:Vt;w[k]>A[k]&&(W=di(W));var Z=di(W),G=[];if(a&&G.push(D[R]<=0),s&&G.push(D[W]<=0,D[Z]<=0),G.every(function(ne){return ne})){g=x,O=!1;break}M.set(x,G)}if(O)for(var B=b?3:1,Y=function(ue){var ce=T.find(function(ye){var se=M.get(ye);if(se)return se.slice(0,ue).every(function(le){return le})});if(ce)return g=ce,"break"},ae=B;ae>0;ae--){var oe=Y(ae);if(oe==="break")break}t.placement!==g&&(t.modifiersData[n]._skip=!0,t.placement=g,t.reset=!0)}}const S1={name:"flip",enabled:!0,phase:"main",fn:C1,requiresIfExists:["offset"],data:{_skip:!1}};function Rm(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 Pm(e){return[Vt,or,nr,zt].some(function(t){return e[t]>=0})}function T1(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,l=no(t,{elementContext:"reference"}),s=no(t,{altBoundary:!0}),c=Rm(l,n),u=Rm(s,i,a),f=Pm(c),d=Pm(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const w1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:T1};function R1(e,t,r){var n=vr(e),i=[zt,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,[zt,or].indexOf(n)>=0?{x:s,y:l}:{x:l,y:s}}function P1(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,l=mm.reduce(function(f,d){return f[d]=R1(d,t.rects,a),f},{}),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 _1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P1};function I1(e){var t=e.state,r=e.name;t.modifiersData[r]=wm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const k1={name:"popperOffsets",enabled:!0,phase:"read",fn:I1,data:{}};function j1(e){return e==="x"?"y":"x"}function A1(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,f=r.altBoundary,d=r.padding,y=r.tether,m=y===void 0?!0:y,b=r.tetherOffset,h=b===void 0?0:b,v=no(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:f}),C=vr(t.placement),E=dn(t.placement),S=!E,T=uc(C),w=j1(T),A=t.modifiersData.popperOffsets,M=t.rects.reference,O=t.rects.popper,g=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,p=typeof g=="number"?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(A){if(a){var P,_=T==="y"?Vt:zt,k=T==="y"?nr:or,D=T==="y"?"height":"width",W=A[T],Z=W+v[_],G=W-v[k],B=m?-O[D]/2:0,Y=E===un?M[D]:O[D],ae=E===un?-O[D]:-M[D],oe=t.elements.arrow,ne=m&&oe?cc(oe):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bm(),ce=ue[_],ye=ue[k],se=to(0,M[D],ne[D]),le=S?M[D]/2-B-se-ce-p.mainAxis:Y-se-ce-p.mainAxis,te=S?-M[D]/2+B+se+ye+p.mainAxis:ae+se+ye+p.mainAxis,ve=t.elements.arrow&&eo(t.elements.arrow),X=ve?T==="y"?ve.clientTop||0:ve.clientLeft||0:0,Re=(P=x==null?void 0:x[T])!=null?P:0,V=W+le-Re-X,pe=W+te-Re,de=to(m?ui(Z,V):Z,W,m?Gr(G,pe):G);A[T]=de,R[T]=de-W}if(s){var Ce,Te=T==="x"?Vt:zt,$e=T==="x"?nr:or,He=A[w],Ne=w==="y"?"height":"width",be=He+v[Te],Fe=He-v[$e],Ye=[Vt,zt].indexOf(C)!==-1,ht=(Ce=x==null?void 0:x[w])!=null?Ce:0,Ct=Ye?be:He-M[Ne]-O[Ne]-ht+p.altAxis,pt=Ye?He+M[Ne]+O[Ne]-ht-p.altAxis:Fe,Ue=m&&Ye?n1(Ct,He,pt):to(m?Ct:be,He,m?pt:Fe);A[w]=Ue,R[w]=Ue-He}t.modifiersData[n]=R}}const N1={name:"preventOverflow",enabled:!0,phase:"main",fn:A1,requiresIfExists:["offset"]};function $1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function M1(e){return e===Kt(e)||!ir(e)?pc(e):$1(e)}function D1(e){var t=e.getBoundingClientRect(),r=pn(t.width)/e.offsetWidth||1,n=pn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function L1(e,t,r){r===void 0&&(r=!1);var n=ir(t),i=ir(t)&&D1(t),a=$r(t),l=fn(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((yr(t)!=="body"||dc(a))&&(s=M1(t)),ir(t)?(c=fn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=fc(a))),{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function F1(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 B1(e){var t=F1(e);return JC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function q1(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function V1(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 _m={placement:"bottom",modifiers:[],strategy:"absolute"};function Im(){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 z1(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?_m:i;return function(s,c,u){u===void 0&&(u=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},_m,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],y=!1,m={state:f,setOptions:function(C){var E=typeof C=="function"?C(f.options):C;h(),f.options=Object.assign({},a,f.options,E),f.scrollParents={reference:Hr(s)?ro(s):s.contextElement?ro(s.contextElement):[],popper:ro(c)};var S=B1(V1([].concat(n,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),b(),m.update()},forceUpdate:function(){if(!y){var C=f.elements,E=C.reference,S=C.popper;if(Im(E,S)){f.rects={reference:L1(E,eo(S),f.options.strategy==="fixed"),popper:cc(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(p){return f.modifiersData[p.name]=Object.assign({},p.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var w=f.orderedModifiers[T],A=w.fn,M=w.options,O=M===void 0?{}:M,g=w.name;typeof A=="function"&&(f=A({state:f,options:O,name:g,instance:m})||f)}}}},update:q1(function(){return new Promise(function(v){m.forceUpdate(),v(f)})}),destroy:function(){h(),y=!0}};if(!Im(s,c))return m;m.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var C=v.name,E=v.options,S=E===void 0?{}:E,T=v.effect;if(typeof T=="function"){var w=T({state:f,name:C,instance:m,options:S}),A=function(){};d.push(w||A)}})}function h(){d.forEach(function(v){return v()}),d=[]}return m}}var U1=[d1,k1,p1,e1,_1,S1,N1,s1,w1],W1=z1({defaultModifiers:U1});function H1(e){return We("MuiPopper",e)}qe("MuiPopper",["root"]);function G1(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 hi(e){return typeof e=="function"?e():e}function mi(e){return e.nodeType!==void 0}function K1(e){return!mi(e)}const Y1=e=>{const{classes:t}=e;return Ge({root:["root"]},H1,t)},X1={},J1=j.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:l,modifiers:s,open:c,placement:u,popperOptions:f,popperRef:d,slotProps:y={},slots:m={},TransitionProps:b,ownerState:h,...v}=t,C=j.useRef(null),E=Ot(C,r),S=j.useRef(null),T=Ot(S,d),w=j.useRef(T);cr(()=>{w.current=T},[T]),j.useImperativeHandle(d,()=>S.current,[]);const A=G1(u,a),[M,O]=j.useState(A),[g,p]=j.useState(hi(n));j.useEffect(()=>{S.current&&S.current.forceUpdate()}),j.useEffect(()=>{n&&p(hi(n))},[n]),cr(()=>{if(!g||!c)return;const k=Z=>{O(Z.placement)};if(process.env.NODE_ENV!=="production"&&g&&mi(g)&&g.nodeType===1){const Z=g.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(`
223
+ `))}let D=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{k(Z)}}];s!=null&&(D=D.concat(s)),f&&f.modifiers!=null&&(D=D.concat(f.modifiers));const W=W1(g,C.current,{placement:A,...f,modifiers:D});return w.current(W),()=>{W.destroy(),w.current(null)}},[g,l,s,c,f,A]);const x={placement:M};b!==null&&(x.TransitionProps=b);const R=Y1(t),P=m.root??"div",_=wl({elementType:P,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:R.root});return N.jsx(P,{..._,children:typeof i=="function"?i(x):i})}),km=j.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:f,placement:d="bottom",popperOptions:y=X1,popperRef:m,style:b,transition:h=!1,slotProps:v={},slots:C={},...E}=t,[S,T]=j.useState(!0),w=()=>{T(!1)},A=()=>{T(!0)};if(!c&&!f&&(!h||S))return null;let M;if(a)M=a;else if(n){const p=hi(n);M=p&&mi(p)?Wt(p).body:Wt(null).body}const O=!f&&c&&(!h||S)?"none":void 0,g=h?{in:f,onEnter:w,onExited:A}:void 0;return N.jsx(Vn,{disablePortal:s,container:M,children:N.jsx(J1,{anchorEl:n,direction:l,disablePortal:s,modifiers:u,ref:r,open:h?!S:f,placement:d,popperOptions:y,popperRef:m,slotProps:v,slots:C,...E,style:{position:"fixed",top:0,left:0,display:O,...b},TransitionProps:g,children:i})})});process.env.NODE_ENV!=="production"&&(km.propTypes={anchorEl:ur(o.oneOfType([Er,o.object,o.func]),e=>{if(e.open){const t=hi(e.anchorEl);if(t&&mi(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(`
224
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||K1(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(`
225
+ `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Er,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:Dt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const Q1=xe(km,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mc=j.forwardRef(function(t,r){const n=$d(),i=Je({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:c,container:u,disablePortal:f,keepMounted:d,modifiers:y,open:m,placement:b,popperOptions:h,popperRef:v,transition:C,slots:E,slotProps:S,...T}=i,w=(E==null?void 0:E.root)??(s==null?void 0:s.Root),A={anchorEl:a,container:u,disablePortal:f,keepMounted:d,modifiers:y,open:m,placement:b,popperOptions:h,popperRef:v,transition:C,...T};return N.jsx(Q1,{as:l,direction:n?"rtl":"ltr",slots:{root:w},slotProps:S??c,...A,ref:r})});process.env.NODE_ENV!=="production"&&(mc.propTypes={anchorEl:o.oneOfType([Er,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([Er,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:Dt,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 Z1(e){return We("MuiListSubheader",e)}qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const eS=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${he(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Ge(l,Z1,t)},tS=xe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${he(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Ke(({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}}]}))),gi=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1,...f}=n,d={...n,color:a,component:l,disableGutters:s,disableSticky:c,inset:u},y=eS(d);return N.jsx(tS,{as:l,className:Pe(y.root,i),ref:r,ownerState:d,...f})});gi&&(gi.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(gi.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])});const rS=_t(N.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 nS(e){return We("MuiAutocomplete",e)}const Le=qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var jm,Am;const oS=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:u,size:f}=e,d={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${he(f)}`],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 Ge(d,nS,t)},iS=xe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:l,size:s}=r;return[{[`& .${Le.tag}`]:t.tag},{[`& .${Le.tag}`]:t[`tagSize${he(s)}`]},{[`& .${Le.inputRoot}`]:t.inputRoot},{[`& .${Le.input}`]:t.input},{[`& .${Le.input}`]:l&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Le.focused} .${Le.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Le.clearIndicator}`]:{visibility:"visible"}},[`& .${Le.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Le.inputRoot}`]:{[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:30},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:56},[`& .${Le.input}`]:{width:0,minWidth:30}},[`& .${Ar.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ar.root}.${Ht.sizeSmall}`]:{[`& .${Ar.input}`]:{padding:"2px 4px 3px 0"}},[`& .${tr.root}`]:{padding:9,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Le.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${tr.root}.${Ht.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Le.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Le.hasPopupIcon}&, .${Le.hasClearIcon}&`]:{paddingRight:39},[`.${Le.hasPopupIcon}.${Le.hasClearIcon}&`]:{paddingRight:65},[`& .${Gt.input}`]:{padding:"7px 4px"},[`& .${Le.endAdornment}`]:{right:9}},[`& .${Gt.root}.${Ht.sizeSmall}`]:{paddingBottom:1,[`& .${Gt.input}`]:{padding:"2.5px 4px"}},[`& .${Ht.hiddenLabel}`]:{paddingTop:8},[`& .${Gt.root}.${Ht.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Le.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gt.root}.${Ht.hiddenLabel}.${Ht.sizeSmall}`]:{[`& .${Le.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Le.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Le.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Le.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Le.inputRoot}`]:{flexWrap:"wrap"}}}]}),aS=xe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),sS=xe(si,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),lS=xe(si,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),cS=xe(mc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Le.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),uS=xe(zn,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Ke(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),pS=xe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),fS=xe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),dS=xe("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Ke(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Le.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"},[`&.${Le.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"},[`&.${Le.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})`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Le.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Le.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),hS=xe(gi,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),mS=xe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Le.option}`]:{paddingLeft:24}}),Nm=j.forwardRef(function(t,r){const n=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:s=!1,ChipProps:c,className:u,clearIcon:f=jm||(jm=N.jsx(rS,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:y=!1,clearText:m="Clear",closeText:b="Close",componentsProps:h,defaultValue:v=n.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:E=!1,disabled:S=!1,disabledItemsFocusable:T=!1,disableListWrap:w=!1,disablePortal:A=!1,filterOptions:M,filterSelectedOptions:O=!1,forcePopupIcon:g="auto",freeSolo:p=!1,fullWidth:x=!1,getLimitTagsText:R=Xe=>`+${Xe}`,getOptionDisabled:P,getOptionKey:_,getOptionLabel:k,isOptionEqualToValue:D,groupBy:W,handleHomeEndKeys:Z=!n.freeSolo,id:G,includeInputInList:B=!1,inputValue:Y,limitTags:ae=-1,ListboxComponent:oe,ListboxProps:ne,loading:ue=!1,loadingText:ce="Loading…",multiple:ye=!1,noOptionsText:se="No options",onChange:le,onClose:te,onHighlightChange:ve,onInputChange:X,onOpen:Re,open:V,openOnFocus:pe=!1,openText:de="Open",options:Ce,PaperComponent:Te,PopperComponent:$e,popupIcon:He=Am||(Am=N.jsx(Nh,{})),readOnly:Ne=!1,renderGroup:be,renderInput:Fe,renderOption:Ye,renderTags:ht,selectOnFocus:Ct=!n.freeSolo,size:pt="medium",slots:Ue={},slotProps:Be={},value:st,...De}=n,{getRootProps:Ze,getInputProps:mt,getInputLabelProps:ft,getPopupIndicatorProps:Ee,getClearProps:Ae,getTagProps:at,getListboxProps:wt,getOptionProps:St,value:Bt,dirty:Rt,expanded:Yt,id:Xt,popupOpen:U,focused:$,focusedTag:K,anchorEl:z,setAnchorEl:Se,inputValue:ke,groupedOptions:je}=FC({...n,componentName:"Autocomplete"}),ee=!C&&!S&&Rt&&!Ne,L=(!p||g===!0)&&g!==!1,{onMouseDown:H}=mt(),{ref:ie,...Oe}=wt(),lt=k||(Xe=>Xe.label??Xe),I={...n,disablePortal:A,expanded:Yt,focused:$,fullWidth:x,getOptionLabel:lt,hasClearIcon:ee,hasPopupIcon:L,inputFocused:K===-1,popupOpen:U,size:pt},J=oS(I),fe={slots:{paper:Te,popper:$e,...Ue},slotProps:{chip:c,listbox:ne,...h,...Be}},[F,q]=Lt("listbox",{elementType:dS,externalForwardedProps:fe,ownerState:I,className:J.listbox,additionalProps:Oe,ref:ie}),[re,me]=Lt("paper",{elementType:zn,externalForwardedProps:fe,ownerState:I,className:J.paper}),[ge,Ie]=Lt("popper",{elementType:mc,externalForwardedProps:fe,ownerState:I,className:J.popper,additionalProps:{disablePortal:A,style:{width:z?z.clientWidth:null},role:"presentation",anchorEl:z,open:U}});let _e;if(ye&&Bt.length>0){const Xe=br=>({className:J.tag,disabled:S,...at(br)});ht?_e=ht(Bt,Xe,I):_e=Bt.map((br,Dr)=>{const{key:oo,...CS}=Xe({index:Dr});return N.jsx(Yl,{label:lt(br),size:pt,...CS,...fe.slotProps.chip},oo)})}if(ae>-1&&Array.isArray(_e)){const Xe=_e.length-ae;!$&&Xe>0&&(_e=_e.splice(0,ae),_e.push(N.jsx("span",{className:J.tag,children:R(Xe)},_e.length)))}const Et=be||(Xe=>N.jsxs("li",{children:[N.jsx(hS,{className:J.groupLabel,ownerState:I,component:"div",children:Xe.group}),N.jsx(mS,{className:J.groupUl,ownerState:I,children:Xe.children})]},Xe.key)),vt=Ye||((Xe,br)=>{const{key:Dr,...oo}=Xe;return N.jsx("li",{...oo,children:lt(br)},Dr)}),Pt=(Xe,br)=>{const Dr=St({option:Xe,index:br});return vt({...Dr,className:J.option},Xe,{selected:Dr["aria-selected"],index:br,inputValue:ke},I)},It=fe.slotProps.clearIndicator,Mr=fe.slotProps.popupIndicator,Kr=Xe=>N.jsx(cS,{as:ge,...Ie,children:N.jsx(uS,{as:re,...me,children:Xe})});let vi=null;return je.length>0?vi=Kr(N.jsx(F,{as:oe,...q,children:je.map((Xe,br)=>W?Et({key:Xe.key,group:Xe.group,children:Xe.options.map((Dr,oo)=>Pt(Dr,Xe.index+oo))}):Pt(Xe,br))})):ue&&je.length===0?vi=Kr(N.jsx(pS,{className:J.loading,ownerState:I,children:ce})):je.length===0&&!p&&!ue&&(vi=Kr(N.jsx(fS,{className:J.noOptions,ownerState:I,role:"presentation",onMouseDown:Xe=>{Xe.preventDefault()},children:se}))),N.jsxs(j.Fragment,{children:[N.jsx(iS,{ref:r,className:Pe(J.root,u),ownerState:I,...Ze(De),children:Fe({id:Xt,disabled:S,fullWidth:!0,size:pt==="small"?"small":void 0,InputLabelProps:ft(),InputProps:{ref:Se,className:J.inputRoot,startAdornment:_e,onMouseDown:Xe=>{Xe.target===Xe.currentTarget&&H(Xe)},...(ee||L)&&{endAdornment:N.jsxs(aS,{className:J.endAdornment,ownerState:I,children:[ee?N.jsx(sS,{...Ae(),"aria-label":m,title:m,ownerState:I,...It,className:Pe(J.clearIndicator,It==null?void 0:It.className),children:f}):null,L?N.jsx(lS,{...Ee(),disabled:S,"aria-label":U?b:de,title:U?b:de,ownerState:I,...Mr,className:Pe(J.popupIndicator,Mr==null?void 0:Mr.className),children:He}):null]})}},inputProps:{className:J.input,disabled:S,readOnly:Ne,...mt()}})}),z?vi:null]})});process.env.NODE_ENV!=="production"&&(Nm.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:ur(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(`
226
226
  `)):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:Tl,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,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:ur(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(`
227
- `)):null)});var gi={exports:{}},hS=gi.exports,$m;function mS(){return $m||($m=1,function(e){(function(t,r){e.exports=r()})(hS,function(){var t=Object.prototype.toString;function r(d,y){return d==null?!1:Object.prototype.hasOwnProperty.call(d,y)}function n(d){if(!d||l(d)&&d.length===0)return!0;if(typeof d!="string"){for(var y in d)if(r(d,y))return!1;return!0}return!1}function i(d){return t.call(d)}function a(d){return typeof d=="object"&&i(d)==="[object Object]"}var l=Array.isArray||function(d){return t.call(d)==="[object Array]"};function s(d){return typeof d=="boolean"||i(d)==="[object Boolean]"}function c(d){var y=parseInt(d);return y.toString()===d?y:d}function u(d){d=d||{};var y=function(C){return Object.keys(y).reduce(function(E,S){return S==="create"||typeof y[S]=="function"&&(E[S]=y[S].bind(y,C)),E},{})},m;d.includeInheritedProps?m=function(){return!0}:m=function(C,E){return typeof E=="number"&&Array.isArray(C)||r(C,E)};function b(C,E){if(m(C,E))return C[E]}var h;d.includeInheritedProps?h=function(C,E){typeof E!="string"&&typeof E!="number"&&(E=String(E));var S=b(C,E);if(E==="__proto__"||E==="prototype"||E==="constructor"&&typeof S=="function")throw new Error("For security reasons, object's magic properties cannot be set");return S}:h=function(C,E){return b(C,E)};function v(C,E,S,T){if(typeof E=="number"&&(E=[E]),!E||E.length===0)return C;if(typeof E=="string")return v(C,E.split(".").map(c),S,T);var w=E[0],A=h(C,w);return E.length===1?((A===void 0||!T)&&(C[w]=S),A):(A===void 0&&(typeof E[1]=="number"?C[w]=[]:C[w]={}),v(C[w],E.slice(1),S,T))}return y.has=function(C,E){if(typeof E=="number"?E=[E]:typeof E=="string"&&(E=E.split(".")),!E||E.length===0)return!!C;for(var S=0;S<E.length;S++){var T=c(E[S]);if(typeof T=="number"&&l(C)&&T<C.length||(d.includeInheritedProps?T in Object(C):r(C,T)))C=C[T];else return!1}return!0},y.ensureExists=function(C,E,S){return v(C,E,S,!0)},y.set=function(C,E,S,T){return v(C,E,S,T)},y.insert=function(C,E,S,T){var w=y.get(C,E);T=~~T,l(w)||(w=[],y.set(C,E,w)),w.splice(T,0,S)},y.empty=function(C,E){if(!n(E)&&C!=null){var S,T;if(S=y.get(C,E)){if(typeof S=="string")return y.set(C,E,"");if(s(S))return y.set(C,E,!1);if(typeof S=="number")return y.set(C,E,0);if(l(S))S.length=0;else if(a(S))for(T in S)m(S,T)&&delete S[T];else return y.set(C,E,null)}}},y.push=function(C,E){var S=y.get(C,E);l(S)||(S=[],y.set(C,E,S)),S.push.apply(S,Array.prototype.slice.call(arguments,2))},y.coalesce=function(C,E,S){for(var T,w=0,A=E.length;w<A;w++)if((T=y.get(C,E[w]))!==void 0)return T;return S},y.get=function(C,E,S){if(typeof E=="number"&&(E=[E]),!E||E.length===0)return C;if(C==null)return S;if(typeof E=="string")return y.get(C,E.split("."),S);var T=c(E[0]),w=h(C,T);return w===void 0?S:E.length===1?w:y.get(C[T],E.slice(1),S)},y.del=function(E,S){if(typeof S=="number"&&(S=[S]),E==null||n(S))return E;if(typeof S=="string")return y.del(E,S.split("."));var T=c(S[0]);if(h(E,T),!m(E,T))return E;if(S.length===1)l(E)?E.splice(T,1):delete E[T];else return y.del(E[T],S.slice(1));return E},y}var f=u();return f.create=u,f.withInheritedProps=u({includeInheritedProps:!0}),f})}(gi)),gi.exports}var gS=mS();const yS=Jt(gS);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 vS(e){const{value:t,error:r,onChangeValidate:n,form:{schema:{type:i},action:a,title:l,required:s,multiple:c,disabled:u,options:f},model:d}=e,y=i==="array"?[]:"",[m,b]=we.useState(t||y),[h,v]=we.useState([]),{url:C,params:E}=a||{},S=E&&E.some(g=>g!=null)?E.map(g=>yS.get(d,g)):[];we.useEffect(()=>{const g=E?S.length>0?C.format(...S):"":C;g&&w(g)},S),we.useEffect(()=>{i==="array"?n(m):m!==null&&n({target:{value:m}})},[m]);const T=(g,p)=>{if(i!=="array")if(c){const x=p.map(R=>R.id).join(",");b(x)}else b(p.id);else b(c?p.map(x=>x.id):[p.id])},w=g=>{if(g.includes("=undefined")||g.includes("=&")||g.endsWith("="))return;const p=new um,x={"Content-Type":"application/json"};p.get("csrf")&&Object.assign(x,{"X-CSRF-TOKEN":p.get("csrf")}),fetch(g,{headers:x,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(P=>{throw new Error(P)})).then(R=>{v(R)}).catch(R=>{console.error(R)})};let A="";r&&(A=N.jsx("div",{style:{color:"red"},children:r}));let M;const O=f&&f.length>0?f:h;return c?Array.isArray(t)?M=t?O.filter(g=>t.includes(g.id)):[]:M=t?O.filter(g=>t.split(",").includes(g.id)):[]:Array.isArray(t)?M=t.length===1?O.find(g=>g.id===t[0]):null:M=t?O.find(g=>g.id===t):null,N.jsxs("div",{children:[N.jsx(Nm,{multiple:c,disabled:u,getOptionLabel:g=>g.label||"",value:M||(c?[]:""),onChange:T,options:O,renderInput:g=>N.jsx(ti,{...g,label:s?l+" *":l})}),A]})}const bS=jt(vS),xS=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 Mm extends we.Component{constructor(r){super(r);Tt(this,"mapper",{number:wO,text:Hn,password:Hn,textarea:RO,markdown:PO,textsuggest:IO,select:ZO,taxonomy:jC,radios:NE,date:$E,timestamp:DE,checkbox:KE,help:YE,array:rm,tBoolean:mC,fieldset:am,tuple:am,multiselect:lE,dynaselect:bS});Tt(this,"setDefault",(r,n,i,a)=>{const{onModelChange:l}=this.props,s=Mt.selectOrSet(r,n);_p(s)&&!_p(a)&&l(r,a,i.type,i)});Tt(this,"getLocalization",()=>{const{localization:r}=this.props;return{getLocalizedString:r&&r.getLocalizedString?r.getLocalizedString:n=>n,getLocalizedNumber:r&&r.getLocalizedNumber?r.getLocalizedNumber:n=>n,getLocalizedDate:r&&r.getLocalizedDate?r.getLocalizedDate:xS}});this.builder=this.builder.bind(this)}builder(r,n,i,a,l,s){const{errors:c,showErrors:u,evalContext:f}=this.props,d=this.mapper[r.type];if(!d||r.condition)return null;const y=r.key&&r.key.join(".")||i,m=c&&y in c?c[y]:null;return N.jsx(d,{model:n,form:r,onChange:l,setDefault:this.setDefault,mapper:a,builder:s,errorText:m,localization:this.getLocalization(),showErrors:u},y)}render(){const{schema:r,form:n,ignore:i,option:a,model:l,className:s,onModelChange:c,mapper:u}=this.props,f=Mt.merge(r,n,i,a);let d=this.mapper;u&&(d=qg(this.mapper,u));const y=f.map((m,b)=>this.builder(m,l,b,d,c,this.builder));return N.jsx("div",{className:s,children:y})}}Mm.defaultProps={localization:void 0,showErrors:!1},bt.Array=rm,bt.ComposedComponent=jt,bt.SchemaForm=Mm,bt.utils=Mt,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
227
+ `)):null)});var yi={exports:{}},gS=yi.exports,$m;function yS(){return $m||($m=1,function(e){(function(t,r){e.exports=r()})(gS,function(){var t=Object.prototype.toString;function r(d,y){return d==null?!1:Object.prototype.hasOwnProperty.call(d,y)}function n(d){if(!d||l(d)&&d.length===0)return!0;if(typeof d!="string"){for(var y in d)if(r(d,y))return!1;return!0}return!1}function i(d){return t.call(d)}function a(d){return typeof d=="object"&&i(d)==="[object Object]"}var l=Array.isArray||function(d){return t.call(d)==="[object Array]"};function s(d){return typeof d=="boolean"||i(d)==="[object Boolean]"}function c(d){var y=parseInt(d);return y.toString()===d?y:d}function u(d){d=d||{};var y=function(C){return Object.keys(y).reduce(function(E,S){return S==="create"||typeof y[S]=="function"&&(E[S]=y[S].bind(y,C)),E},{})},m;d.includeInheritedProps?m=function(){return!0}:m=function(C,E){return typeof E=="number"&&Array.isArray(C)||r(C,E)};function b(C,E){if(m(C,E))return C[E]}var h;d.includeInheritedProps?h=function(C,E){typeof E!="string"&&typeof E!="number"&&(E=String(E));var S=b(C,E);if(E==="__proto__"||E==="prototype"||E==="constructor"&&typeof S=="function")throw new Error("For security reasons, object's magic properties cannot be set");return S}:h=function(C,E){return b(C,E)};function v(C,E,S,T){if(typeof E=="number"&&(E=[E]),!E||E.length===0)return C;if(typeof E=="string")return v(C,E.split(".").map(c),S,T);var w=E[0],A=h(C,w);return E.length===1?((A===void 0||!T)&&(C[w]=S),A):(A===void 0&&(typeof E[1]=="number"?C[w]=[]:C[w]={}),v(C[w],E.slice(1),S,T))}return y.has=function(C,E){if(typeof E=="number"?E=[E]:typeof E=="string"&&(E=E.split(".")),!E||E.length===0)return!!C;for(var S=0;S<E.length;S++){var T=c(E[S]);if(typeof T=="number"&&l(C)&&T<C.length||(d.includeInheritedProps?T in Object(C):r(C,T)))C=C[T];else return!1}return!0},y.ensureExists=function(C,E,S){return v(C,E,S,!0)},y.set=function(C,E,S,T){return v(C,E,S,T)},y.insert=function(C,E,S,T){var w=y.get(C,E);T=~~T,l(w)||(w=[],y.set(C,E,w)),w.splice(T,0,S)},y.empty=function(C,E){if(!n(E)&&C!=null){var S,T;if(S=y.get(C,E)){if(typeof S=="string")return y.set(C,E,"");if(s(S))return y.set(C,E,!1);if(typeof S=="number")return y.set(C,E,0);if(l(S))S.length=0;else if(a(S))for(T in S)m(S,T)&&delete S[T];else return y.set(C,E,null)}}},y.push=function(C,E){var S=y.get(C,E);l(S)||(S=[],y.set(C,E,S)),S.push.apply(S,Array.prototype.slice.call(arguments,2))},y.coalesce=function(C,E,S){for(var T,w=0,A=E.length;w<A;w++)if((T=y.get(C,E[w]))!==void 0)return T;return S},y.get=function(C,E,S){if(typeof E=="number"&&(E=[E]),!E||E.length===0)return C;if(C==null)return S;if(typeof E=="string")return y.get(C,E.split("."),S);var T=c(E[0]),w=h(C,T);return w===void 0?S:E.length===1?w:y.get(C[T],E.slice(1),S)},y.del=function(E,S){if(typeof S=="number"&&(S=[S]),E==null||n(S))return E;if(typeof S=="string")return y.del(E,S.split("."));var T=c(S[0]);if(h(E,T),!m(E,T))return E;if(S.length===1)l(E)?E.splice(T,1):delete E[T];else return y.del(E[T],S.slice(1));return E},y}var f=u();return f.create=u,f.withInheritedProps=u({includeInheritedProps:!0}),f})}(yi)),yi.exports}var vS=yS();const bS=Jt(vS);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 xS(e){const{value:t,error:r,onChangeValidate:n,form:{schema:{type:i},action:a,title:l,required:s,multiple:c,disabled:u,options:f},model:d}=e,y=i==="array"?[]:"",[m,b]=we.useState(t||y),[h,v]=we.useState([]),{url:C,params:E}=a||{},S=E&&E.some(g=>g!=null)?E.map(g=>bS.get(d,g)):[];we.useEffect(()=>{const g=E?S.length>0?C.format(...S):"":C;g&&w(g)},S),we.useEffect(()=>{i==="array"?n(m):m!==null&&n({target:{value:m}})},[m]);const T=(g,p)=>{if(i!=="array")if(c){const x=p.map(R=>R.id).join(",");b(x)}else b(p.id);else b(c?p.map(x=>x.id):[p.id])},w=g=>{if(g.includes("=undefined")||g.includes("=&")||g.endsWith("="))return;const p=new um,x={"Content-Type":"application/json"};p.get("csrf")&&Object.assign(x,{"X-CSRF-TOKEN":p.get("csrf")}),fetch(g,{headers:x,credentials:"include"}).then(R=>R.ok?R.json():R.text().then(P=>{throw new Error(P)})).then(R=>{v(R)}).catch(R=>{console.error(R)})};let A="";r&&(A=N.jsx("div",{style:{color:"red"},children:r}));let M;const O=f&&f.length>0?f:h;return c?Array.isArray(t)?M=t?O.filter(g=>t.includes(g.id)):[]:M=t?O.filter(g=>t.split(",").includes(g.id)):[]:Array.isArray(t)?M=t.length===1?O.find(g=>g.id===t[0]):null:M=t?O.find(g=>g.id===t):null,N.jsxs("div",{children:[N.jsx(Nm,{multiple:c,disabled:u,getOptionLabel:g=>g.label||"",value:M||(c?[]:""),onChange:T,options:O,renderInput:g=>N.jsx(ri,{...g,label:s?l+" *":l})}),A]})}const OS=At(xS),ES=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 Mm extends we.Component{constructor(r){super(r);Tt(this,"mapper",{number:PO,text:Hn,password:Hn,textarea:_O,markdown:IO,textsuggest:jO,select:tE,taxonomy:NC,radios:ME,date:DE,timestamp:FE,checkbox:XE,help:JE,array:rm,tBoolean:yC,fieldset:am,tuple:am,multiselect:uE,dynaselect:OS});Tt(this,"setDefault",(r,n,i,a)=>{const{onModelChange:l}=this.props,s=jt.selectOrSet(r,n);_p(s)&&!_p(a)&&l(r,a,i.type,i)});Tt(this,"getLocalization",()=>{const{localization:r}=this.props;return{getLocalizedString:r&&r.getLocalizedString?r.getLocalizedString:n=>n,getLocalizedNumber:r&&r.getLocalizedNumber?r.getLocalizedNumber:n=>n,getLocalizedDate:r&&r.getLocalizedDate?r.getLocalizedDate:ES}});this.builder=this.builder.bind(this)}builder(r,n,i,a,l,s){const{errors:c,showErrors:u,evalContext:f}=this.props,d=this.mapper[r.type];if(!d||r.condition&&!jt.safeEval(r.condition,{model:n,form:r,...f}))return null;const y=r.key&&r.key.join(".")||i,m=c&&y in c?c[y]:null;return N.jsx(d,{model:n,form:r,onChange:l,setDefault:this.setDefault,mapper:a,builder:s,errorText:m,localization:this.getLocalization(),showErrors:u},y)}render(){const{schema:r,form:n,ignore:i,option:a,model:l,className:s,onModelChange:c,mapper:u}=this.props,f=jt.merge(r,n,i,a);let d=this.mapper;u&&(d=qg(this.mapper,u));const y=f.map((m,b)=>this.builder(m,l,b,d,c,this.builder));return N.jsx("div",{className:s,children:y})}}Mm.defaultProps={localization:void 0,showErrors:!1},bt.Array=rm,bt.ComposedComponent=At,bt.SchemaForm=Mm,bt.utils=jt,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
228
228
  //# sourceMappingURL=react-schema-form.umd.cjs.map