x-generic-form 1.0.0
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.
- package/README.md +92 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/SimpleGenericForm.d.ts +3 -0
- package/dist/components/genforms/components/auxiliar-components/control-item.auxiliar.d.ts +7 -0
- package/dist/components/genforms/components/auxiliar-components/form-container.auxiliar.d.ts +1 -0
- package/dist/components/genforms/components/auxiliar-components/grid-container.auxiliar.d.ts +1 -0
- package/dist/components/genforms/components/auxiliar-components/numeric.auxiliar.d.ts +2 -0
- package/dist/components/genforms/components/auxiliar-components/radios-items.auxiliar.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/autocomplete.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/check.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/custom-component.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/date.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/input.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/number.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/radio.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/rating.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/select.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/slider.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/switch.generic.d.ts +1 -0
- package/dist/components/genforms/components/basics-controls/time.generic.d.ts +1 -0
- package/dist/components/genforms/components/special-controls/scanner.generic.d.ts +1 -0
- package/dist/components/genforms/functions/init.controls.d.ts +8 -0
- package/dist/components/genforms/functions/render.controls.d.ts +2 -0
- package/dist/components/genforms/functions/service.controls.d.ts +7 -0
- package/dist/components/genforms/functions/service.form.d.ts +2 -0
- package/dist/components/genforms/functions/utils.d.ts +1 -0
- package/dist/components/genforms/functions/validation.controls.d.ts +12 -0
- package/dist/components/genforms/types/common.types.d.ts +73 -0
- package/dist/components/genforms/types/controls/controls.types.d.ts +156 -0
- package/dist/components/genforms/types/forms.types.d.ts +53 -0
- package/dist/components/genforms/types/validation.types.d.ts +174 -0
- package/dist/generic-form.cjs.js +186 -0
- package/dist/generic-form.es.js +34832 -0
- package/dist/index.d.ts +5 -0
- package/dist/main.d.ts +0 -0
- package/dist/styled.d.ts +1 -0
- package/dist/theme.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ge=require("react"),Ae=require("@mui/material"),zt=require("formik"),Vn=require("@emotion/react"),ab=require("@emotion/styled"),Do=require("react-dom");function Tf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function lb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const R=Tf(ge),cb=Tf(Do);function pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Un(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var vs={exports:{}},ho={};var Kc;function ub(){if(Kc)return ho;Kc=1;var e=ge,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,u){var d,f={},h=null,v=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(v=c.ref);for(d in c)r.call(c,d)&&!i.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:h,ref:v,props:f,_owner:o.current}}return ho.Fragment=n,ho.jsx=a,ho.jsxs=a,ho}var mo={};var Qc;function db(){return Qc||(Qc=1,process.env.NODE_ENV!=="production"&&(function(){var e=ge,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function b(W){if(W===null||typeof W!="object")return null;var be=m&&W[m]||W[p];return typeof be=="function"?be:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(W){{for(var be=arguments.length,Re=new Array(be>1?be-1:0),Ne=1;Ne<be;Ne++)Re[Ne-1]=arguments[Ne];E("error",W,Re)}}function E(W,be,Re){{var Ne=C.ReactDebugCurrentFrame,He=Ne.getStackAddendum();He!==""&&(be+="%s",Re=Re.concat([He]));var ot=Re.map(function(Ye){return String(Ye)});ot.unshift("Warning: "+be),Function.prototype.apply.call(console[W],console,ot)}}var S=!1,A=!1,k=!1,w=!1,M=!1,N;N=Symbol.for("react.module.reference");function V(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===i||M||W===o||W===u||W===d||w||W===v||S||A||k||typeof W=="object"&&W!==null&&(W.$$typeof===h||W.$$typeof===f||W.$$typeof===a||W.$$typeof===l||W.$$typeof===c||W.$$typeof===N||W.getModuleId!==void 0))}function F(W,be,Re){var Ne=W.displayName;if(Ne)return Ne;var He=be.displayName||be.name||"";return He!==""?Re+"("+He+")":Re}function Y(W){return W.displayName||"Context"}function $(W){if(W==null)return null;if(typeof W.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case l:var be=W;return Y(be)+".Consumer";case a:var Re=W;return Y(Re._context)+".Provider";case c:return F(W,W.render,"ForwardRef");case f:var Ne=W.displayName||null;return Ne!==null?Ne:$(W.type)||"Memo";case h:{var He=W,ot=He._payload,Ye=He._init;try{return $(Ye(ot))}catch{return null}}}return null}var O=Object.assign,j=0,I,q,B,Q,_,H,le;function ne(){}ne.__reactDisabledLog=!0;function se(){{if(j===0){I=console.log,q=console.info,B=console.warn,Q=console.error,_=console.group,H=console.groupCollapsed,le=console.groupEnd;var W={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}j++}}function Z(){{if(j--,j===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},W,{value:I}),info:O({},W,{value:q}),warn:O({},W,{value:B}),error:O({},W,{value:Q}),group:O({},W,{value:_}),groupCollapsed:O({},W,{value:H}),groupEnd:O({},W,{value:le})})}j<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=C.ReactCurrentDispatcher,ie;function te(W,be,Re){{if(ie===void 0)try{throw Error()}catch(He){var Ne=He.stack.trim().match(/\n( *(at )?)/);ie=Ne&&Ne[1]||""}return`
|
|
2
|
+
`+ie+W}}var ee=!1,X;{var K=typeof WeakMap=="function"?WeakMap:Map;X=new K}function U(W,be){if(!W||ee)return"";{var Re=X.get(W);if(Re!==void 0)return Re}var Ne;ee=!0;var He=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ot;ot=oe.current,oe.current=null,se();try{if(be){var Ye=function(){throw Error()};if(Object.defineProperty(Ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ye,[])}catch(Lt){Ne=Lt}Reflect.construct(W,[],Ye)}else{try{Ye.call()}catch(Lt){Ne=Lt}W.call(Ye.prototype)}}else{try{throw Error()}catch(Lt){Ne=Lt}W()}}catch(Lt){if(Lt&&Ne&&typeof Lt.stack=="string"){for(var qe=Lt.stack.split(`
|
|
3
|
+
`),jt=Ne.stack.split(`
|
|
4
|
+
`),Tt=qe.length-1,St=jt.length-1;Tt>=1&&St>=0&&qe[Tt]!==jt[St];)St--;for(;Tt>=1&&St>=0;Tt--,St--)if(qe[Tt]!==jt[St]){if(Tt!==1||St!==1)do if(Tt--,St--,St<0||qe[Tt]!==jt[St]){var Ut=`
|
|
5
|
+
`+qe[Tt].replace(" at new "," at ");return W.displayName&&Ut.includes("<anonymous>")&&(Ut=Ut.replace("<anonymous>",W.displayName)),typeof W=="function"&&X.set(W,Ut),Ut}while(Tt>=1&&St>=0);break}}}finally{ee=!1,oe.current=ot,Z(),Error.prepareStackTrace=He}var zn=W?W.displayName||W.name:"",Nn=zn?te(zn):"";return typeof W=="function"&&X.set(W,Nn),Nn}function z(W,be,Re){return U(W,!1)}function ce(W){var be=W.prototype;return!!(be&&be.isReactComponent)}function pe(W,be,Re){if(W==null)return"";if(typeof W=="function")return U(W,ce(W));if(typeof W=="string")return te(W);switch(W){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof W=="object")switch(W.$$typeof){case c:return z(W.render);case f:return pe(W.type,be,Re);case h:{var Ne=W,He=Ne._payload,ot=Ne._init;try{return pe(ot(He),be,Re)}catch{}}}return""}var re=Object.prototype.hasOwnProperty,he={},me=C.ReactDebugCurrentFrame;function Ce(W){if(W){var be=W._owner,Re=pe(W.type,W._source,be?be.type:null);me.setExtraStackFrame(Re)}else me.setExtraStackFrame(null)}function Ee(W,be,Re,Ne,He){{var ot=Function.call.bind(re);for(var Ye in W)if(ot(W,Ye)){var qe=void 0;try{if(typeof W[Ye]!="function"){var jt=Error((Ne||"React class")+": "+Re+" type `"+Ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof W[Ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw jt.name="Invariant Violation",jt}qe=W[Ye](be,Ye,Ne,Re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Tt){qe=Tt}qe&&!(qe instanceof Error)&&(Ce(He),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ne||"React class",Re,Ye,typeof qe),Ce(null)),qe instanceof Error&&!(qe.message in he)&&(he[qe.message]=!0,Ce(He),D("Failed %s type: %s",Re,qe.message),Ce(null))}}}var Se=Array.isArray;function $e(W){return Se(W)}function et(W){{var be=typeof Symbol=="function"&&Symbol.toStringTag,Re=be&&W[Symbol.toStringTag]||W.constructor.name||"Object";return Re}}function We(W){try{return mt(W),!1}catch{return!0}}function mt(W){return""+W}function vt(W){if(We(W))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(W)),mt(W)}var Ct=C.ReactCurrentOwner,Le={key:!0,ref:!0,__self:!0,__source:!0},Oe,gt;function $t(W){if(re.call(W,"ref")){var be=Object.getOwnPropertyDescriptor(W,"ref").get;if(be&&be.isReactWarning)return!1}return W.ref!==void 0}function Nt(W){if(re.call(W,"key")){var be=Object.getOwnPropertyDescriptor(W,"key").get;if(be&&be.isReactWarning)return!1}return W.key!==void 0}function Bt(W,be){typeof W.ref=="string"&&Ct.current}function De(W,be){{var Re=function(){Oe||(Oe=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};Re.isReactWarning=!0,Object.defineProperty(W,"key",{get:Re,configurable:!0})}}function _e(W,be){{var Re=function(){gt||(gt=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};Re.isReactWarning=!0,Object.defineProperty(W,"ref",{get:Re,configurable:!0})}}var it=function(W,be,Re,Ne,He,ot,Ye){var qe={$$typeof:t,type:W,key:be,ref:Re,props:Ye,_owner:ot};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function Ot(W,be,Re,Ne,He){{var ot,Ye={},qe=null,jt=null;Re!==void 0&&(vt(Re),qe=""+Re),Nt(be)&&(vt(be.key),qe=""+be.key),$t(be)&&(jt=be.ref,Bt(be,He));for(ot in be)re.call(be,ot)&&!Le.hasOwnProperty(ot)&&(Ye[ot]=be[ot]);if(W&&W.defaultProps){var Tt=W.defaultProps;for(ot in Tt)Ye[ot]===void 0&&(Ye[ot]=Tt[ot])}if(qe||jt){var St=typeof W=="function"?W.displayName||W.name||"Unknown":W;qe&&De(Ye,St),jt&&_e(Ye,St)}return it(W,qe,jt,He,Ne,Ct.current,Ye)}}var Mn=C.ReactCurrentOwner,at=C.ReactDebugCurrentFrame;function ze(W){if(W){var be=W._owner,Re=pe(W.type,W._source,be?be.type:null);at.setExtraStackFrame(Re)}else at.setExtraStackFrame(null)}var Yt;Yt=!1;function Ve(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function cs(){{if(Mn.current){var W=$(Mn.current.type);if(W)return`
|
|
6
|
+
|
|
7
|
+
Check the render method of \``+W+"`."}return""}}function sn(W){return""}var us={};function ca(W){{var be=cs();if(!be){var Re=typeof W=="string"?W:W.displayName||W.name;Re&&(be=`
|
|
8
|
+
|
|
9
|
+
Check the top-level render call using <`+Re+">.")}return be}}function Er(W,be){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var Re=ca(be);if(us[Re])return;us[Re]=!0;var Ne="";W&&W._owner&&W._owner!==Mn.current&&(Ne=" It was passed a child from "+$(W._owner.type)+"."),ze(W),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Re,Ne),ze(null)}}function Sr(W,be){{if(typeof W!="object")return;if($e(W))for(var Re=0;Re<W.length;Re++){var Ne=W[Re];Ve(Ne)&&Er(Ne,be)}else if(Ve(W))W._store&&(W._store.validated=!0);else if(W){var He=b(W);if(typeof He=="function"&&He!==W.entries)for(var ot=He.call(W),Ye;!(Ye=ot.next()).done;)Ve(Ye.value)&&Er(Ye.value,be)}}}function ds(W){{var be=W.type;if(be==null||typeof be=="string")return;var Re;if(typeof be=="function")Re=be.propTypes;else if(typeof be=="object"&&(be.$$typeof===c||be.$$typeof===f))Re=be.propTypes;else return;if(Re){var Ne=$(be);Ee(Re,W.props,"prop",Ne,W)}else if(be.PropTypes!==void 0&&!Yt){Yt=!0;var He=$(be);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof be.getDefaultProps=="function"&&!be.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ua(W){{for(var be=Object.keys(W.props),Re=0;Re<be.length;Re++){var Ne=be[Re];if(Ne!=="children"&&Ne!=="key"){ze(W),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ne),ze(null);break}}W.ref!==null&&(ze(W),D("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}var co={};function Gn(W,be,Re,Ne,He,ot){{var Ye=V(W);if(!Ye){var qe="";(W===void 0||typeof W=="object"&&W!==null&&Object.keys(W).length===0)&&(qe+=" 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 jt=sn();jt?qe+=jt:qe+=cs();var Tt;W===null?Tt="null":$e(W)?Tt="array":W!==void 0&&W.$$typeof===t?(Tt="<"+($(W.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):Tt=typeof W,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Tt,qe)}var St=Ot(W,be,Re,He,ot);if(St==null)return St;if(Ye){var Ut=be.children;if(Ut!==void 0)if(Ne)if($e(Ut)){for(var zn=0;zn<Ut.length;zn++)Sr(Ut[zn],W);Object.freeze&&Object.freeze(Ut)}else D("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 Sr(Ut,W)}if(re.call(be,"key")){var Nn=$(W),Lt=Object.keys(be).filter(function(pa){return pa!=="key"}),Hn=Lt.length>0?"{key: someKey, "+Lt.join(": ..., ")+": ...}":"{key: someKey}";if(!co[Nn+Hn]){var fa=Lt.length>0?"{"+Lt.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
|
|
10
|
+
let props = %s;
|
|
11
|
+
<%s {...props} />
|
|
12
|
+
React keys must be passed directly to JSX without using spread:
|
|
13
|
+
let props = %s;
|
|
14
|
+
<%s key={someKey} {...props} />`,Hn,Nn,fa,Nn),co[Nn+Hn]=!0}}return W===r?ua(St):ds(St),St}}function da(W,be,Re){return Gn(W,be,Re,!0)}function Rr(W,be,Re){return Gn(W,be,Re,!1)}var uo=Rr,fs=da;mo.Fragment=r,mo.jsx=uo,mo.jsxs=fs})()),mo}var Jc;function Ml(){return Jc||(Jc=1,process.env.NODE_ENV==="production"?vs.exports=ub():vs.exports=db()),vs.exports}var T=Ml(),Ca,Zc;function fb(){if(Zc)return Ca;Zc=1;function e(C){this._maxSize=C,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(C){return this._values[C]},e.prototype.set=function(C,D){return this._size>=this._maxSize&&this.clear(),C in this._values||this._size++,this._values[C]=D};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,l=new e(a),c=new e(a),u=new e(a);Ca={Cache:e,split:f,normalizePath:d,setter:function(C){var D=d(C);return c.get(C)||c.set(C,function(S,A){for(var k=0,w=D.length,M=S;k<w-1;){var N=D[k];if(N==="__proto__"||N==="constructor"||N==="prototype")return S;M=M[D[k++]]}M[D[k]]=A})},getter:function(C,D){var E=d(C);return u.get(C)||u.set(C,function(A){for(var k=0,w=E.length;k<w;)if(A!=null||!D)A=A[E[k++]];else return;return A})},join:function(C){return C.reduce(function(D,E){return D+(v(E)||n.test(E)?"["+E+"]":(D?".":"")+E)},"")},forEach:function(C,D,E){h(Array.isArray(C)?C:f(C),D,E)}};function d(C){return l.get(C)||l.set(C,f(C).map(function(D){return D.replace(i,"$2")}))}function f(C){return C.match(t)||[""]}function h(C,D,E){var S=C.length,A,k,w,M;for(k=0;k<S;k++)A=C[k],A&&(b(A)&&(A='"'+A+'"'),M=v(A),w=!M&&/^\d+$/.test(A),D.call(E,A,M,w,k,C))}function v(C){return typeof C=="string"&&C&&["'",'"'].indexOf(C.charAt(0))!==-1}function m(C){return C.match(r)&&!C.match(n)}function p(C){return o.test(C)}function b(C){return!v(C)&&(m(C)||p(C))}return Ca}var gr=fb(),xa,Xc;function pb(){if(Xc)return xa;Xc=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=d=>d.match(e)||[],n=d=>d[0].toUpperCase()+d.slice(1),r=(d,f)=>t(d).join(f).toLowerCase(),o=d=>t(d).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return xa={words:t,upperFirst:n,camelCase:o,pascalCase:d=>n(o(d)),snakeCase:d=>r(d,"_"),kebabCase:d=>r(d,"-"),sentenceCase:d=>n(r(d," ")),titleCase:d=>t(d).map(n).join(" ")},xa}var Ta=pb(),Cs={exports:{}},eu;function hb(){if(eu)return Cs.exports;eu=1,Cs.exports=function(o){return e(t(o),o)},Cs.exports.array=e;function e(o,i){var a=o.length,l=new Array(a),c={},u=a,d=n(i),f=r(o);for(i.forEach(function(v){if(!f.has(v[0])||!f.has(v[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)c[u]||h(o[u],u,new Set);return l;function h(v,m,p){if(p.has(v)){var b;try{b=", node was:"+JSON.stringify(v)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!f.has(v))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(v));if(!c[m]){c[m]=!0;var C=d.get(v)||new Set;if(C=Array.from(C),m=C.length){p.add(v);do{var D=C[--m];h(D,f.get(D),p)}while(m);p.delete(v)}l[--a]=v}}}function t(o){for(var i=new Set,a=0,l=o.length;a<l;a++){var c=o[a];i.add(c[0]),i.add(c[1])}return Array.from(i)}function n(o){for(var i=new Map,a=0,l=o.length;a<l;a++){var c=o[a];i.has(c[0])||i.set(c[0],new Set),i.has(c[1])||i.set(c[1],new Set),i.get(c[0]).add(c[1])}return i}function r(o){for(var i=new Map,a=0,l=o.length;a<l;a++)i.set(o[a],a);return i}return Cs.exports}var mb=hb();const gb=pn(mb),yb=Object.prototype.toString,bb=Error.prototype.toString,vb=RegExp.prototype.toString,Cb=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",xb=/^Symbol\((.*)\)(.*)$/;function Tb(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function tu(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Tb(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Cb.call(e).replace(xb,"Symbol($1)");const r=yb.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+bb.call(e)+"]":r==="RegExp"?vb.call(e):null}function $n(e,t){let n=tu(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=tu(this[r],t);return i!==null?i:o},2)}function wf(e){return e==null?[]:[].concat(e)}let Ef,Sf,Rf,wb=/\$\{\s*(\w+)\s*\}/g;Ef=Symbol.toStringTag;class nu{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Ef]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],wf(t).forEach(i=>{if(Gt.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Sf=Symbol.hasInstance;Rf=Symbol.toStringTag;class Gt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(wb,(o,i)=>$n(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new nu(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Rf]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Gt)}static[Sf](t){return nu[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Dn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${$n(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$n(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${$n(n,!0)}\``+o}},Ht={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Xn={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ja={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Za={isValue:"${path} field must be ${value}"},Is={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Fs={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Eb={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${$n(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${$n(n,!0)}\``}return Gt.formatError(Dn.notType,e)}};Object.assign(Object.create(null),{mixed:Dn,string:Ht,number:Xn,date:Ja,object:Is,array:Fs,boolean:Za,tuple:Eb});const zo=e=>e&&e.__isYupSchema__;class ni{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...l)=>l.every(c=>c===r);return new ni(t,(l,c)=>{var u;let d=a(...l)?o:i;return(u=d?.(c))!=null?u:c})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n?.value,n?.parent,n?.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!zo(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const xs={context:"$",value:"."};function Ar(e,t){return new rr(e,t)}class rr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===xs.context,this.isValue=this.key[0]===xs.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?xs.context:this.isValue?xs.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&gr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n?.parent,n?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}rr.prototype.__isYupRef=!0;const xn=e=>e==null;function Dr(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},l,c){const{name:u,test:d,params:f,message:h,skipAbsent:v}=e;let{parent:m,context:p,abortEarly:b=a.spec.abortEarly,disableStackTrace:C=a.spec.disableStackTrace}=o;const D={value:n,parent:m,context:p};function E(F={}){const Y=Mf(Object.assign({value:n,originalValue:i,label:a.spec.label,path:F.path||r,spec:a.spec,disableStackTrace:F.disableStackTrace||C},f,F.params),D),$=new Gt(Gt.formatError(F.message||h,Y),n,Y.path,F.type||u,Y.disableStackTrace);return $.params=Y,$}const S=b?l:c;let A={path:r,parent:m,type:u,from:o.from,createError:E,resolve(F){return Af(F,D)},options:o,originalValue:i,schema:a};const k=F=>{Gt.isError(F)?S(F):F?c(null):S(E())},w=F=>{Gt.isError(F)?S(F):l(F)};if(v&&xn(n))return k(!0);let N;try{var V;if(N=d.call(A,n,A),typeof((V=N)==null?void 0:V.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(k,w)}}catch(F){w(F);return}k(N)}return t.OPTIONS=e,t}function Mf(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=Af(e[n],t);return e}function Af(e,t){return rr.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Sb(e,t,n,r=n){let o,i,a;return t?(gr.forEach(t,(l,c,u)=>{let d=c?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",h=u?parseInt(d,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=f?e.spec.types[h]:e.innerType}if(!u){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[d],e=e.fields[d]}i=d,a=c?"["+l+"]":"."+l}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class ri extends Set{describe(){const t=[];for(const n of this.values())t.push(rr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new ri(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Lr(e,t=new Map){if(zo(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Lr(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Lr(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Lr(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Lr(o,t)}else throw Error(`Unable to clone ${e}`);return n}function Rb(e){if(!(e!=null&&e.length))return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const a=e[i];if(a==="["&&!o){n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0;continue}if(a==="]"&&!o){n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1;continue}if(a==='"'){o=!o;continue}if(a==="."&&!r&&!o){n&&(t.push(n),n="");continue}n+=a}return n&&t.push(...n.split(".").filter(Boolean)),t}function Mb(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(r=>({message:r,path:Rb(n)}))}function Df(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return Mb(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(o=>Df(o,r))}class Zt{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ri,this._blacklist=new ri,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Dn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t?.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Lr(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({},n,{value:t})),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&xn(i))return i;let a=$n(t),l=$n(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
15
|
+
|
|
16
|
+
attempted value: ${a}
|
|
17
|
+
`+(l!==a?`result of cast: ${l}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this,n),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:l=this.spec.strict}=n,c=t;l||(c=this._cast(c,Object.assign({assert:!1},n)));let u=[];for(let d of Object.values(this.internalTests))d&&u.push(d);this.runTests({path:i,value:c,originalValue:a,options:n,tests:u},r,d=>{if(d.length)return o(d,c);this.runTests({path:i,value:c,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:l,path:c,options:u}=t,d=p=>{o||(o=!0,n(p,a))},f=p=>{o||(o=!0,r(p,a))},h=i.length,v=[];if(!h)return f([]);let m={value:a,originalValue:l,path:c,options:u,schema:this};for(let p=0;p<i.length;p++){const b=i[p];b(m,d,function(D){D&&(Array.isArray(D)?v.push(...D):v.push(D)),--h<=0&&f(v)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const c=typeof l=="number";let u=r[l];const d=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:i[l],key:void 0,[c?"index":"key"]:l,path:c||l.includes(".")?`${o||""}[${c?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(f,h,v)=>this.resolve(d)._validate(u,d,h,v)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n?.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,l)=>o._validate(t,n,(c,u)=>{Gt.isError(c)&&(c.value=u),l(c)},(c,u)=>{c.length?l(new Gt(c,u,void 0,void 0,i)):a(u)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n?.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,c)=>{throw Gt.isError(l)&&(l.value=c),l},(l,c)=>{if(l.length)throw new Gt(l,t,void 0,void 0,a);i=c}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Gt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Gt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Lr(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Dr({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Dr({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Dn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Dn.notNull){return this.nullability(!1,t)}required(t=Dn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Dn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Dr(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=wf(t).map(i=>new rr(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new ni(o,n):ni.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Dr({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Dn.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Dr({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Dn.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Dr({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((c,u,d)=>d.findIndex(f=>f.OPTIONS.name===c.OPTIONS.name)===u).map(c=>{const u=c.OPTIONS.params&&t?Mf(Object.assign({},c.OPTIONS.params),t):c.OPTIONS.params;return{name:c.OPTIONS.name,params:u}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(r){try{return{value:await t.validate(r,{abortEarly:!1})}}catch(o){if(o instanceof Gt)return{issues:Df(o)};throw o}}}}}Zt.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Zt.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=Sb(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Zt.prototype[e]=Zt.prototype.oneOf;for(const e of["not","nope"])Zt.prototype[e]=Zt.prototype.notOneOf;const Ab=()=>!0;function Pf(e){return new Of(e)}class Of extends Zt{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Ab},t))}}Pf.prototype=Of.prototype;function Al(){return new kf}class kf extends Zt{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n)=>{if(this.spec.coerce&&!this.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Za.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return xn(n)||n===!0}})}isFalse(t=Za.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return xn(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Al.prototype=kf.prototype;const Db=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Pb(e){const t=Xa(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Xa(e){var t,n;const r=Db.exec(e);return r?{year:jn(r[1]),month:jn(r[2],1)-1,day:jn(r[3],1),hour:jn(r[4]),minute:jn(r[5]),second:jn(r[6]),millisecond:r[7]?jn(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:jn(r[10]),minuteOffset:jn(r[11])}:null}function jn(e,t=0){return Number(e)||t}let Ob=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kb=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Ib=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Fb="^\\d{4}-\\d{2}-\\d{2}",Nb="\\d{2}:\\d{2}:\\d{2}",Bb="(([+-]\\d{2}(:?\\d{2})?)|Z)",jb=new RegExp(`${Fb}T${Nb}(\\.\\d+)?${Bb}$`),Vb=e=>xn(e)||e===e.trim(),$b={}.toString();function un(){return new If}class If extends Zt{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n)=>{if(!this.spec.coerce||this.isType(t)||Array.isArray(t))return t;const r=t!=null&&t.toString?t.toString():t;return r===$b?t:r})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Dn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ht.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ht.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ht.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||Ht.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ht.email){return this.matches(Ob,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ht.url){return this.matches(kb,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ht.uuid){return this.matches(Ib,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(jb,{name:"datetime",message:n||Ht.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ht.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=Xa(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ht.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=Xa(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ht.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Vb})}lowercase(t=Ht.lowercase){return this.transform(n=>xn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xn(n)||n===n.toLowerCase()})}uppercase(t=Ht.uppercase){return this.transform(n=>xn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xn(n)||n===n.toUpperCase()})}}un.prototype=If.prototype;let Lb=e=>e!=+e;function oi(){return new Ff}class Ff extends Zt{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Lb(t)}}),this.withMutation(()=>{this.transform((t,n)=>{if(!this.spec.coerce)return t;let r=t;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return this.isType(r)||r===null?r:parseFloat(r)})})}min(t,n=Xn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Xn.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Xn.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Xn.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Xn.positive){return this.moreThan(0,t)}negative(t=Xn.negative){return this.lessThan(0,t)}integer(t=Xn.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>xn(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>xn(o)?o:Math[t](o))}}oi.prototype=Ff.prototype;let _b=new Date(""),qb=e=>Object.prototype.toString.call(e)==="[object Date]";class Dl extends Zt{constructor(){super({type:"date",check(t){return qb(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n)=>!this.spec.coerce||this.isType(t)||t===null?t:(t=Pb(t),isNaN(t)?Dl.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(rr.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Ja.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Ja.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}Dl.INVALID_DATE=_b;function Yb(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,l])=>`${a}-${l}`));function i(a,l){let c=gr.split(a)[0];r.add(c),o.has(`${l}-${c}`)||n.push([l,c])}for(const a of Object.keys(e)){let l=e[a];r.add(a),rr.isRef(l)&&l.isSibling?i(l.path,a):zo(l)&&"deps"in l&&l.deps.forEach(c=>i(c,a))}return gb.array(Array.from(r),n).reverse()}function ru(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function Nf(e){return(t,n)=>ru(e,t)-ru(e,n)}const Bf=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Ns(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ns(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ns(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ns)}):"optional"in e?e.optional():e}const Ub=(e,t)=>{const n=[...gr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=gr.getter(gr.join(n),!0)(e);return!!(o&&r in o)};let ou=e=>Object.prototype.toString.call(e)==="[object Object]";function su(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Wb=Nf([]);function jf(e){return new Vf(e)}class Vf extends Zt{constructor(t){super({type:"object",check(n){return ou(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Wb,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),c={},u=Object.assign({},n,{parent:c,__validating:n.__validating||!1}),d=!1;for(const f of l){let h=i[f],v=f in o,m=o[f];if(h){let p;u.path=(n.path?`${n.path}.`:"")+f,h=h.resolve({value:m,context:n.context,parent:c});let b=h instanceof Zt?h.spec:void 0,C=b?.strict;if(b!=null&&b.strip){d=d||f in o;continue}p=!n.__validating||!C?h.cast(m,u):m,p!==void 0&&(c[f]=p)}else v&&!a&&(c[f]=m);(v!==f in c||c[f]!==m)&&(d=!0)}return d?c:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(c,u)=>{if(!l||!ou(u)){o(c,u);return}a=a||u;let d=[];for(let f of this._nodes){let h=this.fields[f];!h||rr.isRef(h)||d.push(h.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:d,value:u,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(c),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Yb(t,n),r._sortErrors=Nf(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ns(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=gr.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return Ub(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(Bf)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Is.exact,test(n){if(n==null)return!0;const r=su(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Is.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=su(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Is.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Ta.camelCase)}snakeCase(){return this.transformKeys(Ta.snakeCase)}constantCase(){return this.transformKeys(t=>Ta.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=a.describe(l)}return r}}jf.prototype=Vf.prototype;function Ln(e){return new $f(e)}class $f extends Zt{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,l)=>{const c=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${l}]`,parent:r,originalValue:a,value:a,index:l}));return c!==a&&(o=!0),c});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,l=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(c,u)=>{var d;if(!l||!a||!this._typeCheck(u)){o(c,u);return}let f=new Array(u.length);for(let v=0;v<u.length;v++){var h;f[v]=a.asNestedTest({options:n,index:v,parent:u,parentPath:n.path,originalParent:(h=n.originalValue)!=null?h:t})}this.runTests({value:u,tests:f,originalValue:(d=n.originalValue)!=null?d:t,options:n},r,v=>o(v.concat(c),u))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(Bf)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!zo(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+$n(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=Fs.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||Fs.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||Fs.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);if(n.innerType){var o;let i=t;(o=i)!=null&&o.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}Ln.prototype=$f.prototype;function hn(e,t,n){if(!e||!zo(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof n!="function")throw new TypeError("Method function must be provided");e.prototype[t]=n}const Gb=({id:e,gridSx:t,initialValue:n,gridValues:r,name:o,label:i,disabled:a,hidden:l,placeholder:c,sx:u,multiple:d,options:f,validations:h,formValue:v,disabledOnEdit:m,editMode:p,persist:b})=>{const[C]=ge.useState(f??[]),{setFieldValue:D,setFieldTouched:E,values:S,touched:A,errors:k}=zt.useFormikContext();A[o]&&k[o],S[o],ge.useEffect(()=>{D(o,n,!1)},[n]);const w=ge.useCallback((M,N,V,F)=>{if(d&&F){const Y=structuredClone(v),$=JSON.stringify(F.option),O=Y.findIndex(j=>JSON.stringify(j)==$);O===-1?Y.push(F.option):Y.splice(O,1),D(o,Y,!0);return}D(o,N,!0)},[]);return T.jsx(Ae.Grid,{item:!0,display:l?.(S)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:T.jsx(Ae.Autocomplete,{id:e??o,fullWidth:!0,options:C,multiple:!!d,autoComplete:!0,disabled:p&&m||a?.(S),onChange:w,value:v,sx:u,autoHighlight:!0,getOptionLabel:M=>M?.label??"",renderInput:M=>T.jsx(Ae.TextField,{...M,label:T.jsxs("label",{children:[i,h?.required&&T.jsx("b",{style:{color:"red"},children:" * "})]}),placeholder:c})})})},zb=({id:e,gridSx:t,defaultValue:n,gridValues:r,name:o,label:i,disabled:a,hidden:l,sx:c,labelPlacement:u,color:d,customIcons:f,onChange:h,disabledOnEdit:v,editMode:m,persist:p})=>{const{setFieldValue:b,setFieldTouched:C,values:D,touched:E,errors:S}=zt.useFormikContext();E[o]&&S[o];const A=D[o],[k,w]=ge.useState({}),[M,N]=ge.useState(c??{}),V=ge.useCallback(F=>{h?.(F),b(o,F?.target?.checked,!1),C(o)},[]);return ge.useEffect(()=>{b(o,n??!1,!1)},[n]),ge.useEffect(()=>{N(F=>(F["&.Mui-checked"]={color:d},F))},[d]),T.jsx(Ae.Grid,{item:!0,display:l?.(D)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:T.jsx(Ae.FormControlLabel,{id:e??o,name:o,control:T.jsx(Ae.Checkbox,{sx:M,...k}),label:i,checked:A,disabled:m&&v||a?.(D),onChange:V,labelPlacement:u})})},Hb=({id:e,gridSx:t,initialValue:n,gridValues:r,name:o,label:i,disabled:a,hidden:l,sx:c,component:u,validations:d,persist:f})=>{const{setFieldValue:h,setFieldTouched:v,values:m,touched:p,errors:b}=zt.useFormikContext(),C=p[o]&&b[o],D=m[o];return ge.useEffect(()=>{h(o,n??"",!1)},[n]),T.jsx(Ae.Grid,{item:!0,display:l?.(m)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:u({id:e,name:o,label:i,disabled:a,hidden:l,sx:c,initialValue:n,validations:d,formValue:D,error:C,setFieldValue:h,setFieldTouched:v,values:m})})};var Bs={exports:{}},js={exports:{}},Kb=js.exports,iu;function Lf(){return iu||(iu=1,(function(e,t){(function(n,r){e.exports=r()})(Kb,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",f="month",h="quarter",v="year",m="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var j=["th","st","nd","rd"],I=O%100;return"["+O+(j[(I-20)%10]||j[I]||j[0])+"]"}},E=function(O,j,I){var q=String(O);return!q||q.length>=j?O:""+Array(j+1-q.length).join(I)+O},S={s:E,z:function(O){var j=-O.utcOffset(),I=Math.abs(j),q=Math.floor(I/60),B=I%60;return(j<=0?"+":"-")+E(q,2,"0")+":"+E(B,2,"0")},m:function O(j,I){if(j.date()<I.date())return-O(I,j);var q=12*(I.year()-j.year())+(I.month()-j.month()),B=j.clone().add(q,f),Q=I-B<0,_=j.clone().add(q+(Q?-1:1),f);return+(-(q+(I-B)/(Q?B-_:_-B))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:v,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},A="en",k={};k[A]=D;var w="$isDayjsObject",M=function(O){return O instanceof Y||!(!O||!O[w])},N=function O(j,I,q){var B;if(!j)return A;if(typeof j=="string"){var Q=j.toLowerCase();k[Q]&&(B=Q),I&&(k[Q]=I,B=Q);var _=j.split("-");if(!B&&_.length>1)return O(_[0])}else{var H=j.name;k[H]=j,B=H}return!q&&B&&(A=B),B||!q&&A},V=function(O,j){if(M(O))return O.clone();var I=typeof j=="object"?j:{};return I.date=O,I.args=arguments,new Y(I)},F=S;F.l=N,F.i=M,F.w=function(O,j){return V(O,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var Y=(function(){function O(I){this.$L=N(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[w]=!0}var j=O.prototype;return j.parse=function(I){this.$d=(function(q){var B=q.date,Q=q.utc;if(B===null)return new Date(NaN);if(F.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var _=B.match(b);if(_){var H=_[2]-1||0,le=(_[7]||"0").substring(0,3);return Q?new Date(Date.UTC(_[1],H,_[3]||1,_[4]||0,_[5]||0,_[6]||0,le)):new Date(_[1],H,_[3]||1,_[4]||0,_[5]||0,_[6]||0,le)}}return new Date(B)})(I),this.init()},j.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==p},j.isSame=function(I,q){var B=V(I);return this.startOf(q)<=B&&B<=this.endOf(q)},j.isAfter=function(I,q){return V(I)<this.startOf(q)},j.isBefore=function(I,q){return this.endOf(q)<V(I)},j.$g=function(I,q,B){return F.u(I)?this[q]:this.set(B,I)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(I,q){var B=this,Q=!!F.u(q)||q,_=F.p(I),H=function(ee,X){var K=F.w(B.$u?Date.UTC(B.$y,X,ee):new Date(B.$y,X,ee),B);return Q?K:K.endOf(u)},le=function(ee,X){return F.w(B.toDate()[ee].apply(B.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(X)),B)},ne=this.$W,se=this.$M,Z=this.$D,oe="set"+(this.$u?"UTC":"");switch(_){case v:return Q?H(1,0):H(31,11);case f:return Q?H(1,se):H(0,se+1);case d:var ie=this.$locale().weekStart||0,te=(ne<ie?ne+7:ne)-ie;return H(Q?Z-te:Z+(6-te),se);case u:case m:return le(oe+"Hours",0);case c:return le(oe+"Minutes",1);case l:return le(oe+"Seconds",2);case a:return le(oe+"Milliseconds",3);default:return this.clone()}},j.endOf=function(I){return this.startOf(I,!1)},j.$set=function(I,q){var B,Q=F.p(I),_="set"+(this.$u?"UTC":""),H=(B={},B[u]=_+"Date",B[m]=_+"Date",B[f]=_+"Month",B[v]=_+"FullYear",B[c]=_+"Hours",B[l]=_+"Minutes",B[a]=_+"Seconds",B[i]=_+"Milliseconds",B)[Q],le=Q===u?this.$D+(q-this.$W):q;if(Q===f||Q===v){var ne=this.clone().set(m,1);ne.$d[H](le),ne.init(),this.$d=ne.set(m,Math.min(this.$D,ne.daysInMonth())).$d}else H&&this.$d[H](le);return this.init(),this},j.set=function(I,q){return this.clone().$set(I,q)},j.get=function(I){return this[F.p(I)]()},j.add=function(I,q){var B,Q=this;I=Number(I);var _=F.p(q),H=function(se){var Z=V(Q);return F.w(Z.date(Z.date()+Math.round(se*I)),Q)};if(_===f)return this.set(f,this.$M+I);if(_===v)return this.set(v,this.$y+I);if(_===u)return H(1);if(_===d)return H(7);var le=(B={},B[l]=r,B[c]=o,B[a]=n,B)[_]||1,ne=this.$d.getTime()+I*le;return F.w(ne,this)},j.subtract=function(I,q){return this.add(-1*I,q)},j.format=function(I){var q=this,B=this.$locale();if(!this.isValid())return B.invalidDate||p;var Q=I||"YYYY-MM-DDTHH:mm:ssZ",_=F.z(this),H=this.$H,le=this.$m,ne=this.$M,se=B.weekdays,Z=B.months,oe=B.meridiem,ie=function(X,K,U,z){return X&&(X[K]||X(q,Q))||U[K].slice(0,z)},te=function(X){return F.s(H%12||12,X,"0")},ee=oe||function(X,K,U){var z=X<12?"AM":"PM";return U?z.toLowerCase():z};return Q.replace(C,(function(X,K){return K||(function(U){switch(U){case"YY":return String(q.$y).slice(-2);case"YYYY":return F.s(q.$y,4,"0");case"M":return ne+1;case"MM":return F.s(ne+1,2,"0");case"MMM":return ie(B.monthsShort,ne,Z,3);case"MMMM":return ie(Z,ne);case"D":return q.$D;case"DD":return F.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return ie(B.weekdaysMin,q.$W,se,2);case"ddd":return ie(B.weekdaysShort,q.$W,se,3);case"dddd":return se[q.$W];case"H":return String(H);case"HH":return F.s(H,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return ee(H,le,!0);case"A":return ee(H,le,!1);case"m":return String(le);case"mm":return F.s(le,2,"0");case"s":return String(q.$s);case"ss":return F.s(q.$s,2,"0");case"SSS":return F.s(q.$ms,3,"0");case"Z":return _}return null})(X)||_.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(I,q,B){var Q,_=this,H=F.p(q),le=V(I),ne=(le.utcOffset()-this.utcOffset())*r,se=this-le,Z=function(){return F.m(_,le)};switch(H){case v:Q=Z()/12;break;case f:Q=Z();break;case h:Q=Z()/3;break;case d:Q=(se-ne)/6048e5;break;case u:Q=(se-ne)/864e5;break;case c:Q=se/o;break;case l:Q=se/r;break;case a:Q=se/n;break;default:Q=se}return B?Q:F.a(Q)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return k[this.$L]},j.locale=function(I,q){if(!I)return this.$L;var B=this.clone(),Q=N(I,q,!0);return Q&&(B.$L=Q),B},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},O})(),$=Y.prototype;return V.prototype=$,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",v],["$D",m]].forEach((function(O){$[O[1]]=function(j){return this.$g(j,O[0],O[1])}})),V.extend=function(O,j){return O.$i||(O(j,Y,V),O.$i=!0),V},V.locale=N,V.isDayjs=M,V.unix=function(O){return V(1e3*O)},V.en=k[A],V.Ls=k,V.p={},V}))})(js)),js.exports}var Qb=Bs.exports,au;function Jb(){return au||(au=1,(function(e,t){(function(n,r){e.exports=r(Lf())})(Qb,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(n),i={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(a){return a+"º"}};return o.default.locale(i,null,!0),i}))})(Bs)),Bs.exports}Jb();function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}var Zb=Lf();const ft=pn(Zb);var Vs={exports:{}},Xb=Vs.exports,lu;function ev(){return lu||(lu=1,(function(e,t){(function(n,r){e.exports=r()})(Xb,(function(){var n="week",r="year";return function(o,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),f=a(this).endOf(n);if(d.isBefore(f))return 1}var h=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(h,n,!0);return v<0?a(this).startOf("week").week():Math.ceil(v)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Vs)),Vs.exports}var tv=ev();const nv=pn(tv);var $s={exports:{}},rv=$s.exports,cu;function ov(){return cu||(cu=1,(function(e,t){(function(n,r){e.exports=r()})(rv,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(C){this[b]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var D=C.match(/([+-]|\d\d)/g),E=60*D[1]+(+D[2]||0);return E===0?0:D[0]==="+"?-E:E})(b)}],h=function(b){var C=c[b];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(b,C){var D,E=c.meridiem;if(E){for(var S=1;S<=24;S+=1)if(b.indexOf(E(S,0,C))>-1){D=S>12;break}}else D=b===(C?"pm":"PM");return D},m={A:[l,function(b){this.afternoon=v(b,!1)}],a:[l,function(b){this.afternoon=v(b,!0)}],Q:[o,function(b){this.month=3*(b-1)+1}],S:[o,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(b){var C=c.ordinal,D=b.match(/\d+/);if(this.day=D[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===b&&(this.day=E)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(b){var C=h("months"),D=(h("monthsShort")||C.map((function(E){return E.slice(0,3)}))).indexOf(b)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[l,function(b){var C=h("months").indexOf(b)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(b){this.year=u(b)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function p(b){var C,D;C=b,D=c&&c.formats;for(var E=(b=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,F,Y){var $=Y&&Y.toUpperCase();return F||D[Y]||n[Y]||D[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,j,I){return j||I.slice(1)}))}))).match(r),S=E.length,A=0;A<S;A+=1){var k=E[A],w=m[k],M=w&&w[0],N=w&&w[1];E[A]=N?{regex:M,parser:N}:k.replace(/^\[|\]$/g,"")}return function(V){for(var F={},Y=0,$=0;Y<S;Y+=1){var O=E[Y];if(typeof O=="string")$+=O.length;else{var j=O.regex,I=O.parser,q=V.slice($),B=j.exec(q)[0];I.call(F,B),V=V.replace(B,"")}}return(function(Q){var _=Q.afternoon;if(_!==void 0){var H=Q.hours;_?H<12&&(Q.hours+=12):H===12&&(Q.hours=0),delete Q.afternoon}})(F),F}}return function(b,C,D){D.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(u=b.parseTwoDigitYear);var E=C.prototype,S=E.parse;E.parse=function(A){var k=A.date,w=A.utc,M=A.args;this.$u=w;var N=M[1];if(typeof N=="string"){var V=M[2]===!0,F=M[3]===!0,Y=V||F,$=M[2];F&&($=M[2]),c=this.$locale(),!V&&$&&(c=D.Ls[$]),this.$d=(function(q,B,Q,_){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*q);var H=p(B)(q),le=H.year,ne=H.month,se=H.day,Z=H.hours,oe=H.minutes,ie=H.seconds,te=H.milliseconds,ee=H.zone,X=H.week,K=new Date,U=se||(le||ne?1:K.getDate()),z=le||K.getFullYear(),ce=0;le&&!ne||(ce=ne>0?ne-1:K.getMonth());var pe,re=Z||0,he=oe||0,me=ie||0,Ce=te||0;return ee?new Date(Date.UTC(z,ce,U,re,he,me,Ce+60*ee.offset*1e3)):Q?new Date(Date.UTC(z,ce,U,re,he,me,Ce)):(pe=new Date(z,ce,U,re,he,me,Ce),X&&(pe=_(pe).week(X).toDate()),pe)}catch{return new Date("")}})(k,N,w,D),this.init(),$&&$!==!0&&(this.$L=this.locale($).$L),Y&&k!=this.format(N)&&(this.$d=new Date("")),c={}}else if(N instanceof Array)for(var O=N.length,j=1;j<=O;j+=1){M[1]=N[j-1];var I=D.apply(this,M);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}j===O&&(this.$d=new Date(""))}else S.call(this,A)}}}))})($s)),$s.exports}var sv=ov();const iv=pn(sv);var Ls={exports:{}},av=Ls.exports,uu;function lv(){return uu||(uu=1,(function(e,t){(function(n,r){e.exports=r()})(av,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,m,p){var b=p&&p.toUpperCase();return m||h[p]||n[p]||h[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,D,E){return D||E.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(Ls)),Ls.exports}var cv=lv();const uv=pn(cv);var _s={exports:{}},dv=_s.exports,du;function fv(){return du||(du=1,(function(e,t){(function(n,r){e.exports=r()})(dv,(function(){return function(n,r,o){r.prototype.isBetween=function(i,a,l,c){var u=o(i),d=o(a),f=(c=c||"()")[0]==="(",h=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(d,l):!this.isAfter(d,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(_s)),_s.exports}var pv=fv();const hv=pn(pv);var qs={exports:{}},mv=qs.exports,fu;function gv(){return fu||(fu=1,(function(e,t){(function(n,r){e.exports=r()})(mv,(function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return i.bind(this)(d)}}}))})(qs)),qs.exports}var yv=gv();const bv=pn(yv),pu=new Set;function _f(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
18
|
+
`):e;pu.has(n)||(pu.add(n),t==="error"?console.error(n):console.warn(n))}ft.extend(uv);ft.extend(nv);ft.extend(hv);ft.extend(bv);const vv={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Cv={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},wa=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
19
|
+
`),hu=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
20
|
+
`),xv=(e,t)=>t?(...n)=>e(...n).locale(t):e;class qf{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=vv,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof ft.utc<"u",this.hasTimezonePlugin=()=>typeof ft.tz<"u",this.isSame=(r,o,i)=>{const a=this.setTimezone(o,this.getTimezone(r));return r.format(i)===a.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return ft.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=ft.tz.guess();return o!=="UTC"?ft.tz(r,o):ft(r)}return ft(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(wa);return ft.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(wa);if(!this.hasTimezonePlugin())throw new Error(hu);const i=r!==void 0&&!r.endsWith("Z");return ft(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=ft.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(process.env.NODE_ENV!=="production"&&_f(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>ft(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const o=r.$x?.$timezone;if(o)return o}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(wa);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(hu)}return ft.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(l,c,u)=>c||u.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,l,c)=>{const u=c&&c.toUpperCase();return l||o[c]||i(o[u])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,i])=>r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let a=0,l=o;const c=[];for(;l<i;){const u=Math.floor(a/7);c[u]=c[u]||[],c[u].push(l),l=this.addDays(l,1),a+=1}return c},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),l=[];let c=i;for(;this.isBefore(c,a);)l.push(c),c=this.addYears(c,1);return l},this.dayjs=xv(ft,t),this.locale=t,this.formats=x({},Cv,n),ft.extend(iv)}getDayOfWeek(t){return t.day()+1}}function ve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Yf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function we(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yf(e))&&(r&&(r+=" "),r+=t);return r}var Ts={exports:{}},ws={exports:{}},tt={};var mu;function Tv(){if(mu)return tt;mu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function E(A){if(typeof A=="object"&&A!==null){var k=A.$$typeof;switch(k){case t:switch(A=A.type,A){case c:case u:case r:case i:case o:case f:return A;default:switch(A=A&&A.$$typeof,A){case l:case d:case m:case v:case a:return A;default:return k}}case n:return k}}}function S(A){return E(A)===u}return tt.AsyncMode=c,tt.ConcurrentMode=u,tt.ContextConsumer=l,tt.ContextProvider=a,tt.Element=t,tt.ForwardRef=d,tt.Fragment=r,tt.Lazy=m,tt.Memo=v,tt.Portal=n,tt.Profiler=i,tt.StrictMode=o,tt.Suspense=f,tt.isAsyncMode=function(A){return S(A)||E(A)===c},tt.isConcurrentMode=S,tt.isContextConsumer=function(A){return E(A)===l},tt.isContextProvider=function(A){return E(A)===a},tt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},tt.isForwardRef=function(A){return E(A)===d},tt.isFragment=function(A){return E(A)===r},tt.isLazy=function(A){return E(A)===m},tt.isMemo=function(A){return E(A)===v},tt.isPortal=function(A){return E(A)===n},tt.isProfiler=function(A){return E(A)===i},tt.isStrictMode=function(A){return E(A)===o},tt.isSuspense=function(A){return E(A)===f},tt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===i||A===o||A===f||A===h||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===v||A.$$typeof===a||A.$$typeof===l||A.$$typeof===d||A.$$typeof===b||A.$$typeof===C||A.$$typeof===D||A.$$typeof===p)},tt.typeOf=E,tt}var nt={};var gu;function wv(){return gu||(gu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function E(U){return typeof U=="string"||typeof U=="function"||U===r||U===u||U===i||U===o||U===f||U===h||typeof U=="object"&&U!==null&&(U.$$typeof===m||U.$$typeof===v||U.$$typeof===a||U.$$typeof===l||U.$$typeof===d||U.$$typeof===b||U.$$typeof===C||U.$$typeof===D||U.$$typeof===p)}function S(U){if(typeof U=="object"&&U!==null){var z=U.$$typeof;switch(z){case t:var ce=U.type;switch(ce){case c:case u:case r:case i:case o:case f:return ce;default:var pe=ce&&ce.$$typeof;switch(pe){case l:case d:case m:case v:case a:return pe;default:return z}}case n:return z}}}var A=c,k=u,w=l,M=a,N=t,V=d,F=r,Y=m,$=v,O=n,j=i,I=o,q=f,B=!1;function Q(U){return B||(B=!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.")),_(U)||S(U)===c}function _(U){return S(U)===u}function H(U){return S(U)===l}function le(U){return S(U)===a}function ne(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function se(U){return S(U)===d}function Z(U){return S(U)===r}function oe(U){return S(U)===m}function ie(U){return S(U)===v}function te(U){return S(U)===n}function ee(U){return S(U)===i}function X(U){return S(U)===o}function K(U){return S(U)===f}nt.AsyncMode=A,nt.ConcurrentMode=k,nt.ContextConsumer=w,nt.ContextProvider=M,nt.Element=N,nt.ForwardRef=V,nt.Fragment=F,nt.Lazy=Y,nt.Memo=$,nt.Portal=O,nt.Profiler=j,nt.StrictMode=I,nt.Suspense=q,nt.isAsyncMode=Q,nt.isConcurrentMode=_,nt.isContextConsumer=H,nt.isContextProvider=le,nt.isElement=ne,nt.isForwardRef=se,nt.isFragment=Z,nt.isLazy=oe,nt.isMemo=ie,nt.isPortal=te,nt.isProfiler=ee,nt.isStrictMode=X,nt.isSuspense=K,nt.isValidElementType=E,nt.typeOf=S})()),nt}var yu;function Uf(){return yu||(yu=1,process.env.NODE_ENV==="production"?ws.exports=Tv():ws.exports=wv()),ws.exports}var Ea,bu;function Ev(){if(bu)return Ea;bu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ea=o()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}return c},Ea}var Sa,vu;function Pl(){if(vu)return Sa;vu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sa=e,Sa}var Ra,Cu;function Wf(){return Cu||(Cu=1,Ra=Function.call.bind(Object.prototype.hasOwnProperty)),Ra}var Ma,xu;function Sv(){if(xu)return Ma;xu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pl(),n={},r=Wf();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var h=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=i[d](a,d,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". 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 instanceof Error&&!(f.message in n)){n[f.message]=!0;var v=u?u():"";e("Failed "+l+" type: "+f.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ma=o,Ma}var Aa,Tu;function Rv(){if(Tu)return Aa;Tu=1;var e=Uf(),t=Ev(),n=Pl(),r=Wf(),o=Sv(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Aa=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(_){var H=_&&(u&&_[u]||_[d]);if(typeof H=="function")return H}var h="<<anonymous>>",v={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:D(),arrayOf:E,element:S(),elementType:A(),instanceOf:k,node:V(),objectOf:M,oneOf:w,oneOfType:N,shape:Y,exact:$};function m(_,H){return _===H?_!==0||1/_===1/H:_!==_&&H!==H}function p(_,H){this.message=_,this.data=H&&typeof H=="object"?H:{},this.stack=""}p.prototype=Error.prototype;function b(_){if(process.env.NODE_ENV!=="production")var H={},le=0;function ne(Z,oe,ie,te,ee,X,K){if(te=te||h,X=X||ie,K!==n){if(c){var U=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 U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var z=te+":"+ie;!H[z]&&le<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+te+"`. 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."),H[z]=!0,le++)}}return oe[ie]==null?Z?oe[ie]===null?new p("The "+ee+" `"+X+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new p("The "+ee+" `"+X+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:_(oe,ie,te,ee,X)}var se=ne.bind(null,!1);return se.isRequired=ne.bind(null,!0),se}function C(_){function H(le,ne,se,Z,oe,ie){var te=le[ne],ee=I(te);if(ee!==_){var X=q(te);return new p("Invalid "+Z+" `"+oe+"` of type "+("`"+X+"` supplied to `"+se+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return b(H)}function D(){return b(a)}function E(_){function H(le,ne,se,Z,oe){if(typeof _!="function")return new p("Property `"+oe+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ie=le[ne];if(!Array.isArray(ie)){var te=I(ie);return new p("Invalid "+Z+" `"+oe+"` of type "+("`"+te+"` supplied to `"+se+"`, expected an array."))}for(var ee=0;ee<ie.length;ee++){var X=_(ie,ee,se,Z,oe+"["+ee+"]",n);if(X instanceof Error)return X}return null}return b(H)}function S(){function _(H,le,ne,se,Z){var oe=H[le];if(!l(oe)){var ie=I(oe);return new p("Invalid "+se+" `"+Z+"` of type "+("`"+ie+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return b(_)}function A(){function _(H,le,ne,se,Z){var oe=H[le];if(!e.isValidElementType(oe)){var ie=I(oe);return new p("Invalid "+se+" `"+Z+"` of type "+("`"+ie+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return b(_)}function k(_){function H(le,ne,se,Z,oe){if(!(le[ne]instanceof _)){var ie=_.name||h,te=Q(le[ne]);return new p("Invalid "+Z+" `"+oe+"` of type "+("`"+te+"` supplied to `"+se+"`, expected ")+("instance of `"+ie+"`."))}return null}return b(H)}function w(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function H(le,ne,se,Z,oe){for(var ie=le[ne],te=0;te<_.length;te++)if(m(ie,_[te]))return null;var ee=JSON.stringify(_,function(K,U){var z=q(U);return z==="symbol"?String(U):U});return new p("Invalid "+Z+" `"+oe+"` of value `"+String(ie)+"` "+("supplied to `"+se+"`, expected one of "+ee+"."))}return b(H)}function M(_){function H(le,ne,se,Z,oe){if(typeof _!="function")return new p("Property `"+oe+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ie=le[ne],te=I(ie);if(te!=="object")return new p("Invalid "+Z+" `"+oe+"` of type "+("`"+te+"` supplied to `"+se+"`, expected an object."));for(var ee in ie)if(r(ie,ee)){var X=_(ie,ee,se,Z,oe+"."+ee,n);if(X instanceof Error)return X}return null}return b(H)}function N(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var H=0;H<_.length;H++){var le=_[H];if(typeof le!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(le)+" at index "+H+"."),a}function ne(se,Z,oe,ie,te){for(var ee=[],X=0;X<_.length;X++){var K=_[X],U=K(se,Z,oe,ie,te,n);if(U==null)return null;U.data&&r(U.data,"expectedType")&&ee.push(U.data.expectedType)}var z=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new p("Invalid "+ie+" `"+te+"` supplied to "+("`"+oe+"`"+z+"."))}return b(ne)}function V(){function _(H,le,ne,se,Z){return O(H[le])?null:new p("Invalid "+se+" `"+Z+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return b(_)}function F(_,H,le,ne,se){return new p((_||"React class")+": "+H+" type `"+le+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function Y(_){function H(le,ne,se,Z,oe){var ie=le[ne],te=I(ie);if(te!=="object")return new p("Invalid "+Z+" `"+oe+"` of type `"+te+"` "+("supplied to `"+se+"`, expected `object`."));for(var ee in _){var X=_[ee];if(typeof X!="function")return F(se,Z,oe,ee,q(X));var K=X(ie,ee,se,Z,oe+"."+ee,n);if(K)return K}return null}return b(H)}function $(_){function H(le,ne,se,Z,oe){var ie=le[ne],te=I(ie);if(te!=="object")return new p("Invalid "+Z+" `"+oe+"` of type `"+te+"` "+("supplied to `"+se+"`, expected `object`."));var ee=t({},le[ne],_);for(var X in ee){var K=_[X];if(r(_,X)&&typeof K!="function")return F(se,Z,oe,X,q(K));if(!K)return new p("Invalid "+Z+" `"+oe+"` key `"+X+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(le[ne],null," ")+`
|
|
21
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var U=K(ie,X,se,Z,oe+"."+X,n);if(U)return U}return null}return b(H)}function O(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(O);if(_===null||l(_))return!0;var H=f(_);if(H){var le=H.call(_),ne;if(H!==_.entries){for(;!(ne=le.next()).done;)if(!O(ne.value))return!1}else for(;!(ne=le.next()).done;){var se=ne.value;if(se&&!O(se[1]))return!1}}else return!1;return!0;default:return!1}}function j(_,H){return _==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function I(_){var H=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":j(H,_)?"symbol":H}function q(_){if(typeof _>"u"||_===null)return""+_;var H=I(_);if(H==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return H}function B(_){var H=q(_);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function Q(_){return!_.constructor||!_.constructor.name?h:_.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},Aa}var Da,wu;function Mv(){if(wu)return Da;wu=1;var e=Pl();function t(){}function n(){}return n.resetWarningCache=t,Da=function(){function r(a,l,c,u,d,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Da}var Eu;function Av(){if(Eu)return Ts.exports;if(Eu=1,process.env.NODE_ENV!=="production"){var e=Uf(),t=!0;Ts.exports=Rv()(e.isElement,t)}else Ts.exports=Mv()();return Ts.exports}var Dv=Av();const s=pn(Dv);function qn(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Pv=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),vi="$$material";function Ov(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kv={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 Iv(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fv=/[A-Z]|^ms/g,Nv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gf=function(t){return t.charCodeAt(1)===45},Su=function(t){return t!=null&&typeof t!="boolean"},Pa=Iv(function(e){return Gf(e)?e:e.replace(Fv,"-$&").toLowerCase()}),Ru=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nv,function(r,o,i){return tr={name:o,styles:i,next:tr},o})}return kv[t]!==1&&!Gf(t)&&typeof n=="number"&&n!==0?n+"px":n};function si(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return tr={name:o.name,styles:o.styles,next:tr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)tr={name:a.name,styles:a.styles,next:tr},a=a.next;var l=i.styles+";";return l}return Bv(e,t,n)}}var c=n;return c}function Bv(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=si(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Su(l)&&(r+=Pa(i)+":"+Ru(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Su(a[c])&&(r+=Pa(i)+":"+Ru(i,a[c])+";");else{var u=si(e,t,a);switch(i){case"animation":case"animationName":{r+=Pa(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var Mu=/label:\s*([^\s;{]+)\s*(;|$)/g,tr;function jv(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";tr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=si(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=si(n,t,e[l]),r){var c=i;o+=c[l]}Mu.lastIndex=0;for(var u="",d;(d=Mu.exec(o))!==null;)u+="-"+d[1];var f=Ov(o)+u;return{name:f,styles:o,next:tr}}function Vv(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function $v(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Lv=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($v(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Vv(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),_t="-ms-",ii="-moz-",Je="-webkit-",zf="comm",Ol="rule",kl="decl",_v="@import",Hf="@keyframes",qv="@layer",Yv=Math.abs,Ci=String.fromCharCode,Uv=Object.assign;function Wv(e,t){return Vt(e,0)^45?(((t<<2^Vt(e,0))<<2^Vt(e,1))<<2^Vt(e,2))<<2^Vt(e,3):0}function Kf(e){return e.trim()}function Gv(e,t){return(e=t.exec(e))?e[0]:e}function Ze(e,t,n){return e.replace(t,n)}function el(e,t){return e.indexOf(t)}function Vt(e,t){return e.charCodeAt(t)|0}function $o(e,t,n){return e.slice(t,n)}function Pn(e){return e.length}function Il(e){return e.length}function Es(e,t){return t.push(e),e}function zv(e,t){return e.map(t).join("")}var xi=1,Jr=1,Qf=0,Xt=0,kt=0,ro="";function Ti(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xi,column:Jr,length:a,return:""}}function go(e,t){return Uv(Ti("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hv(){return kt}function Kv(){return kt=Xt>0?Vt(ro,--Xt):0,Jr--,kt===10&&(Jr=1,xi--),kt}function rn(){return kt=Xt<Qf?Vt(ro,Xt++):0,Jr++,kt===10&&(Jr=1,xi++),kt}function kn(){return Vt(ro,Xt)}function Ys(){return Xt}function Ho(e,t){return $o(ro,e,t)}function Lo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jf(e){return xi=Jr=1,Qf=Pn(ro=e),Xt=0,[]}function Zf(e){return ro="",e}function Us(e){return Kf(Ho(Xt-1,tl(e===91?e+2:e===40?e+1:e)))}function Qv(e){for(;(kt=kn())&&kt<33;)rn();return Lo(e)>2||Lo(kt)>3?"":" "}function Jv(e,t){for(;--t&&rn()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Ho(e,Ys()+(t<6&&kn()==32&&rn()==32))}function tl(e){for(;rn();)switch(kt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&tl(kt);break;case 40:e===41&&tl(e);break;case 92:rn();break}return Xt}function Zv(e,t){for(;rn()&&e+kt!==57;)if(e+kt===84&&kn()===47)break;return"/*"+Ho(t,Xt-1)+"*"+Ci(e===47?e:rn())}function Xv(e){for(;!Lo(kn());)rn();return Ho(e,Xt)}function e0(e){return Zf(Ws("",null,null,null,[""],e=Jf(e),0,[0],e))}function Ws(e,t,n,r,o,i,a,l,c){for(var u=0,d=0,f=a,h=0,v=0,m=0,p=1,b=1,C=1,D=0,E="",S=o,A=i,k=r,w=E;b;)switch(m=D,D=rn()){case 40:if(m!=108&&Vt(w,f-1)==58){el(w+=Ze(Us(D),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:w+=Us(D);break;case 9:case 10:case 13:case 32:w+=Qv(m);break;case 92:w+=Jv(Ys()-1,7);continue;case 47:switch(kn()){case 42:case 47:Es(t0(Zv(rn(),Ys()),t,n),c);break;default:w+="/"}break;case 123*p:l[u++]=Pn(w)*C;case 125*p:case 59:case 0:switch(D){case 0:case 125:b=0;case 59+d:C==-1&&(w=Ze(w,/\f/g,"")),v>0&&Pn(w)-f&&Es(v>32?Du(w+";",r,n,f-1):Du(Ze(w," ","")+";",r,n,f-2),c);break;case 59:w+=";";default:if(Es(k=Au(w,t,n,u,d,o,l,E,S=[],A=[],f),i),D===123)if(d===0)Ws(w,t,k,k,S,i,f,l,A);else switch(h===99&&Vt(w,3)===110?100:h){case 100:case 108:case 109:case 115:Ws(e,k,k,r&&Es(Au(e,k,k,0,0,o,l,E,o,S=[],f),A),o,A,f,l,r?S:A);break;default:Ws(w,k,k,k,[""],A,0,l,A)}}u=d=v=0,p=C=1,E=w="",f=a;break;case 58:f=1+Pn(w),v=m;default:if(p<1){if(D==123)--p;else if(D==125&&p++==0&&Kv()==125)continue}switch(w+=Ci(D),D*p){case 38:C=d>0?1:(w+="\f",-1);break;case 44:l[u++]=(Pn(w)-1)*C,C=1;break;case 64:kn()===45&&(w+=Us(rn())),h=kn(),d=f=Pn(E=w+=Xv(Ys())),D++;break;case 45:m===45&&Pn(w)==2&&(p=0)}}return i}function Au(e,t,n,r,o,i,a,l,c,u,d){for(var f=o-1,h=o===0?i:[""],v=Il(h),m=0,p=0,b=0;m<r;++m)for(var C=0,D=$o(e,f+1,f=Yv(p=a[m])),E=e;C<v;++C)(E=Kf(p>0?h[C]+" "+D:Ze(D,/&\f/g,h[C])))&&(c[b++]=E);return Ti(e,t,n,o===0?Ol:l,c,u,d)}function t0(e,t,n){return Ti(e,t,n,zf,Ci(Hv()),$o(e,2,-2),0)}function Du(e,t,n,r){return Ti(e,t,n,kl,$o(e,0,r),$o(e,r+1,-1),r)}function Ur(e,t){for(var n="",r=Il(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function n0(e,t,n,r){switch(e.type){case qv:if(e.children.length)break;case _v:case kl:return e.return=e.return||e.value;case zf:return"";case Hf:return e.return=e.value+"{"+Ur(e.children,r)+"}";case Ol:e.value=e.props.join(",")}return Pn(n=Ur(e.children,r))?e.return=e.value+"{"+n+"}":""}function r0(e){var t=Il(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function o0(e){return function(t){t.root||(t=t.return)&&e(t)}}var s0=function(t,n,r){for(var o=0,i=0;o=i,i=kn(),o===38&&i===12&&(n[r]=1),!Lo(i);)rn();return Ho(t,Xt)},i0=function(t,n){var r=-1,o=44;do switch(Lo(o)){case 0:o===38&&kn()===12&&(n[r]=1),t[r]+=s0(Xt-1,n,r);break;case 2:t[r]+=Us(o);break;case 4:if(o===44){t[++r]=kn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ci(o)}while(o=rn());return t},a0=function(t,n){return Zf(i0(Jf(t),n))},Pu=new WeakMap,l0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Pu.get(r))&&!o){Pu.set(t,!0);for(var i=[],a=a0(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[d]):l[d]+" "+a[c]}}},c0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Xf(e,t){switch(Wv(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+ii+e+_t+e+e;case 6828:case 4268:return Je+e+_t+e+e;case 6165:return Je+e+_t+"flex-"+e+e;case 5187:return Je+e+Ze(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+_t+"flex-$1$2")+e;case 5443:return Je+e+_t+"flex-item-"+Ze(e,/flex-|-self/,"")+e;case 4675:return Je+e+_t+"flex-line-pack"+Ze(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+_t+Ze(e,"shrink","negative")+e;case 5292:return Je+e+_t+Ze(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+Ze(e,"-grow","")+Je+e+_t+Ze(e,"grow","positive")+e;case 4554:return Je+Ze(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return Ze(Ze(Ze(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return Ze(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return Ze(Ze(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+_t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return Ze(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pn(e)-1-t>6)switch(Vt(e,t+1)){case 109:if(Vt(e,t+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+ii+(Vt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~el(e,"stretch")?Xf(Ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vt(e,t+1)!==115)break;case 6444:switch(Vt(e,Pn(e)-3-(~el(e,"!important")&&10))){case 107:return Ze(e,":",":"+Je)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(Vt(e,14)===45?"inline-":"")+"box$3$1"+Je+"$2$3$1"+_t+"$2box$3")+e}break;case 5936:switch(Vt(e,t+11)){case 114:return Je+e+_t+Ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+_t+Ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+_t+Ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+_t+e+e}return e}var u0=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case kl:t.return=Xf(t.value,t.length);break;case Hf:return Ur([go(t,{value:Ze(t.value,"@","@"+Je)})],o);case Ol:if(t.length)return zv(t.props,function(i){switch(Gv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ur([go(t,{props:[Ze(i,/:(read-\w+)/,":"+ii+"$1")]})],o);case"::placeholder":return Ur([go(t,{props:[Ze(i,/:(plac\w+)/,":"+Je+"input-$1")]}),go(t,{props:[Ze(i,/:(plac\w+)/,":"+ii+"$1")]}),go(t,{props:[Ze(i,/:(plac\w+)/,_t+"input-$1")]})],o)}return""})}},d0=[u0],f0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||d0,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),C=1;C<b.length;C++)i[b[C]]=!0;l.push(p)});var c,u=[l0,c0];{var d,f=[n0,o0(function(p){d.insert(p)})],h=r0(u.concat(o,f)),v=function(b){return Ur(e0(b),h)};c=function(b,C,D,E){d=D,v(b?b+"{"+C.styles+"}":C.styles),E&&(m.inserted[C.name]=!0)}}var m={key:n,sheet:new Lv({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return m.sheet.hydrate(l),m};function p0(e,t){const n=f0({key:"css",prepend:e});if(t){const r=n.insert;n.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),r(...o))}return n}const Oa=new Map;function ep(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=R.useMemo(()=>{const i=`${t}-${n}`;if(typeof document=="object"&&Oa.has(i))return Oa.get(i);const a=p0(t,n);return Oa.set(i,a),a},[t,n]);return t||n?T.jsx(Vn.CacheProvider,{value:o,children:r}):r}process.env.NODE_ENV!=="production"&&(ep.propTypes={children:s.node,enableCssLayer:s.bool,injectFirst:s.bool});function h0(e){return e==null||Object.keys(e).length===0}function Fl(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(h0(o)?n:o):t;return T.jsx(Vn.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(Fl.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});function m0(e,t){const n=ab(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
22
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const g0=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ou=[];function tp(e){return Ou[0]=e,jv(Ou)}const y0=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Fl,StyledEngineProvider:ep,ThemeContext:Vn.ThemeContext,css:Vn.css,default:m0,internal_processStyles:g0,internal_serializeStyles:tp,keyframes:Vn.keyframes},Symbol.toStringTag,{value:"Module"}));function er(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 np(e){if(R.isValidElement(e)||!er(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=np(e[n])}),t}function on(e,t,n={clone:!0}){const r=n.clone?x({},e):e;return er(e)&&er(t)&&Object.keys(t).forEach(o=>{R.isValidElement(t[o])?r[o]=t[o]:er(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&er(e[o])?r[o]=on(e[o],t[o],n):n.clone?r[o]=er(t[o])?np(t[o]):t[o]:r[o]=t[o]}),r}const b0=Object.freeze(Object.defineProperty({__proto__:null,default:on,isPlainObject:er},Symbol.toStringTag,{value:"Module"})),v0=["values","unit","step"],C0=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>x({},n,{[r.key]:r.val}),{})};function rp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ve(e,v0),i=C0(t),a=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,v){const m=a.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:v)-r/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?u(h,a[a.indexOf(h)+1]):l(h)}function f(h){const v=a.indexOf(h);return v===0?l(a[1]):v===a.length-1?c(a[v]):u(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return x({keys:a,values:i,up:l,down:c,between:u,only:d,not:f,unit:n},o)}const x0={borderRadius:4},or=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Io(e,t){return t?on(e,t,{clone:!1}):e}const Nl={xs:0,sm:600,md:900,lg:1200,xl:1536},ku={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nl[e]}px)`};function Yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ku;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||ku;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||Nl).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function T0(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Iu(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Te(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":qn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const w0=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));function wi(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ai(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=wi(e,n)||r,t&&(o=t(o,r,e)),o}function Pt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=wi(c,r)||{};return Yn(a,l,f=>{let h=ai(u,o,f);return f===h&&typeof f=="string"&&(h=ai(u,o,`${t}${f==="default"?"":Te(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:or}:{},i.filterProps=[t],i}function E0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const S0={m:"margin",p:"padding"},R0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M0=E0(e=>{if(e.length>2)if(Fu[e])e=Fu[e];else return[e];const[t,n]=e.split(""),r=S0[t],o=R0[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ei=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Si=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],A0=[...Ei,...Si];function Ko(e,t,n,r){var o;const i=(o=wi(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
23
|
+
`)):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(`
|
|
24
|
+
`))),i[a]):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(`
|
|
25
|
+
`)),()=>{})}function op(e){return Ko(e,"spacing",8,"spacing")}function Qo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function D0(e,t){return n=>e.reduce((r,o)=>(r[o]=Qo(t,n),r),{})}function P0(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=M0(n),i=D0(o,r),a=e[n];return Yn(e,a,i)}function sp(e,t){const n=op(e.theme);return Object.keys(e).map(r=>P0(e,t,r,n)).reduce(Io,{})}function Mt(e){return sp(e,Ei)}Mt.propTypes=process.env.NODE_ENV!=="production"?Ei.reduce((e,t)=>(e[t]=or,e),{}):{};Mt.filterProps=Ei;function At(e){return sp(e,Si)}At.propTypes=process.env.NODE_ENV!=="production"?Si.reduce((e,t)=>(e[t]=or,e),{}):{};At.filterProps=Si;process.env.NODE_ENV!=="production"&&A0.reduce((e,t)=>(e[t]=or,e),{});function O0(e=8){if(e.mui)return e;const t=op({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ri(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Io(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function dn(e){return typeof e!="number"?e:`${e}px solid`}function mn(e,t){return Pt({prop:e,themeKey:"borders",transform:t})}const k0=mn("border",dn),I0=mn("borderTop",dn),F0=mn("borderRight",dn),N0=mn("borderBottom",dn),B0=mn("borderLeft",dn),j0=mn("borderColor"),V0=mn("borderTopColor"),$0=mn("borderRightColor"),L0=mn("borderBottomColor"),_0=mn("borderLeftColor"),q0=mn("outline",dn),Y0=mn("outlineColor"),Mi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ko(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Qo(t,r)});return Yn(e,e.borderRadius,n)}return null};Mi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:or}:{};Mi.filterProps=["borderRadius"];Ri(k0,I0,F0,N0,B0,j0,V0,$0,L0,_0,Mi,q0,Y0);const Ai=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ko(e.theme,"spacing",8,"gap"),n=r=>({gap:Qo(t,r)});return Yn(e,e.gap,n)}return null};Ai.propTypes=process.env.NODE_ENV!=="production"?{gap:or}:{};Ai.filterProps=["gap"];const Di=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ko(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Qo(t,r)});return Yn(e,e.columnGap,n)}return null};Di.propTypes=process.env.NODE_ENV!=="production"?{columnGap:or}:{};Di.filterProps=["columnGap"];const Pi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ko(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Qo(t,r)});return Yn(e,e.rowGap,n)}return null};Pi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:or}:{};Pi.filterProps=["rowGap"];const U0=Pt({prop:"gridColumn"}),W0=Pt({prop:"gridRow"}),G0=Pt({prop:"gridAutoFlow"}),z0=Pt({prop:"gridAutoColumns"}),H0=Pt({prop:"gridAutoRows"}),K0=Pt({prop:"gridTemplateColumns"}),Q0=Pt({prop:"gridTemplateRows"}),J0=Pt({prop:"gridTemplateAreas"}),Z0=Pt({prop:"gridArea"});Ri(Ai,Di,Pi,U0,W0,G0,z0,H0,K0,Q0,J0,Z0);function Wr(e,t){return t==="grey"?t:e}const X0=Pt({prop:"color",themeKey:"palette",transform:Wr}),eC=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wr}),tC=Pt({prop:"backgroundColor",themeKey:"palette",transform:Wr});Ri(X0,eC,tC);function nn(e){return e<=1&&e!==0?`${e*100}%`:e}const nC=Pt({prop:"width",transform:nn}),Bl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Nl[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:nn(n)}};return Yn(e,e.maxWidth,t)}return null};Bl.filterProps=["maxWidth"];const rC=Pt({prop:"minWidth",transform:nn}),oC=Pt({prop:"height",transform:nn}),sC=Pt({prop:"maxHeight",transform:nn}),iC=Pt({prop:"minHeight",transform:nn});Pt({prop:"size",cssProperty:"width",transform:nn});Pt({prop:"size",cssProperty:"height",transform:nn});const aC=Pt({prop:"boxSizing"});Ri(nC,Bl,rC,oC,sC,iC,aC);const Jo={border:{themeKey:"borders",transform:dn},borderTop:{themeKey:"borders",transform:dn},borderRight:{themeKey:"borders",transform:dn},borderBottom:{themeKey:"borders",transform:dn},borderLeft:{themeKey:"borders",transform:dn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mi},color:{themeKey:"palette",transform:Wr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wr},backgroundColor:{themeKey:"palette",transform:Wr},p:{style:At},pt:{style:At},pr:{style:At},pb:{style:At},pl:{style:At},px:{style:At},py:{style:At},padding:{style:At},paddingTop:{style:At},paddingRight:{style:At},paddingBottom:{style:At},paddingLeft:{style:At},paddingX:{style:At},paddingY:{style:At},paddingInline:{style:At},paddingInlineStart:{style:At},paddingInlineEnd:{style:At},paddingBlock:{style:At},paddingBlockStart:{style:At},paddingBlockEnd:{style:At},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Ai},rowGap:{style:Pi},columnGap:{style:Di},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nn},maxWidth:{style:Bl},minWidth:{transform:nn},height:{transform:nn},maxHeight:{transform:nn},minHeight:{transform:nn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lC(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function cC(e,t){return typeof e=="function"?e(t):e}function ip(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=wi(o,u)||{};return f?f(a):Yn(a,r,m=>{let p=ai(h,d,m);return m===p&&typeof m=="string"&&(p=ai(h,d,`${n}${m==="default"?"":Te(m)}`,m)),c===!1?p:{[c]:p}})}function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Jo;function c(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const f=T0(i.breakpoints),h=Object.keys(f);let v=f;return Object.keys(d).forEach(m=>{const p=cC(d[m],i);if(p!=null)if(typeof p=="object")if(l[m])v=Io(v,e(m,p,i,l));else{const b=Yn({theme:i},p,C=>({[m]:C}));lC(b,p)?v[m]=t({sx:p,theme:i,nested:!0}):v=Io(v,b)}else v=Io(v,e(m,p,i,l))}),!a&&i.modularCssLayers?{"@layer sx":Iu(h,v)}:Iu(h,v)}return Array.isArray(o)?o.map(c):c(o)}return t}const Oi=ip();Oi.filterProps=["sx"];function ap(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const uC=["breakpoints","palette","spacing","shape"];function ki(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ve(e,uC),l=rp(n),c=O0(o);let u=on({breakpoints:l,direction:"ltr",components:{},palette:x({mode:"light"},r),spacing:c,shape:x({},x0,i)},a);return u.applyStyles=ap,u=t.reduce((d,f)=>on(d,f),u),u.unstable_sxConfig=x({},Jo,a?.unstable_sxConfig),u.unstable_sx=function(f){return Oi({sx:f,theme:this})},u}const dC=Object.freeze(Object.defineProperty({__proto__:null,default:ki,private_createBreakpoints:rp,unstable_applyStyles:ap},Symbol.toStringTag,{value:"Module"}));function fC(e){return Object.keys(e).length===0}function lp(e=null){const t=R.useContext(Vn.ThemeContext);return!t||fC(t)?e:t}const pC=ki();function jl(e=pC){return lp(e)}function ka(e){const t=tp(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function cp({styles:e,themeId:t,defaultTheme:n={}}){const r=jl(n),o=t&&r[t]||r;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(a=>ka(typeof a=="function"?a(o):a)):i=ka(i)),T.jsx(Fl,{styles:i})}process.env.NODE_ENV!=="production"&&(cp.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const hC=["sx"],mC=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Jo;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function up(e){const{sx:t}=e,n=ve(e,hC),{systemProps:r,otherProps:o}=mC(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return er(l)?x({},r,l):r}:i=x({},r,t),x({},o,{sx:i})}const gC=Object.freeze(Object.defineProperty({__proto__:null,default:Oi,extendSxProp:up,unstable_createStyleFunctionSx:ip,unstable_defaultSxConfig:Jo},Symbol.toStringTag,{value:"Module"})),Nu=e=>e,yC=()=>{let e=Nu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Nu}}},dp=yC(),bC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ie(e,t,n="Mui"){const r=bC[t];return r?`${n}-${r}`:`${dp.generate(e)}-${t}`}function ke(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ie(e,o,n)}),r}var Ss={exports:{}},ct={};var Bu;function vC(){if(Bu)return ct;Bu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case n:case o:case r:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case f:case d:return p;case i:return p;default:return b}}case t:return b}}}return ct.ContextConsumer=i,ct.ContextProvider=a,ct.Element=e,ct.ForwardRef=l,ct.Fragment=n,ct.Lazy=f,ct.Memo=d,ct.Portal=t,ct.Profiler=o,ct.StrictMode=r,ct.Suspense=c,ct.SuspenseList=u,ct.isContextConsumer=function(p){return m(p)===i},ct.isContextProvider=function(p){return m(p)===a},ct.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ct.isForwardRef=function(p){return m(p)===l},ct.isFragment=function(p){return m(p)===n},ct.isLazy=function(p){return m(p)===f},ct.isMemo=function(p){return m(p)===d},ct.isPortal=function(p){return m(p)===t},ct.isProfiler=function(p){return m(p)===o},ct.isStrictMode=function(p){return m(p)===r},ct.isSuspense=function(p){return m(p)===c},ct.isSuspenseList=function(p){return m(p)===u},ct.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===v||p.getModuleId!==void 0)},ct.typeOf=m,ct}var ut={};var ju;function CC(){return ju||(ju=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case t:switch(p=p.type,p){case r:case i:case o:case u:case d:case v:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case f:return p;case a:return p;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");ut.ContextConsumer=a,ut.ContextProvider=l,ut.Element=t,ut.ForwardRef=c,ut.Fragment=r,ut.Lazy=h,ut.Memo=f,ut.Portal=n,ut.Profiler=i,ut.StrictMode=o,ut.Suspense=u,ut.SuspenseList=d,ut.isContextConsumer=function(p){return e(p)===a},ut.isContextProvider=function(p){return e(p)===l},ut.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ut.isForwardRef=function(p){return e(p)===c},ut.isFragment=function(p){return e(p)===r},ut.isLazy=function(p){return e(p)===h},ut.isMemo=function(p){return e(p)===f},ut.isPortal=function(p){return e(p)===n},ut.isProfiler=function(p){return e(p)===i},ut.isStrictMode=function(p){return e(p)===o},ut.isSuspense=function(p){return e(p)===u},ut.isSuspenseList=function(p){return e(p)===d},ut.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===f||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===m||p.getModuleId!==void 0)},ut.typeOf=e})()),ut}var Vu;function xC(){return Vu||(Vu=1,process.env.NODE_ENV==="production"?Ss.exports=vC():Ss.exports=CC()),Ss.exports}var _o=xC();const TC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fp(e){const t=`${e}`.match(TC);return t&&t[1]||""}function pp(e,t=""){return e.displayName||e.name||fp(e)||t}function $u(e,t,n){const r=pp(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function wC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _o.ForwardRef:return $u(e,e.render,"ForwardRef");case _o.Memo:return $u(e,e.type,"memo");default:return}}}const EC=Object.freeze(Object.defineProperty({__proto__:null,default:wC,getFunctionName:fp},Symbol.toStringTag,{value:"Module"}));function SC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}ki();function qo(e,t){const n=x({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=x({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=x({},i),Object.keys(o).forEach(a=>{n[r][a]=qo(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function hp(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qo(t.components[n].defaultProps,r)}function RC({props:e,name:t,defaultTheme:n,themeId:r}){let o=jl(n);return o=o[r]||o,hp({theme:o,name:t,props:e})}const It=typeof window<"u"?R.useLayoutEffect:R.useEffect;function MC(e,t,n,r,o){const[i,a]=R.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return It(()=>{let l=!0;if(!n)return;const c=n(e),u=()=>{l&&a(c.matches)};return u(),c.addListener(u),()=>{l=!1,c.removeListener(u)}},[e,n]),i}const mp=R.useSyncExternalStore;function AC(e,t,n,r,o){const i=R.useCallback(()=>t,[t]),a=R.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,o,n]),[l,c]=R.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[i,n,e]);return mp(c,l,a)}function DC(e,t={}){const n=lp(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:l=!1}=hp({name:"MuiUseMediaQuery",props:t,theme:n});process.env.NODE_ENV;let c=e;c=c.replace(/^@media( ?)/m,"");const d=(mp!==void 0?AC:MC)(c,o,i,a,l);return process.env.NODE_ENV!=="production"&&R.useDebugValue({query:c,match:d}),d}function gp(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const PC=Object.freeze(Object.defineProperty({__proto__:null,default:gp},Symbol.toStringTag,{value:"Module"}));function OC(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),gp(e,t,n)}function kC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yp(e){if(e.type)return e;if(e.charAt(0)==="#")return yp(kC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
26
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:qn(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
27
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:qn(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function IC(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Zr(e,t){return e=yp(e),t=OC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,IC(e)}function xr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function FC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function bp(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!FC(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Zo=xr(s.element,bp);Zo.isRequired=xr(s.element.isRequired,bp);function NC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function BC(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!NC(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ii=xr(s.elementType,BC),jC="exact-prop: ";function vp(e){return process.env.NODE_ENV==="production"?e:x({},e,{[jC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Yo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Ft=s.oneOfType([s.func,s.object]);function nl(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Vl(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function VC(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const l=o||"<<anonymous>>",c=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function Gr(e,t){var n,r;return R.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Kt(e){return e&&e.ownerDocument||document}function nr(e){return Kt(e).defaultView||window}function $C(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?x({},t.propTypes):null;return o=>(i,a,l,c,u,...d)=>{const f=u||a,h=n?.[f];if(h){const v=h(i,a,l,c,u,...d);if(v)return v}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function li(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Lu=0;function LC(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(Lu+=1,n(`mui-${Lu}`))},[t]),r}const _u=R.useId;function Wn(e){if(_u!==void 0){const t=_u();return e??t}return LC(e)}function Cp(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function In({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=R.useRef(e!==void 0),[i,a]=R.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){R.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
28
|
+
`))},[r,n,e]);const{current:u}=R.useRef(t);R.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
29
|
+
`))},[JSON.stringify(t)])}const c=R.useCallback(u=>{o||a(u)},[]);return[l,c]}function Me(e){const t=R.useRef(e);return It(()=>{t.current=e}),R.useRef((...n)=>(0,t.current)(...n)).current}function ht(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{li(n,t)})},e)}const qu={};function _C(e,t){const n=R.useRef(qu);return n.current===qu&&(n.current=e(t)),n}const qC=[];function YC(e){R.useEffect(e,qC)}class Fi{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Fi}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function xp(){const e=_C(Fi.create).current;return YC(e.disposeEffect),e}let Ni=!0,rl=!1;const UC=new Fi,WC={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function GC(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&WC[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function zC(e){e.metaKey||e.altKey||e.ctrlKey||(Ni=!0)}function Ia(){Ni=!1}function HC(){this.visibilityState==="hidden"&&rl&&(Ni=!0)}function KC(e){e.addEventListener("keydown",zC,!0),e.addEventListener("mousedown",Ia,!0),e.addEventListener("pointerdown",Ia,!0),e.addEventListener("touchstart",Ia,!0),e.addEventListener("visibilitychange",HC,!0)}function QC(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ni||GC(t)}function Tp(){const e=R.useCallback(o=>{o!=null&&KC(o.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(rl=!0,UC.start(100,()=>{rl=!1}),t.current=!1,!0):!1}function r(o){return QC(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function wp(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const JC={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ZC(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 XC(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const ex=Number.isInteger||XC;function Ep(e,t,n,r){const o=e[t];if(o==null||!ex(o)){const i=ZC(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Sp(e,t,...n){return e[t]===void 0?null:Ep(e,t,...n)}function ol(){return null}Sp.isRequired=Ep;ol.isRequired=ol;const Rp=process.env.NODE_ENV==="production"?ol:Sp;function Fe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function Xr(e){return typeof e=="string"}function tx(e,t,n){return e===void 0||Xr(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function Mp(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function nx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=we(n?.className,i,o?.className,r?.className),m=x({},n?.style,o?.style,r?.style),p=x({},n,o,r);return v.length>0&&(p.className=v),Object.keys(m).length>0&&(p.style=m),{props:p,internalRef:void 0}}const a=Mp(x({},o,r)),l=Yu(r),c=Yu(o),u=t(a),d=we(u?.className,n?.className,i,o?.className,r?.className),f=x({},u?.style,n?.style,o?.style,r?.style),h=x({},u,n,c,l);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function $l(e,t,n){return typeof e=="function"?e(t,n):e}const rx=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function rt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ve(e,rx),l=i?{}:$l(r,o),{props:c,internalRef:u}=nx(x({},a,{externalSlotProps:l})),d=ht(u,l?.ref,(t=e.additionalProps)==null?void 0:t.ref);return tx(n,x({},c,{ref:d}),o)}function Xo(e){if(parseInt(R.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return e?.ref||null}const ox=R.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const Tn=()=>{const e=R.useContext(ox);return e??!1},sx=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function ix(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?qo(o.defaultProps,r):!o.styleOverrides&&!o.variants?qo(o,r):r}function ax({props:e,name:t}){const n=R.useContext(sx);return ix({props:e,name:t,theme:{components:n}})}function lx(e,t){return x({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var wt={},Fa={exports:{}},Uu;function Bi(){return Uu||(Uu=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Fa)),Fa.exports}const cx=Un(Pv),ux=Un(PC);var Wu;function dx(){if(Wu)return wt;Wu=1;var e=Bi();Object.defineProperty(wt,"__esModule",{value:!0}),wt.alpha=m,wt.blend=k,wt.colorChannel=void 0,wt.darken=b,wt.decomposeColor=a,wt.emphasize=S,wt.getContrastRatio=v,wt.getLuminance=h,wt.hexToRgb=o,wt.hslToRgb=f,wt.lighten=D,wt.private_safeAlpha=p,wt.private_safeColorChannel=void 0,wt.private_safeDarken=C,wt.private_safeEmphasize=A,wt.private_safeLighten=E,wt.recomposeColor=u,wt.rgbToHex=d;var t=e(cx),n=e(ux);function r(w,M=0,N=1){return process.env.NODE_ENV!=="production"&&(w<M||w>N)&&console.error(`MUI: The value provided ${w} is out of range [${M}, ${N}].`),(0,n.default)(w,M,N)}function o(w){w=w.slice(1);const M=new RegExp(`.{1,${w.length>=6?2:1}}`,"g");let N=w.match(M);return N&&N[0].length===1&&(N=N.map(V=>V+V)),N?`rgb${N.length===4?"a":""}(${N.map((V,F)=>F<3?parseInt(V,16):Math.round(parseInt(V,16)/255*1e3)/1e3).join(", ")})`:""}function i(w){const M=w.toString(16);return M.length===1?`0${M}`:M}function a(w){if(w.type)return w;if(w.charAt(0)==="#")return a(o(w));const M=w.indexOf("("),N=w.substring(0,M);if(["rgb","rgba","hsl","hsla","color"].indexOf(N)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${w}\` color.
|
|
30
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,w));let V=w.substring(M+1,w.length-1),F;if(N==="color"){if(V=V.split(" "),F=V.shift(),V.length===4&&V[3].charAt(0)==="/"&&(V[3]=V[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(F)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${F}\` color space.
|
|
31
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,F))}else V=V.split(",");return V=V.map(Y=>parseFloat(Y)),{type:N,values:V,colorSpace:F}}const l=w=>{const M=a(w);return M.values.slice(0,3).map((N,V)=>M.type.indexOf("hsl")!==-1&&V!==0?`${N}%`:N).join(" ")};wt.colorChannel=l;const c=(w,M)=>{try{return l(w)}catch{return M&&process.env.NODE_ENV!=="production"&&console.warn(M),w}};wt.private_safeColorChannel=c;function u(w){const{type:M,colorSpace:N}=w;let{values:V}=w;return M.indexOf("rgb")!==-1?V=V.map((F,Y)=>Y<3?parseInt(F,10):F):M.indexOf("hsl")!==-1&&(V[1]=`${V[1]}%`,V[2]=`${V[2]}%`),M.indexOf("color")!==-1?V=`${N} ${V.join(" ")}`:V=`${V.join(", ")}`,`${M}(${V})`}function d(w){if(w.indexOf("#")===0)return w;const{values:M}=a(w);return`#${M.map((N,V)=>i(V===3?Math.round(255*N):N)).join("")}`}function f(w){w=a(w);const{values:M}=w,N=M[0],V=M[1]/100,F=M[2]/100,Y=V*Math.min(F,1-F),$=(I,q=(I+N/30)%12)=>F-Y*Math.max(Math.min(q-3,9-q,1),-1);let O="rgb";const j=[Math.round($(0)*255),Math.round($(8)*255),Math.round($(4)*255)];return w.type==="hsla"&&(O+="a",j.push(M[3])),u({type:O,values:j})}function h(w){w=a(w);let M=w.type==="hsl"||w.type==="hsla"?a(f(w)).values:w.values;return M=M.map(N=>(w.type!=="color"&&(N/=255),N<=.03928?N/12.92:((N+.055)/1.055)**2.4)),Number((.2126*M[0]+.7152*M[1]+.0722*M[2]).toFixed(3))}function v(w,M){const N=h(w),V=h(M);return(Math.max(N,V)+.05)/(Math.min(N,V)+.05)}function m(w,M){return w=a(w),M=r(M),(w.type==="rgb"||w.type==="hsl")&&(w.type+="a"),w.type==="color"?w.values[3]=`/${M}`:w.values[3]=M,u(w)}function p(w,M,N){try{return m(w,M)}catch{return N&&process.env.NODE_ENV!=="production"&&console.warn(N),w}}function b(w,M){if(w=a(w),M=r(M),w.type.indexOf("hsl")!==-1)w.values[2]*=1-M;else if(w.type.indexOf("rgb")!==-1||w.type.indexOf("color")!==-1)for(let N=0;N<3;N+=1)w.values[N]*=1-M;return u(w)}function C(w,M,N){try{return b(w,M)}catch{return N&&process.env.NODE_ENV!=="production"&&console.warn(N),w}}function D(w,M){if(w=a(w),M=r(M),w.type.indexOf("hsl")!==-1)w.values[2]+=(100-w.values[2])*M;else if(w.type.indexOf("rgb")!==-1)for(let N=0;N<3;N+=1)w.values[N]+=(255-w.values[N])*M;else if(w.type.indexOf("color")!==-1)for(let N=0;N<3;N+=1)w.values[N]+=(1-w.values[N])*M;return u(w)}function E(w,M,N){try{return D(w,M)}catch{return N&&process.env.NODE_ENV!=="production"&&console.warn(N),w}}function S(w,M=.15){return h(w)>.5?b(w,M):D(w,M)}function A(w,M,N){try{return S(w,M)}catch{return N&&process.env.NODE_ENV!=="production"&&console.warn(N),w}}function k(w,M,N,V=1){const F=(j,I)=>Math.round((j**(1/V)*(1-N)+I**(1/V)*N)**V),Y=a(w),$=a(M),O=[F(Y.values[0],$.values[0]),F(Y.values[1],$.values[1]),F(Y.values[2],$.values[2])];return u({type:"rgb",values:O})}return wt}var pt=dx();const Uo={black:"#000",white:"#fff"},fx={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"},Pr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Or={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},kr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ir={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Fr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},px=["mode","contrastThreshold","tonalOffset"],Gu={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:Uo.white,default:Uo.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}},Na={text:{primary:Uo.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:Uo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function zu(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=pt.lighten(e.main,o):t==="dark"&&(e.dark=pt.darken(e.main,i)))}function hx(e="light"){return e==="dark"?{main:kr[200],light:kr[50],dark:kr[400]}:{main:kr[700],light:kr[400],dark:kr[800]}}function mx(e="light"){return e==="dark"?{main:Pr[200],light:Pr[50],dark:Pr[400]}:{main:Pr[500],light:Pr[300],dark:Pr[700]}}function gx(e="light"){return e==="dark"?{main:Or[500],light:Or[300],dark:Or[700]}:{main:Or[700],light:Or[400],dark:Or[800]}}function yx(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:Ir[700],light:Ir[500],dark:Ir[900]}}function bx(e="light"){return e==="dark"?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:Fr[800],light:Fr[500],dark:Fr[900]}}function vx(e="light"){return e==="dark"?{main:yo[400],light:yo[300],dark:yo[700]}:{main:"#ed6c02",light:yo[500],dark:yo[900]}}function Cx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ve(e,px),i=e.primary||hx(t),a=e.secondary||mx(t),l=e.error||gx(t),c=e.info||yx(t),u=e.success||bx(t),d=e.warning||vx(t);function f(p){const b=pt.getContrastRatio(p,Na.text.primary)>=n?Na.text.primary:Gu.text.primary;if(process.env.NODE_ENV!=="production"){const C=pt.getContrastRatio(p,b);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${b} on ${p}`,"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(`
|
|
32
|
+
`))}return b}const h=({color:p,name:b,mainShade:C=500,lightShade:D=300,darkShade:E=700})=>{if(p=x({},p),!p.main&&p[C]&&(p.main=p[C]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
33
|
+
The color object needs to have a \`main\` property or a \`${C}\` property.`:qn(11,b?` (${b})`:"",C));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
34
|
+
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
35
|
+
|
|
36
|
+
Did you intend to use one of the following approaches?
|
|
37
|
+
|
|
38
|
+
import { green } from "@mui/material/colors";
|
|
39
|
+
|
|
40
|
+
const theme1 = createTheme({ palette: {
|
|
41
|
+
primary: green,
|
|
42
|
+
} });
|
|
43
|
+
|
|
44
|
+
const theme2 = createTheme({ palette: {
|
|
45
|
+
primary: { main: green[500] },
|
|
46
|
+
} });`:qn(12,b?` (${b})`:"",JSON.stringify(p.main)));return zu(p,"light",D,r),zu(p,"dark",E,r),p.contrastText||(p.contrastText=f(p.main)),p},v={dark:Na,light:Gu};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),on(x({common:x({},Uo),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:fx,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},v[t]),o)}const xx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Tx(e){return Math.round(e*1e5)/1e5}const Hu={textTransform:"uppercase"},Ku='"Roboto", "Helvetica", "Arial", sans-serif';function wx(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ku,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,h=ve(n,xx);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,m=f||(C=>`${C/u*v}rem`),p=(C,D,E,S,A)=>x({fontFamily:r,fontWeight:C,fontSize:m(D),lineHeight:E},r===Ku?{letterSpacing:`${Tx(S/D)}em`}:{},A,d),b={h1:p(i,96,1.167,-1.5),h2:p(i,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(l,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(l,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(l,14,1.75,.4,Hu),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,Hu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return on(x({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},b),h,{clone:!1})}const Ex=.2,Sx=.14,Rx=.12;function xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ex})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Rx})`].join(",")}const Mx=["none",xt(0,2,1,-1,0,1,1,0,0,1,3,0),xt(0,3,1,-2,0,2,2,0,0,1,5,0),xt(0,3,3,-2,0,3,4,0,0,1,8,0),xt(0,2,4,-1,0,4,5,0,0,1,10,0),xt(0,3,5,-1,0,5,8,0,0,1,14,0),xt(0,3,5,-1,0,6,10,0,0,1,18,0),xt(0,4,5,-2,0,7,10,1,0,2,16,1),xt(0,5,5,-3,0,8,10,1,0,3,14,2),xt(0,5,6,-3,0,9,12,1,0,3,16,2),xt(0,6,6,-3,0,10,14,1,0,4,18,3),xt(0,6,7,-4,0,11,15,1,0,4,20,3),xt(0,7,8,-4,0,12,17,2,0,5,22,4),xt(0,7,8,-4,0,13,19,2,0,5,24,4),xt(0,7,9,-4,0,14,21,2,0,5,26,4),xt(0,8,9,-5,0,15,22,2,0,6,28,5),xt(0,8,10,-5,0,16,24,2,0,6,30,5),xt(0,8,11,-5,0,17,26,2,0,6,32,5),xt(0,9,11,-5,0,18,28,2,0,7,34,6),xt(0,9,12,-6,0,19,29,2,0,7,36,6),xt(0,10,13,-6,0,20,31,3,0,8,38,7),xt(0,10,13,-6,0,21,33,3,0,8,40,7),xt(0,10,14,-6,0,22,35,3,0,8,42,7),xt(0,11,14,-7,0,23,36,3,0,9,44,8),xt(0,11,15,-7,0,24,38,3,0,9,46,8)],Ax=["duration","easing","delay"],Dx={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)"},Px={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qu(e){return`${Math.round(e)}ms`}function Ox(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function kx(e){const t=x({},Dx,e.easing),n=x({},Px,e.duration);return x({getAutoHeightDuration:Ox,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=ve(i,Ax);if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",f=h=>!isNaN(parseFloat(h));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(`
|
|
47
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:Qu(a)} ${l} ${typeof c=="string"?c:Qu(c)}`).join(",")}},e,{easing:t,duration:n})}const Ix={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Fx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Nx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ve(e,Fx);if(e.vars&&e.generateCssVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":qn(18));const l=Cx(r),c=ki(e);let u=on(c,{mixins:lx(c.breakpoints,n),palette:l,shadows:Mx.slice(),typography:wx(l,i),transitions:kx(o),zIndex:x({},Ix)});if(u=on(u,a),u=t.reduce((d,f)=>on(d,f),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(h,v)=>{let m;for(m in h){const p=h[m];if(d.indexOf(m)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const b=Ie("",m);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
48
|
+
`))}h[m]={}}}};Object.keys(u.components).forEach(h=>{const v=u.components[h].styleOverrides;v&&h.indexOf("Mui")===0&&f(v,h)})}return u.unstable_sxConfig=x({},Jo,a?.unstable_sxConfig),u.unstable_sx=function(f){return Oi({sx:f,theme:this})},u}const ji=Nx();function oo(){const e=jl(ji);return process.env.NODE_ENV!=="production"&&R.useDebugValue(e),e[vi]||e}function Qe({props:e,name:t}){return RC({props:e,name:t,defaultTheme:ji,themeId:vi})}var ar={},Ba={exports:{}},Ju;function Bx(){return Ju||(Ju=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ba)),Ba.exports}var ja={exports:{}},Zu;function jx(){return Zu||(Zu=1,(function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ja)),ja.exports}const Vx=Un(y0),$x=Un(b0),Lx=Un(w0),_x=Un(EC),qx=Un(dC),Yx=Un(gC);var Xu;function Ux(){if(Xu)return ar;Xu=1;var e=Bi();Object.defineProperty(ar,"__esModule",{value:!0}),ar.default=w,ar.shouldForwardProp=b,ar.systemDefaultTheme=void 0;var t=e(Bx()),n=e(jx()),r=v(Vx),o=$x,i=e(Lx),a=e(_x),l=e(qx),c=e(Yx);const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(M){if(typeof WeakMap!="function")return null;var N=new WeakMap,V=new WeakMap;return(h=function(F){return F?V:N})(M)}function v(M,N){if(M&&M.__esModule)return M;if(M===null||typeof M!="object"&&typeof M!="function")return{default:M};var V=h(N);if(V&&V.has(M))return V.get(M);var F={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in M)if($!=="default"&&Object.prototype.hasOwnProperty.call(M,$)){var O=Y?Object.getOwnPropertyDescriptor(M,$):null;O&&(O.get||O.set)?Object.defineProperty(F,$,O):F[$]=M[$]}return F.default=M,V&&V.set(M,F),F}function m(M){return Object.keys(M).length===0}function p(M){return typeof M=="string"&&M.charCodeAt(0)>96}function b(M){return M!=="ownerState"&&M!=="theme"&&M!=="sx"&&M!=="as"}function C(M,N){return N&&M&&typeof M=="object"&&M.styles&&!M.styles.startsWith("@layer")&&(M.styles=`@layer ${N}{${String(M.styles)}}`),M}const D=ar.systemDefaultTheme=(0,l.default)(),E=M=>M&&M.charAt(0).toLowerCase()+M.slice(1);function S({defaultTheme:M,theme:N,themeId:V}){return m(N)?M:N[V]||N}function A(M){return M?(N,V)=>V[M]:null}function k(M,N,V){let{ownerState:F}=N,Y=(0,n.default)(N,u);const $=typeof M=="function"?M((0,t.default)({ownerState:F},Y)):M;if(Array.isArray($))return $.flatMap(O=>k(O,(0,t.default)({ownerState:F},Y),V));if($&&typeof $=="object"&&Array.isArray($.variants)){const{variants:O=[]}=$;let I=(0,n.default)($,d);return O.forEach(q=>{let B=!0;if(typeof q.props=="function"?B=q.props((0,t.default)({ownerState:F},Y,F)):Object.keys(q.props).forEach(Q=>{F?.[Q]!==q.props[Q]&&Y[Q]!==q.props[Q]&&(B=!1)}),B){Array.isArray(I)||(I=[I]);const Q=typeof q.style=="function"?q.style((0,t.default)({ownerState:F},Y,F)):q.style;I.push(V?C((0,r.internal_serializeStyles)(Q),V):Q)}}),I}return V?C((0,r.internal_serializeStyles)($),V):$}function w(M={}){const{themeId:N,defaultTheme:V=D,rootShouldForwardProp:F=b,slotShouldForwardProp:Y=b}=M,$=O=>(0,c.default)((0,t.default)({},O,{theme:S((0,t.default)({},O,{defaultTheme:V,themeId:N}))}));return $.__mui_systemSx=!0,(O,j={})=>{(0,r.internal_processStyles)(O,X=>X.filter(K=>!(K!=null&&K.__mui_systemSx)));const{name:I,slot:q,skipVariantsResolver:B,skipSx:Q,overridesResolver:_=A(E(q))}=j,H=(0,n.default)(j,f),le=I&&I.startsWith("Mui")||q?"components":"custom",ne=B!==void 0?B:q&&q!=="Root"&&q!=="root"||!1,se=Q||!1;let Z;process.env.NODE_ENV!=="production"&&I&&(Z=`${I}-${E(q||"Root")}`);let oe=b;q==="Root"||q==="root"?oe=F:q?oe=Y:p(O)&&(oe=void 0);const ie=(0,r.default)(O,(0,t.default)({shouldForwardProp:oe,label:Z},H)),te=X=>typeof X=="function"&&X.__emotion_real!==X||(0,o.isPlainObject)(X)?K=>{const U=S({theme:K.theme,defaultTheme:V,themeId:N});return k(X,(0,t.default)({},K,{theme:U}),U.modularCssLayers?le:void 0)}:X,ee=(X,...K)=>{let U=te(X);const z=K?K.map(te):[];I&&_&&z.push(re=>{const he=S((0,t.default)({},re,{defaultTheme:V,themeId:N}));if(!he.components||!he.components[I]||!he.components[I].styleOverrides)return null;const me=he.components[I].styleOverrides,Ce={};return Object.entries(me).forEach(([Ee,Se])=>{Ce[Ee]=k(Se,(0,t.default)({},re,{theme:he}),he.modularCssLayers?"theme":void 0)}),_(re,Ce)}),I&&!ne&&z.push(re=>{var he;const me=S((0,t.default)({},re,{defaultTheme:V,themeId:N})),Ce=me==null||(he=me.components)==null||(he=he[I])==null?void 0:he.variants;return k({variants:Ce},(0,t.default)({},re,{theme:me}),me.modularCssLayers?"theme":void 0)}),se||z.push($);const ce=z.length-K.length;if(Array.isArray(X)&&ce>0){const re=new Array(ce).fill("");U=[...X,...re],U.raw=[...X.raw,...re]}const pe=ie(U,...z);if(process.env.NODE_ENV!=="production"){let re;I&&(re=`${I}${(0,i.default)(q||"")}`),re===void 0&&(re=`Styled(${(0,a.default)(O)})`),pe.displayName=re}return O.muiName&&(pe.muiName=O.muiName),pe};return ie.withConfig&&(ee.withConfig=ie.withConfig),ee}}return ar}var Wx=Ux();const Gx=pn(Wx);function Ap(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wn=e=>Ap(e)&&e!=="classes",fe=Gx({themeId:vi,defaultTheme:ji,rootShouldForwardProp:wn}),ed=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},zx=["localeText"],ci=R.createContext(null);process.env.NODE_ENV!=="production"&&(ci.displayName="MuiPickersAdapterContext");const Vi=function(t){const{localeText:n}=t,r=ve(t,zx),{utils:o,localeText:i}=R.useContext(ci)??{utils:void 0,localeText:void 0},a=Qe({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:h}=a,v=R.useMemo(()=>x({},h,i,n),[h,i,n]),m=R.useMemo(()=>{if(!c)return o||null;const C=new c({locale:f,formats:u,instance:d});if(!C.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
49
|
+
`));return C},[c,f,u,d,o]),p=R.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),b=R.useMemo(()=>({utils:m,defaultDates:p,localeText:v}),[p,m,v]);return T.jsx(ci.Provider,{value:b,children:l})};process.env.NODE_ENV!=="production"&&(Vi.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const Dp=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:x({},e)}}}}),Pp=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(o??r)(i,t,a)}},Op={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Hx=Op;Dp(Op);const Tr=()=>{const e=R.useContext(ci);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
50
|
+
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
51
|
+
`));const t=R.useMemo(()=>x({},Hx,e.localeText),[e.localeText]);return R.useMemo(()=>x({},e,{localeText:t}),[e,t])},Xe=()=>Tr().utils,es=()=>Tr().defaultDates,ts=e=>{const t=Xe(),n=R.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},gn=()=>Tr().localeText;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function st(e){return ax(e)}function Kx(e){return Ie("MuiTypography",e)}ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qx=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Jx=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${Te(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Fe(l,Kx,a)},Zx=fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),td={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},eT=e=>Xx[e]||e,Fn=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTypography"}),o=eT(r.color),i=up(x({},r,{color:o})),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:v=td}=i,m=ve(i,Qx),p=x({},i,{align:a,color:o,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:v}),b=c||(f?"p":v[h]||td[h])||"span",C=Jx(p);return T.jsx(Zx,x({as:b,ref:n,ownerState:p,className:we(C.root,l)},m))});process.env.NODE_ENV!=="production"&&(Fn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sl(e,t)}function Ll(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sl(e,t)}function tT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nT(e,t){e.classList?e.classList.add(t):tT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function nd(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rT(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=nd(e.className,t):e.setAttribute("class",nd(e.className&&e.className.baseVal||"",t))}const rd={disabled:!1};var oT=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,sT=process.env.NODE_ENV!=="production"?s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]):null;const ui=ge.createContext(null);var kp=function(t){return t.scrollTop},Po="unmounted",fr="exited",pr="entering",jr="entered",il="exiting",yn=(function(e){Ll(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=fr,i.appearStatus=pr):c=jr:r.unmountOnExit||r.mountOnEnter?c=Po:c=fr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Po?{status:fr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==pr&&a!==jr&&(i=pr):(a===pr||a===jr)&&(i=il)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===pr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Do.findDOMNode(this);a&&kp(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fr&&this.setState({status:Po})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Do.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!a||rd.disabled){this.safeSetState({status:jr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:pr},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:jr},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Do.findDOMNode(this);if(!i||rd.disabled){this.safeSetState({status:fr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:il},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:fr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Do.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Po)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ve(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ge.createElement(ui.Provider,{value:null},typeof a=="function"?a(o,l):ge.cloneElement(ge.Children.only(a),l))},t})(ge.Component);yn.contextType=ui;yn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=oT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Nr(){}yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nr,onEntering:Nr,onEntered:Nr,onExit:Nr,onExiting:Nr,onExited:Nr};yn.UNMOUNTED=Po;yn.EXITED=fr;yn.ENTERING=pr;yn.ENTERED=jr;yn.EXITING=il;var iT=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return nT(t,r)})},Va=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return rT(t,r)})},_l=(function(e){Ll(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1];r.removeClasses(d,"exit"),r.addClass(d,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1],h=f?"appear":"enter";r.addClass(d,h,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1],h=f?"appear":"enter";r.removeClasses(d,h),r.addClass(d,h,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],h=u?f+"-active":c[l+"Active"],v=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:h,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(o,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&o&&kp(o),l&&(this.appliedClasses[i][a]=l,iT(o,l))},n.removeClasses=function(o,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&Va(o,l),c&&Va(o,c),u&&Va(o,u)},n.render=function(){var o=this.props;o.classNames;var i=ve(o,["classNames"]);return ge.createElement(yn,x({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ge.Component);_l.defaultProps={classNames:""};_l.propTypes=process.env.NODE_ENV!=="production"?x({},yn.propTypes,{classNames:sT,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function aT(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 n=function(i){return t&&ge.isValidElement(i)?t(i):i},r=Object.create(null);return e&&ge.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function lT(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var u=r[c][a];l[r[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function hr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function cT(e,t){return ql(e.children,function(n){return ge.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:hr(n,"appear",e),enter:hr(n,"enter",e),exit:hr(n,"exit",e)})})}function uT(e,t,n){var r=ql(e.children),o=lT(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(ge.isValidElement(a)){var l=i in t,c=i in r,u=t[i],d=ge.isValidElement(u)&&!u.props.in;c&&(!l||d)?o[i]=ge.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:hr(a,"exit",e),enter:hr(a,"enter",e)}):!c&&l&&!d?o[i]=ge.cloneElement(a,{in:!1}):c&&l&&ge.isValidElement(u)&&(o[i]=ge.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:hr(a,"exit",e),enter:hr(a,"enter",e)}))}}),o}var dT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fT={component:"div",childFactory:function(t){return t}},ns=(function(e){Ll(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(aT(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?cT(o,l):uT(o,a,l),firstRender:!1}},n.handleExited=function(o,i){var a=ql(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=x({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=ve(o,["component","childFactory"]),c=this.state.contextValue,u=dT(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?ge.createElement(ui.Provider,{value:c},u):ge.createElement(ui.Provider,{value:c},ge.createElement(i,l,u))},t})(ge.Component);ns.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ns.defaultProps=fT;function Ip(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,f]=R.useState(!1),h=we(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=we(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&f(!0),R.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,u);return()=>{clearTimeout(p)}}},[c,l,u]),T.jsx("span",{className:h,style:v,children:T.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(Ip.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const cn=ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),pT=["center","classes","className"];let $i=e=>e,od,sd,id,ad;const al=550,hT=80,mT=Vn.keyframes(od||(od=$i`
|
|
52
|
+
0% {
|
|
53
|
+
transform: scale(0);
|
|
54
|
+
opacity: 0.1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
100% {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
opacity: 0.3;
|
|
60
|
+
}
|
|
61
|
+
`)),gT=Vn.keyframes(sd||(sd=$i`
|
|
62
|
+
0% {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
100% {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
`)),yT=Vn.keyframes(id||(id=$i`
|
|
70
|
+
0% {
|
|
71
|
+
transform: scale(1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
50% {
|
|
75
|
+
transform: scale(0.92);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
100% {
|
|
79
|
+
transform: scale(1);
|
|
80
|
+
}
|
|
81
|
+
`)),bT=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vT=fe(Ip,{name:"MuiTouchRipple",slot:"Ripple"})(ad||(ad=$i`
|
|
82
|
+
opacity: 0;
|
|
83
|
+
position: absolute;
|
|
84
|
+
|
|
85
|
+
&.${0} {
|
|
86
|
+
opacity: 0.3;
|
|
87
|
+
transform: scale(1);
|
|
88
|
+
animation-name: ${0};
|
|
89
|
+
animation-duration: ${0}ms;
|
|
90
|
+
animation-timing-function: ${0};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.${0} {
|
|
94
|
+
animation-duration: ${0}ms;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& .${0} {
|
|
98
|
+
opacity: 1;
|
|
99
|
+
display: block;
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 100%;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
background-color: currentColor;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& .${0} {
|
|
107
|
+
opacity: 0;
|
|
108
|
+
animation-name: ${0};
|
|
109
|
+
animation-duration: ${0}ms;
|
|
110
|
+
animation-timing-function: ${0};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
& .${0} {
|
|
114
|
+
position: absolute;
|
|
115
|
+
/* @noflip */
|
|
116
|
+
left: 0px;
|
|
117
|
+
top: 0;
|
|
118
|
+
animation-name: ${0};
|
|
119
|
+
animation-duration: 2500ms;
|
|
120
|
+
animation-timing-function: ${0};
|
|
121
|
+
animation-iteration-count: infinite;
|
|
122
|
+
animation-delay: 200ms;
|
|
123
|
+
}
|
|
124
|
+
`),cn.rippleVisible,mT,al,({theme:e})=>e.transitions.easing.easeInOut,cn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,cn.child,cn.childLeaving,gT,al,({theme:e})=>e.transitions.easing.easeInOut,cn.childPulsate,yT,({theme:e})=>e.transitions.easing.easeInOut),Fp=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ve(r,pT),[c,u]=R.useState([]),d=R.useRef(0),f=R.useRef(null);R.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const h=R.useRef(!1),v=xp(),m=R.useRef(null),p=R.useRef(null),b=R.useCallback(S=>{const{pulsate:A,rippleX:k,rippleY:w,rippleSize:M,cb:N}=S;u(V=>[...V,T.jsx(vT,{classes:{ripple:we(i.ripple,cn.ripple),rippleVisible:we(i.rippleVisible,cn.rippleVisible),ripplePulsate:we(i.ripplePulsate,cn.ripplePulsate),child:we(i.child,cn.child),childLeaving:we(i.childLeaving,cn.childLeaving),childPulsate:we(i.childPulsate,cn.childPulsate)},timeout:al,pulsate:A,rippleX:k,rippleY:w,rippleSize:M},d.current)]),d.current+=1,f.current=N},[i]),C=R.useCallback((S={},A={},k=()=>{})=>{const{pulsate:w=!1,center:M=o||A.pulsate,fakeElement:N=!1}=A;if(S?.type==="mousedown"&&h.current){h.current=!1;return}S?.type==="touchstart"&&(h.current=!0);const V=N?null:p.current,F=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,$,O;if(M||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)Y=Math.round(F.width/2),$=Math.round(F.height/2);else{const{clientX:j,clientY:I}=S.touches&&S.touches.length>0?S.touches[0]:S;Y=Math.round(j-F.left),$=Math.round(I-F.top)}if(M)O=Math.sqrt((2*F.width**2+F.height**2)/3),O%2===0&&(O+=1);else{const j=Math.max(Math.abs((V?V.clientWidth:0)-Y),Y)*2+2,I=Math.max(Math.abs((V?V.clientHeight:0)-$),$)*2+2;O=Math.sqrt(j**2+I**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{b({pulsate:w,rippleX:Y,rippleY:$,rippleSize:O,cb:k})},v.start(hT,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:w,rippleX:Y,rippleY:$,rippleSize:O,cb:k})},[o,b,v]),D=R.useCallback(()=>{C({},{pulsate:!0})},[C]),E=R.useCallback((S,A)=>{if(v.clear(),S?.type==="touchend"&&m.current){m.current(),m.current=null,v.start(0,()=>{E(S,A)});return}m.current=null,u(k=>k.length>0?k.slice(1):k),f.current=A},[v]);return R.useImperativeHandle(n,()=>({pulsate:D,start:C,stop:E}),[D,C,E]),T.jsx(bT,x({className:we(cn.root,i.root,a),ref:p},l,{children:T.jsx(ns,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Fp.propTypes={center:s.bool,classes:s.object,className:s.string});function CT(e){return Ie("MuiButtonBase",e)}const xT=ke("MuiButtonBase",["root","disabled","focusVisible"]),TT=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],wT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Fe({root:["root",t&&"disabled",n&&"focusVisible"]},CT,o);return n&&r&&(a.root+=` ${r}`),a},ET=fe("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"},[`&.${xT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),br=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:v="a",onBlur:m,onClick:p,onContextMenu:b,onDragLeave:C,onFocus:D,onFocusVisible:E,onKeyDown:S,onKeyUp:A,onMouseDown:k,onMouseLeave:w,onMouseUp:M,onTouchEnd:N,onTouchMove:V,onTouchStart:F,tabIndex:Y=0,TouchRippleProps:$,touchRippleRef:O,type:j}=r,I=ve(r,TT),q=R.useRef(null),B=R.useRef(null),Q=ht(B,O),{isFocusVisibleRef:_,onFocus:H,onBlur:le,ref:ne}=Tp(),[se,Z]=R.useState(!1);u&&se&&Z(!1),R.useImperativeHandle(o,()=>({focusVisible:()=>{Z(!0),q.current.focus()}}),[]);const[oe,ie]=R.useState(!1);R.useEffect(()=>{ie(!0)},[]);const te=oe&&!d&&!u;R.useEffect(()=>{se&&h&&!d&&oe&&B.current.pulsate()},[d,h,se,oe]);function ee(Oe,gt,$t=f){return Me(Nt=>(gt&>(Nt),!$t&&B.current&&B.current[Oe](Nt),!0))}const X=ee("start",k),K=ee("stop",b),U=ee("stop",C),z=ee("stop",M),ce=ee("stop",Oe=>{se&&Oe.preventDefault(),w&&w(Oe)}),pe=ee("start",F),re=ee("stop",N),he=ee("stop",V),me=ee("stop",Oe=>{le(Oe),_.current===!1&&Z(!1),m&&m(Oe)},!1),Ce=Me(Oe=>{q.current||(q.current=Oe.currentTarget),H(Oe),_.current===!0&&(Z(!0),E&&E(Oe)),D&&D(Oe)}),Ee=()=>{const Oe=q.current;return c&&c!=="button"&&!(Oe.tagName==="A"&&Oe.href)},Se=R.useRef(!1),$e=Me(Oe=>{h&&!Se.current&&se&&B.current&&Oe.key===" "&&(Se.current=!0,B.current.stop(Oe,()=>{B.current.start(Oe)})),Oe.target===Oe.currentTarget&&Ee()&&Oe.key===" "&&Oe.preventDefault(),S&&S(Oe),Oe.target===Oe.currentTarget&&Ee()&&Oe.key==="Enter"&&!u&&(Oe.preventDefault(),p&&p(Oe))}),et=Me(Oe=>{h&&Oe.key===" "&&B.current&&se&&!Oe.defaultPrevented&&(Se.current=!1,B.current.stop(Oe,()=>{B.current.pulsate(Oe)})),A&&A(Oe),p&&Oe.target===Oe.currentTarget&&Ee()&&Oe.key===" "&&!Oe.defaultPrevented&&p(Oe)});let We=c;We==="button"&&(I.href||I.to)&&(We=v);const mt={};We==="button"?(mt.type=j===void 0?"button":j,mt.disabled=u):(!I.href&&!I.to&&(mt.role="button"),u&&(mt["aria-disabled"]=u));const vt=ht(n,ne,q);process.env.NODE_ENV!=="production"&&R.useEffect(()=>{te&&!B.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
125
|
+
`))},[te]);const Ct=x({},r,{centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:Y,focusVisible:se}),Le=wT(Ct);return T.jsxs(ET,x({as:We,className:we(Le.root,l),ownerState:Ct,onBlur:me,onClick:p,onContextMenu:K,onFocus:Ce,onKeyDown:$e,onKeyUp:et,onMouseDown:X,onMouseLeave:ce,onMouseUp:z,onDragLeave:U,onTouchEnd:re,onTouchMove:he,onTouchStart:pe,ref:vt,tabIndex:u?-1:Y,type:j},mt,I,{children:[a,te?T.jsx(Fp,x({ref:Q,center:i},$)):null]}))});process.env.NODE_ENV!=="production"&&(br.propTypes={action:Ft,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Ii,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function ST(e){return Ie("MuiIconButton",e)}const RT=ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),MT=["edge","children","className","color","disabled","disableFocusRipple","size"],AT=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Te(r)}`,o&&`edge${Te(o)}`,`size${Te(i)}`]};return Fe(a,ST,t)},DT=fe(br,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Te(n.color)}`],n.edge&&t[`edge${Te(n.edge)}`],t[`size${Te(n.size)}`]]}})(({theme:e,ownerState:t})=>x({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pt.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return x({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&x({color:r?.main},!t.disableRipple&&{"&:hover":x({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${RT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),so=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=ve(r,MT),h=x({},r,{edge:o,color:l,disabled:c,disableFocusRipple:u,size:d}),v=AT(h);return T.jsx(DT,x({className:we(v.root,a),centerRipple:!0,focusRipple:!u,disabled:c,ref:n},f,{ownerState:h,children:i}))});process.env.NODE_ENV!=="production"&&(so.propTypes={children:xr(s.node,e=>R.Children.toArray(e.children).some(n=>R.isValidElement(n)&&n.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(`
|
|
126
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function PT(e){return Ie("MuiSvgIcon",e)}ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const OT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],kT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(n)}`]};return Fe(o,PT,r)},IT=fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Te(n.color)}`],t[`fontSize${Te(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,l,c,u,d,f,h,v,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),di=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,v=ve(r,OT),m=R.isValidElement(o)&&o.type==="svg",p=x({},r,{color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:m}),b={};d||(b.viewBox=h);const C=kT(p);return T.jsxs(IT,x({as:l,className:we(C.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},b,v,m&&o.props,{ownerState:p,children:[m?o.props.children:o,f?T.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(di.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});di.muiName="SvgIcon";function En(e,t){function n(r,o){return T.jsx(di,x({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=di.muiName,R.memo(R.forwardRef(n))}const FT={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
127
|
+
`)),dp.configure(e)}},NT=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Te,createChainedFunction:nl,createSvgIcon:En,debounce:Vl,deprecatedPropType:VC,isMuiElement:Gr,ownerDocument:Kt,ownerWindow:nr,requirePropFactory:$C,setRef:li,unstable_ClassNameGenerator:FT,unstable_useEnhancedEffect:It,unstable_useId:Wn,unsupportedProp:Cp,useControlled:In,useEventCallback:Me,useForkRef:ht,useIsFocusVisible:Tp},Symbol.toStringTag,{value:"Module"})),BT=En(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jT=En(T.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),VT=En(T.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");En(T.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");En(T.jsxs(R.Fragment,{children:[T.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),T.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");En(T.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");En(T.jsxs(R.Fragment,{children:[T.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),T.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const $T=En(T.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function LT(e){return Ie("MuiPickersArrowSwitcher",e)}ke("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const _T=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],qT=["ownerState"],YT=["ownerState"],UT=fe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),WT=fe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ld=fe(so,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),GT=e=>{const{classes:t}=e;return Fe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},LT,t)},Np=R.forwardRef(function(t,n){const r=Tn(),o=Qe({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:h,isPreviousDisabled:v,isPreviousHidden:m,onGoToPrevious:p,previousLabel:b,labelId:C}=o,D=ve(o,_T),E=o,S=GT(E),A={isDisabled:u,isHidden:d,goTo:f,label:h},k={isDisabled:v,isHidden:m,goTo:p,label:b},w=l?.previousIconButton??ld,M=rt({elementType:w,externalSlotProps:c?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:x({},E,{hidden:k.isHidden}),className:we(S.button,S.previousIconButton)}),N=l?.nextIconButton??ld,V=rt({elementType:N,externalSlotProps:c?.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:x({},E,{hidden:A.isHidden}),className:we(S.button,S.nextIconButton)}),F=l?.leftArrowIcon??jT,Y=rt({elementType:F,externalSlotProps:c?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:E,className:S.leftArrowIcon}),$=ve(Y,qT),O=l?.rightArrowIcon??VT,j=rt({elementType:O,externalSlotProps:c?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:E,className:S.rightArrowIcon}),I=ve(j,YT);return T.jsxs(UT,x({ref:n,className:we(S.root,a),ownerState:E},D,{children:[T.jsx(w,x({},M,{children:r?T.jsx(O,x({},I)):T.jsx(F,x({},$))})),i?T.jsx(Fn,{variant:"subtitle1",component:"span",id:C,children:i}):T.jsx(WT,{className:S.spacer,ownerState:E}),T.jsx(N,x({},V,{children:r?T.jsx(F,x({},$)):T.jsx(O,x({},I))}))]}))}),On=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Bp=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},zT=["hours","minutes","seconds"],ll=e=>zT.includes(e),HT=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,cl=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,KT=(e,t,n,r)=>{const o=cl(r.getHours(e),t,n);return r.setHours(e,o)},cd=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Yl=(e,t)=>(n,r)=>e?t.isAfter(n,r):cd(n,t)>cd(r,t),QT=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return On(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:On(n,["minutes"])?o.minutes:On(n,["seconds"])?o.seconds:On(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:On(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};let $a=!1;function Ul({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&($a||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),$a=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),$a=!0)));const c=R.useRef(n),u=R.useRef(o),d=R.useRef(o.includes(n)?n:o[0]),[f,h]=In({name:"useViews",state:"view",controlled:r,default:d.current}),v=R.useRef(i?f:null),[m,p]=In({name:"useViews",state:"focusedView",controlled:a,default:v.current});R.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(w=>!o.includes(w)))&&(h(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,h,f,o]);const b=o.indexOf(f),C=o[b-1]??null,D=o[b+1]??null,E=Me((w,M)=>{p(M?w:N=>w===N?null:N),l?.(w,M)}),S=Me(w=>{E(w,!0),w!==f&&(h(w),t&&t(w))}),A=Me(()=>{D&&S(D)}),k=Me((w,M,N)=>{const V=M==="finish",F=N?o.indexOf(N)<o.length-1:!!D;if(e(w,V&&F?"partial":M,N),N&&N!==f){const $=o[o.indexOf(N)+1];$&&S($)}else V&&A()});return{view:f,setView:S,focusedView:m,setFocusedView:E,nextView:D,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:A,setValueAndGoToNextView:k}}function JT(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Xe();return R.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function ZT(e,{disablePast:t,minDate:n,timezone:r}){const o=Xe();return R.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function jp(e,t,n,r){const o=Xe(),i=HT(e,o),a=R.useCallback(l=>{const c=e==null?null:KT(e,l,!!t,o);n(c,"partial")},[t,e,n,r,o]);return{meridiemMode:i,handleMeridiemChange:a}}const Wo=36,Li=2,_i=320,XT=280,Wl=336,Vp=fe("div")({overflow:"hidden",width:_i,maxHeight:Wl,display:"flex",flexDirection:"column",margin:"0 auto"});function ew(e){return Ie("MuiTimeClock",e)}ke("MuiTimeClock",["root","arrowSwitcher"]);const eo=220,_n=36,Go={x:eo/2,y:eo/2},$p={x:Go.x,y:0},tw=$p.x-Go.x,nw=$p.y-Go.y,rw=e=>e*(180/Math.PI),Lp=(e,t,n)=>{const r=t-Go.x,o=n-Go.y,i=Math.atan2(tw,nw)-Math.atan2(r,o);let a=rw(i);a=Math.round(a/e)*e,a%=360;const l=Math.floor(a/e)||0,c=r**2+o**2,u=Math.sqrt(c);return{value:l,distance:u}},ow=(e,t,n=1)=>{const r=n*6;let{value:o}=Lp(r,e,t);return o=o*n%60,o},sw=(e,t,n)=>{const{value:r,distance:o}=Lp(30,e,t);let i=r||12;return n?i%=12:o<eo/2-_n&&(i+=12,i%=24),i};function iw(e){return Ie("MuiClockPointer",e)}ke("MuiClockPointer",["root","thumb"]);const aw=["className","hasSelected","isInner","type","viewValue"],lw=e=>{const{classes:t}=e;return Fe({root:["root"],thumb:["thumb"]},iw,t)},cw=fe("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),uw=fe("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${_n/2}px)`,border:`${(_n-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function dw(e){const t=Qe({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=ve(t,aw),l=R.useRef(o);R.useEffect(()=>{l.current=o},[o]);const c=x({},t,{shouldAnimate:l.current!==o}),u=lw(c),d=()=>{let h=360/(o==="hours"?12:60)*i;return o==="hours"&&i>12&&(h-=360),{height:Math.round((r?.26:.4)*eo),transform:`rotateZ(${h}deg)`}};return T.jsx(cw,x({style:d(),className:we(u.root,n),ownerState:c},a,{children:T.jsx(uw,{ownerState:c,className:u.thumb})}))}function fw(e){return Ie("MuiClock",e)}ke("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const fi=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Fo=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:l})=>{const c=fi(a,a.date(void 0,l),e);n&&a.isBefore(o,c)&&(o=c),t&&a.isAfter(r,c)&&(r=c);let u=e,d=e;for(a.isBefore(e,o)&&(u=o,d=null),a.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&a.isAfter(u,r)&&(u=null),d&&a.isBefore(d,o)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},pw=(e,t)=>t==null||!e.isValid(t)?null:t,fn=(e,t,n)=>t==null||!e.isValid(t)?n:t,hw=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Gl=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},zl=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),_r=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},mw=["year","month","day"],ud=e=>mw.includes(e),_p=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return On(n,["year"])?o.year:On(n,["month"])?o.month:On(n,["day"])?o.dayOfMonth:On(n,["month","year"])?`${o.month} ${o.year}`:On(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},gw=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},yw=e=>{const{classes:t,meridiemMode:n}=e;return Fe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},fw,t)},bw=fe("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),vw=fe("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Cw=fe("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),xw=fe("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Tw=fe("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),qp=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:_n,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),ww=fe(so,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>x({},qp(e,"am"),{position:"absolute",left:8})),Ew=fe(so,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>x({},qp(e,"pm"),{position:"absolute",right:8})),dd=fe(Fn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Sw(e){const t=Qe({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:f,selectedId:h,type:v,viewValue:m,viewRange:[p,b],disabled:C=!1,readOnly:D,className:E}=t,S=t,A=Xe(),k=gn(),w=R.useRef(!1),M=yw(S),N=c(m,v),V=!n&&v==="hours"&&(m<1||m>12),F=(ne,se)=>{C||D||c(ne,v)||f(ne,se)},Y=(ne,se)=>{let{offsetX:Z,offsetY:oe}=ne;if(Z===void 0){const te=ne.target.getBoundingClientRect();Z=ne.changedTouches[0].clientX-te.left,oe=ne.changedTouches[0].clientY-te.top}const ie=v==="seconds"||v==="minutes"?ow(Z,oe,d):sw(Z,oe,!!n);F(ie,se)},$=ne=>{w.current=!0,Y(ne,"shallow")},O=ne=>{w.current&&(Y(ne,"finish"),w.current=!1),ne.preventDefault()},j=ne=>{ne.buttons>0&&Y(ne.nativeEvent,"shallow")},I=ne=>{w.current&&(w.current=!1),Y(ne.nativeEvent,"finish")},q=R.useMemo(()=>v==="hours"?!0:m%5===0,[v,m]),B=v==="minutes"?d:1,Q=R.useRef(null);It(()=>{o&&Q.current.focus()},[o]);const _=ne=>Math.max(p,Math.min(b,ne)),H=ne=>(ne+(b+1))%(b+1),le=ne=>{if(!w.current)switch(ne.key){case"Home":F(p,"partial"),ne.preventDefault();break;case"End":F(b,"partial"),ne.preventDefault();break;case"ArrowUp":F(H(m+B),"partial"),ne.preventDefault();break;case"ArrowDown":F(H(m-B),"partial"),ne.preventDefault();break;case"PageUp":F(_(m+5),"partial"),ne.preventDefault();break;case"PageDown":F(_(m-5),"partial"),ne.preventDefault();break;case"Enter":case" ":F(m,"finish"),ne.preventDefault();break}};return T.jsxs(bw,{className:we(M.root,E),children:[T.jsxs(vw,{className:M.clock,children:[T.jsx(xw,{onTouchMove:$,onTouchStart:$,onTouchEnd:O,onMouseUp:I,onMouseMove:j,ownerState:{disabled:C},className:M.squareMask}),!N&&T.jsxs(R.Fragment,{children:[T.jsx(Tw,{className:M.pin}),a!=null&&T.jsx(dw,{type:v,viewValue:m,isInner:V,hasSelected:q})]}),T.jsx(Cw,{"aria-activedescendant":h,"aria-label":k.clockLabelText(v,a,A,a==null?null:A.format(a,"fullTime")),ref:Q,role:"listbox",onKeyDown:le,tabIndex:0,className:M.wrapper,children:i})]}),n&&r&&T.jsxs(R.Fragment,{children:[T.jsx(ww,{onClick:D?void 0:()=>l("am"),disabled:C||u===null,ownerState:S,className:M.amButton,title:_r(A,"am"),children:T.jsx(dd,{variant:"caption",className:M.meridiemText,children:_r(A,"am")})}),T.jsx(Ew,{disabled:C||u===null,onClick:D?void 0:()=>l("pm"),ownerState:S,className:M.pmButton,title:_r(A,"pm"),children:T.jsx(dd,{variant:"caption",className:M.meridiemText,children:_r(A,"pm")})})]})]})}function Rw(e){return Ie("MuiClockNumber",e)}const Rs=ke("MuiClockNumber",["root","selected","disabled"]),Mw=["className","disabled","index","inner","label","selected"],Aw=e=>{const{classes:t,selected:n,disabled:r}=e;return Fe({root:["root",n&&"selected",r&&"disabled"]},Rw,t)},Dw=fe("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Rs.disabled}`]:t.disabled},{[`&.${Rs.selected}`]:t.selected}]})(({theme:e})=>({height:_n,width:_n,position:"absolute",left:`calc((100% - ${_n}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Rs.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Rs.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:x({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Yp(e){const t=Qe({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:l}=t,c=ve(t,Mw),u=t,d=Aw(u),f=o%12/12*Math.PI*2-Math.PI/2,h=(eo-_n-2)/2*(i?.65:1),v=Math.round(Math.cos(f)*h),m=Math.round(Math.sin(f)*h);return T.jsx(Dw,x({className:we(d.root,n),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${v}px, ${m+(eo-_n)/2}px`},ownerState:u},c,{children:a}))}const Pw=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=c;f<=u;f+=1){let h=f.toString();f===0&&(h="00");const v=!e&&(f===0||f>12);h=i.formatNumber(h);const m=d(f);l.push(T.jsx(Yp,{id:m?o:void 0,index:f,inner:v,selected:m,disabled:r(f),label:h,"aria-label":n(h)},f))}return l},fd=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,l],c)=>{const u=a===t;return T.jsx(Yp,{label:l,id:u?o:void 0,index:c+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(l)},a)})},Hl=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const a=Xe(),l=R.useRef(n),c=t??l.current??i.emptyValue,u=R.useMemo(()=>i.getTimezone(a,c),[a,i,c]),d=Me(m=>u==null?m:i.setTimezone(a,u,m));let f;e?f=e:u?f=u:r?f=a.getTimezone(r):f="default";const h=R.useMemo(()=>i.setTimezone(a,f,c),[i,a,f,c]),v=Me((m,...p)=>{const b=d(m);o?.(b,...p)});return{value:h,handleValueChange:v,timezone:f}},qi=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const[l,c]=In({name:e,state:"value",controlled:n,default:r??a.emptyValue}),u=Me((d,...f)=>{c(d),i?.(d,...f)});return Hl({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:a})},Cn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Ow=e=>Math.max(...e.map(t=>Cn[t.type]??1)),bo=(e,t,n)=>{if(t===Cn.year)return e.startOfYear(n);if(t===Cn.month)return e.startOfMonth(n);if(t===Cn.day)return e.startOfDay(n);let r=n;return t<Cn.minutes&&(r=e.setMinutes(r,0)),t<Cn.seconds&&(r=e.setSeconds(r,0)),t<Cn.milliseconds&&(r=e.setMilliseconds(r,0)),r},kw=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():bo(t,n,zl(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=bo(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=bo(t,n,e.maxDate));const a=Yl(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=bo(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:fi(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=bo(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:fi(t,i,e.maxTime))),i},Kl=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
128
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Iw=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Yi=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Up=(e,t,n,r)=>{switch(n){case"month":return Gl(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Yi(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},pd="s",Fw=["0","1","2","3","4","5","6","7","8","9"],Nw=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),pd)==="0"?Fw:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),pd))},vr=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},Ql=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),hd=(e,t)=>{const n=vr(e,t);return n!==" "&&!Number.isNaN(Number(n))},Wp=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Gp=(e,t,n,r,o)=>{if(process.env.NODE_ENV!=="production"&&o.type!=="day"&&o.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${o.format}" is a digit format with letter in it.'
|
|
129
|
+
This type of format is only supported for 'day' sections`].join(`
|
|
130
|
+
`));if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=Wp(i,o.maxLength)),Ql(i,r)},Bw=(e,t,n,r,o,i,a,l)=>{const c=Iw(r),u=r==="Home",d=r==="End",f=n.value===""||u||d,h=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),p=D=>Gp(e,D,m,i,n),b=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let C;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?C=m.minimum:C=m.maximum}else C=parseInt(vr(n.value,i),10)+c*b;return C%b!==0&&((c<0||u)&&(C+=b-(b+C)%b),(c>0||d)&&(C-=C%b)),C>m.maximum?p(m.minimum+(C-m.maximum-1)%(m.maximum-m.minimum+1)):C<m.minimum?p(m.maximum-(m.minimum-C-1)%(m.maximum-m.minimum+1)):p(C)},v=()=>{const m=Up(e,t,n.type,n.format);if(m.length===0)return n.value;if(f)return c>0||u?m[0]:m[m.length-1];const C=((m.indexOf(n.value)+c)%m.length+m.length)%m.length;return m[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():v()},Jl=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(vr(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},md=(e,t,n,r)=>{if(process.env.NODE_ENV!=="production"&&Kl(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},jw=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,zp=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Vw=(e,t,n)=>{const r=t.some(c=>c.type==="day"),o=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];r&&u.type==="weekDay"||(o.push(u.format),i.push(Jl(u,"non-input",n)))}const a=o.join(" "),l=i.join(" ");return e.parse(l,a)},$w=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Lw=(e,t,n)=>{const o=e.map(i=>{const a=Jl(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${o}`:o},_w=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:l}=Gl(e,r).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:jw(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:c})=>({minimum:1,maximum:c!=null&&e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=Yi(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i);return vr(e.formatByString(e.endOfDay(r),c),t)!==u.toString()?{minimum:1,maximum:Number(vr(e.formatByString(e.startOfDay(r),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let gd=!1;const yd=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!gd){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const r=e.find(o=>!n.includes(o.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),gd=!0)}},qw=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=Yi(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),c=o.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},bd={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},vd=(e,t,n,r,o)=>[...n].sort((i,a)=>bd[i.type]-bd[a.type]).reduce((i,a)=>!o||a.modified?qw(e,a,t,i):i,r),Yw=()=>navigator.userAgent.toLowerCase().includes("android"),Uw=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((c,u)=>u>=i&&c.endSeparator?.includes(" ")&&c.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let c=a;c>=i;c-=1)o[c]=l,r[l]=c,l-=1;i=a+1}return e.forEach((c,u)=>{const d=o[u],f=d===0?null:r[d-1],h=d===e.length-1?null:r[d+1];n[u]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ul=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Ww=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},Gw=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},zw=["value","referenceDate"],en={emptyValue:null,getTodayValue:zl,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,zw);return t!=null&&r.utils.isValid(t)?t:n??kw(r)},cleanValue:pw,areValuesEqual:hw,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Hp={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:$w,getV6InputValueFromSections:Lw,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Hw=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=R.useMemo(()=>en.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Cn.day,timezone:o,getTodayDate:()=>zl(n,o,"date")}),[]);return e??i},Kw=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Qw=e=>{const{classes:t}=e;return Fe({root:["root"],arrowSwitcher:["arrowSwitcher"]},ew,t)},Jw=fe(Vp,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Zw=fe(Np,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Xw=["hours","minutes"],Kp=R.forwardRef(function(t,n){const r=Xe(),o=Qe({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:m,minTime:p,disableFuture:b,disablePast:C,minutesStep:D=1,shouldDisableTime:E,showViewSwitcher:S,onChange:A,view:k,views:w=Xw,openTo:M,onViewChange:N,focusedView:V,onFocusedViewChange:F,className:Y,disabled:$,readOnly:O,timezone:j}=o,I=ve(o,Kw),{value:q,handleValueChange:B,timezone:Q}=qi({name:"TimeClock",timezone:j,value:d,defaultValue:f,referenceDate:h,onChange:A,valueManager:en}),_=Hw({value:q,referenceDate:h,utils:r,props:o,timezone:Q}),H=gn(),le=ts(Q),{view:ne,setView:se,previousView:Z,nextView:oe,setValueAndGoToNextView:ie}=Ul({view:k,views:w,openTo:M,onViewChange:N,onChange:B,focusedView:V,onFocusedViewChange:F}),{meridiemMode:te,handleMeridiemChange:ee}=jp(_,i,ie),X=R.useCallback((pe,re)=>{const he=Yl(v,r),me=re==="hours"||re==="minutes"&&w.includes("seconds"),Ce=({start:Se,end:$e})=>!(p&&he(p,$e)||m&&he(Se,m)||b&&he(Se,le)||C&&he(le,me?$e:Se)),Ee=(Se,$e=1)=>{if(Se%$e!==0)return!1;if(E)switch(re){case"hours":return!E(r.setHours(_,Se),"hours");case"minutes":return!E(r.setMinutes(_,Se),"minutes");case"seconds":return!E(r.setSeconds(_,Se),"seconds");default:return!1}return!0};switch(re){case"hours":{const Se=cl(pe,te,i),$e=r.setHours(_,Se);if(r.getHours($e)!==Se)return!0;const et=r.setSeconds(r.setMinutes($e,0),0),We=r.setSeconds(r.setMinutes($e,59),59);return!Ce({start:et,end:We})||!Ee(Se)}case"minutes":{const Se=r.setMinutes(_,pe),$e=r.setSeconds(Se,0),et=r.setSeconds(Se,59);return!Ce({start:$e,end:et})||!Ee(pe,D)}case"seconds":{const Se=r.setSeconds(_,pe);return!Ce({start:Se,end:Se})||!Ee(pe)}default:throw new Error("not supported")}},[i,_,v,m,te,p,D,E,r,b,C,le,w]),K=Wn(),U=R.useMemo(()=>{switch(ne){case"hours":{const pe=(me,Ce)=>{const Ee=cl(me,te,i);ie(r.setHours(_,Ee),Ce,"hours")},re=r.getHours(_);let he;return i?re>12?he=[12,23]:he=[0,11]:he=[0,23],{onChange:pe,viewValue:re,children:Pw({value:q,utils:r,ampm:i,getClockNumberText:H.hoursClockNumberText,isDisabled:me=>$||X(me,"hours"),selectedId:K}),viewRange:he}}case"minutes":{const pe=r.getMinutes(_);return{viewValue:pe,onChange:(he,me)=>{ie(r.setMinutes(_,he),me,"minutes")},children:fd({utils:r,value:pe,getClockNumberText:H.minutesClockNumberText,isDisabled:he=>$||X(he,"minutes"),selectedId:K}),viewRange:[0,59]}}case"seconds":{const pe=r.getSeconds(_);return{viewValue:pe,onChange:(he,me)=>{ie(r.setSeconds(_,he),me,"seconds")},children:fd({utils:r,value:pe,getClockNumberText:H.secondsClockNumberText,isDisabled:he=>$||X(he,"seconds"),selectedId:K}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[ne,r,q,i,H.hoursClockNumberText,H.minutesClockNumberText,H.secondsClockNumberText,te,ie,_,X,K,$]),z=o,ce=Qw(z);return T.jsxs(Jw,x({ref:n,className:we(ce.root,Y),ownerState:z},I,{children:[T.jsx(Sw,x({autoFocus:l??!!V,ampmInClock:a&&w.includes("hours"),value:q,type:ne,ampm:i,minutesStep:D,isTimeDisabled:X,meridiemMode:te,handleMeridiemChange:ee,selectedId:K,disabled:$,readOnly:O},U)),S&&T.jsx(Zw,{className:ce.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>se(Z),isPreviousDisabled:!Z,previousLabel:H.openPreviousView,onGoToNext:()=>se(oe),isNextDisabled:!oe,nextLabel:H.openNextView,ownerState:z})]}))});process.env.NODE_ENV!=="production"&&(Kp.propTypes={ampm:s.bool,ampmInClock:s.bool,autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableIgnoringDatePartForTimeValidation:s.bool,disablePast:s.bool,focusedView:s.oneOf(["hours","minutes","seconds"]),maxTime:s.object,minTime:s.object,minutesStep:s.number,onChange:s.func,onFocusedViewChange:s.func,onViewChange:s.func,openTo:s.oneOf(["hours","minutes","seconds"]),readOnly:s.bool,referenceDate:s.object,shouldDisableTime:s.func,showViewSwitcher:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["hours","minutes","seconds"]),views:s.arrayOf(s.oneOf(["hours","minutes","seconds"]).isRequired)});const zr=R.createContext({});process.env.NODE_ENV!=="production"&&(zr.displayName="ListContext");function eE(e){return Ie("MuiList",e)}ke("MuiList",["root","padding","dense","subheader"]);const tE=["children","className","component","dense","disablePadding","subheader"],nE=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},eE,t)},rE=fe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Zl=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,d=ve(r,tE),f=R.useMemo(()=>({dense:l}),[l]),h=x({},r,{component:a,dense:l,disablePadding:c}),v=nE(h);return T.jsx(zr.Provider,{value:f,children:T.jsxs(rE,x({as:a,className:we(v.root,i),ref:n,ownerState:h},d,{children:[u,o]}))})});process.env.NODE_ENV!=="production"&&(Zl.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oE=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function La(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Cd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function vo(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Qp(l,i)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const Jp=R.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=ve(t,oE),v=R.useRef(null),m=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});It(()=>{o&&v.current.focus()},[o]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:S})=>{const A=!v.current.style.width;if(E.clientHeight<v.current.clientHeight&&A){const k=`${wp(Kt(E))}px`;v.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=k,v.current.style.width=`calc(100% + ${k})`}return v.current}}),[]);const p=E=>{const S=v.current,A=E.key,k=Kt(S).activeElement;if(A==="ArrowDown")E.preventDefault(),vo(S,k,u,c,La);else if(A==="ArrowUp")E.preventDefault(),vo(S,k,u,c,Cd);else if(A==="Home")E.preventDefault(),vo(S,null,u,c,La);else if(A==="End")E.preventDefault(),vo(S,null,u,c,Cd);else if(A.length===1){const w=m.current,M=A.toLowerCase(),N=performance.now();w.keys.length>0&&(N-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&M!==w.keys[0]&&(w.repeating=!1)),w.lastTime=N,w.keys.push(M);const V=k&&!w.repeating&&Qp(k,w);w.previousKeyMatched&&(V||vo(S,k,!1,c,La,w))?E.preventDefault():w.previousKeyMatched=!1}d&&d(E)},b=ht(v,n);let C=-1;R.Children.forEach(a,(E,S)=>{if(!R.isValidElement(E)){C===S&&(C+=1,C>=a.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&_o.isFragment(E)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
131
|
+
`)),E.props.disabled||(f==="selectedMenu"&&E.props.selected||C===-1)&&(C=S),C===S&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(C+=1,C>=a.length&&(C=-1))});const D=R.Children.map(a,(E,S)=>{if(S===C){const A={};return i&&(A.autoFocus=!0),E.props.tabIndex===void 0&&f==="selectedMenu"&&(A.tabIndex=0),R.cloneElement(E,A)}return E});return T.jsx(Zl,x({role:"menu",ref:b,className:l,onKeyDown:p,tabIndex:o?0:-1},h,{children:D}))});process.env.NODE_ENV!=="production"&&(Jp.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function Vr(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const sE=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},tn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?tn(t.shadowRoot):t:null};function iE(e){return Ie("MuiPickersDay",e)}const lr=ke("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),aE=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],lE=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:c}=e,u=a&&!l;return Fe({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},iE,c)},Zp=({theme:e})=>x({},e.typography.caption,{width:Wo,height:Wo,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zr(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Zr(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${lr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${lr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${lr.disabled}:not(.${lr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${lr.disabled}&.${lr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Li}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${lr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Xp=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},cE=fe(br,{name:"MuiPickersDay",slot:"Root",overridesResolver:Xp})(Zp),uE=fe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Xp})(({theme:e})=>x({},Zp({theme:e}),{opacity:0,pointerEvents:"none"})),Co=()=>{},eh=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:f,onDaySelect:h,onFocus:v=Co,onBlur:m=Co,onKeyDown:p=Co,onMouseDown:b=Co,onMouseEnter:C=Co,outsideCurrentMonth:D,selected:E=!1,showDaysOutsideCurrentMonth:S=!1,children:A,today:k=!1}=r,w=ve(r,aE),M=x({},r,{autoFocus:o,disabled:l,disableHighlightToday:c,disableMargin:u,selected:E,showDaysOutsideCurrentMonth:S,today:k}),N=lE(M),V=Xe(),F=R.useRef(null),Y=ht(F,n);It(()=>{o&&!l&&!d&&!D&&F.current.focus()},[o,l,d,D]);const $=j=>{b(j),D&&j.preventDefault()},O=j=>{l||h(a),D&&j.currentTarget.focus(),f&&f(j)};return D&&!S?T.jsx(uE,{className:we(N.root,N.hiddenDaySpacingFiller,i),ownerState:M,role:w.role}):T.jsx(cE,x({className:we(N.root,i),ref:Y,centerRipple:!0,disabled:l,tabIndex:E?0:-1,onKeyDown:j=>p(j,a),onFocus:j=>v(j,a),onBlur:j=>m(j,a),onMouseEnter:j=>C(j,a),onClick:O,onMouseDown:$},w,{ownerState:M,children:A||V.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(eh.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const dE=R.memo(eh),fE=["onChange","maxRows","minRows","style","value"];function Ms(e){return parseInt(e,10)||0}const pE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hE(e){for(const t in e)return!1;return!0}function xd(e){return hE(e)||e.outerHeightStyle===0&&!e.overflowing}const th=R.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=t,c=ve(t,fE),{current:u}=R.useRef(l!=null),d=R.useRef(null),f=ht(n,d),h=R.useRef(null),v=R.useRef(null),m=R.useCallback(()=>{const E=d.current,S=v.current;if(!E||!S)return;const k=nr(E).getComputedStyle(E);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=k.width,S.value=E.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
132
|
+
`&&(S.value+=" ");const w=k.boxSizing,M=Ms(k.paddingBottom)+Ms(k.paddingTop),N=Ms(k.borderBottomWidth)+Ms(k.borderTopWidth),V=S.scrollHeight;S.value="x";const F=S.scrollHeight;let Y=V;i&&(Y=Math.max(Number(i)*F,Y)),o&&(Y=Math.min(Number(o)*F,Y)),Y=Math.max(Y,F);const $=Y+(w==="border-box"?M+N:0),O=Math.abs(Y-V)<=1;return{outerHeightStyle:$,overflowing:O}},[o,i,t.placeholder]),p=Me(()=>{const E=d.current,S=m();if(!E||!S||xd(S))return!1;const A=S.outerHeightStyle;return h.current!=null&&h.current!==A}),b=R.useCallback(()=>{const E=d.current,S=m();if(!E||!S||xd(S))return;const A=S.outerHeightStyle;h.current!==A&&(h.current=A,E.style.height=`${A}px`),E.style.overflow=S.overflowing?"hidden":""},[m]),C=R.useRef(-1);It(()=>{const E=Vl(b),S=d?.current;if(!S)return;const A=nr(S);A.addEventListener("resize",E);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{p()&&(k.unobserve(S),cancelAnimationFrame(C.current),b(),C.current=requestAnimationFrame(()=>{k.observe(S)}))}),k.observe(S)),()=>{E.clear(),cancelAnimationFrame(C.current),A.removeEventListener("resize",E),k&&k.disconnect()}},[m,b,p]),It(()=>{b()});const D=E=>{u||b(),r&&r(E)};return T.jsxs(R.Fragment,{children:[T.jsx("textarea",x({value:l,onChange:D,ref:f,rows:i,style:a},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:x({},pE.shadow,a,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(th.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function io({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const rs=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(rs.displayName="FormControlContext");function Sn(){return R.useContext(rs)}function nh(e){return T.jsx(cp,x({},e,{defaultTheme:ji,themeId:vi}))}process.env.NODE_ENV!=="production"&&(nh.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function Td(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pi(e,t=!1){return e&&(Td(e.value)&&e.value!==""||t&&Td(e.defaultValue)&&e.defaultValue!=="")}function mE(e){return e.startAdornment}function gE(e){return Ie("MuiInputBase",e)}const to=ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),yE=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ui=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Wi=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},bE=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:h,startAdornment:v,type:m}=e,p={root:["root",`color${Te(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",h&&h!=="medium"&&`size${Te(h)}`,d&&"multiline",v&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Fe(p,gE,t)},Gi=fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ui})(({theme:e,ownerState:t})=>x({},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",[`&.${to.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),zi=fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Wi})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${to.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${to.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),vE=T.jsx(nh,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Hi=R.forwardRef(function(t,n){var r;const o=st({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:c,components:u={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:v,endAdornment:m,fullWidth:p=!1,id:b,inputComponent:C="input",inputProps:D={},inputRef:E,maxRows:S,minRows:A,multiline:k=!1,name:w,onBlur:M,onChange:N,onClick:V,onFocus:F,onKeyDown:Y,onKeyUp:$,placeholder:O,readOnly:j,renderSuffix:I,rows:q,slotProps:B={},slots:Q={},startAdornment:_,type:H="text",value:le}=o,ne=ve(o,yE),se=D.value!=null?D.value:le,{current:Z}=R.useRef(se!=null),oe=R.useRef(),ie=R.useCallback(Le=>{process.env.NODE_ENV!=="production"&&Le&&Le.nodeName!=="INPUT"&&!Le.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(`
|
|
133
|
+
`))},[]),te=ht(oe,E,D.ref,ie),[ee,X]=R.useState(!1),K=Sn();process.env.NODE_ENV!=="production"&&R.useEffect(()=>{if(K)return K.registerEffect()},[K]);const U=io({props:o,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=K?K.focused:ee,R.useEffect(()=>{!K&&h&&ee&&(X(!1),M&&M())},[K,h,ee,M]);const z=K&&K.onFilled,ce=K&&K.onEmpty,pe=R.useCallback(Le=>{pi(Le)?z&&z():ce&&ce()},[z,ce]);It(()=>{Z&&pe({value:se})},[se,pe,Z]);const re=Le=>{if(U.disabled){Le.stopPropagation();return}F&&F(Le),D.onFocus&&D.onFocus(Le),K&&K.onFocus?K.onFocus(Le):X(!0)},he=Le=>{M&&M(Le),D.onBlur&&D.onBlur(Le),K&&K.onBlur?K.onBlur(Le):X(!1)},me=(Le,...Oe)=>{if(!Z){const gt=Le.target||oe.current;if(gt==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.":qn(1));pe({value:gt.value})}D.onChange&&D.onChange(Le,...Oe),N&&N(Le,...Oe)};R.useEffect(()=>{pe(oe.current)},[]);const Ce=Le=>{oe.current&&Le.currentTarget===Le.target&&oe.current.focus(),V&&V(Le)};let Ee=C,Se=D;k&&Ee==="input"&&(q?(process.env.NODE_ENV!=="production"&&(A||S)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Se=x({type:void 0,minRows:q,maxRows:q},Se)):Se=x({type:void 0,maxRows:S,minRows:A},Se),Ee=th);const $e=Le=>{pe(Le.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};R.useEffect(()=>{K&&K.setAdornedStart(!!_)},[K,_]);const et=x({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,error:U.error,focused:U.focused,formControl:K,fullWidth:p,hiddenLabel:U.hiddenLabel,multiline:k,size:U.size,startAdornment:_,type:H}),We=bE(et),mt=Q.root||u.Root||Gi,vt=B.root||d.root||{},Ct=Q.input||u.Input||zi;return Se=x({},Se,(r=B.input)!=null?r:d.input),T.jsxs(R.Fragment,{children:[!v&&vE,T.jsxs(mt,x({},vt,!Xr(mt)&&{ownerState:x({},et,vt.ownerState)},{ref:n,onClick:Ce},ne,{className:we(We.root,vt.className,c,j&&"MuiInputBase-readOnly"),children:[_,T.jsx(rs.Provider,{value:null,children:T.jsx(Ct,x({ownerState:et,"aria-invalid":U.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:f,disabled:U.disabled,id:b,onAnimationStart:$e,name:w,placeholder:O,readOnly:j,required:U.required,rows:q,value:se,onKeyDown:Y,onKeyUp:$,type:H},Se,!Xr(Ct)&&{as:Ee,ownerState:x({},et,Se.ownerState)},{ref:te,className:we(We.input,Se.className,j&&"MuiInputBase-readOnly"),onBlur:he,onChange:me,onFocus:re}))}),m,I?I(x({},U,{startAdornment:_})):null]}))]})});process.env.NODE_ENV!=="production"&&(Hi.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:Ii,inputProps:s.object,inputRef:Ft,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function CE(e){return Ie("MuiInput",e)}const xo=x({},to,ke("MuiInput",["root","underline","input"])),xE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],TE=e=>{const{classes:t,disableUnderline:n}=e,o=Fe({root:["root",!n&&"underline"],input:["input"]},CE,t);return x({},t,o)},wE=fe(Gi,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ui(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),x({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.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(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),EE=fe(zi,{name:"MuiInput",slot:"Input",overridesResolver:Wi})({}),Ki=R.forwardRef(function(t,n){var r,o,i,a;const l=st({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:v=!1,slotProps:m,slots:p={},type:b="text"}=l,C=ve(l,xE),D=TE(l),S={root:{ownerState:{disableUnderline:c}}},A=m??d?on(m??d,S):S,k=(r=(o=p.root)!=null?o:u.Root)!=null?r:wE,w=(i=(a=p.input)!=null?a:u.Input)!=null?i:EE;return T.jsx(Hi,x({slots:{root:k,input:w},slotProps:A,fullWidth:f,inputComponent:h,multiline:v,ref:n,type:b},C,{classes:D}))});process.env.NODE_ENV!=="production"&&(Ki.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Ft,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Ki.muiName="Input";function SE(e){return Ie("MuiFilledInput",e)}const cr=x({},to,ke("MuiFilledInput",["root","underline","input"])),RE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ME=e=>{const{classes:t,disableUnderline:n}=e,o=Fe({root:["root",!n&&"underline"],input:["input"]},SE,t);return x({},t,o)},AE=fe(Gi,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ui(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${cr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${cr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cr.disabled}, .${cr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),DE=fe(zi,{name:"MuiFilledInput",slot:"Input",overridesResolver:Wi})(({theme:e,ownerState:t})=>x({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Qi=R.forwardRef(function(t,n){var r,o,i,a;const l=st({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:v,slots:m={},type:p="text"}=l,b=ve(l,RE),C=x({},l,{fullWidth:d,inputComponent:f,multiline:h,type:p}),D=ME(l),E={root:{ownerState:C},input:{ownerState:C}},S=v??u?on(E,v??u):E,A=(r=(o=m.root)!=null?o:c.Root)!=null?r:AE,k=(i=(a=m.input)!=null?a:c.Input)!=null?i:DE;return T.jsx(Hi,x({slots:{root:A,input:k},componentsProps:S,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:p},b,{classes:D}))});process.env.NODE_ENV!=="production"&&(Qi.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Ft,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Qi.muiName="Input";var wd;const PE=["children","classes","className","label","notched"],OE=fe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:wn})({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%"}),kE=fe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:wn})(({ownerState:e,theme:t})=>x({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&x({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function rh(e){const{className:t,label:n,notched:r}=e,o=ve(e,PE),i=n!=null&&n!=="",a=x({},e,{notched:r,withLabel:i});return T.jsx(OE,x({"aria-hidden":!0,className:t,ownerState:a},o,{children:T.jsx(kE,{ownerState:a,children:i?T.jsx("span",{children:n}):wd||(wd=T.jsx("span",{className:"notranslate",children:""}))})}))}process.env.NODE_ENV!=="production"&&(rh.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function IE(e){return Ie("MuiOutlinedInput",e)}const Jn=x({},to,ke("MuiOutlinedInput",["root","notchedOutline","input"])),FE=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],NE=e=>{const{classes:t}=e,r=Fe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},IE,t);return x({},t,r)},BE=fe(Gi,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ui})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Jn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Jn.focused} .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Jn.error} .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Jn.disabled} .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),jE=fe(rh,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),VE=fe(zi,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Wi})(({theme:e,ownerState:t})=>x({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ji=R.forwardRef(function(t,n){var r,o,i,a,l;const c=st({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:v=!1,notched:m,slots:p={},type:b="text"}=c,C=ve(c,FE),D=NE(c),E=Sn(),S=io({props:c,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=x({},c,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:E,fullWidth:d,hiddenLabel:S.hiddenLabel,multiline:v,size:S.size,type:b}),k=(r=(o=p.root)!=null?o:u.Root)!=null?r:BE,w=(i=(a=p.input)!=null?a:u.Input)!=null?i:VE;return T.jsx(Hi,x({slots:{root:k,input:w},renderSuffix:M=>T.jsx(jE,{ownerState:A,className:D.notchedOutline,label:h!=null&&h!==""&&S.required?l||(l=T.jsxs(R.Fragment,{children:[h," ","*"]})):h,notched:typeof m<"u"?m:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:d,inputComponent:f,multiline:v,ref:n,type:b},C,{classes:x({},D,{notchedOutline:null})}))});process.env.NODE_ENV!=="production"&&(Ji.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Ji.muiName="Input";function $E(e){return Ie("MuiFormLabel",e)}const No=ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),LE=["children","className","color","component","disabled","error","filled","focused","required"],_E=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,c={root:["root",`color${Te(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Fe(c,$E,t)},qE=fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${No.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${No.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${No.error}`]:{color:(e.vars||e).palette.error.main}})),YE=fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${No.error}`]:{color:(e.vars||e).palette.error.main}})),oh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,l=ve(r,LE),c=Sn(),u=io({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=x({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=_E(d);return T.jsxs(qE,x({as:a,ownerState:d,className:we(f.root,i),ref:n},l,{children:[o,u.required&&T.jsxs(YE,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))});process.env.NODE_ENV!=="production"&&(oh.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function UE(e){return Ie("MuiInputLabel",e)}ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const WE=["disableAnimation","margin","shrink","variant","className"],GE=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Te(r)}`,a],asterisk:[l&&"asterisk"]},u=Fe(c,UE,t);return x({},t,u)},zE=fe(oh,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${No.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>x({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&x({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&x({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&x({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Xl=R.forwardRef(function(t,n){const r=st({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,l=ve(r,WE),c=Sn();let u=i;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=io({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),f=x({},r,{disableAnimation:o,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),h=GE(f);return T.jsx(zE,x({"data-shrink":u,ownerState:f,ref:n,className:we(h.root,a)},l,{classes:h}))});process.env.NODE_ENV!=="production"&&(Xl.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["normal","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function HE(e){return Ie("MuiFormControl",e)}ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const KE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],QE=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Te(n)}`,r&&"fullWidth"]};return Fe(o,HE,t)},JE=fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${Te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ec=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:v="none",required:m=!1,size:p="medium",variant:b="outlined"}=r,C=ve(r,KE),D=x({},r,{color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:h,margin:v,required:m,size:p,variant:b}),E=QE(D),[S,A]=R.useState(()=>{let $=!1;return o&&R.Children.forEach(o,O=>{if(!Gr(O,["Input","Select"]))return;const j=Gr(O,["Select"])?O.props.input:O;j&&mE(j.props)&&($=!0)}),$}),[k,w]=R.useState(()=>{let $=!1;return o&&R.Children.forEach(o,O=>{Gr(O,["Input","Select"])&&(pi(O.props,!0)||pi(O.props.inputProps,!0))&&($=!0)}),$}),[M,N]=R.useState(!1);c&&M&&N(!1);const V=d!==void 0&&!c?d:M;let F;if(process.env.NODE_ENV!=="production"){const $=R.useRef(!1);F=()=>($.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
134
|
+
`)),$.current=!0,()=>{$.current=!1})}const Y=R.useMemo(()=>({adornedStart:S,setAdornedStart:A,color:a,disabled:c,error:u,filled:k,focused:V,fullWidth:f,hiddenLabel:h,size:p,onBlur:()=>{N(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:m,variant:b}),[S,a,c,u,k,V,f,h,F,m,p,b]);return T.jsx(rs.Provider,{value:Y,children:T.jsx(JE,x({as:l,ownerState:D,className:we(E.root,i),ref:n},C,{children:o}))})});process.env.NODE_ENV!=="production"&&(ec.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function ZE(e){return Ie("MuiFormHelperText",e)}const Ed=ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Sd;const XE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],eS=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:c}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${Te(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Fe(u,ZE,t)},tS=fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ed.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ed.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),tc=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,l=ve(r,XE),c=Sn(),u=io({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=x({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=eS(d);return T.jsx(tS,x({as:a,ownerState:d,className:we(f.root,i),ref:n},l,{children:o===" "?Sd||(Sd=T.jsx("span",{className:"notranslate",children:""})):o}))});process.env.NODE_ENV!=="production"&&(tc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});const sh=e=>e.scrollTop;function hi(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const nS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dl(e){return`scale(${e}, ${e**2})`}const rS={entering:{opacity:1,transform:dl(1)},entered:{opacity:1,transform:"none"}},_a=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nc=R.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:v,style:m,timeout:p="auto",TransitionComponent:b=yn}=t,C=ve(t,nS),D=xp(),E=R.useRef(),S=oo(),A=R.useRef(null),k=ht(A,Xo(i),n),w=j=>I=>{if(j){const q=A.current;I===void 0?j(q):j(q,I)}},M=w(d),N=w((j,I)=>{sh(j);const{duration:q,delay:B,easing:Q}=hi({style:m,timeout:p,easing:a},{mode:"enter"});let _;p==="auto"?(_=S.transitions.getAutoHeightDuration(j.clientHeight),E.current=_):_=q,j.style.transition=[S.transitions.create("opacity",{duration:_,delay:B}),S.transitions.create("transform",{duration:_a?_:_*.666,delay:B,easing:Q})].join(","),c&&c(j,I)}),V=w(u),F=w(v),Y=w(j=>{const{duration:I,delay:q,easing:B}=hi({style:m,timeout:p,easing:a},{mode:"exit"});let Q;p==="auto"?(Q=S.transitions.getAutoHeightDuration(j.clientHeight),E.current=Q):Q=I,j.style.transition=[S.transitions.create("opacity",{duration:Q,delay:q}),S.transitions.create("transform",{duration:_a?Q:Q*.666,delay:_a?q:q||Q*.333,easing:B})].join(","),j.style.opacity=0,j.style.transform=dl(.75),f&&f(j)}),$=w(h),O=j=>{p==="auto"&&D.start(E.current||0,j),r&&r(A.current,j)};return T.jsx(b,x({appear:o,in:l,nodeRef:A,onEnter:N,onEntered:V,onEntering:M,onExit:Y,onExited:$,onExiting:F,addEndListener:O,timeout:p==="auto"?null:p},C,{children:(j,I)=>R.cloneElement(i,x({style:x({opacity:0,transform:dl(.75),visibility:j==="exited"&&!l?"hidden":void 0},rS[j],m,i.props.style),ref:k},I))}))});process.env.NODE_ENV!=="production"&&(nc.propTypes={addEndListener:s.func,appear:s.bool,children:Zo.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});nc.muiSupportAuto=!0;function oS(e){const t=Kt(e);return t.body===e?nr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rd(e){return parseInt(nr(e).getComputedStyle(e).paddingRight,10)||0}function sS(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Md(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,c=!sS(a);l&&c&&Bo(a,o)})}function qa(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function iS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(oS(r)){const a=wp(Kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Rd(r)+a}px`;const l=Kt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Rd(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Kt(r).body;else{const a=r.parentElement,l=nr(r);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function aS(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lS{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Bo(t.modalRef,!1);const o=aS(n);Md(n,t.mount,t.modalRef,o,!0);const i=qa(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=qa(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=iS(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=qa(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Bo(t.modalRef,n),Md(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Bo(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const cS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uS(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 dS(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function fS(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dS(e))}function pS(e){const t=[],n=[];return Array.from(e.querySelectorAll(cS)).forEach((r,o)=>{const i=uS(r);i===-1||!fS(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function hS(){return!0}function mi(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=pS,isEnabled:a=hS,open:l}=e,c=R.useRef(!1),u=R.useRef(null),d=R.useRef(null),f=R.useRef(null),h=R.useRef(null),v=R.useRef(!1),m=R.useRef(null),p=ht(Xo(t),m),b=R.useRef(null);R.useEffect(()=>{!l||!m.current||(v.current=!n)},[n,l]),R.useEffect(()=>{if(!l||!m.current)return;const E=Kt(m.current);return m.current.contains(E.activeElement)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
135
|
+
`)),m.current.setAttribute("tabIndex","-1")),v.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),R.useEffect(()=>{if(!l||!m.current)return;const E=Kt(m.current),S=w=>{b.current=w,!(r||!a()||w.key!=="Tab")&&E.activeElement===m.current&&w.shiftKey&&(c.current=!0,d.current&&d.current.focus())},A=()=>{const w=m.current;if(w===null)return;if(!E.hasFocus()||!a()||c.current){c.current=!1;return}if(w.contains(E.activeElement)||r&&E.activeElement!==u.current&&E.activeElement!==d.current)return;if(E.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let M=[];if((E.activeElement===u.current||E.activeElement===d.current)&&(M=i(m.current)),M.length>0){var N,V;const F=!!((N=b.current)!=null&&N.shiftKey&&((V=b.current)==null?void 0:V.key)==="Tab"),Y=M[0],$=M[M.length-1];typeof Y!="string"&&typeof $!="string"&&(F?$.focus():Y.focus())}else w.focus()};E.addEventListener("focusin",A),E.addEventListener("keydown",S,!0);const k=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(k),E.removeEventListener("focusin",A),E.removeEventListener("keydown",S,!0)}},[n,r,o,a,l,i]);const C=E=>{f.current===null&&(f.current=E.relatedTarget),v.current=!0,h.current=E.target;const S=t.props.onFocus;S&&S(E)},D=E=>{f.current===null&&(f.current=E.relatedTarget),v.current=!0};return T.jsxs(R.Fragment,{children:[T.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:p,onFocus:C}),T.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(mi.propTypes={children:Zo,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(mi.propTypes=vp(mi.propTypes));function mS(e){return typeof e=="function"?e():e}const gi=R.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=R.useState(null),c=ht(R.isValidElement(r)?Xo(r):null,n);if(It(()=>{i||l(mS(o)||document.body)},[o,i]),It(()=>{if(a&&!i)return li(n,a),()=>{li(n,null)}},[n,a,i]),i){if(R.isValidElement(r)){const u={ref:c};return R.cloneElement(r,u)}return T.jsx(R.Fragment,{children:r})}return T.jsx(R.Fragment,{children:a&&cb.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(gi.propTypes={children:s.node,container:s.oneOfType([Yo,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(gi.propTypes=vp(gi.propTypes));const gS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yS={entering:{opacity:1},entered:{opacity:1}},ao=R.forwardRef(function(t,n){const r=oo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:v,onExited:m,onExiting:p,style:b,timeout:C=o,TransitionComponent:D=yn}=t,E=ve(t,gS),S=R.useRef(null),A=ht(S,Xo(l),n),k=O=>j=>{if(O){const I=S.current;j===void 0?O(I):O(I,j)}},w=k(h),M=k((O,j)=>{sh(O);const I=hi({style:b,timeout:C,easing:c},{mode:"enter"});O.style.webkitTransition=r.transitions.create("opacity",I),O.style.transition=r.transitions.create("opacity",I),d&&d(O,j)}),N=k(f),V=k(p),F=k(O=>{const j=hi({style:b,timeout:C,easing:c},{mode:"exit"});O.style.webkitTransition=r.transitions.create("opacity",j),O.style.transition=r.transitions.create("opacity",j),v&&v(O)}),Y=k(m),$=O=>{i&&i(S.current,O)};return T.jsx(D,x({appear:a,in:u,nodeRef:S,onEnter:M,onEntered:N,onEntering:w,onExit:F,onExited:Y,onExiting:V,addEndListener:$,timeout:C},E,{children:(O,j)=>R.cloneElement(l,x({style:x({opacity:0,visibility:O==="exited"&&!u?"hidden":void 0},yS[O],b,l.props.style),ref:A},j))}))});process.env.NODE_ENV!=="production"&&(ao.propTypes={addEndListener:s.func,appear:s.bool,children:Zo.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function bS(e){return Ie("MuiBackdrop",e)}ke("MuiBackdrop",["root","invisible"]);const vS=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],CS=e=>{const{classes:t,invisible:n}=e;return Fe({root:["root",n&&"invisible"]},bS,t)},xS=fe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),rc=R.forwardRef(function(t,n){var r,o,i;const a=st({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:f={},invisible:h=!1,open:v,slotProps:m={},slots:p={},TransitionComponent:b=ao,transitionDuration:C}=a,D=ve(a,vS),E=x({},a,{component:u,invisible:h}),S=CS(E),A=(r=m.root)!=null?r:f.root;return T.jsx(b,x({in:v,timeout:C},D,{children:T.jsx(xS,x({"aria-hidden":!0},A,{as:(o=(i=p.root)!=null?i:d.Root)!=null?o:u,className:we(S.root,c,A?.className),ownerState:x({},E,A?.ownerState),classes:S,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(rc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function TS(e){return typeof e=="function"?e():e}function wS(e){return e?e.props.hasOwnProperty("in"):!1}const ES=new lS;function SS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ES,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:f}=e,h=R.useRef({}),v=R.useRef(null),m=R.useRef(null),p=ht(m,f),[b,C]=R.useState(!d),D=wS(c);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const S=()=>Kt(v.current),A=()=>(h.current.modalRef=m.current,h.current.mount=v.current,h.current),k=()=>{o.mount(A(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},w=Me(()=>{const I=TS(t)||S().body;o.add(A(),I),m.current&&k()}),M=R.useCallback(()=>o.isTopModal(A()),[o]),N=Me(I=>{v.current=I,I&&(d&&M()?k():m.current&&Bo(m.current,E))}),V=R.useCallback(()=>{o.remove(A(),E)},[E,o]);R.useEffect(()=>()=>{V()},[V]),R.useEffect(()=>{d?w():(!D||!i)&&V()},[d,V,D,i,w]);const F=I=>q=>{var B;(B=I.onKeyDown)==null||B.call(I,q),!(q.key!=="Escape"||q.which===229||!M())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},Y=I=>q=>{var B;(B=I.onClick)==null||B.call(I,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(I={})=>{const q=Mp(e);delete q.onTransitionEnter,delete q.onTransitionExited;const B=x({},q,I);return x({role:"presentation"},B,{onKeyDown:F(B),ref:p})},getBackdropProps:(I={})=>{const q=I;return x({"aria-hidden":!0},q,{onClick:Y(q),open:d})},getTransitionProps:()=>{const I=()=>{C(!1),a&&a()},q=()=>{C(!0),l&&l(),i&&V()};return{onEnter:nl(I,c?.props.onEnter),onExited:nl(q,c?.props.onExited)}},rootRef:p,portalRef:N,isTopModal:M,exited:b,hasTransition:D}}function RS(e){return Ie("MuiModal",e)}ke("MuiModal",["root","hidden","backdrop"]);const MS=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],AS=e=>{const{open:t,exited:n,classes:r}=e;return Fe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},RS,r)},DS=fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),PS=fe(rc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),oc=R.forwardRef(function(t,n){var r,o,i,a,l,c;const u=st({name:"MuiModal",props:t}),{BackdropComponent:d=PS,BackdropProps:f,className:h,closeAfterTransition:v=!1,children:m,container:p,component:b,components:C={},componentsProps:D={},disableAutoFocus:E=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:A=!1,disablePortal:k=!1,disableRestoreFocus:w=!1,disableScrollLock:M=!1,hideBackdrop:N=!1,keepMounted:V=!1,onBackdropClick:F,open:Y,slotProps:$,slots:O}=u,j=ve(u,MS),I=x({},u,{closeAfterTransition:v,disableAutoFocus:E,disableEnforceFocus:S,disableEscapeKeyDown:A,disablePortal:k,disableRestoreFocus:w,disableScrollLock:M,hideBackdrop:N,keepMounted:V}),{getRootProps:q,getBackdropProps:B,getTransitionProps:Q,portalRef:_,isTopModal:H,exited:le,hasTransition:ne}=SS(x({},I,{rootRef:n})),se=x({},I,{exited:le}),Z=AS(se),oe={};if(m.props.tabIndex===void 0&&(oe.tabIndex="-1"),ne){const{onEnter:z,onExited:ce}=Q();oe.onEnter=z,oe.onExited=ce}const ie=(r=(o=O?.root)!=null?o:C.Root)!=null?r:DS,te=(i=(a=O?.backdrop)!=null?a:C.Backdrop)!=null?i:d,ee=(l=$?.root)!=null?l:D.root,X=(c=$?.backdrop)!=null?c:D.backdrop,K=rt({elementType:ie,externalSlotProps:ee,externalForwardedProps:j,getSlotProps:q,additionalProps:{ref:n,as:b},ownerState:se,className:we(h,ee?.className,Z?.root,!se.open&&se.exited&&Z?.hidden)}),U=rt({elementType:te,externalSlotProps:X,additionalProps:f,getSlotProps:z=>B(x({},z,{onClick:ce=>{F&&F(ce),z!=null&&z.onClick&&z.onClick(ce)}})),className:we(X?.className,f?.className,Z?.backdrop),ownerState:se});return!V&&!Y&&(!ne||le)?null:T.jsx(gi,{ref:_,container:p,disablePortal:k,children:T.jsxs(ie,x({},K,{children:[!N&&d?T.jsx(te,x({},U)):null,T.jsx(mi,{disableEnforceFocus:S,disableAutoFocus:E,disableRestoreFocus:w,isEnabled:H,open:Y,children:R.cloneElement(m,oe)})]}))})});process.env.NODE_ENV!=="production"&&(oc.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Zo.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Yo,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function OS(e){return Ie("MuiPaper",e)}ke("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const kS=["className","component","elevation","square","variant"],IS=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Fe(i,OS,o)},FS=fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return x({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&x({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${pt.alpha("#fff",ed(t.elevation))}, ${pt.alpha("#fff",ed(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Zi=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation"}=r,u=ve(r,kS),d=x({},r,{component:i,elevation:a,square:l,variant:c}),f=IS(d);return process.env.NODE_ENV!=="production"&&oo().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
136
|
+
`)),T.jsx(FS,x({as:i,ownerState:d,className:we(f.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(Zi.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:xr(Rp,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function NS(e){return Ie("MuiPopover",e)}ke("MuiPopover",["root","paper"]);const BS=["onEntering"],jS=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],VS=["slotProps"];function Ad(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Dd(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Pd(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Gs(e){return typeof e=="function"?e():e}const $S=e=>{const{classes:t}=e;return Fe({root:["root"],paper:["paper"]},NS,t)},LS=fe(oc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ih=fe(Zi,{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}),ah=R.forwardRef(function(t,n){var r,o,i;const a=st({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:v,container:m,elevation:p=8,marginThreshold:b=16,open:C,PaperProps:D={},slots:E,slotProps:S,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:k=nc,transitionDuration:w="auto",TransitionProps:{onEntering:M}={},disableScrollLock:N=!1}=a,V=ve(a.TransitionProps,BS),F=ve(a,jS),Y=(r=S?.paper)!=null?r:D,$=R.useRef(),O=ht($,Y.ref),j=x({},a,{anchorOrigin:u,anchorReference:f,elevation:p,marginThreshold:b,externalPaperSlotProps:Y,transformOrigin:A,TransitionComponent:k,transitionDuration:w,TransitionProps:V}),I=$S(j),q=R.useCallback(()=>{if(f==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const z=Gs(c),ce=z&&z.nodeType===1?z:Kt($.current).body,pe=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const re=ce.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(`
|
|
137
|
+
`))}return{top:pe.top+Ad(pe,u.vertical),left:pe.left+Dd(pe,u.horizontal)}},[c,u.horizontal,u.vertical,d,f]),B=R.useCallback(z=>({vertical:Ad(z,A.vertical),horizontal:Dd(z,A.horizontal)}),[A.horizontal,A.vertical]),Q=R.useCallback(z=>{const ce={width:z.offsetWidth,height:z.offsetHeight},pe=B(ce);if(f==="none")return{top:null,left:null,transformOrigin:Pd(pe)};const re=q();let he=re.top-pe.vertical,me=re.left-pe.horizontal;const Ce=he+ce.height,Ee=me+ce.width,Se=nr(Gs(c)),$e=Se.innerHeight-b,et=Se.innerWidth-b;if(b!==null&&he<b){const We=he-b;he-=We,pe.vertical+=We}else if(b!==null&&Ce>$e){const We=Ce-$e;he-=We,pe.vertical+=We}if(process.env.NODE_ENV!=="production"&&ce.height>$e&&ce.height&&$e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-$e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
138
|
+
`)),b!==null&&me<b){const We=me-b;me-=We,pe.horizontal+=We}else if(Ee>et){const We=Ee-et;me-=We,pe.horizontal+=We}return{top:`${Math.round(he)}px`,left:`${Math.round(me)}px`,transformOrigin:Pd(pe)}},[c,f,q,B,b]),[_,H]=R.useState(C),le=R.useCallback(()=>{const z=$.current;if(!z)return;const ce=Q(z);ce.top!==null&&(z.style.top=ce.top),ce.left!==null&&(z.style.left=ce.left),z.style.transformOrigin=ce.transformOrigin,H(!0)},[Q]);R.useEffect(()=>(N&&window.addEventListener("scroll",le),()=>window.removeEventListener("scroll",le)),[c,N,le]);const ne=(z,ce)=>{M&&M(z,ce),le()},se=()=>{H(!1)};R.useEffect(()=>{C&&le()}),R.useImperativeHandle(l,()=>C?{updatePosition:()=>{le()}}:null,[C,le]),R.useEffect(()=>{if(!C)return;const z=Vl(()=>{le()}),ce=nr(c);return ce.addEventListener("resize",z),()=>{z.clear(),ce.removeEventListener("resize",z)}},[c,C,le]);let Z=w;w==="auto"&&!k.muiSupportAuto&&(Z=void 0);const oe=m||(c?Kt(Gs(c)).body:void 0),ie=(o=E?.root)!=null?o:LS,te=(i=E?.paper)!=null?i:ih,ee=rt({elementType:te,externalSlotProps:x({},Y,{style:_?Y.style:x({},Y.style,{opacity:0})}),additionalProps:{elevation:p,ref:O},ownerState:j,className:we(I.paper,Y?.className)}),X=rt({elementType:ie,externalSlotProps:S?.root||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:oe,open:C},ownerState:j,className:we(I.root,v)}),{slotProps:K}=X,U=ve(X,VS);return T.jsx(ie,x({},U,!Xr(ie)&&{slotProps:K,disableScrollLock:N},{children:T.jsx(k,x({appear:!0,in:C,onEntering:ne,onExited:se,timeout:Z},V,{children:T.jsx(te,x({},ee,{children:h}))}))}))});process.env.NODE_ENV!=="production"&&(ah.propTypes={action:Ft,anchorEl:xr(s.oneOfType([Yo,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Gs(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
139
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
140
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Yo,s.func]),disableScrollLock:s.bool,elevation:Rp,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Ii}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function _S(e){return Ie("MuiMenu",e)}ke("MuiMenu",["root","paper","list"]);const qS=["onEntering"],YS=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],US={vertical:"top",horizontal:"right"},WS={vertical:"top",horizontal:"left"},GS=e=>{const{classes:t}=e;return Fe({root:["root"],paper:["paper"],list:["list"]},_S,t)},zS=fe(ah,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HS=fe(ih,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),KS=fe(Jp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lh=R.forwardRef(function(t,n){var r,o;const i=st({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:v={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b}={},variant:C="selectedMenu",slots:D={},slotProps:E={}}=i,S=ve(i.TransitionProps,qS),A=ve(i,YS),k=Tn(),w=x({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:b,PaperProps:v,transitionDuration:p,TransitionProps:S,variant:C}),M=GS(w),N=a&&!u&&h,V=R.useRef(null),F=(B,Q)=>{V.current&&V.current.adjustStyleForScrollbar(B,{direction:k?"rtl":"ltr"}),b&&b(B,Q)},Y=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;R.Children.map(l,(B,Q)=>{R.isValidElement(B)&&(process.env.NODE_ENV!=="production"&&_o.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
141
|
+
`)),B.props.disabled||(C==="selectedMenu"&&B.props.selected||$===-1)&&($=Q))});const O=(r=D.paper)!=null?r:HS,j=(o=E.paper)!=null?o:v,I=rt({elementType:D.root,externalSlotProps:E.root,ownerState:w,className:[M.root,c]}),q=rt({elementType:O,externalSlotProps:j,ownerState:w,className:M.paper});return T.jsx(zS,x({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?US:WS,slots:{paper:O,root:D.root},slotProps:{root:I,paper:q},open:h,ref:n,transitionDuration:p,TransitionProps:x({onEntering:F},S),ownerState:w},A,{classes:m,children:T.jsx(KS,x({onKeyDown:Y,actions:V,autoFocus:a&&($===-1||u),autoFocusItem:N,variant:C},d,{className:we(M.list,d.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(lh.propTypes={anchorEl:s.oneOfType([Yo,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function QS(e){return Ie("MuiNativeSelect",e)}const sc=ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JS=["className","disabled","error","IconComponent","inputRef","variant"],ZS=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Te(n)}`,i&&"iconOpen",r&&"disabled"]};return Fe(l,QS,t)},ch=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":x({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${sc.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),XS=fe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${sc.multiple}`]:t.multiple}]}})(ch),uh=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${sc.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),eR=fe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Te(n.variant)}`],n.open&&t.iconOpen]}})(uh),dh=R.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:c="standard"}=t,u=ve(t,JS),d=x({},t,{disabled:o,variant:c,error:i}),f=ZS(d);return T.jsxs(R.Fragment,{children:[T.jsx(XS,x({ownerState:d,className:we(f.select,r),disabled:o,ref:l||n},u)),t.multiple?null:T.jsx(eR,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(dh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Ft,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function tR(e){return Ie("MuiSelect",e)}const To=ke("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Od;const nR=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rR=fe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${To.select}`]:t.select},{[`&.${To.select}`]:t[n.variant]},{[`&.${To.error}`]:t.error},{[`&.${To.multiple}`]:t.multiple}]}})(ch,{[`&.${To.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oR=fe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Te(n.variant)}`],n.open&&t.iconOpen]}})(uh),sR=fe("input",{shouldForwardProp:e=>Ap(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 kd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function iR(e){return e==null||typeof e=="string"&&!e.trim()}const aR=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Te(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Fe(l,tR,t)},fh=R.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:c,className:u,defaultOpen:d,defaultValue:f,disabled:h,displayEmpty:v,error:m=!1,IconComponent:p,inputRef:b,labelId:C,MenuProps:D={},multiple:E,name:S,onBlur:A,onChange:k,onClose:w,onFocus:M,onOpen:N,open:V,readOnly:F,renderValue:Y,SelectDisplayProps:$={},tabIndex:O,value:j,variant:I="standard"}=t,q=ve(t,nR),[B,Q]=In({controlled:j,default:f,name:"Select"}),[_,H]=In({controlled:V,default:d,name:"Select"}),le=R.useRef(null),ne=R.useRef(null),[se,Z]=R.useState(null),{current:oe}=R.useRef(V!=null),[ie,te]=R.useState(),ee=ht(n,b),X=R.useCallback(De=>{ne.current=De,De&&Z(De)},[]),K=se?.parentNode;R.useImperativeHandle(ee,()=>({focus:()=>{ne.current.focus()},node:le.current,value:B}),[B]),R.useEffect(()=>{d&&_&&se&&!oe&&(te(l?null:K.clientWidth),ne.current.focus())},[se,l]),R.useEffect(()=>{a&&ne.current.focus()},[a]),R.useEffect(()=>{if(!C)return;const De=Kt(ne.current).getElementById(C);if(De){const _e=()=>{getSelection().isCollapsed&&ne.current.focus()};return De.addEventListener("click",_e),()=>{De.removeEventListener("click",_e)}}},[C]);const U=(De,_e)=>{De?N&&N(_e):w&&w(_e),oe||(te(l?null:K.clientWidth),H(De))},z=De=>{De.button===0&&(De.preventDefault(),ne.current.focus(),U(!0,De))},ce=De=>{U(!1,De)},pe=R.Children.toArray(c),re=De=>{const _e=pe.find(it=>it.props.value===De.target.value);_e!==void 0&&(Q(_e.props.value),k&&k(De,_e))},he=De=>_e=>{let it;if(_e.currentTarget.hasAttribute("tabindex")){if(E){it=Array.isArray(B)?B.slice():[];const Ot=B.indexOf(De.props.value);Ot===-1?it.push(De.props.value):it.splice(Ot,1)}else it=De.props.value;if(De.props.onClick&&De.props.onClick(_e),B!==it&&(Q(it),k)){const Ot=_e.nativeEvent||_e,Mn=new Ot.constructor(Ot.type,Ot);Object.defineProperty(Mn,"target",{writable:!0,value:{value:it,name:S}}),k(Mn,De)}E||U(!1,_e)}},me=De=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(De.key)!==-1&&(De.preventDefault(),U(!0,De))},Ce=se!==null&&_,Ee=De=>{!Ce&&A&&(Object.defineProperty(De,"target",{writable:!0,value:{value:B,name:S}}),A(De))};delete q["aria-invalid"];let Se,$e;const et=[];let We=!1,mt=!1;(pi({value:B})||v)&&(Y?Se=Y(B):We=!0);const vt=pe.map(De=>{if(!R.isValidElement(De))return null;process.env.NODE_ENV!=="production"&&_o.isFragment(De)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
142
|
+
`));let _e;if(E){if(!Array.isArray(B))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":qn(2));_e=B.some(it=>kd(it,De.props.value)),_e&&We&&et.push(De.props.children)}else _e=kd(B,De.props.value),_e&&We&&($e=De.props.children);return _e&&(mt=!0),R.cloneElement(De,{"aria-selected":_e?"true":"false",onClick:he(De),onKeyUp:it=>{it.key===" "&&it.preventDefault(),De.props.onKeyUp&&De.props.onKeyUp(it)},role:"option",selected:_e,value:void 0,"data-value":De.props.value})});process.env.NODE_ENV!=="production"&&R.useEffect(()=>{if(!mt&&!E&&B!==""){const De=pe.map(_e=>_e.props.value);console.warn([`MUI: You have provided an out-of-range value \`${B}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${De.filter(_e=>_e!=null).map(_e=>`\`${_e}\``).join(", ")||'""'}.`].join(`
|
|
143
|
+
`))}},[mt,pe,E,S,B]),We&&(E?et.length===0?Se=null:Se=et.reduce((De,_e,it)=>(De.push(_e),it<et.length-1&&De.push(", "),De),[]):Se=$e);let Ct=ie;!l&&oe&&se&&(Ct=K.clientWidth);let Le;typeof O<"u"?Le=O:Le=h?null:0;const Oe=$.id||(S?`mui-component-select-${S}`:void 0),gt=x({},t,{variant:I,value:B,open:Ce,error:m}),$t=aR(gt),Nt=x({},D.PaperProps,(r=D.slotProps)==null?void 0:r.paper),Bt=Wn();return T.jsxs(R.Fragment,{children:[T.jsx(rR,x({ref:X,tabIndex:Le,role:"combobox","aria-controls":Bt,"aria-disabled":h?"true":void 0,"aria-expanded":Ce?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[C,Oe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:me,onMouseDown:h||F?null:z,onBlur:Ee,onFocus:M},$,{ownerState:gt,className:we($.className,$t.select,u),id:Oe,children:iR(Se)?Od||(Od=T.jsx("span",{className:"notranslate",children:""})):Se})),T.jsx(sR,x({"aria-invalid":m,value:Array.isArray(B)?B.join(","):B,name:S,ref:le,"aria-hidden":!0,onChange:re,tabIndex:-1,disabled:h,className:$t.nativeInput,autoFocus:a,ownerState:gt},q)),T.jsx(oR,{as:p,className:$t.icon,ownerState:gt}),T.jsx(lh,x({id:`menu-${S||""}`,anchorEl:K,open:Ce,onClose:ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},D,{MenuListProps:x({"aria-labelledby":C,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:Bt},D.MenuListProps),slotProps:x({},D.slotProps,{paper:x({},Nt,{style:x({minWidth:Ct},Nt!=null?Nt.style:null)})}),children:vt}))]})});process.env.NODE_ENV!=="production"&&(fh.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Ft,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const lR=En(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),cR=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uR=["root"],dR=e=>{const{classes:t}=e;return t},ic={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wn(e)&&e!=="variant",slot:"Root"},fR=fe(Ki,ic)(""),pR=fe(Ji,ic)(""),hR=fe(Qi,ic)(""),ac=R.forwardRef(function(t,n){const r=st({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=lR,id:f,input:h,inputProps:v,label:m,labelId:p,MenuProps:b,multiple:C=!1,native:D=!1,onClose:E,onOpen:S,open:A,renderValue:k,SelectDisplayProps:w,variant:M="outlined"}=r,N=ve(r,cR),V=D?dh:fh,F=Sn(),Y=io({props:r,muiFormControl:F,states:["variant","error"]}),$=Y.variant||M,O=x({},r,{variant:$,classes:a}),j=dR(O),I=ve(j,uR),q=h||{standard:T.jsx(fR,{ownerState:O}),outlined:T.jsx(pR,{label:m,ownerState:O}),filled:T.jsx(hR,{ownerState:O})}[$],B=ht(n,Xo(q));return T.jsx(R.Fragment,{children:R.cloneElement(q,x({inputComponent:V,inputProps:x({children:i,error:Y.error,IconComponent:d,variant:$,type:void 0,multiple:C},D?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:p,MenuProps:b,onClose:E,onOpen:S,open:A,renderValue:k,SelectDisplayProps:x({id:f},w)},v,{classes:v?on(I,v.classes):I},h?h.props.inputProps:{})},(C&&D||u)&&$==="outlined"?{notched:!0}:{},{ref:B,className:we(q.props.className,l,j.root)},!h&&{variant:$},N))})});process.env.NODE_ENV!=="production"&&(ac.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});ac.muiName="Select";function mR(e){return Ie("MuiTextField",e)}ke("MuiTextField",["root"]);const gR=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],yR={standard:Ki,filled:Qi,outlined:Ji},bR=e=>{const{classes:t}=e;return Fe({root:["root"]},mR,t)},vR=fe(ec,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lc=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:v=!1,helperText:m,id:p,InputLabelProps:b,inputProps:C,InputProps:D,inputRef:E,label:S,maxRows:A,minRows:k,multiline:w=!1,name:M,onBlur:N,onChange:V,onFocus:F,placeholder:Y,required:$=!1,rows:O,select:j=!1,SelectProps:I,type:q,value:B,variant:Q="outlined"}=r,_=ve(r,gR),H=x({},r,{autoFocus:i,color:c,disabled:d,error:f,fullWidth:v,multiline:w,required:$,select:j,variant:Q}),le=bR(H);process.env.NODE_ENV!=="production"&&j&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ne={};Q==="outlined"&&(b&&typeof b.shrink<"u"&&(ne.notched=b.shrink),ne.label=S),j&&((!I||!I.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const se=Wn(p),Z=m&&se?`${se}-helper-text`:void 0,oe=S&&se?`${se}-label`:void 0,ie=yR[Q],te=T.jsx(ie,x({"aria-describedby":Z,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:v,multiline:w,name:M,rows:O,maxRows:A,minRows:k,type:q,value:B,id:se,inputRef:E,onBlur:N,onChange:V,onFocus:F,placeholder:Y,inputProps:C},ne,D));return T.jsxs(vR,x({className:we(le.root,l),disabled:d,error:f,fullWidth:v,ref:n,required:$,color:c,variant:Q,ownerState:H},_,{children:[S!=null&&S!==""&&T.jsx(Xl,x({htmlFor:se,id:oe},b,{children:S})),j?T.jsx(ac,x({"aria-describedby":Z,id:se,labelId:oe,value:B,input:te},I,{children:a})):te,m&&T.jsx(tc,x({id:Z},h,{children:m}))]}))});process.env.NODE_ENV!=="production"&&(lc.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const Xi=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c}=e,u=r.utils.date(void 0,n),d=fn(r.utils,e.minDate,r.defaultDates.minDate),f=fn(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&r.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,u)):return"disablePast";case!!(d&&r.utils.isBeforeDay(t,d)):return"minDate";case!!(f&&r.utils.isAfterDay(t,f)):return"maxDate";default:return null}};Xi.valueManager=en;const cc=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=r,f=e.utils.date(void 0,n),h=Yl(c,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&h(o,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(d&&e.utils.isAfter(t,f)):return"disableFuture";case!!(u&&e.utils.isBefore(t,f)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};cc.valueManager=en;const fl=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],pl=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],ph=["minDateTime","maxDateTime"],CR=[...fl,...pl,...ph],hh=e=>CR.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function mh(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Tr(),l=R.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:r,timezone:o,props:t}),u=n.valueManager.hasError(c);R.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,r),l.current=c},[n,i,c,r]);const d=Me(f=>n({adapter:a,value:f,timezone:o,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const xR=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},TR=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},wR=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},ER=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Kl(e,a),u=zp(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",f=t!=null&&e.isValid(t);let h=f?e.formatByString(t,a):"",v=null;if(d)if(u)v=h===""?e.formatByString(i,a).length:h.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);v=c.maxLength,f&&(h=Ql(Wp(vr(h,o),v),o))}return x({},c,{format:a,maxLength:v,value:h,placeholder:wR(e,r,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},SR=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((v,m)=>m.length-v.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=v=>r.find(m=>m.start<=v&&m.end>=v);let h=0;for(;h<n.length;){const v=f(h),m=v!=null,p=c.exec(n.slice(h))?.[1];if(!m&&p!=null&&u.test(p)){let b=p;for(;b.length>0;){const C=d.exec(b)[1];b=b.slice(C.length),i.push(ER(x({},e,{now:o,token:C,startSeparator:a}))),a=""}h+=p.length}else{const b=n[h];m&&v?.start===h||v?.end===h||(i.length===0?a+=b:i[i.length-1].endSeparator+=b),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},RR=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),Id=e=>{let t=xR(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=TR(x({},e,{expandedFormat:t})),r=SR(x({},e,{expandedFormat:t,escapedParts:n}));return RR(x({},e,{sections:r}))},MR=e=>{const t=Xe(),n=gn(),r=Tr(),o=Tn(),{valueManager:i,fieldValueManager:a,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:f,referenceDate:h,onChange:v,format:m,formatDensity:p="dense",selectedSections:b,onSelectedSectionsChange:C,shouldRespectLeadingZeros:D=!1,timezone:E,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:A,value:k,handleValueChange:w}=Hl({timezone:E,value:d,defaultValue:f,referenceDate:h,onChange:v,valueManager:i}),M=R.useMemo(()=>Nw(t),[t]),N=R.useMemo(()=>_w(t,M,A),[t,M,A]),V=R.useCallback((Z,oe=null)=>a.getSectionsFromValue(t,Z,oe,ie=>Id({utils:t,localeText:n,localizedDigits:M,format:m,date:ie,formatDensity:p,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:o})),[a,m,n,M,o,D,t,p,S]),[F,Y]=R.useState(()=>{const Z=V(k);yd(Z,l);const oe={sections:Z,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},ie=Ow(Z),te=i.getInitialReferenceValue({referenceDate:h,value:k,utils:t,props:u,granularity:ie,timezone:A});return x({},oe,{referenceValue:te})}),[$,O]=In({controlled:b,default:null,name:"useField",state:"selectedSections"}),j=Z=>{O(Z),C?.(Z)},I=R.useMemo(()=>ul($,F.sections),[$,F.sections]),q=I==="all"?0:I,B=({value:Z,referenceValue:oe,sections:ie})=>{if(Y(ee=>x({},ee,{sections:ie,value:Z,referenceValue:oe,tempValueStrAndroid:null})),i.areValuesEqual(t,F.value,Z))return;const te={validationError:c({adapter:r,value:Z,timezone:A,props:u})};w(Z,te)},Q=(Z,oe)=>{const ie=[...F.sections];return ie[Z]=x({},ie[Z],{value:oe,modified:!0}),ie},_=()=>{B({value:i.emptyValue,referenceValue:F.referenceValue,sections:V(i.emptyValue)})},H=()=>{if(q==null)return;const Z=F.sections[q],oe=a.getActiveDateManager(t,F,Z),te=oe.getSections(F.sections).filter(U=>U.value!=="").length===(Z.value===""?0:1),ee=Q(q,""),X=te?null:t.getInvalidDate(),K=oe.getNewValuesFromNewActiveDate(X);B(x({},K,{sections:ee}))},le=Z=>{const oe=(ee,X)=>{const K=t.parse(ee,m);if(K==null||!t.isValid(K))return null;const U=Id({utils:t,localeText:n,localizedDigits:M,format:m,date:K,formatDensity:p,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:o});return vd(t,K,U,X,!1)},ie=a.parseValueStr(Z,F.referenceValue,oe),te=a.updateReferenceValue(t,ie,F.referenceValue);B({value:ie,referenceValue:te,sections:V(ie,F.sections)})},ne=({activeSection:Z,newSectionValue:oe,shouldGoToNextSection:ie})=>{ie&&q<F.sections.length-1&&j(q+1);const te=a.getActiveDateManager(t,F,Z),ee=Q(q,oe),X=te.getSections(ee),K=Vw(t,X,M);let U,z;if(K!=null&&t.isValid(K)){const ce=vd(t,K,X,te.referenceDate,!0);U=te.getNewValuesFromNewActiveDate(ce),z=!0}else U=te.getNewValuesFromNewActiveDate(K),z=(K!=null&&!t.isValid(K))!=(te.date!=null&&!t.isValid(te.date));return z?B(x({},U,{sections:ee})):Y(ce=>x({},ce,U,{sections:ee,tempValueStrAndroid:null}))},se=Z=>Y(oe=>x({},oe,{tempValueStrAndroid:Z}));return R.useEffect(()=>{const Z=V(F.value);yd(Z,l),Y(oe=>x({},oe,{sections:Z}))},[m,t.locale,o]),R.useEffect(()=>{let Z;i.areValuesEqual(t,F.value,k)?Z=i.getTimezone(t,F.value)!==i.getTimezone(t,k):Z=!0,Z&&Y(oe=>x({},oe,{value:k,referenceValue:a.updateReferenceValue(t,k,oe.referenceValue),sections:V(k)}))},[k]),{state:F,activeSectionIndex:q,parsedSelectedSections:I,setSelectedSections:j,clearValue:_,clearActiveSection:H,updateSectionValue:ne,updateValueFromValueStr:le,setTempAndroidValueStr:se,getSectionsFromValue:V,sectionsValueBoundaries:N,localizedDigits:M,timezone:A}},AR=5e3,Br=e=>e.saveQuery!=null,DR=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const a=Xe(),[l,c]=R.useState(null),u=Me(()=>c(null));R.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),R.useEffect(()=>{if(l!=null){const m=setTimeout(()=>u(),AR);return()=>{clearTimeout(m)}}return()=>{}},[l,u]);const d=({keyPressed:m,sectionIndex:p},b,C)=>{const D=m.toLowerCase(),E=e[p];if(l!=null&&(!C||C(l.value))&&l.sectionIndex===p){const A=`${l.value}${D}`,k=b(A,E);if(!Br(k))return c({sectionIndex:p,value:A,sectionType:E.type}),k}const S=b(D,E);return Br(S)&&!S.saveQuery?(u(),null):(c({sectionIndex:p,value:D,sectionType:E.type}),Br(S)?null:S)},f=m=>{const p=(D,E,S)=>{const A=E.filter(k=>k.toLowerCase().startsWith(S));return A.length===0?{saveQuery:!1}:{sectionValue:A[0],shouldGoToNextSection:A.length===1}},b=(D,E,S,A)=>{const k=w=>Up(a,i,E.type,w);if(E.contentType==="letter")return p(E.format,k(E.format),D);if(S&&A!=null&&Kl(a,S).contentType==="letter"){const w=k(S),M=p(S,w,D);return Br(M)?{saveQuery:!1}:x({},M,{sectionValue:A(M.sectionValue,w)})}return{saveQuery:!1}};return d(m,(D,E)=>{switch(E.type){case"month":{const S=A=>md(a,A,a.formats.month,E.format);return b(D,E,a.formats.month,S)}case"weekDay":{const S=(A,k)=>k.indexOf(A).toString();return b(D,E,a.formats.weekday,S)}case"meridiem":return b(D,E);default:return{saveQuery:!1}}})},h=m=>{const p=(C,D)=>{const E=vr(C,r),S=Number(E),A=n[D.type]({currentDate:null,format:D.format,contentType:D.contentType});if(S>A.maximum)return{saveQuery:!1};if(S<A.minimum)return{saveQuery:!0};const k=S*10>A.maximum||E.length===A.maximum.toString().length;return{sectionValue:Gp(a,S,A,r,D),shouldGoToNextSection:k}};return d(m,(C,D)=>{if(D.contentType==="digit"||D.contentType==="digit-with-letter")return p(C,D);if(D.type==="month"){zp(a,"digit","month","MM");const E=p(C,{type:D.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Br(E))return E;const S=md(a,E.sectionValue,"MM",D.format);return x({},E,{sectionValue:S})}if(D.type==="weekDay"){const E=p(C,D);if(Br(E))return E;const S=Yi(a,D.format)[Number(E.sectionValue)-1];return x({},E,{sectionValue:S})}return{saveQuery:!1}},C=>hd(C,r))};return{applyCharacterEditing:Me(m=>{const p=e[m.sectionIndex],C=hd(m.keyPressed,r)?h(x({},m,{keyPressed:Ql(m.keyPressed,r)})):f(m);if(C==null){o(null);return}t({activeSection:p,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:u}},PR=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:l,onPaste:c,focused:u,autoFocus:d=!1},fieldValueManager:f,applyCharacterEditing:h,resetCharacterQuery:v,setSelectedSections:m,parsedSelectedSections:p,state:b,clearActiveSection:C,clearValue:D,updateSectionValue:E,updateValueFromValueStr:S,sectionOrder:A,areAllSectionsEmpty:k,sectionsValueBoundaries:w}=e,M=R.useRef(null),N=ht(r,M),V=gn(),F=Xe(),Y=Wn(),[$,O]=R.useState(!1),j=R.useMemo(()=>({syncSelectionToDOM:()=>{if(!M.current)return;const z=document.getSelection();if(!z)return;if(p==null){z.rangeCount>0&&M.current.getRoot().contains(z.getRangeAt(0).startContainer)&&z.removeAllRanges(),$&&M.current.getRoot().blur();return}if(!M.current.getRoot().contains(tn(document)))return;const ce=new window.Range;let pe;p==="all"?pe=M.current.getRoot():b.sections[p].type==="empty"?pe=M.current.getSectionContainer(p):pe=M.current.getSectionContent(p),ce.selectNodeContents(pe),pe.focus(),z.removeAllRanges(),z.addRange(ce)},getActiveSectionIndexFromDOM:()=>{const z=tn(document);return!z||!M.current||!M.current.getRoot().contains(z)?null:M.current.getSectionIndexFromDOMElement(z)},focusField:(z=0)=>{if(!M.current||j.getActiveSectionIndexFromDOM()!=null)return;const ce=ul(z,b.sections);O(!0),M.current.getSectionContent(ce).focus()},setSelectedSections:z=>{if(!M.current)return;const ce=ul(z,b.sections);O((ce==="all"?0:ce)!==null),m(z)},isFieldFocused:()=>{const z=tn(document);return!!M.current&&M.current.getRoot().contains(z)}}),[p,m,b.sections,$]),I=Me(z=>{if(!M.current)return;const ce=b.sections[z];M.current.getSectionContent(z).innerHTML=ce.value||ce.placeholder,j.syncSelectionToDOM()}),q=Me((z,...ce)=>{z.isDefaultPrevented()||!M.current||(O(!0),i?.(z,...ce),p==="all"?setTimeout(()=>{const pe=document.getSelection().getRangeAt(0).startOffset;if(pe===0){m(A.startIndex);return}let re=0,he=0;for(;he<pe&&re<b.sections.length;){const me=b.sections[re];re+=1,he+=`${me.startSeparator}${me.value||me.placeholder}${me.endSeparator}`.length}m(re-1)}):$?M.current.getRoot().contains(z.target)||m(A.startIndex):(O(!0),m(A.startIndex)))}),B=Me(z=>{if(l?.(z),!M.current||p!=="all")return;const pe=z.target.textContent??"";M.current.getRoot().innerHTML=b.sections.map(re=>`${re.startSeparator}${re.value||re.placeholder}${re.endSeparator}`).join(""),j.syncSelectionToDOM(),pe.length===0||pe.charCodeAt(0)===10?(v(),D(),m("all")):pe.length>1?S(pe):(p==="all"&&m(0),h({keyPressed:pe,sectionIndex:0}))}),Q=Me(z=>{if(c?.(z),n||p!=="all"){z.preventDefault();return}const ce=z.clipboardData.getData("text");z.preventDefault(),v(),S(ce)}),_=Me((...z)=>{if(a?.(...z),$||!M.current)return;O(!0),M.current.getSectionIndexFromDOMElement(tn(document))!=null||m(A.startIndex)}),H=Me((...z)=>{o?.(...z),setTimeout(()=>{if(!M.current)return;const ce=tn(document);!M.current.getRoot().contains(ce)&&(O(!1),m(null))})}),le=Me(z=>ce=>{ce.isDefaultPrevented()||m(z)}),ne=Me(z=>{z.preventDefault()}),se=Me(z=>()=>{m(z)}),Z=Me(z=>{if(z.preventDefault(),n||t||typeof p!="number")return;const ce=b.sections[p],pe=z.clipboardData.getData("text"),re=/^[a-zA-Z]+$/.test(pe),he=/^[0-9]+$/.test(pe),me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pe);ce.contentType==="letter"&&re||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&me?(v(),E({activeSection:ce,newSectionValue:pe,shouldGoToNextSection:!0})):!re&&!he&&(v(),S(pe))}),oe=Me(z=>{z.preventDefault(),z.dataTransfer.dropEffect="none"}),ie=Me(z=>{if(!M.current)return;const ce=z.target,pe=ce.textContent??"",re=M.current.getSectionIndexFromDOMElement(ce),he=b.sections[re];if(n||!M.current){I(re);return}if(pe.length===0){if(he.value===""){I(re);return}const me=z.nativeEvent.inputType;if(me==="insertParagraph"||me==="insertLineBreak"){I(re);return}v(),C();return}h({keyPressed:pe,sectionIndex:re}),I(re)});It(()=>{if(!(!$||!M.current)){if(p==="all")M.current.getRoot().focus();else if(typeof p=="number"){const z=M.current.getSectionContent(p);z&&z.focus()}}},[p,$]);const te=R.useMemo(()=>b.sections.reduce((z,ce)=>(z[ce.type]=w[ce.type]({currentDate:null,contentType:ce.contentType,format:ce.format}),z),{}),[w,b.sections]),ee=p==="all",X=R.useMemo(()=>b.sections.map((z,ce)=>{const pe=!ee&&!t&&!n;return{container:{"data-sectionindex":ce,onClick:le(ce)},content:{tabIndex:ee||ce>0?-1:0,contentEditable:!ee&&!t&&!n,role:"spinbutton",id:`${Y}-${z.type}`,"aria-labelledby":`${Y}-${z.type}`,"aria-readonly":n,"aria-valuenow":Gw(z,F),"aria-valuemin":te[z.type].minimum,"aria-valuemax":te[z.type].maximum,"aria-valuetext":z.value?Ww(z,F):V.empty,"aria-label":V[z.type],"aria-disabled":t,spellCheck:pe?!1:void 0,autoCapitalize:pe?"off":void 0,autoCorrect:pe?"off":void 0,[parseInt(R.version,10)>=17?"enterKeyHint":"enterkeyhint"]:pe?"next":void 0,children:z.value||z.placeholder,onInput:ie,onPaste:Z,onFocus:se(ce),onDragOver:oe,onMouseUp:ne,inputMode:z.contentType==="letter"?"text":"numeric"},before:{children:z.startSeparator},after:{children:z.endSeparator}}}),[b.sections,se,Z,oe,ie,le,ne,t,n,ee,V,F,te,Y]),K=Me(z=>{S(z.target.value)}),U=R.useMemo(()=>k?"":f.getV7HiddenInputValueFromSections(b.sections),[k,b.sections,f]);return R.useEffect(()=>{if(M.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
144
|
+
`));d&&M.current&&M.current.getSectionContent(A.startIndex).focus()},[]),{interactions:j,returnedValue:{autoFocus:d,readOnly:n,focused:u??$,sectionListRef:N,onBlur:H,onClick:q,onFocus:_,onInput:B,onPaste:Q,enableAccessibleFieldDOMStructure:!0,elements:X,tabIndex:p===0?-1:0,contentEditable:ee,value:U,onChange:K,areAllSectionsEmpty:k}}},qr=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),OR=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],c=Jl(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=qr(u).length,f=u.length,h=qr(c),v=o+(h===""?0:c.indexOf(h[0]))+l.startSeparator.length,m=v+h.length;i.push(x({},l,{start:r,end:r+d,startInInput:v,endInInput:m})),r+=d,o+=f}return i},kR=e=>{const t=Tn(),n=R.useRef(void 0),r=R.useRef(void 0),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:l,inputRef:c,placeholder:u},internalProps:{readOnly:d=!1,disabled:f=!1},parsedSelectedSections:h,activeSectionIndex:v,state:m,fieldValueManager:p,valueManager:b,applyCharacterEditing:C,resetCharacterQuery:D,updateSectionValue:E,updateValueFromValueStr:S,clearActiveSection:A,clearValue:k,setTempAndroidValueStr:w,setSelectedSections:M,getSectionsFromValue:N,areAllSectionsEmpty:V,localizedDigits:F}=e,Y=R.useRef(null),$=ht(c,Y),O=R.useMemo(()=>OR(m.sections,F,t),[m.sections,F,t]),j=R.useMemo(()=>({syncSelectionToDOM:()=>{if(!Y.current)return;if(h==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}if(Y.current!==tn(document))return;const ie=Y.current.scrollTop;if(h==="all")Y.current.select();else{const te=O[h],ee=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,X=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ee!==Y.current.selectionStart||X!==Y.current.selectionEnd)&&Y.current===tn(document)&&Y.current.setSelectionRange(ee,X),clearTimeout(r.current),r.current=setTimeout(()=>{Y.current&&Y.current===tn(document)&&Y.current.selectionStart===Y.current.selectionEnd&&(Y.current.selectionStart!==ee||Y.current.selectionEnd!==X)&&j.syncSelectionToDOM()})}Y.current.scrollTop=ie},getActiveSectionIndexFromDOM:()=>{const ie=Y.current.selectionStart??0,te=Y.current.selectionEnd??0;if(ie===0&&te===0)return null;const ee=ie<=O[0].startInInput?1:O.findIndex(X=>X.startInInput-X.startSeparator.length>ie);return ee===-1?O.length-1:ee-1},focusField:(ie=0)=>{tn(document)!==Y.current&&(Y.current?.focus(),M(ie))},setSelectedSections:ie=>M(ie),isFieldFocused:()=>Y.current===tn(document)}),[Y,h,O,M]),I=()=>{const ie=Y.current.selectionStart??0;let te;ie<=O[0].startInInput||ie>=O[O.length-1].endInInput?te=1:te=O.findIndex(X=>X.startInInput-X.startSeparator.length>ie);const ee=te===-1?O.length-1:te-1;M(ee)},q=Me((...ie)=>{o?.(...ie);const te=Y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==Y.current||v==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?M("all"):I())})}),B=Me((ie,...te)=>{ie.isDefaultPrevented()||(i?.(ie,...te),I())}),Q=Me(ie=>{if(a?.(ie),ie.preventDefault(),d||f)return;const te=ie.clipboardData.getData("text");if(typeof h=="number"){const ee=m.sections[h],X=/^[a-zA-Z]+$/.test(te),K=/^[0-9]+$/.test(te),U=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ee.contentType==="letter"&&X||ee.contentType==="digit"&&K||ee.contentType==="digit-with-letter"&&U){D(),E({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!0});return}if(X||K)return}D(),S(te)}),_=Me((...ie)=>{l?.(...ie),M(null)}),H=Me(ie=>{if(d)return;const te=ie.target.value;if(te===""){D(),k();return}const ee=ie.nativeEvent.data,X=ee&&ee.length>1,K=X?ee:te,U=qr(K);if(h==="all"&&M(v),v==null||X){S(X?ee:U);return}let z;if(h==="all"&&U.length===1)z=U;else{const ce=qr(p.getV6InputValueFromSections(O,F,t));let pe=-1,re=-1;for(let Ee=0;Ee<ce.length;Ee+=1)pe===-1&&ce[Ee]!==U[Ee]&&(pe=Ee),re===-1&&ce[ce.length-Ee-1]!==U[U.length-Ee-1]&&(re=Ee);const he=O[v];if(pe<he.start||ce.length-re-1>he.end)return;const Ce=U.length-ce.length+he.end-qr(he.endSeparator||"").length;z=U.slice(he.start+qr(he.startSeparator||"").length,Ce)}if(z.length===0){Yw()&&w(K),D(),A();return}C({keyPressed:z,sectionIndex:v})}),le=R.useMemo(()=>u!==void 0?u:p.getV6InputValueFromSections(N(b.emptyValue),F,t),[u,p,N,b.emptyValue,F,t]),ne=R.useMemo(()=>m.tempValueStrAndroid??p.getV6InputValueFromSections(m.sections,F,t),[m.sections,p,m.tempValueStrAndroid,F,t]);R.useEffect(()=>(Y.current&&Y.current===tn(document)&&M("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const se=R.useMemo(()=>v==null||m.sections[v].contentType==="letter"?"text":"numeric",[v,m.sections]),oe=!(Y.current&&Y.current===tn(document))&&V;return{interactions:j,returnedValue:{readOnly:d,onBlur:_,onClick:B,onFocus:q,onPaste:Q,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:le,inputMode:se,autoComplete:"off",value:oe?"":ne,onChange:H}}},gh=e=>{const t=Xe(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:c,error:u,clearable:d,onClear:f},fieldValueManager:h,valueManager:v,validator:m}=e,p=Tn(),b=MR(e),{state:C,activeSectionIndex:D,parsedSelectedSections:E,setSelectedSections:S,clearValue:A,clearActiveSection:k,updateSectionValue:w,setTempAndroidValueStr:M,sectionsValueBoundaries:N,localizedDigits:V,timezone:F}=b,Y=DR({sections:C.sections,updateSectionValue:w,sectionsValueBoundaries:N,localizedDigits:V,setTempAndroidValueStr:M,timezone:F}),{resetCharacterQuery:$}=Y,O=v.areValuesEqual(t,C.value,v.emptyValue),j=i?PR:kR,I=R.useMemo(()=>Uw(C.sections,p&&!i),[C.sections,p,i]),{returnedValue:q,interactions:B}=j(x({},e,b,Y,{areAllSectionsEmpty:O,sectionOrder:I})),Q=Me(Z=>{if(c?.(Z),!a)switch(!0){case((Z.ctrlKey||Z.metaKey)&&String.fromCharCode(Z.keyCode)==="A"&&!Z.shiftKey&&!Z.altKey):{Z.preventDefault(),S("all");break}case Z.key==="ArrowRight":{if(Z.preventDefault(),E==null)S(I.startIndex);else if(E==="all")S(I.endIndex);else{const oe=I.neighbors[E].rightIndex;oe!==null&&S(oe)}break}case Z.key==="ArrowLeft":{if(Z.preventDefault(),E==null)S(I.endIndex);else if(E==="all")S(I.startIndex);else{const oe=I.neighbors[E].leftIndex;oe!==null&&S(oe)}break}case Z.key==="Delete":{if(Z.preventDefault(),l)break;E==null||E==="all"?A():k(),$();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Z.key):{if(Z.preventDefault(),l||D==null)break;E==="all"&&S(D);const oe=C.sections[D],ie=h.getActiveDateManager(t,C,oe),te=Bw(t,F,oe,Z.key,N,V,ie.date,{minutesStep:o});w({activeSection:oe,newSectionValue:te,shouldGoToNextSection:!1});break}}});It(()=>{B.syncSelectionToDOM()});const{hasValidationError:_}=mh({props:n,validator:m,timezone:F,value:C.value,onError:n.onError}),H=R.useMemo(()=>u!==void 0?u:_,[_,u]);R.useEffect(()=>{!H&&D==null&&$()},[C.referenceValue,D,H]),R.useEffect(()=>{C.tempValueStrAndroid!=null&&D!=null&&($(),k())},[C.sections]),R.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:B.getActiveSectionIndexFromDOM,setSelectedSections:B.setSelectedSections,focusField:B.focusField,isFieldFocused:B.isFieldFocused}));const le=Me((Z,...oe)=>{Z.preventDefault(),f?.(Z,...oe),A(),B.isFieldFocused()?S(I.startIndex):B.focusField(0)}),ne={onKeyDown:Q,onClear:le,error:H,clearable:!!(d&&!O&&!l&&!a)},se={disabled:a,readOnly:l};return x({},e.forwardedProps,ne,se,q)};function IR(e){return Ie("MuiInputAdornment",e)}const Fd=ke("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Nd;const FR=["children","className","component","disablePointerEvents","disableTypography","position","variant"],NR=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},BR=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Te(o)}`,a,r&&"hiddenLabel",i&&`size${Te(i)}`]};return Fe(l,IR,t)},jR=fe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:NR})(({theme:e,ownerState:t})=>x({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Fd.positionStart}&:not(.${Fd.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),yh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d}=r,f=ve(r,FR),h=Sn()||{};let v=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!v&&(v=h.variant);const m=x({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:v}),p=BR(m);return T.jsx(rs.Provider,{value:null,children:T.jsx(jR,x({as:a,ownerState:m,className:we(p.root,i),ref:n},f,{children:typeof o=="string"&&!c?T.jsx(Fn,{color:"text.secondary",children:o}):T.jsxs(R.Fragment,{children:[u==="start"?Nd||(Nd=T.jsx("span",{className:"notranslate",children:""})):null,o]})}))})});process.env.NODE_ENV!=="production"&&(yh.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const VR=["clearable","onClear","InputProps","sx","slots","slotProps"],$R=["ownerState"],bh=e=>{const t=gn(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:l}=e,c=ve(e,VR),u=a?.clearButton??so,d=rt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),f=ve(d,$R),h=a?.clearIcon??$T,v=rt({elementType:h,externalSlotProps:l?.clearIcon,ownerState:{}});return x({},c,{InputProps:x({},o,{endAdornment:T.jsxs(R.Fragment,{children:[n&&T.jsx(yh,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:T.jsx(u,x({},f,{onClick:r,children:T.jsx(h,x({fontSize:"small"},v))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},LR=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],vh=(e,t)=>R.useMemo(()=>{const n=x({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return LR.forEach(o),t==="date"?fl.forEach(o):t==="time"?pl.forEach(o):t==="date-time"&&(fl.forEach(o),pl.forEach(o),ph.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),_R=R.createContext(null);function qR(e){const{contextValue:t,localeText:n,children:r}=e;return T.jsx(_R.Provider,{value:t,children:T.jsx(Vi,{localeText:n,children:r})})}const YR=e=>{const t=Xe(),n=es();return x({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:fn(t,e.minDate,n.minDate),maxDate:fn(t,e.maxDate,n.maxDate)})},UR=e=>{const t=Xe(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return x({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r})},WR=e=>{const t=YR(e),{forwardedProps:n,internalProps:r}=vh(t,"date");return gh({forwardedProps:n,internalProps:r,valueManager:en,fieldValueManager:Hp,validator:Xi,valueType:"date"})};function GR(e){return Ie("MuiPickersTextField",e)}ke("MuiPickersTextField",["root","focused","disabled","error","required"]);function zR(e){return Ie("MuiPickersInputBase",e)}const Hr=ke("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function HR(e){return Ie("MuiPickersSectionList",e)}const wo=ke("MuiPickersSectionList",["root","section","sectionContent"]),KR=["slots","slotProps","elements","sectionListRef"],Ch=fe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),xh=fe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Th=fe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wh=fe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),QR=e=>{const{classes:t}=e;return Fe({root:["root"],section:["section"],sectionContent:["sectionContent"]},HR,t)};function Eh(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=t?.section??xh,a=rt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??wh,c=rt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Th,d=rt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),f=rt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return T.jsxs(i,x({},a,{children:[T.jsx(u,x({},d)),T.jsx(l,x({},c)),T.jsx(u,x({},f))]}))}process.env.NODE_ENV!=="production"&&(Eh.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const Sh=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:l}=r,c=ve(r,KR),u=QR(r),d=R.useRef(null),f=ht(n,d),h=p=>{if(!d.current)throw new Error(`MUI X: Cannot call sectionListRef.${p} before the mount of the component.`);return d.current};R.useImperativeHandle(l,()=>({getRoot(){return h("getRoot")},getSectionContainer(p){return h("getSectionContainer").querySelector(`.${wo.section}[data-sectionindex="${p}"]`)},getSectionContent(p){return h("getSectionContent").querySelector(`.${wo.section}[data-sectionindex="${p}"] .${wo.sectionContent}`)},getSectionIndexFromDOMElement(p){const b=h("getSectionIndexFromDOMElement");if(p==null||!b.contains(p))return null;let C=null;return p.classList.contains(wo.section)?C=p:p.classList.contains(wo.sectionContent)&&(C=p.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const v=o?.root??Ch,m=rt({elementType:v,externalSlotProps:i?.root,externalForwardedProps:c,additionalProps:{ref:f,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return T.jsx(v,x({},m,{children:m.contentEditable?a.map(({content:p,before:b,after:C})=>`${b.children}${p.children}${C.children}`).join(""):T.jsx(R.Fragment,{children:a.map((p,b)=>T.jsx(Eh,{slots:o,slotProps:i,element:p,classes:u},b))})}))});process.env.NODE_ENV!=="production"&&(Sh.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const JR=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],ZR=e=>Math.round(e*1e5)/1e5,ea=fe("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>x({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${ZR(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),uc=fe(Ch,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),XR=fe(xh,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),e1=fe(wh,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),t1=fe(Th,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),n1=fe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(x({},JC)),r1=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:l,size:c,endAdornment:u,startAdornment:d}=e,f={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${Te(l)}`,c==="small"&&"inputSizeSmall",!!d&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Fe(f,zR,o)},ta=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:h,slotProps:v,contentEditable:m,tabIndex:p,onInput:b,onPaste:C,onKeyDown:D,name:E,readOnly:S,inputProps:A,inputRef:k,sectionListRef:w}=r,M=ve(r,JR),N=R.useRef(null),V=ht(n,N),F=ht(A?.ref,k),Y=Tn(),$=Sn();if(!$)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const O=_=>{if($.disabled){_.stopPropagation();return}$.onFocus?.(_)};R.useEffect(()=>{$&&$.setAdornedStart(!!d)},[$,d]),R.useEffect(()=>{$&&(i?$.onEmpty():$.onFilled())},[$,i]);const j=x({},r,$,{isRtl:Y}),I=r1(j),q=h?.root||ea,B=rt({elementType:q,externalSlotProps:v?.root,externalForwardedProps:M,additionalProps:{"aria-invalid":$.error,ref:V},className:I.root,ownerState:j}),Q=h?.input||uc;return T.jsxs(q,x({},B,{children:[d,T.jsx(Sh,{sectionListRef:w,elements:o,contentEditable:m,tabIndex:p,className:I.sectionsContainer,onFocus:O,onBlur:$.onBlur,onInput:b,onPaste:C,onKeyDown:D,slots:{root:Q,section:XR,sectionContent:e1,sectionSeparator:t1},slotProps:{root:{ownerState:j},sectionContent:{className:Hr.sectionContent},sectionSeparator:({position:_})=>({className:_==="before"?Hr.sectionBefore:Hr.sectionAfter})}}),u,f?f(x({},$)):null,T.jsx(n1,x({name:E,className:I.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:$.required,disabled:$.disabled},A,{ref:F}))]}))});process.env.NODE_ENV!=="production"&&(ta.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function o1(e){return Ie("MuiPickersOutlinedInput",e)}const vn=x({},Hr,ke("MuiPickersOutlinedInput",["root","notchedOutline","input"])),s1=["children","className","label","notched","shrink"],i1=fe("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Bd=fe("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),a1=fe("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function l1(e){const{className:t,label:n}=e,r=ve(e,s1),o=n!=null&&n!=="",i=x({},e,{withLabel:o});return T.jsx(i1,x({"aria-hidden":!0,className:t},r,{ownerState:i,children:T.jsx(a1,{ownerState:i,children:o?T.jsx(Bd,{children:n}):T.jsx(Bd,{className:"notranslate",children:""})})}))}const c1=["label","autoFocus","ownerState","notched"],u1=fe(ea,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${vn.disabled}`]:{[`& .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${vn.focused}:not(.${vn.error}) .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),d1=fe(uc,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),f1=e=>{const{classes:t}=e,r=Fe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},o1,t);return x({},t,r)},dc=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:a}=r,l=ve(r,c1),c=Sn(),u=x({},r,i,c,{color:c?.color||"primary"}),d=f1(u);return T.jsx(ta,x({slots:{root:u1,input:d1},renderSuffix:f=>T.jsx(l1,{shrink:!!(a||f.adornedStart||f.focused||f.filled),notched:!!(a||f.adornedStart||f.focused||f.filled),className:d.notchedOutline,label:o!=null&&o!==""&&c?.required?T.jsxs(R.Fragment,{children:[o," ","*"]}):o,ownerState:u})},l,{label:o,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(dc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});dc.muiName="Input";function p1(e){return Ie("MuiPickersFilledInput",e)}const ur=x({},Hr,ke("MuiPickersFilledInput",["root","underline","input"])),h1=["label","autoFocus","disableUnderline","ownerState"],m1=fe(ea,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>SC(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ur.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ur.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ur.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ur.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})`:n}`,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(.${ur.disabled}, .${ur.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ur.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),g1=fe(uc,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),y1=e=>{const{classes:t,disableUnderline:n}=e,o=Fe({root:["root",!n&&"underline"],input:["input"]},p1,t);return x({},t,o)},fc=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,l=ve(r,h1),c=Sn(),u=x({},r,a,c,{color:c?.color||"primary"}),d=y1(u);return T.jsx(ta,x({slots:{root:m1,input:g1},slotProps:{root:{disableUnderline:i}}},l,{label:o,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(fc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});fc.muiName="Input";function b1(e){return Ie("MuiPickersFilledInput",e)}const Eo=x({},Hr,ke("MuiPickersInput",["root","input"])),v1=["label","autoFocus","disableUnderline","ownerState"],C1=fe(ea,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Eo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Eo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Eo.disabled}, .${Eo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Eo.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),x1=e=>{const{classes:t,disableUnderline:n}=e,o=Fe({root:["root",!n&&"underline"],input:["input"]},b1,t);return x({},t,o)},pc=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:a}=r,l=ve(r,v1),c=Sn(),u=x({},r,a,c,{disableUnderline:i,color:c?.color||"primary"}),d=x1(u);return T.jsx(ta,x({slots:{root:C1}},l,{label:o,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(pc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});pc.muiName="Input";const T1=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],w1={standard:pc,filled:fc,outlined:dc},E1=fe(ec,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),S1=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return Fe({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},GR,r)},hc=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,color:l="primary",disabled:c=!1,error:u=!1,variant:d="outlined",required:f=!1,InputProps:h,inputProps:v,inputRef:m,sectionListRef:p,elements:b,areAllSectionsEmpty:C,onClick:D,onKeyDown:E,onKeyUp:S,onPaste:A,onInput:k,endAdornment:w,startAdornment:M,tabIndex:N,contentEditable:V,focused:F,value:Y,onChange:$,fullWidth:O,id:j,name:I,helperText:q,FormHelperTextProps:B,label:Q,InputLabelProps:_}=r,H=ve(r,T1),le=R.useRef(null),ne=ht(n,le),se=Wn(j),Z=q&&se?`${se}-helper-text`:void 0,oe=Q&&se?`${se}-label`:void 0,ie=x({},r,{color:l,disabled:c,error:u,focused:F,required:f,variant:d}),te=S1(ie),ee=w1[d];return T.jsxs(E1,x({className:we(te.root,a),ref:ne,focused:F,onFocus:o,onBlur:i,disabled:c,variant:d,error:u,color:l,fullWidth:O,required:f,ownerState:ie},H,{children:[T.jsx(Xl,x({htmlFor:se,id:oe},_,{children:Q})),T.jsx(ee,x({elements:b,areAllSectionsEmpty:C,onClick:D,onKeyDown:E,onKeyUp:S,onInput:k,onPaste:A,endAdornment:w,startAdornment:M,tabIndex:N,contentEditable:V,value:Y,onChange:$,id:se,fullWidth:O,inputProps:v,inputRef:m,sectionListRef:p,label:Q,name:I,role:"group","aria-labelledby":oe,"aria-describedby":Z,"aria-live":Z?"polite":void 0},h)),q&&T.jsx(tc,x({id:Z},B,{children:q}))]}))});process.env.NODE_ENV!=="production"&&(hc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const R1=["enableAccessibleFieldDOMStructure"],M1=["InputProps","readOnly"],A1=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Rh=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,R1);if(t){const{InputProps:f,readOnly:h}=n,v=ve(n,M1);return x({},v,{InputProps:x({},f??{},{readOnly:h})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u}=n,d=ve(n,A1);return x({},d,{InputProps:x({},l??{},{readOnly:a}),inputProps:x({},c??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:u})})},D1=["slots","slotProps","InputProps","inputProps"],Mh=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:a,inputProps:l}=r,c=ve(r,D1),u=r,d=o?.textField??(t.enableAccessibleFieldDOMStructure?hc:lc),f=rt({elementType:d,externalSlotProps:i?.textField,externalForwardedProps:c,additionalProps:{ref:n},ownerState:u});f.inputProps=x({},l,f.inputProps),f.InputProps=x({},a,f.InputProps);const h=WR(f),v=Rh(h),m=bh(x({},v,{slots:o,slotProps:i}));return T.jsx(d,x({},m))});process.env.NODE_ENV!=="production"&&(Mh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const P1=e=>{const t=UR(e),{forwardedProps:n,internalProps:r}=vh(t,"time");return gh({forwardedProps:n,internalProps:r,valueManager:en,fieldValueManager:Hp,validator:cc,valueType:"time"})},O1=["slots","slotProps","InputProps","inputProps"],Ah=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTimeField"}),{slots:o,slotProps:i,InputProps:a,inputProps:l}=r,c=ve(r,O1),u=r,d=o?.textField??(t.enableAccessibleFieldDOMStructure?hc:lc),f=rt({elementType:d,externalSlotProps:i?.textField,externalForwardedProps:c,ownerState:u,additionalProps:{ref:n}});f.inputProps=x({},l,f.inputProps),f.InputProps=x({},a,f.InputProps);const h=P1(f),v=Rh(h),m=bh(x({},v,{slots:o,slotProps:i}));return T.jsx(d,x({},m))});process.env.NODE_ENV!=="production"&&(Ah.propTypes={ampm:s.bool,autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableIgnoringDatePartForTimeValidation:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Ft,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxTime:s.object,minTime:s.object,minutesStep:s.number,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableTime:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const Dh=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:l})=>{const c=Tr();return R.useCallback(u=>Xi({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,r,o,i,a,l])},k1=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return x({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let a=n.setTimezone(r.currentMonth,i);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),x({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return x({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return x({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},I1=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f}=e,h=Xe(),v=R.useRef(k1(!!u,i,h)).current,m=R.useMemo(()=>en.getInitialReferenceValue({value:t,utils:h,timezone:f,props:e,referenceDate:n,granularity:Cn.day}),[n,f]),[p,b]=R.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:h.startOfMonth(m),slideDirection:"left"});R.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:h.getTimezone(m)})},[m,h]);const C=R.useCallback(k=>{b(x({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),D=R.useCallback(k=>{const w=k;h.isSameMonth(w,p.currentMonth)||C({newMonth:h.startOfMonth(w),direction:h.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,C,h]),E=Dh({shouldDisableDate:d,minDate:l,maxDate:a,disableFuture:r,disablePast:o,timezone:f}),S=R.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),A=Me((k,w)=>{E(k)||b({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:w})});return{referenceDate:m,calendarState:p,changeMonth:D,changeFocusedDay:A,isDateDisabled:E,onMonthSwitchingAnimationEnd:S,handleChangeMonth:C}},F1=e=>Ie("MuiPickersFadeTransitionGroup",e);ke("MuiPickersFadeTransitionGroup",["root"]);const N1=e=>{const{classes:t}=e;return Fe({root:["root"]},F1,t)},B1=fe(ns,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Ph(e){const t=Qe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=N1(t),l=oo();return o?n:T.jsx(B1,{className:we(a.root,r),children:T.jsx(ao,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}const j1=e=>Ie("MuiPickersSlideTransition",e),an=ke("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),V1=["children","className","reduceAnimations","slideDirection","transKey","classes"],$1=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Fe(r,j1,t)},L1=fe(ns,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${an["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${an["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${an.slideEnterActive}`]:t.slideEnterActive},{[`.${an.slideExit}`]:t.slideExit},{[`.${an["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${an["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${an["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${an["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${an.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${an.slideExit}`]:{transform:"translate(0%)"},[`& .${an["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${an["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function _1(e){const t=Qe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=ve(t,V1),l=$1(t),c=oo();if(o)return T.jsx("div",{className:we(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return T.jsx(L1,{className:we(l.root,r),childFactory:d=>R.cloneElement(d,{classNames:u}),role:"presentation",children:T.jsx(_l,x({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const q1=e=>Ie("MuiDayCalendar",e);ke("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Y1=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],U1=["ownerState"],W1=e=>{const{classes:t}=e;return Fe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},q1,t)},Oh=(Wo+Li*2)*6,G1=fe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z1=fe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),H1=fe(Fn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),K1=fe(Fn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Q1=fe(Fn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>x({},e.typography.caption,{width:Wo,height:Wo,padding:0,margin:`0 ${Li}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),J1=fe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Oh}),Z1=fe(_1,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Oh}),X1=fe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),eM=fe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Li}px 0`,display:"flex",justifyContent:"center"});function tM(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=ve(e,Y1);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:v,slotProps:m,timezone:p}=t,b=Xe(),C=ts(p),D=r!==null&&b.isSameDay(n,r),E=o.some(Y=>b.isSameDay(Y,n)),S=b.isSameDay(n,C),A=v?.day??dE,k=rt({elementType:A,externalSlotProps:m?.day,additionalProps:x({disableHighlightToday:d,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":b.toJsDate(n).valueOf()},c),ownerState:x({},t,{day:n,selected:E})}),w=ve(k,U1),M=R.useMemo(()=>u||i(n),[u,i,n]),N=R.useMemo(()=>b.getMonth(n)!==a,[b,n,a]),V=R.useMemo(()=>{const Y=b.startOfMonth(b.setMonth(n,a));return h?b.isSameDay(n,b.startOfWeek(Y)):b.isSameDay(n,Y)},[a,n,h,b]),F=R.useMemo(()=>{const Y=b.endOfMonth(b.setMonth(n,a));return h?b.isSameDay(n,b.endOfWeek(Y)):b.isSameDay(n,Y)},[a,n,h,b]);return T.jsx(A,x({},w,{day:n,disabled:M,autoFocus:l&&D,today:S,outsideCurrentMonth:N,isFirstVisibleCell:V,isLastVisibleCell:F,selected:E,tabIndex:D?0:-1,"aria-selected":E,"aria-current":S?"date":void 0}))}function nM(e){const t=Qe({props:e,name:"MuiDayCalendar"}),n=Xe(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:a,focusedDay:l,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:f,reduceAnimations:h,renderLoading:v=()=>T.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:p,disablePast:b,disableFuture:C,minDate:D,maxDate:E,shouldDisableDate:S,shouldDisableMonth:A,shouldDisableYear:k,dayOfWeekFormatter:w=re=>n.format(re,"weekdayShort").charAt(0).toUpperCase(),hasFocus:M,onFocusedViewChange:N,gridLabelId:V,displayWeekNumber:F,fixedWeekNumber:Y,autoFocus:$,timezone:O}=t,j=ts(O),I=W1(t),q=Tn(),B=Dh({shouldDisableDate:S,shouldDisableMonth:A,shouldDisableYear:k,minDate:D,maxDate:E,disablePast:b,disableFuture:C,timezone:O}),Q=gn(),[_,H]=In({name:"DayCalendar",state:"hasFocus",controlled:M,default:$??!1}),[le,ne]=R.useState(()=>l||j),se=Me(re=>{f||u(re)}),Z=re=>{B(re)||(r(re),ne(re),N?.(!0),H(!0))},oe=Me((re,he)=>{switch(re.key){case"ArrowUp":Z(n.addDays(he,-7)),re.preventDefault();break;case"ArrowDown":Z(n.addDays(he,7)),re.preventDefault();break;case"ArrowLeft":{const me=n.addDays(he,q?1:-1),Ce=n.addMonths(he,q?1:-1),Ee=Fo({utils:n,date:me,minDate:q?me:n.startOfMonth(Ce),maxDate:q?n.endOfMonth(Ce):me,isDateDisabled:B,timezone:O});Z(Ee||me),re.preventDefault();break}case"ArrowRight":{const me=n.addDays(he,q?-1:1),Ce=n.addMonths(he,q?-1:1),Ee=Fo({utils:n,date:me,minDate:q?n.startOfMonth(Ce):me,maxDate:q?me:n.endOfMonth(Ce),isDateDisabled:B,timezone:O});Z(Ee||me),re.preventDefault();break}case"Home":Z(n.startOfWeek(he)),re.preventDefault();break;case"End":Z(n.endOfWeek(he)),re.preventDefault();break;case"PageUp":Z(n.addMonths(he,1)),re.preventDefault();break;case"PageDown":Z(n.addMonths(he,-1)),re.preventDefault();break}}),ie=Me((re,he)=>Z(he)),te=Me((re,he)=>{_&&n.isSameDay(le,he)&&N?.(!1)}),ee=n.getMonth(i),X=n.getYear(i),K=R.useMemo(()=>a.filter(re=>!!re).map(re=>n.startOfDay(re)),[n,a]),U=`${X}-${ee}`,z=R.useMemo(()=>R.createRef(),[U]),ce=R.useMemo(()=>{const re=n.startOfMonth(i),he=n.endOfMonth(i);return B(le)||n.isAfterDay(le,he)||n.isBeforeDay(le,re)?Fo({utils:n,date:le,minDate:re,maxDate:he,disablePast:b,disableFuture:C,isDateDisabled:B,timezone:O}):le},[i,C,b,le,B,n,O]),pe=R.useMemo(()=>{const re=n.getWeekArray(i);let he=n.addMonths(i,1);for(;Y&&re.length<Y;){const me=n.getWeekArray(he),Ce=n.isSameDay(re[re.length-1][0],me[0][0]);me.slice(Ce?1:0).forEach(Ee=>{re.length<Y&&re.push(Ee)}),he=n.addMonths(he,1)}return re},[i,Y,n]);return T.jsxs(G1,{role:"grid","aria-labelledby":V,className:I.root,children:[T.jsxs(z1,{role:"row",className:I.header,children:[F&&T.jsx(K1,{variant:"caption",role:"columnheader","aria-label":Q.calendarWeekNumberHeaderLabel,className:I.weekNumberLabel,children:Q.calendarWeekNumberHeaderText}),gw(n,j).map((re,he)=>T.jsx(H1,{variant:"caption",role:"columnheader","aria-label":n.format(re,"weekday"),className:I.weekDayLabel,children:w(re)},he.toString()))]}),c?T.jsx(J1,{className:I.loadingContainer,children:v()}):T.jsx(Z1,x({transKey:U,onExited:d,reduceAnimations:h,slideDirection:m,className:we(o,I.slideTransition)},p,{nodeRef:z,children:T.jsx(X1,{ref:z,role:"rowgroup",className:I.monthContainer,children:pe.map((re,he)=>T.jsxs(eM,{role:"row",className:I.weekContainer,"aria-rowindex":he+1,children:[F&&T.jsx(Q1,{className:I.weekNumber,role:"rowheader","aria-label":Q.calendarWeekNumberAriaLabelText(n.getWeekNumber(re[0])),children:Q.calendarWeekNumberText(n.getWeekNumber(re[0]))}),re.map((me,Ce)=>T.jsx(tM,{parentProps:t,day:me,selectedDays:K,focusableDay:ce,onKeyDown:oe,onFocus:ie,onBlur:te,onDaySelect:se,isDateDisabled:B,currentMonthNumber:ee,isViewFocused:_,"aria-colindex":Ce+1},me.toString()))]},`week-${re[0]}`))})}))]})}function rM(e){return Ie("MuiPickersMonth",e)}const As=ke("MuiPickersMonth",["root","monthButton","disabled","selected"]),oM=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],sM=e=>{const{disabled:t,selected:n,classes:r}=e;return Fe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},rM,r)},iM=fe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),aM=fe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${As.disabled}`]:t.disabled},{[`&.${As.selected}`]:t.selected}]})(({theme:e})=>x({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Zr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Zr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${As.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${As.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),lM=R.memo(function(t){const n=Qe({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:a,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:f,onFocus:h,onBlur:v,"aria-current":m,"aria-label":p,slots:b,slotProps:C}=n,D=ve(n,oM),E=R.useRef(null),S=sM(n);It(()=>{r&&E.current?.focus()},[r]);const A=b?.monthButton??aM,k=rt({elementType:A,externalSlotProps:C?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:E,type:"button",role:"radio","aria-current":m,"aria-checked":l,"aria-label":p,onClick:w=>d(w,c),onKeyDown:w=>f(w,c),onFocus:w=>h(w,c),onBlur:w=>v(w,c)},ownerState:n,className:S.monthButton});return T.jsx(iM,x({className:we(S.root,o),ownerState:n},D,{children:T.jsx(A,x({},k))}))});function cM(e){return Ie("MuiMonthCalendar",e)}ke("MuiMonthCalendar",["root"]);const uM=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],dM=e=>{const{classes:t}=e;return Fe({root:["root"]},cM,t)};function fM(e,t){const n=Xe(),r=es(),o=Qe({props:e,name:t});return x({disableFuture:!1,disablePast:!1},o,{minDate:fn(n,o.minDate,r.minDate),maxDate:fn(n,o.maxDate,r.maxDate)})}const pM=fe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:_i,boxSizing:"border-box"}),kh=R.forwardRef(function(t,n){const r=fM(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:f,minDate:h,onChange:v,shouldDisableMonth:m,readOnly:p,autoFocus:b=!1,onMonthFocus:C,hasFocus:D,onFocusedViewChange:E,monthsPerRow:S=3,timezone:A,gridLabelId:k,slots:w,slotProps:M}=r,N=ve(r,uM),{value:V,handleValueChange:F,timezone:Y}=qi({name:"MonthCalendar",timezone:A,value:i,defaultValue:a,referenceDate:l,onChange:v,valueManager:en}),$=ts(Y),O=Tn(),j=Xe(),I=R.useMemo(()=>en.getInitialReferenceValue({value:V,utils:j,props:r,timezone:Y,referenceDate:l,granularity:Cn.month}),[]),q=r,B=dM(q),Q=R.useMemo(()=>j.getMonth($),[j,$]),_=R.useMemo(()=>V!=null?j.getMonth(V):null,[V,j]),[H,le]=R.useState(()=>_||j.getMonth(I)),[ne,se]=In({name:"MonthCalendar",state:"hasFocus",controlled:D,default:b??!1}),Z=Me(U=>{se(U),E&&E(U)}),oe=R.useCallback(U=>{const z=j.startOfMonth(d&&j.isAfter($,h)?$:h),ce=j.startOfMonth(u&&j.isBefore($,f)?$:f),pe=j.startOfMonth(U);return j.isBefore(pe,z)||j.isAfter(pe,ce)?!0:m?m(pe):!1},[u,d,f,h,$,m,j]),ie=Me((U,z)=>{if(p)return;const ce=j.setMonth(V??I,z);F(ce)}),te=Me(U=>{oe(j.setMonth(V??I,U))||(le(U),Z(!0),C&&C(U))});R.useEffect(()=>{le(U=>_!==null&&U!==_?_:U)},[_]);const ee=Me((U,z)=>{switch(U.key){case"ArrowUp":te((12+z-3)%12),U.preventDefault();break;case"ArrowDown":te((12+z+3)%12),U.preventDefault();break;case"ArrowLeft":te((12+z+(O?1:-1))%12),U.preventDefault();break;case"ArrowRight":te((12+z+(O?-1:1))%12),U.preventDefault();break}}),X=Me((U,z)=>{te(z)}),K=Me((U,z)=>{H===z&&Z(!1)});return T.jsx(pM,x({ref:n,className:we(B.root,o),ownerState:q,role:"radiogroup","aria-labelledby":k},N,{children:Gl(j,V??I).map(U=>{const z=j.getMonth(U),ce=j.format(U,"monthShort"),pe=j.format(U,"month"),re=z===_,he=c||oe(U);return T.jsx(lM,{selected:re,value:z,onClick:ie,onKeyDown:ee,autoFocus:ne&&z===H,disabled:he,tabIndex:z===H&&!he?0:-1,onFocus:X,onBlur:K,"aria-current":Q===z?"date":void 0,"aria-label":pe,monthsPerRow:S,slots:w,slotProps:M,children:ce},ce)})}))});process.env.NODE_ENV!=="production"&&(kh.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function hM(e){return Ie("MuiPickersYear",e)}const Ds=ke("MuiPickersYear",["root","yearButton","selected","disabled"]),mM=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],gM=e=>{const{disabled:t,selected:n,classes:r}=e;return Fe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},hM,r)},yM=fe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),bM=fe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Ds.disabled}`]:t.disabled},{[`&.${Ds.selected}`]:t.selected}]})(({theme:e})=>x({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Zr(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Zr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ds.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ds.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),vM=R.memo(function(t){const n=Qe({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:f,onFocus:h,onBlur:v,"aria-current":m,slots:p,slotProps:b}=n,C=ve(n,mM),D=R.useRef(null),E=gM(n);It(()=>{r&&D.current?.focus()},[r]);const S=p?.yearButton??bM,A=rt({elementType:S,externalSlotProps:b?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:D,type:"button",role:"radio","aria-current":m,"aria-checked":l,onClick:k=>d(k,c),onKeyDown:k=>f(k,c),onFocus:k=>h(k,c),onBlur:k=>v(k,c)},ownerState:n,className:E.yearButton});return T.jsx(yM,x({className:we(E.root,o),ownerState:n},C,{children:T.jsx(S,x({},A))}))});function CM(e){return Ie("MuiYearCalendar",e)}ke("MuiYearCalendar",["root"]);const xM=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],TM=e=>{const{classes:t}=e;return Fe({root:["root"]},CM,t)};function wM(e,t){const n=Xe(),r=es(),o=Qe({props:e,name:t});return x({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:fn(n,o.minDate,r.minDate),maxDate:fn(n,o.maxDate,r.maxDate)})}const EM=fe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:_i,maxHeight:XT,boxSizing:"border-box",position:"relative"}),Ih=R.forwardRef(function(t,n){const r=wM(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:a,defaultValue:l,referenceDate:c,disabled:u,disableFuture:d,disablePast:f,maxDate:h,minDate:v,onChange:m,readOnly:p,shouldDisableYear:b,onYearFocus:C,hasFocus:D,onFocusedViewChange:E,yearsOrder:S="asc",yearsPerRow:A,timezone:k,gridLabelId:w,slots:M,slotProps:N}=r,V=ve(r,xM),{value:F,handleValueChange:Y,timezone:$}=qi({name:"YearCalendar",timezone:k,value:a,defaultValue:l,referenceDate:c,onChange:m,valueManager:en}),O=ts($),j=Tn(),I=Xe(),q=R.useMemo(()=>en.getInitialReferenceValue({value:F,utils:I,props:r,timezone:$,referenceDate:c,granularity:Cn.year}),[]),B=r,Q=TM(B),_=R.useMemo(()=>I.getYear(O),[I,O]),H=R.useMemo(()=>F!=null?I.getYear(F):null,[F,I]),[le,ne]=R.useState(()=>H||I.getYear(q)),[se,Z]=In({name:"YearCalendar",state:"hasFocus",controlled:D,default:o??!1}),oe=Me(me=>{Z(me),E&&E(me)}),ie=R.useCallback(me=>{if(f&&I.isBeforeYear(me,O)||d&&I.isAfterYear(me,O)||v&&I.isBeforeYear(me,v)||h&&I.isAfterYear(me,h))return!0;if(!b)return!1;const Ce=I.startOfYear(me);return b(Ce)},[d,f,h,v,O,b,I]),te=Me((me,Ce)=>{if(p)return;const Ee=I.setYear(F??q,Ce);Y(Ee)}),ee=Me(me=>{ie(I.setYear(F??q,me))||(ne(me),oe(!0),C?.(me))});R.useEffect(()=>{ne(me=>H!==null&&me!==H?H:me)},[H]);const X=S!=="desc"?A*1:A*-1,K=j&&S==="asc"||!j&&S==="desc"?-1:1,U=Me((me,Ce)=>{switch(me.key){case"ArrowUp":ee(Ce-X),me.preventDefault();break;case"ArrowDown":ee(Ce+X),me.preventDefault();break;case"ArrowLeft":ee(Ce-K),me.preventDefault();break;case"ArrowRight":ee(Ce+K),me.preventDefault();break}}),z=Me((me,Ce)=>{ee(Ce)}),ce=Me((me,Ce)=>{le===Ce&&oe(!1)}),pe=R.useRef(null),re=ht(n,pe);R.useEffect(()=>{if(o||pe.current===null)return;const me=pe.current.querySelector('[tabindex="0"]');if(!me)return;const Ce=me.offsetHeight,Ee=me.offsetTop,Se=pe.current.clientHeight,$e=pe.current.scrollTop,et=Ee+Ce;Ce>Se||Ee<$e||(pe.current.scrollTop=et-Se/2-Ce/2)},[o]);const he=I.getYearRange([v,h]);return S==="desc"&&he.reverse(),T.jsx(EM,x({ref:re,className:we(Q.root,i),ownerState:B,role:"radiogroup","aria-labelledby":w},V,{children:he.map(me=>{const Ce=I.getYear(me),Ee=Ce===H,Se=u||ie(me);return T.jsx(vM,{selected:Ee,value:Ce,onClick:te,onKeyDown:U,autoFocus:se&&Ce===le,disabled:Se,tabIndex:Ce===le&&!Se?0:-1,onFocus:z,onBlur:ce,"aria-current":_===Ce?"date":void 0,yearsPerRow:A,slots:M,slotProps:N,children:I.format(me,"year")},I.format(me,"year"))})}))});process.env.NODE_ENV!=="production"&&(Ih.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const SM=e=>Ie("MuiPickersCalendarHeader",e),RM=ke("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),MM=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],AM=["ownerState"],DM=e=>{const{classes:t}=e;return Fe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},SM,t)},PM=fe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),OM=fe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>x({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),kM=fe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),IM=fe(so,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${RM.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),FM=fe(BT,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Fh=R.forwardRef(function(t,n){const r=gn(),o=Xe(),i=Qe({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:h,minDate:v,onMonthChange:m,onViewChange:p,view:b,reduceAnimations:C,views:D,labelId:E,className:S,timezone:A,format:k=`${o.formats.month} ${o.formats.year}`}=i,w=ve(i,MM),M=i,N=DM(i),V=a?.switchViewButton??IM,F=rt({elementType:V,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(b)},ownerState:M,className:N.switchViewButton}),Y=a?.switchViewIcon??FM,$=rt({elementType:Y,externalSlotProps:l?.switchViewIcon,ownerState:M,className:N.switchViewIcon}),O=ve($,AM),j=()=>m(o.addMonths(c,1),"left"),I=()=>m(o.addMonths(c,-1),"right"),q=JT(c,{disableFuture:d,maxDate:h,timezone:A}),B=ZT(c,{disablePast:f,minDate:v,timezone:A}),Q=()=>{if(!(D.length===1||!p||u))if(D.length===2)p(D.find(H=>H!==b)||D[0]);else{const H=D.indexOf(b)!==0?0:1;p(D[H])}};if(D.length===1&&D[0]==="year")return null;const _=o.formatByString(c,k);return T.jsxs(PM,x({},w,{ownerState:M,className:we(N.root,S),ref:n,children:[T.jsxs(OM,{role:"presentation",onClick:Q,ownerState:M,"aria-live":"polite",className:N.labelContainer,children:[T.jsx(Ph,{reduceAnimations:C,transKey:_,children:T.jsx(kM,{id:E,ownerState:M,className:N.label,children:_})}),D.length>1&&!u&&T.jsx(V,x({},F,{children:T.jsx(Y,x({},O))}))]}),T.jsx(ao,{in:b==="day",appear:!C,enter:!C,children:T.jsx(Np,{slots:a,slotProps:l,onGoToPrevious:I,isPreviousDisabled:B,previousLabel:r.previousMonth,onGoToNext:j,isNextDisabled:q,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Fh.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const NM="@media (prefers-reduced-motion: reduce)",Kr=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),jd=Kr&&Kr[1]?parseInt(Kr[1],10):null,Vd=Kr&&Kr[2]?parseInt(Kr[2],10):null,BM=jd&&jd<10||Vd&&Vd<13||!1,jM=()=>DC(NM,{defaultMatches:!1})||BM,VM=e=>Ie("MuiDateCalendar",e);ke("MuiDateCalendar",["root","viewTransitionContainer"]);const $M=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],LM=e=>{const{classes:t}=e;return Fe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},VM,t)};function _M(e,t){const n=Xe(),r=es(),o=jM(),i=Qe({props:e,name:t});return x({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>T.jsx("span",{children:"..."})),minDate:fn(n,i.minDate,r.minDate),maxDate:fn(n,i.maxDate,r.maxDate)})}const qM=fe(Vp,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Wl}),YM=fe(Ph,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Nh=R.forwardRef(function(t,n){const r=Xe(),o=Wn(),i=_M(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:c,defaultValue:u,referenceDate:d,disableFuture:f,disablePast:h,onChange:v,onYearChange:m,onMonthChange:p,reduceAnimations:b,shouldDisableDate:C,shouldDisableMonth:D,shouldDisableYear:E,view:S,views:A,openTo:k,className:w,disabled:M,readOnly:N,minDate:V,maxDate:F,disableHighlightToday:Y,focusedView:$,onFocusedViewChange:O,showDaysOutsideCurrentMonth:j,fixedWeekNumber:I,dayOfWeekFormatter:q,slots:B,slotProps:Q,loading:_,renderLoading:H,displayWeekNumber:le,yearsOrder:ne,yearsPerRow:se,monthsPerRow:Z,timezone:oe}=i,ie=ve(i,$M),{value:te,handleValueChange:ee,timezone:X}=qi({name:"DateCalendar",timezone:oe,value:c,defaultValue:u,referenceDate:d,onChange:v,valueManager:en}),{view:K,setView:U,focusedView:z,setFocusedView:ce,goToNextView:pe,setValueAndGoToNextView:re}=Ul({view:S,views:A,openTo:k,onChange:ee,onViewChange:l,autoFocus:a,focusedView:$,onFocusedViewChange:O}),{referenceDate:he,calendarState:me,changeFocusedDay:Ce,changeMonth:Ee,handleChangeMonth:Se,isDateDisabled:$e,onMonthSwitchingAnimationEnd:et}=I1({value:te,referenceDate:d,reduceAnimations:b,onMonthChange:p,minDate:V,maxDate:F,shouldDisableDate:C,disablePast:h,disableFuture:f,timezone:X}),We=M&&te||V,mt=M&&te||F,vt=`${o}-grid-label`,Ct=z!==null,Le=B?.calendarHeader??Fh,Oe=rt({elementType:Le,externalSlotProps:Q?.calendarHeader,additionalProps:{views:A,view:K,currentMonth:me.currentMonth,onViewChange:U,onMonthChange:(at,ze)=>Se({newMonth:at,direction:ze}),minDate:We,maxDate:mt,disabled:M,disablePast:h,disableFuture:f,reduceAnimations:b,timezone:X,labelId:vt},ownerState:i}),gt=Me(at=>{const ze=r.startOfMonth(at),Yt=r.endOfMonth(at),Ve=$e(at)?Fo({utils:r,date:at,minDate:r.isBefore(V,ze)?ze:V,maxDate:r.isAfter(F,Yt)?Yt:F,disablePast:h,disableFuture:f,isDateDisabled:$e,timezone:X}):at;Ve?(re(Ve,"finish"),p?.(ze)):(pe(),Ee(ze)),Ce(Ve,!0)}),$t=Me(at=>{const ze=r.startOfYear(at),Yt=r.endOfYear(at),Ve=$e(at)?Fo({utils:r,date:at,minDate:r.isBefore(V,ze)?ze:V,maxDate:r.isAfter(F,Yt)?Yt:F,disablePast:h,disableFuture:f,isDateDisabled:$e,timezone:X}):at;Ve?(re(Ve,"finish"),m?.(Ve)):(pe(),Ee(ze)),Ce(Ve,!0)}),Nt=Me(at=>ee(at&&fi(r,at,te??he),"finish",K));R.useEffect(()=>{te!=null&&r.isValid(te)&&Ee(te)},[te]);const Bt=i,De=LM(Bt),_e={disablePast:h,disableFuture:f,maxDate:F,minDate:V},it={disableHighlightToday:Y,readOnly:N,disabled:M,timezone:X,gridLabelId:vt,slots:B,slotProps:Q},Ot=R.useRef(K);R.useEffect(()=>{Ot.current!==K&&(z===Ot.current&&ce(K,!0),Ot.current=K)},[z,ce,K]);const Mn=R.useMemo(()=>[te],[te]);return T.jsxs(qM,x({ref:n,className:we(De.root,w),ownerState:Bt},ie,{children:[T.jsx(Le,x({},Oe,{slots:B,slotProps:Q})),T.jsx(YM,{reduceAnimations:b,className:De.viewTransitionContainer,transKey:K,ownerState:Bt,children:T.jsxs("div",{children:[K==="year"&&T.jsx(Ih,x({},_e,it,{value:te,onChange:$t,shouldDisableYear:E,hasFocus:Ct,onFocusedViewChange:at=>ce("year",at),yearsOrder:ne,yearsPerRow:se,referenceDate:he})),K==="month"&&T.jsx(kh,x({},_e,it,{hasFocus:Ct,className:w,value:te,onChange:gt,shouldDisableMonth:D,onFocusedViewChange:at=>ce("month",at),monthsPerRow:Z,referenceDate:he})),K==="day"&&T.jsx(nM,x({},me,_e,it,{onMonthSwitchingAnimationEnd:et,onFocusedDayChange:Ce,reduceAnimations:b,selectedDays:Mn,onSelectedDaysChange:Nt,shouldDisableDate:C,shouldDisableMonth:D,shouldDisableYear:E,hasFocus:Ct,onFocusedViewChange:at=>ce("day",at),showDaysOutsideCurrentMonth:j,fixedWeekNumber:I,dayOfWeekFormatter:q,displayWeekNumber:le,loading:_,renderLoading:H}))]})})]}))});process.env.NODE_ENV!=="production"&&(Nh.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});function Bh(e){return Ie("MuiPickersToolbar",e)}ke("MuiPickersToolbar",["root","content"]);const UM=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],WM=e=>{const{classes:t}=e;return Fe({root:["root"],content:["content"]},Bh,t)},GM=fe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),zM=fe("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),jh=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:a,hidden:l,titleId:c}=r,u=ve(r,UM),d=r,f=WM(d);return l?null:T.jsxs(GM,x({ref:n,className:we(f.root,i),ownerState:d},u,{children:[T.jsx(Fn,{color:"text.secondary",variant:"overline",id:c,children:a}),T.jsx(zM,{className:f.content,ownerState:d,children:o})]}))});function HM(e){return Ie("MuiDatePickerToolbar",e)}ke("MuiDatePickerToolbar",["root","title"]);const KM=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],QM=e=>{const{classes:t}=e;return Fe({root:["root"],title:["title"]},HM,t)},JM=fe(jh,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZM=fe(Fn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Vh=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:c,className:u}=r,d=ve(r,KM),f=Xe(),h=gn(),v=QM(r),m=R.useMemo(()=>{if(!o)return l;const b=_p(f,{format:a,views:c},!0);return f.formatByString(o,b)},[o,a,l,f,c]),p=r;return T.jsx(JM,x({ref:n,toolbarTitle:h.datePickerToolbarTitle,isLandscape:i,className:we(v.root,u)},d,{children:T.jsx(ZM,{variant:"h4",align:i?"left":"center",ownerState:p,className:v.title,children:m})}))});process.env.NODE_ENV!=="production"&&(Vh.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function XM(e,t){const n=Xe(),r=es(),o=Qe({props:e,name:t}),i=R.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:x({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return x({},o,{localeText:i},Bp({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:fn(n,o.minDate,r.minDate),maxDate:fn(n,o.maxDate,r.maxDate),slots:x({toolbar:Vh},o.slots)})}const eA=({open:e,onOpen:t,onClose:n})=>{const r=R.useRef(typeof e=="boolean").current,[o,i]=R.useState(!1);R.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=R.useCallback(l=>{r||i(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},tA=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},nA=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},rA=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},oA=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:l,defaultValue:c,closeOnSelect:u=r==="desktop",timezone:d,referenceDate:f}=e,{current:h}=R.useRef(c),{current:v}=R.useRef(l!==void 0),[m,p]=R.useState(d);process.env.NODE_ENV!=="production"&&(R.useEffect(()=>{v!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${v?"":"un"}controlled value of a picker to be ${v?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
145
|
+
`))},[l]),R.useEffect(()=>{!v&&h!==c&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
146
|
+
`))},[JSON.stringify(h)]));const b=Xe(),C=Tr(),{isOpen:D,setIsOpen:E}=eA(e),{timezone:S,value:A,handleValueChange:k}=Hl({timezone:d,value:l,defaultValue:h,referenceDate:f,onChange:a,valueManager:t}),[w,M]=R.useState(()=>{let ee;return A!==void 0?ee=A:h!==void 0?ee=h:ee=t.emptyValue,{draft:ee,lastPublishedValue:ee,lastCommittedValue:ee,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),N=t.getTimezone(b,w.draft);m!==d&&(p(d),d&&N&&d!==N&&M(ee=>x({},ee,{draft:t.setTimezone(b,d,ee.draft)})));const{getValidationErrorForNewValue:V}=mh({props:e,validator:o,timezone:S,value:w.draft,onError:e.onError}),F=Me(ee=>{const X={action:ee,dateState:w,hasChanged:re=>!t.areValuesEqual(b,ee.value,re),isControlled:v,closeOnSelect:u},K=tA(X),U=nA(X),z=rA(X);M(re=>x({},re,{draft:ee.value,lastPublishedValue:K?ee.value:re.lastPublishedValue,lastCommittedValue:U?ee.value:re.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ce=null;const pe=()=>(ce||(ce={validationError:ee.name==="setValueFromField"?ee.context.validationError:V(ee.value)},ee.name==="setValueFromShortcut"&&(ce.shortcut=ee.shortcut)),ce);K&&k(ee.value,pe()),U&&i&&i(ee.value,pe()),z&&E(!1)});if(w.lastControlledValue!==l){const ee=t.areValuesEqual(b,w.draft,A);M(X=>x({},X,{lastControlledValue:l},ee?{}:{lastCommittedValue:A,lastPublishedValue:A,draft:A,hasBeenModifiedSinceMount:!0}))}const Y=Me(()=>{F({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),$=Me(()=>{F({value:w.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),O=Me(()=>{F({value:w.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),j=Me(()=>{F({value:w.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),I=Me(()=>{F({value:t.getTodayValue(b,S,n),name:"setValueFromAction",pickerAction:"today"})}),q=Me(ee=>{ee.preventDefault(),E(!0)}),B=Me(ee=>{ee?.preventDefault(),E(!1)}),Q=Me((ee,X="partial")=>F({name:"setValueFromView",value:ee,selectionState:X})),_=Me((ee,X,K)=>F({name:"setValueFromShortcut",value:ee,changeImportance:X,shortcut:K})),H=Me((ee,X)=>F({name:"setValueFromField",value:ee,context:X})),le={onClear:Y,onAccept:$,onDismiss:O,onCancel:j,onSetToday:I,onOpen:q,onClose:B},ne={value:w.draft,onChange:H},se=R.useMemo(()=>t.cleanValue(b,w.draft),[b,t,w.draft]),Z={value:se,onChange:Q,onClose:B,open:D},ie=x({},le,{value:se,onChange:Q,onSelectShortcut:_,isValid:ee=>{const X=o({adapter:C,value:ee,timezone:S,props:e});return!t.hasError(X)}}),te=R.useMemo(()=>({onOpen:q,onClose:B,open:D}),[D,B,q]);return{open:D,fieldProps:ne,viewProps:Z,layoutProps:ie,actions:le,contextValue:te}},sA=["className","sx"],iA=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:a,open:l,onClose:c}=t,{view:u,views:d,openTo:f,onViewChange:h,viewRenderers:v,timezone:m}=e,p=ve(e,sA),{view:b,setView:C,defaultView:D,focusedView:E,setFocusedView:S,setValueAndGoToNextView:A}=Ul({view:u,views:d,openTo:f,onChange:a,onViewChange:h,autoFocus:r}),{hasUIView:k,viewModeLookup:w}=R.useMemo(()=>d.reduce((O,j)=>{let I;return v[j]!=null?I="UI":I="field",O.viewModeLookup[j]=I,I==="UI"&&(O.hasUIView=!0),O},{hasUIView:!1,viewModeLookup:{}}),[v,d]),M=R.useMemo(()=>d.reduce((O,j)=>v[j]!=null&&ll(j)?O+1:O,0),[v,d]),N=w[b],V=Me(()=>N==="UI"),[F,Y]=R.useState(N==="UI"?b:null);return F!==b&&w[b]==="UI"&&Y(b),It(()=>{N==="field"&&l&&(c(),setTimeout(()=>{i?.current?.setSelectedSections(b),i?.current?.focusField(b)}))},[b]),It(()=>{if(!l)return;let O=b;N==="field"&&F!=null&&(O=F),O!==D&&w[O]==="UI"&&w[D]==="UI"&&(O=D),O!==b&&C(O),S(O,!0)},[l]),{hasUIView:k,shouldRestoreFocus:V,layoutProps:{views:d,view:F,onViewChange:C},renderCurrentView:()=>{if(F==null)return null;const O=v[F];if(O==null)return null;const j=x({},p,n,t,{views:d,timezone:m,onChange:A,view:F,onViewChange:C,focusedView:E,onFocusedViewChange:S,showViewSwitcher:M>1,timeViewsCount:M});return o?o(v,F,j):O(j)}}};function $d(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const aA=(e,t)=>{const[n,r]=R.useState($d);return It(()=>{const i=()=>{r($d())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Vr(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},lA=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=aA(n.views,o),a=Tn();return{layoutProps:x({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function cA(e){const{props:t,pickerValueResponse:n}=e;return R.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const uA=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:c})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&_f(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=oA({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),d=iA({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:c,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),f=lA({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),h=cA({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:f.layoutProps,contextValue:u.contextValue,ownerState:h}};function $h(e){return Ie("MuiPickersLayout",e)}const dr=ke("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function dA(e){return Ie("MuiButton",e)}const Ps=ke("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Lh=R.createContext({});process.env.NODE_ENV!=="production"&&(Lh.displayName="ButtonGroupContext");const _h=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(_h.displayName="ButtonGroupButtonContext");const fA=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pA=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,l={root:["root",i,`${i}${Te(t)}`,`size${Te(o)}`,`${i}Size${Te(o)}`,`color${Te(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Te(o)}`],endIcon:["icon","endIcon",`iconSize${Te(o)}`]},c=Fe(l,dA,a);return x({},a,c)},qh=e=>x({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),hA=fe(br,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Te(n.color)}`],t[`size${Te(n.size)}`],t[`${n.variant}Size${Te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return x({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":x({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pt.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ps.focusVisible}`]:x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ps.disabled}`]:x({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${pt.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ps.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ps.disabled}`]:{boxShadow:"none"}}),mA=fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},qh(e))),gA=fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},qh(e))),Yr=R.forwardRef(function(t,n){const r=R.useContext(Lh),o=R.useContext(_h),i=qo(r,t),a=st({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:v=!1,endIcon:m,focusVisibleClassName:p,fullWidth:b=!1,size:C="medium",startIcon:D,type:E,variant:S="text"}=a,A=ve(a,fA),k=x({},a,{color:c,component:u,disabled:f,disableElevation:h,disableFocusRipple:v,fullWidth:b,size:C,type:E,variant:S}),w=pA(k),M=D&&T.jsx(mA,{className:w.startIcon,ownerState:k,children:D}),N=m&&T.jsx(gA,{className:w.endIcon,ownerState:k,children:m}),V=o||"";return T.jsxs(hA,x({ownerState:k,className:we(r.className,w.root,d,V),component:u,disabled:f,focusRipple:!v,focusVisibleClassName:we(w.focusVisible,p),ref:n,type:E},A,{classes:w,children:[M,l,N]}))});process.env.NODE_ENV!=="production"&&(Yr.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function yA(e){return Ie("MuiDialogActions",e)}ke("MuiDialogActions",["root","spacing"]);const bA=["className","disableSpacing"],vA=e=>{const{classes:t,disableSpacing:n}=e;return Fe({root:["root",!n&&"spacing"]},yA,t)},CA=fe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Yh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=ve(r,bA),l=x({},r,{disableSpacing:i}),c=vA(l);return T.jsx(CA,x({className:we(c.root,o),ownerState:l,ref:n},a))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const xA=["onAccept","onClear","onCancel","onSetToday","actions"];function Uh(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=ve(e,xA),l=gn();if(i==null||i.length===0)return null;const c=i?.map(u=>{switch(u){case"clear":return T.jsx(Yr,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return T.jsx(Yr,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return T.jsx(Yr,{onClick:t,children:l.okButtonLabel},u);case"today":return T.jsx(Yr,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return T.jsx(Yh,x({},a,{children:c}))}process.env.NODE_ENV!=="production"&&(Uh.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function TA(e){return Ie("MuiListItem",e)}const $r=ke("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),wA=ke("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function EA(e){return Ie("MuiListItemSecondaryAction",e)}ke("MuiListItemSecondaryAction",["root","disableGutters"]);const SA=["className"],RA=e=>{const{disableGutters:t,classes:n}=e;return Fe({root:["root",t&&"disableGutters"]},EA,n)},MA=fe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>x({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),mc=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=ve(r,SA),a=R.useContext(zr),l=x({},r,{disableGutters:a.disableGutters}),c=RA(l);return T.jsx(MA,x({className:we(c.root,o),ownerState:l,ref:n},i))});process.env.NODE_ENV!=="production"&&(mc.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});mc.muiName="ListItemSecondaryAction";const AA=["className"],DA=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],PA=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},OA=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e;return Fe({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},TA,r)},kA=fe("div",{name:"MuiListItem",slot:"Root",overridesResolver:PA})(({theme:e,ownerState:t})=>x({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&x({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${wA.root}`]:{paddingRight:48}},{[`&.${$r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$r.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$r.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$r.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$r.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt.alpha(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})`:pt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),IA=fe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Wh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:l,className:c,component:u,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:v}={},dense:m=!1,disabled:p=!1,disableGutters:b=!1,disablePadding:C=!1,divider:D=!1,focusVisibleClassName:E,secondaryAction:S,selected:A=!1,slotProps:k={},slots:w={}}=r,M=ve(r.ContainerProps,AA),N=ve(r,DA),V=R.useContext(zr),F=R.useMemo(()=>({dense:m||V.dense||!1,alignItems:o,disableGutters:b}),[o,V.dense,m,b]),Y=R.useRef(null);It(()=>{i&&(Y.current?Y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))},[i]);const $=R.Children.toArray(l),O=$.length&&Gr($[$.length-1],["ListItemSecondaryAction"]),j=x({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:p,disableGutters:b,disablePadding:C,divider:D,hasSecondaryAction:O,selected:A}),I=OA(j),q=ht(Y,n),B=w.root||d.Root||kA,Q=k.root||f.root||{},_=x({className:we(I.root,Q.className,c),disabled:p},N);let H=u||"li";return a&&(_.component=u||"div",_.focusVisibleClassName=we($r.focusVisible,E),H=br),O?(H=!_.component&&!u?"div":H,h==="li"&&(H==="li"?H="div":_.component==="li"&&(_.component="div")),T.jsx(zr.Provider,{value:F,children:T.jsxs(IA,x({as:h,className:we(I.container,v),ref:q,ownerState:j},M,{children:[T.jsx(B,x({},Q,!Xr(B)&&{as:H,ownerState:x({},j,Q.ownerState)},_,{children:$})),$.pop()]}))})):T.jsx(zr.Provider,{value:F,children:T.jsxs(B,x({},Q,{as:H,ref:q},!Xr(B)&&{ownerState:x({},j,Q.ownerState)},_,{children:[$,S&&T.jsx(mc,{children:S})]}))})});process.env.NODE_ENV!=="production"&&(Wh.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,button:s.bool,children:xr(s.node,e=>{const t=R.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Gr(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:Ii,ContainerProps:s.object,dense:s.bool,disabled:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,focusVisibleClassName:s.string,secondaryAction:s.node,selected:s.bool,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const FA=En(T.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 NA(e){return Ie("MuiChip",e)}const Ke=ke("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),BA=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],jA=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${Te(r)}`,`color${Te(o)}`,l&&"clickable",l&&`clickableColor${Te(o)}`,a&&"deletable",a&&`deletableColor${Te(o)}`,`${c}${Te(o)}`],label:["label",`label${Te(r)}`],avatar:["avatar",`avatar${Te(r)}`,`avatarColor${Te(o)}`],icon:["icon",`icon${Te(r)}`,`iconColor${Te(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Te(r)}`,`deleteIconColor${Te(o)}`,`deleteIcon${Te(c)}Color${Te(o)}`]};return Fe(u,NA,t)},VA=fe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${Te(l)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${Te(r)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${Te(l)}`]},{[`& .${Ke.icon}`]:t[`iconColor${Te(o)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${Te(l)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${Te(r)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${Te(c)}Color${Te(r)}`]},t.root,t[`size${Te(l)}`],t[`color${Te(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Te(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Te(r)}`],t[c],t[`${c}${Te(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return x({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",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:x({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&x({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Ke.deleteIcon}`]:x({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:pt.alpha(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)`:pt.alpha(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:pt.alpha(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>x({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>x({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:pt.alpha(e.palette[t.color].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:pt.alpha(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:pt.alpha(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),$A=fe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Te(r)}`]]}})(({ownerState:e})=>x({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Ld(e){return e.key==="Backspace"||e.key==="Delete"}const Gh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:h,onClick:v,onDelete:m,onKeyDown:p,onKeyUp:b,size:C="medium",variant:D="filled",tabIndex:E,skipFocusWhenDisabled:S=!1}=r,A=ve(r,BA),k=R.useRef(null),w=ht(k,n),M=Q=>{Q.stopPropagation(),m&&m(Q)},N=Q=>{Q.currentTarget===Q.target&&Ld(Q)&&Q.preventDefault(),p&&p(Q)},V=Q=>{Q.currentTarget===Q.target&&(m&&Ld(Q)?m(Q):Q.key==="Escape"&&k.current&&k.current.blur()),b&&b(Q)},F=a!==!1&&v?!0:a,Y=F||m?br:c||"div",$=x({},r,{component:Y,disabled:d,size:C,color:l,iconColor:R.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:F,variant:D}),O=jA($),j=Y===br?x({component:c||"div",focusVisibleClassName:O.focusVisible},m&&{disableRipple:!0}):{};let I=null;m&&(I=u&&R.isValidElement(u)?R.cloneElement(u,{className:we(u.props.className,O.deleteIcon),onClick:M}):T.jsx(FA,{className:we(O.deleteIcon),onClick:M}));let q=null;o&&R.isValidElement(o)&&(q=R.cloneElement(o,{className:we(O.avatar,o.props.className)}));let B=null;return f&&R.isValidElement(f)&&(B=R.cloneElement(f,{className:we(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&q&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),T.jsxs(VA,x({as:Y,className:we(O.root,i),disabled:F&&d?!0:void 0,onClick:v,onKeyDown:N,onKeyUp:V,ref:w,tabIndex:S&&d?-1:E,ownerState:$},j,A,{children:[q||B,T.jsx($A,{className:we(O.label),ownerState:$,children:h}),I]}))});process.env.NODE_ENV!=="production"&&(Gh.propTypes={avatar:s.element,children:Cp,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});const LA=["items","changeImportance","isLandscape","onChange","isValid"],_A=["getValue"];function zh(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=ve(e,LA);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=ve(l,_A);const d=c({isValid:o});return x({},u,{label:u.label,onClick:()=>{r(d,n,u)},disabled:!o(d)})});return T.jsx(Zl,x({dense:!0,sx:[{maxHeight:Wl,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>T.jsx(Wh,{children:T.jsx(Gh,x({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(zh.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function qA(e){return e.view!==null}const YA=e=>{const{classes:t,isLandscape:n}=e;return Fe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},$h,t)},UA=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:l,onViewChange:c,value:u,onChange:d,onSelectShortcut:f,isValid:h,isLandscape:v,disabled:m,readOnly:p,children:b,slots:C,slotProps:D}=e,E=YA(e),S=C?.actionBar??Uh,A=rt({elementType:S,externalSlotProps:D?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:E.actionBar,ownerState:x({},e,{wrapperVariant:t})}),k=T.jsx(S,x({},A)),w=C?.toolbar,M=rt({elementType:w,externalSlotProps:D?.toolbar,additionalProps:{isLandscape:v,onChange:d,value:u,view:a,onViewChange:c,views:l,disabled:m,readOnly:p},className:E.toolbar,ownerState:x({},e,{wrapperVariant:t})}),N=qA(M)&&w?T.jsx(w,x({},M)):null,V=b,F=C?.tabs,Y=a&&F?T.jsx(F,x({view:a,onViewChange:c,className:E.tabs},D?.tabs)):null,$=C?.shortcuts??zh,O=rt({elementType:$,externalSlotProps:D?.shortcuts,additionalProps:{isValid:h,isLandscape:v,onChange:f},className:E.shortcuts,ownerState:{isValid:h,isLandscape:v,onChange:f,wrapperVariant:t}}),j=a&&$?T.jsx($,x({},O)):null;return{toolbar:N,content:V,tabs:Y,actionBar:k,shortcuts:j}},WA=e=>{const{isLandscape:t,classes:n}=e;return Fe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},$h,n)},GA=fe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${dr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${dr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${dr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${dr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${dr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${dr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${dr.shortcuts}`]:{gridColumn:3}}}]}),zA=fe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Hh=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:l,shortcuts:c}=UA(r),{sx:u,className:d,isLandscape:f,wrapperVariant:h}=r,v=WA(r);return T.jsxs(GA,{ref:n,sx:u,className:we(v.root,d),ownerState:r,children:[f?c:o,f?o:c,T.jsx(zA,{className:v.contentWrapper,children:h==="desktop"?T.jsxs(R.Fragment,{children:[i,a]}):T.jsxs(R.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Hh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const Ya=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minDate:v,maxDate:m,shouldDisableDate:p,shouldDisableMonth:b,shouldDisableYear:C,reduceAnimations:D,onMonthChange:E,monthsPerRow:S,onYearChange:A,yearsOrder:k,yearsPerRow:w,slots:M,slotProps:N,loading:V,renderLoading:F,disableHighlightToday:Y,readOnly:$,disabled:O,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:I,sx:q,autoFocus:B,fixedWeekNumber:Q,displayWeekNumber:_,timezone:H})=>T.jsx(Nh,{view:e,onViewChange:t,views:n.filter(ud),focusedView:r&&ud(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minDate:v,maxDate:m,shouldDisableDate:p,shouldDisableMonth:b,shouldDisableYear:C,reduceAnimations:D,onMonthChange:E,monthsPerRow:S,onYearChange:A,yearsOrder:k,yearsPerRow:w,slots:M,slotProps:N,loading:V,renderLoading:F,disableHighlightToday:Y,readOnly:$,disabled:O,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:I,sx:q,autoFocus:B,fixedWeekNumber:Q,displayWeekNumber:_,timezone:H});function HA(e){return Ie("MuiDialogContent",e)}ke("MuiDialogContent",["root","dividers"]);const KA=ke("MuiDialogTitle",["root"]),QA=["className","dividers"],JA=e=>{const{classes:t,dividers:n}=e;return Fe({root:["root",n&&"dividers"]},HA,t)},ZA=fe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${KA.root} + &`]:{paddingTop:0}})),Kh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=ve(r,QA),l=x({},r,{dividers:i}),c=JA(l);return T.jsx(ZA,x({className:we(c.root,o),ownerState:l,ref:n},a))});process.env.NODE_ENV!=="production"&&(Kh.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function XA(e){return Ie("MuiDialog",e)}const jo=ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Qh=R.createContext({});process.env.NODE_ENV!=="production"&&(Qh.displayName="DialogContext");const eD=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tD=fe(rc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nD=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Te(n)}`],paper:["paper",`paperScroll${Te(n)}`,`paperWidth${Te(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Fe(a,XA,t)},rD=fe(oc,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),oD=fe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Te(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),sD=fe(Zi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Te(n.scroll)}`],t[`paperWidth${Te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${jo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${jo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${jo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Jh=R.forwardRef(function(t,n){const r=st({props:t,name:"MuiDialog"}),o=oo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:v=!1,fullWidth:m=!1,maxWidth:p="sm",onBackdropClick:b,onClick:C,onClose:D,open:E,PaperComponent:S=Zi,PaperProps:A={},scroll:k="paper",TransitionComponent:w=ao,transitionDuration:M=i,TransitionProps:N}=r,V=ve(r,eD),F=x({},r,{disableEscapeKeyDown:h,fullScreen:v,fullWidth:m,maxWidth:p,scroll:k}),Y=nD(F),$=R.useRef(),O=B=>{$.current=B.target===B.currentTarget},j=B=>{C&&C(B),$.current&&($.current=null,b&&b(B),D&&D(B,"backdropClick"))},I=Wn(l),q=R.useMemo(()=>({titleId:I}),[I]);return T.jsx(rD,x({className:we(Y.root,f),closeAfterTransition:!0,components:{Backdrop:tD},componentsProps:{backdrop:x({transitionDuration:M,as:c},u)},disableEscapeKeyDown:h,onClose:D,open:E,ref:n,onClick:j,ownerState:F},V,{children:T.jsx(w,x({appear:!0,in:E,timeout:M,role:"presentation"},N,{children:T.jsx(oD,{className:we(Y.container),onMouseDown:O,ownerState:F,children:T.jsx(sD,x({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":I},A,{className:we(Y.paper,A.className),ownerState:F,children:T.jsx(Qh.Provider,{value:q,children:d})}))})}))}))});process.env.NODE_ENV!=="production"&&(Jh.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onBackdropClick:s.func,onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const iD=fe(Jh)({[`& .${jo.container}`]:{outline:0},[`& .${jo.paper}`]:{outline:0,minWidth:_i}}),aD=fe(Kh)({"&:first-of-type":{padding:0}});function lD(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=o?.dialog??iD,l=o?.mobileTransition??ao;return T.jsx(a,x({open:r,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:i?.mobilePaper,children:T.jsx(aD,{children:t})}))}const cD=["props","getOpenDialogAriaText"],Zh=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,cD);const{slots:o,slotProps:i,className:a,sx:l,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:v,name:m,label:p,inputRef:b,readOnly:C,disabled:D,localeText:E}=t,S=R.useRef(null),A=Wn(),k=i?.toolbar?.hidden??!1,{open:w,actions:M,layoutProps:N,renderCurrentView:V,fieldProps:F,contextValue:Y}=uA(x({},r,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=o.field,O=rt({elementType:$,externalSlotProps:i?.field,additionalProps:x({},F,k&&{id:A},!(D||C)&&{onClick:M.onOpen,onKeyDown:sE(M.onOpen)},{readOnly:C??!0,disabled:D,className:a,sx:l,format:c,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:h,timezone:v,label:p,name:m},b?{inputRef:b}:{}),ownerState:t});O.inputProps=x({},O.inputProps,{"aria-label":n(F.value)});const j=x({textField:o.textField},O.slots),I=o.layout??Hh;let q=A;k&&(p?q=`${A}-label`:q=void 0);const B=x({},i,{toolbar:x({},i?.toolbar,{titleId:A}),mobilePaper:x({"aria-labelledby":q},i?.mobilePaper)}),Q=ht(S,O.unstableFieldRef);return{renderPicker:()=>T.jsxs(qR,{contextValue:Y,localeText:E,children:[T.jsx($,x({},O,{slots:j,slotProps:B,unstableFieldRef:Q})),T.jsx(lD,x({},M,{open:w,slots:o,slotProps:B,children:T.jsx(I,x({},N,B?.layout,{slots:o,slotProps:B,children:V()}))}))]})}},Xh=R.forwardRef(function(t,n){const r=gn(),o=Xe(),i=XM(t,"MuiMobileDatePicker"),a=x({day:Ya,month:Ya,year:Ya},i.viewRenderers),l=x({},i,{viewRenderers:a,format:_p(o,i,!1),slots:x({field:Mh},i.slots),slotProps:x({},i.slotProps,{field:u=>x({},$l(i.slotProps?.field,u),hh(i),{ref:n}),toolbar:x({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:c}=Zh({props:l,valueManager:en,valueType:"date",getOpenDialogAriaText:Pp({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:Xi});return c()});Xh.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Ft,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};function uD(e){return Ie("MuiPickersToolbarText",e)}const _d=ke("MuiPickersToolbarText",["root","selected"]),dD=["className","selected","value"],fD=e=>{const{classes:t,selected:n}=e;return Fe({root:["root",n&&"selected"]},uD,t)},pD=fe(Fn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_d.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${_d.selected}`]:{color:(e.vars||e).palette.text.primary}})),em=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersToolbarText"}),{className:o,value:i}=r,a=ve(r,dD),l=fD(r);return T.jsx(pD,x({ref:n,className:we(l.root,o),component:"span"},a,{children:i}))}),hD=["align","className","selected","typographyClassName","value","variant","width"],mD=e=>{const{classes:t}=e;return Fe({root:["root"]},Bh,t)},gD=fe(Yr,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),So=R.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,selected:a,typographyClassName:l,value:c,variant:u,width:d}=r,f=ve(r,hD),h=mD(r);return T.jsx(gD,x({variant:"text",ref:n,className:we(h.root,i)},d?{sx:{width:d}}:{},f,{children:T.jsx(em,{align:o,className:l,variant:u,value:c,selected:a})}))});function yD(e){return Ie("MuiTimePickerToolbar",e)}const Vo=ke("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),bD=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],vD=e=>{const{isLandscape:t,classes:n,isRtl:r}=e;return Fe({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",r&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},yD,n)},CD=fe(jh,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xD=fe(em,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),TD=fe("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Vo.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Vo.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),wD=fe("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Vo.ampmLabel}`]:t.ampmLabel},{[`&.${Vo.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Vo.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function tm(e){const t=Qe({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:i,onChange:a,view:l,onViewChange:c,views:u,disabled:d,readOnly:f,className:h}=t,v=ve(t,bD),m=Xe(),p=gn(),b=Tn(),C=!!(n&&!r&&u.includes("hours")),{meridiemMode:D,handleMeridiemChange:E}=jp(o,n,a),S=M=>n?m.format(M,"hours12h"):m.format(M,"hours24h"),A=x({},t,{isRtl:b}),k=vD(A),w=T.jsx(xD,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:k.separator});return T.jsxs(CD,x({landscapeDirection:"row",toolbarTitle:p.timePickerToolbarTitle,isLandscape:i,ownerState:A,className:we(k.root,h)},v,{children:[T.jsxs(TD,{className:k.hourMinuteLabel,ownerState:A,children:[Vr(u,"hours")&&T.jsx(So,{tabIndex:-1,variant:"h3",onClick:()=>c("hours"),selected:l==="hours",value:o?S(o):"--"}),Vr(u,["hours","minutes"])&&w,Vr(u,"minutes")&&T.jsx(So,{tabIndex:-1,variant:"h3",onClick:()=>c("minutes"),selected:l==="minutes",value:o?m.format(o,"minutes"):"--"}),Vr(u,["minutes","seconds"])&&w,Vr(u,"seconds")&&T.jsx(So,{variant:"h3",onClick:()=>c("seconds"),selected:l==="seconds",value:o?m.format(o,"seconds"):"--"})]}),C&&T.jsxs(wD,{className:k.ampmSelection,ownerState:A,children:[T.jsx(So,{disableRipple:!0,variant:"subtitle2",selected:D==="am",typographyClassName:k.ampmLabel,value:_r(m,"am"),onClick:f?void 0:()=>E("am"),disabled:d}),T.jsx(So,{disableRipple:!0,variant:"subtitle2",selected:D==="pm",typographyClassName:k.ampmLabel,value:_r(m,"pm"),onClick:f?void 0:()=>E("pm"),disabled:d})]})]}))}process.env.NODE_ENV!=="production"&&(tm.propTypes={ampm:s.bool,ampmInClock:s.bool,classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["hours","meridiem","minutes","seconds"]).isRequired,views:s.arrayOf(s.oneOf(["hours","meridiem","minutes","seconds"]).isRequired).isRequired});function ED(e,t){const n=Xe(),r=Qe({props:e,name:t}),o=r.ampm??n.is12HourCycleInCurrentLocale(),i=R.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:x({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return x({},r,{ampm:o,localeText:i},Bp({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:x({toolbar:tm},r.slots),slotProps:x({},r.slotProps,{toolbar:x({ampm:o,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}const Ua=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:v,maxTime:m,shouldDisableTime:p,minutesStep:b,ampm:C,ampmInClock:D,slots:E,slotProps:S,readOnly:A,disabled:k,sx:w,autoFocus:M,showViewSwitcher:N,disableIgnoringDatePartForTimeValidation:V,timezone:F})=>T.jsx(Kp,{view:e,onViewChange:t,focusedView:n&&ll(n)?n:null,onFocusedViewChange:r,views:o.filter(ll),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:v,maxTime:m,shouldDisableTime:p,minutesStep:b,ampm:C,ampmInClock:D,slots:E,slotProps:S,readOnly:A,disabled:k,sx:w,autoFocus:M,showViewSwitcher:N,disableIgnoringDatePartForTimeValidation:V,timezone:F}),nm=R.forwardRef(function(t,n){const r=gn(),o=Xe(),i=ED(t,"MuiMobileTimePicker"),a=x({hours:Ua,minutes:Ua,seconds:Ua},i.viewRenderers),l=i.ampmInClock??!1,c=x({},i,{ampmInClock:l,viewRenderers:a,format:QT(o,i),slots:x({field:Ah},i.slots),slotProps:x({},i.slotProps,{field:d=>x({},$l(i.slotProps?.field,d),hh(i),{ref:n}),toolbar:x({hidden:!1,ampmInClock:l},i.slotProps?.toolbar)})}),{renderPicker:u}=Zh({props:c,valueManager:en,valueType:"time",getOpenDialogAriaText:Pp({utils:o,formatKey:"fullTime",contextTranslation:r.openTimePickerDialogue,propsTranslation:c.localeText?.openTimePickerDialogue}),validator:cc});return u()});nm.propTypes={ampm:s.bool,ampmInClock:s.bool,autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableIgnoringDatePartForTimeValidation:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.any,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Ft,label:s.node,localeText:s.object,maxTime:s.object,minTime:s.object,minutesStep:s.number,name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,open:s.bool,openTo:s.oneOf(["hours","minutes","seconds"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableTime:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["hours","minutes","seconds"]),viewRenderers:s.shape({hours:s.func,minutes:s.func,seconds:s.func}),views:s.arrayOf(s.oneOf(["hours","minutes","seconds"]).isRequired)};const qd={hours:"Horas",minutes:"Minutos",seconds:"Segundos",meridiem:"Meridiano"},SD={previousMonth:"Mes anterior",nextMonth:"Mes siguiente",openPreviousView:"Abrir la última vista",openNextView:"Abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista anual está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista anual",start:"Empezar",end:"Terminar",startDate:"Fecha inicio",startTime:"Hora inicio",endDate:"Fecha final",endTime:"Hora final",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerToolbarTitle:"Seleccionar fecha",dateTimePickerToolbarTitle:"Seleccionar fecha y hora",timePickerToolbarTitle:"Seleccionar hora",dateRangePickerToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n,r)=>`Seleccione ${qd[e]}. ${!r&&(t===null||!n.isValid(t))?"No hay hora seleccionada":`La hora seleccionada es ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,selectViewText:e=>`Seleccionar ${qd[e]}`,calendarWeekNumberHeaderLabel:"Número de semana",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Semana ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Elige fecha, la fecha elegida es ${n??t.format(e,"fullDate")}`:"Elige fecha",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Elige hora, la hora elegida es ${n??t.format(e,"fullTime")}`:"Elige hora",fieldClearLabel:"Limpiar valor",timeTableLabel:"elige hora",dateTableLabel:"elige fecha",fieldYearPlaceholder:e=>"A".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Año",month:"Mes",day:"Dia",weekDay:"Dia de la semana",hours:"Horas",minutes:"Minutos",seconds:"Segundos",meridiem:"Meridiano",empty:"Vacío"},rm=Dp(SD),RD=({name:e,gridValues:t,label:n,disabled:r,gridSx:o,hidden:i,disableFuture:a,sx:l,validations:c,disabledOnEdit:u,editMode:d,initialValue:f,persist:h})=>{const{setFieldValue:v,setFieldTouched:m,values:p,touched:b,errors:C}=zt.useFormikContext(),D=b[e]&&C[e],E=p[e],S=ge.useCallback(w=>{w&&w.isValid()?v(e,w.format("DD/MM/YYYY"),!0):v(e,"",!0),m(e,!0,!1)},[e,v,m]);ge.useEffect(()=>{if(f){const w=ft(f,"DD/MM/YYYY");v(e,w.isValid()?f:"",!1)}},[f,e,v]);const A=E&&ft(E,"DD/MM/YYYY").isValid()?ft(E,"DD/MM/YYYY"):null,k=typeof E=="object"?JSON.stringify(E):E;return ge.useEffect(()=>{if(i?.(p)&&!h){const w=ft(f,"DD/MM/YYYY");v(e,w.isValid()?f:"",!1)}},[k]),T.jsx(Ae.Grid,{item:!0,display:i?.(p)?"none":"unset",xs:t?.xs,sm:t?.sm,md:t?.md,lg:t?.lg,xl:t?.xl,sx:o,children:T.jsx(Vi,{dateAdapter:qf,adapterLocale:"es",localeText:rm.components.MuiLocalizationProvider.defaultProps.localeText,children:T.jsxs(Ae.FormControl,{sx:{...l,width:"100%"},error:!!D,children:[T.jsx(Xh,{label:T.jsxs("label",{children:[n,c?.required&&T.jsx("b",{style:{color:"red"},children:" * "})]}),disableFuture:a,name:e,disabled:d&&u||r?.(p),value:A,onChange:S,format:"DD/MM/YYYY",slotProps:{textField:{error:!!D}}}),D&&T.jsx(Ae.FormHelperText,{sx:{color:"#d32f2f"},children:D})]})})})},MD=({id:e,gridSx:t,initialValue:n,gridValues:r,name:o,label:i,color:a,disabled:l,hidden:c,focused:u,placeholder:d,sx:f,onChange:h,validations:v,disabledOnEdit:m,editMode:p,persist:b,decimalScale:C=2,prefix:D="",allowNegative:E=!1})=>{const{setFieldValue:S,setFieldTouched:A,values:k,touched:w,errors:M}=zt.useFormikContext(),N=w[o]&&M[o],V=k[o]??"",F=ge.useCallback($=>{let O=$.target.value;if(D&&O.startsWith(D)&&(O=O.slice(D.length)),O===""||/^-?\d*\.?\d*$/.test(O)){const[j,I]=O.split(".");(!I||C===0&&!O.includes(".")||I.length<=C&&C>0)&&(S(o,O),A(o),h?.({...$,value:O}))}},[C,D,S,A]);ge.useEffect(()=>{S(o,n??"",!1)},[n]),ge.useEffect(()=>{typeof V=="object"&&JSON.stringify(V),c?.(k)&&!b&&S(o,n??"",!1)},[V]);const Y=$=>{if(["Backspace","Tab","ArrowLeft","ArrowRight","Delete","Home","End"].includes($.key))return;const j=/^[0-9]$/.test($.key),I=$.key===".",q=$.key==="-";j||I&&C>0&&!$.currentTarget.value.includes(".")||q&&E&&!$.currentTarget.value.includes("-")&&$.currentTarget.selectionStart===0||$.preventDefault()};return T.jsx(Ae.Grid,{item:!0,display:c?.(k)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:T.jsx(Ae.TextField,{fullWidth:!0,id:e??o,name:o,label:T.jsxs("label",{children:[i,v?.required&&T.jsx("b",{style:{color:"red"},children:" * "})]}),color:a,focused:u,placeholder:d,disabled:p&&m||l?.(k),sx:f,value:`${D}${V}`,error:!!N,helperText:N,onChange:F,onKeyDown:Y,InputProps:{startAdornment:D&&T.jsx(Ae.InputAdornment,{position:"start",children:D})},variant:"outlined"})})},AD=({items:e,labelPlacement:t})=>e?.map(n=>T.jsx(Ae.FormControlLabel,{value:n.idconcepto,control:T.jsx(Ae.Radio,{}),label:n.denominacion,labelPlacement:t},n.idconcepto)),DD=({id:e,gridSx:t,initialValue:n,gridValues:r,name:o,label:i,disabled:a,hidden:l,sx:c,radios:u,options:d,direction:f,labelPlacement:h,validations:v,disabledOnEdit:m,editMode:p,onChangeCallback:b,persist:C})=>{const[D]=ge.useState(d??u),E=zt.useFormikContext(),{setFieldValue:S,setFieldTouched:A,values:k,touched:w,errors:M}=zt.useFormikContext(),N=w[o]&&M[o],V=k[o]??"",F=ge.useCallback(Y=>{b?.(Y,E),console.log(Y.target.value),S(o,Y.target.value,!0),A(o)},[]);return ge.useEffect(()=>{S(o,n??"",!1)},[n]),ge.useEffect(()=>{console.log("Persist",o,l?.(k),C,k,l?.(k)&&!C),l?.(k)&&!C&&S(o,n??"",!1)},[V]),T.jsx(Ae.Grid,{item:!0,display:l?.(k)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:T.jsxs(Ae.FormControl,{id:e??o,disabled:p&&m||a?.(k),children:[T.jsx(Ae.FormLabel,{children:i}),T.jsx(Ae.RadioGroup,{name:o,row:f==="row",value:V,onChange:F,sx:c,children:T.jsx(AD,{items:D,labelPlacement:h})}),T.jsx(Ae.FormHelperText,{sx:{color:"#d32f2f"},children:N})]})})},PD=({id:e,gridSx:t,initialValue:n,gridValues:r,name:o,label:i,disabled:a,hidden:l,sx:c,customIcons:u,max:d,color:f,validations:h,persist:v})=>{const{setFieldValue:m,setFieldTouched:p,values:b,touched:C,errors:D}=zt.useFormikContext();C[o]&&D[o];const E=b[o],[S,A]=ge.useState({}),[k,w]=ge.useState(c??{}),M=ge.useCallback((N,V)=>{m(o,V,!0),p(o)},[]);return ge.useEffect(()=>{m(o,n??0,!1)},[n]),ge.useEffect(()=>{w(N=>(N["& .MuiRating-iconFilled"]={color:f},N["& .MuiRating-iconHover"]={color:f},N))},[f]),T.jsx(Ae.Grid,{item:!0,display:l?.(b)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:T.jsxs(Ae.Box,{sx:{"& > legend":{mt:2}},children:[T.jsx(Ae.Typography,{component:"legend",children:i}),T.jsx(Ae.Rating,{value:E,name:o,id:e??o,onChange:M,sx:k,max:d,precision:.5,disabled:a?.(b),...S})]})})};var Ro={},Wa={};const OD=Un(NT);var Yd;function om(){return Yd||(Yd=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=OD})(Wa)),Wa}var Ud;function kD(){if(Ud)return Ro;Ud=1;var e=Bi();Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=void 0;var t=e(om()),n=Ml();return Ro.default=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ro}var ID=kD();const FD=pn(ID),Wd=({id:e,type:t,gridSx:n,initialValue:r,gridValues:o,name:i,label:a,disabled:l,hidden:c,sx:u,multiple:d,options:f,placeholder:h,group:v,validations:m,onChange:p,checkValues:b,disabledOnEdit:C,editMode:D,useRef:E,showDelete:S,persist:A})=>{const[k]=ge.useState(f),w=zt.useFormikContext(),{setFieldValue:M,setFieldTouched:N,values:V,touched:F,errors:Y}=w,$=F[i]&&Y[i],O=V[i];ge.useEffect(()=>{M(i,r?d?Array.isArray(r)?r:[r]:r:[],!1)},[r]),ge.useEffect(()=>{c?.(V)&&!A&&M(i,r?d?Array.isArray(r)?r:[r]:r:[],!0)},[]);const j=typeof O=="object"?JSON.stringify(O):O;ge.useEffect(()=>{c?.(V)&&!A&&M(i,r?d?Array.isArray(r)?r:[r]:r:[],!1)},[j]);const I=ge.useCallback(q=>{const{target:{value:B}}=q;p?.(q,w),M(i,typeof B=="string"?B.split(","):B,!0),N(i)},[]);return T.jsx(Ae.Grid,{item:!0,display:c?.(V)?"none":"unset",xs:o?.xs,sm:o?.sm,md:o?.md,lg:o?.lg,xl:o?.xl,sx:n,children:T.jsxs(Ae.FormControl,{fullWidth:!0,error:!!$,disabled:D&&C||l?.(V),children:[T.jsx(Ae.InputLabel,{id:`${e??i}-label`,children:T.jsxs("label",{children:[a,(m?.required||m?.min)&&T.jsx("b",{style:{color:"red"},children:" * "})]})}),T.jsxs(Ae.Select,{id:e??i,name:i,label:T.jsxs("label",{children:[a,(m?.length||m?.min)&&T.jsx("b",{style:{color:"red"},children:" * "})]}),value:t==="multiselect"?typeof O=="object"?O:[O]:O??"",onChange:I,sx:u,multiple:t==="multiselect",disabled:l?.(V),hidden:c?.(V),renderValue:q=>d=="chips"?T.jsx(Ae.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:k?.filter(({idconcepto:B})=>q?.includes(`${B}`))?.map(B=>T.jsx(Ae.Chip,{label:B.denominacion},`${B.idconcepto}`))}):k?.filter(({idconcepto:B})=>q.includes(`${B}`))?.map(({denominacion:B})=>B).join(", "),ref:E,children:[k?.map(q=>T.jsxs(Ae.MenuItem,{value:`${q.idconcepto}`,children:[t==="multiselect"&&T.jsx(Ae.Checkbox,{checked:O?.includes(`${q.idconcepto}`)}),T.jsxs(Ae.InputLabel,{children:[b?.includes(`${q.idconcepto}`)&&T.jsx(FD,{color:"primary",sx:{marginRight:"2px"}}),q.denominacion]})]},`${q.idconcepto}`)),!m?.required&&t!=="multiselect"&&T.jsx(Ae.MenuItem,{value:void 0,sx:{marginBottom:"-8px",paddingBottom:"8px",backgroundColor:"cornflowerblue",justifyContent:"center","&:hover":{backgroundColor:"cornflowerblue",cursor:"default"}},children:T.jsx(Ae.InputLabel,{sx:{fontWeight:"bold",color:"white"},children:"Limpiar"})})]}),T.jsx(Ae.FormHelperText,{children:$})]})})},ND=({name:e,label:t,disabled:n,initialValue:r,gridSx:o,hidden:i,sx:a,startIcon:l,endIcon:c,min:u,max:d,validations:f,gridValues:h})=>{const{setFieldValue:v,setFieldTouched:m,values:p,touched:b,errors:C}=zt.useFormikContext();b[e]&&C[e],p[e];const D=ge.useCallback((E,S)=>{v(e,S,!1)},[]);return ge.useEffect(()=>{v(e,r??0,!1)},[r]),T.jsx(Ae.Grid,{item:!0,display:i?.(p)?"none":"unset",xs:h?.xs,sm:h?.sm,md:h?.md,lg:h?.lg,xl:h?.xl,sx:o,children:T.jsxs(Ae.Box,{sx:{width:"90%"},children:[T.jsx(Ae.Typography,{id:"input-slider",gutterBottom:!0,children:t}),T.jsxs(Ae.Stack,{spacing:2,direction:"row",sx:{m:1},alignItems:"center",children:[l,T.jsx(Ae.Slider,{name:e,min:u,max:d,value:p[e]??0,onChange:D,valueLabelDisplay:"auto",sx:a,disabled:n?.(p)}),c]})]})})},BD=e=>{const{id:t,name:n,gridSx:r,label:o,initialValue:i,disabled:a,sx:l,labelPlacement:c,color:u,gridValues:d,hidden:f}=e,h={...l,"& .MuiSwitch-switchBase.Mui-checked":{color:u},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:u}},{setFieldValue:v,setFieldTouched:m,values:p,touched:b,errors:C}=zt.useFormikContext();b[n]&&C[n];const D=p[n],E=ge.useCallback(S=>{v(n,S?.target?.checked,!1)},[]);return ge.useEffect(()=>{v(n,i??!1,!1)},[i]),T.jsx(Ae.Grid,{item:!0,display:f?.(p)?"none":"unset",xs:d?.xs,sm:d?.sm,md:d?.md,lg:d?.lg,xl:d?.xl,sx:r,children:T.jsx(Ae.FormControlLabel,{name:n,id:t??n,control:T.jsx(Ae.Switch,{sx:h}),label:o,checked:D,disabled:a?.(p),onChange:E,labelPlacement:c})})},jD=({id:e,gridSx:t,initialValue:n,gridValues:r,name:o,label:i,color:a,disabled:l,hidden:c,focused:u,placeholder:d,pattern:f,sx:h,onChange:v,validations:m,multiline:p,disabledOnEdit:b,editMode:C,persist:D})=>{const{setFieldValue:E,setFieldTouched:S,values:A,touched:k,errors:w}=zt.useFormikContext(),M=k[o]&&w[o],N=A[o],V=ge.useCallback($=>{v?.(typeof $=="string"?$.trim():$),E(o,$.target.value?.trimStart(),!0),S(o)},[]);ge.useEffect(()=>{E(o,n??"",!1)},[n]);const F=typeof N=="object"?JSON.stringify(N):N;ge.useEffect(()=>{c?.(A)&&!D&&E(o,n??"",!1)},[F]);function Y($){for(const O of $)if(!f.test(O))return!0;return!1}return T.jsx(Ae.Grid,{item:!0,display:c?.(A)?"none":"unset",xs:r?.xs,sm:r?.sm,md:r?.md,lg:r?.lg,xl:r?.xl,sx:t,children:T.jsx(Ae.TextField,{fullWidth:!0,id:e??o,name:o,multiline:!!p,minRows:p?.minRows,maxRows:p?.maxRows,label:T.jsxs("label",{children:[i,m?.required&&T.jsx("b",{style:{color:"red"},children:" * "})]}),color:a,focused:u,placeholder:d,disabled:C&&b||l?.(A),sx:h,value:N??"",error:M,helperText:M,onKeyDown:$=>{$.key.length===1&&!f.test($.key)&&$.preventDefault()},onBeforeInput:$=>{const O=$.data;O&&Y(O)&&$.preventDefault()},onPaste:$=>{const O=$.clipboardData.getData("text");Y(O)&&$.preventDefault()},onDrop:$=>{const O=$.dataTransfer?.getData("text")??"";Y(O)&&$.preventDefault()},onChange:V})})},VD=e=>{const{name:t,gridSx:n,label:r,disabled:o,hidden:i,sx:a,validations:l,gridValues:c,disabledOnEdit:u,editMode:d,initialValue:f,persist:h}=e,{setFieldValue:v,setFieldTouched:m,values:p,touched:b,errors:C}=zt.useFormikContext(),D=b[t]&&C[t],E=p[t],S=ge.useCallback(w=>{w&&w.isValid()?v(t,w.format("HH:mm:ss"),!1):v(t,"",!1),m(t,!0,!1)},[t,v,m]);ge.useEffect(()=>{if(f){const w=ft(f,"HH:mm:ss");v(t,w.isValid()?f:"",!1)}},[f,t,v]);const A=E&&ft(E,"HH:mm:ss").isValid()?ft(E,"HH:mm:ss"):null,k=typeof E=="object"?JSON.stringify(E):E;return ge.useEffect(()=>{if(i?.(p)&&!h){const w=ft(f,"HH:mm:ss");v(t,w.isValid()?f:"",!1)}},[k]),T.jsx(Ae.Grid,{item:!0,display:i?.(p)?"none":"unset",xs:c?.xs,sm:c?.sm,md:c?.md,lg:c?.lg,xl:c?.xl,sx:n,children:T.jsx(Vi,{dateAdapter:qf,localeText:rm.components.MuiLocalizationProvider.defaultProps.localeText,children:T.jsxs(Ae.FormControl,{sx:{...a,width:"100%"},children:[T.jsx(nm,{label:T.jsxs("label",{children:[r,l?.required&&T.jsx("b",{style:{color:"red"},children:" * "})]}),name:t,value:A,disabled:d&&u||o?.(p),onChange:S,format:"HH:mm:ss",slotProps:{textField:{error:!1}}}),D&&T.jsx(Ae.FormHelperText,{sx:{color:"#d32f2f"},children:D})]})})})};var sm=e=>{throw TypeError(e)},im=(e,t,n)=>t.has(e)||sm("Cannot "+n),$D=(e,t,n)=>(im(e,t,"read from private field"),n?n.call(e):t.get(e)),LD=(e,t,n)=>t.has(e)?sm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_D=(e,t,n,r)=>(im(e,t,"write to private field"),t.set(e,n),n);const na=[["Aztec","M"],["Codabar","L"],["Code39","L"],["Code93","L"],["Code128","L"],["DataBar","L"],["DataBarExpanded","L"],["DataMatrix","M"],["EAN-8","L"],["EAN-13","L"],["ITF","L"],["MaxiCode","M"],["PDF417","M"],["QRCode","M"],["UPC-A","L"],["UPC-E","L"],["MicroQRCode","M"],["rMQRCode","M"],["DXFilmEdge","L"],["DataBarLimited","L"]],ra=na.map(([e])=>e),qD=ra.filter((e,t)=>na[t][1]==="L"),YD=ra.filter((e,t)=>na[t][1]==="M");function hl(e){switch(e){case"Linear-Codes":return qD.reduce((t,n)=>t|hl(n),0);case"Matrix-Codes":return YD.reduce((t,n)=>t|hl(n),0);case"Any":return(1<<na.length)-1;case"None":return 0;default:return 1<<ra.indexOf(e)}}function UD(e){if(e===0)return"None";const t=31-Math.clz32(e);return ra[t]}function WD(e){return e.reduce((t,n)=>t|hl(n),0)}const GD=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function zD(e){return GD.indexOf(e)}const Gd=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function HD(e){return e==="UnicodeBig"?Gd.indexOf("UTF16BE"):Gd.indexOf(e)}const KD=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function QD(e){return KD[e]}const JD=["Ignore","Read","Require"];function ZD(e){return JD.indexOf(e)}const XD=["Plain","ECI","HRI","Hex","Escaped"];function eP(e){return XD.indexOf(e)}const yi={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!0,returnErrors:!1,eanAddOnSymbol:"Ignore",textMode:"HRI",characterSet:"Unknown"};function zd(e){return{...e,formats:WD(e.formats),binarizer:zD(e.binarizer),eanAddOnSymbol:ZD(e.eanAddOnSymbol),textMode:eP(e.textMode),characterSet:HD(e.characterSet)}}function tP(e){return{...e,format:UD(e.format),contentType:QD(e.contentType),eccLevel:e.ecLevel}}const nP={locateFile:(e,t)=>{const n=e.match(/_(.+?)\.wasm$/);return n?`https://fastly.jsdelivr.net/npm/zxing-wasm@2.2.4/dist/${n[1]}/${e}`:t+e}},Ga=new WeakMap;function rP(e,t){return Object.is(e,t)||Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>Object.hasOwn(t,n)&&e[n]===t[n])}function am(e,{overrides:t,equalityFn:n=rP,fireImmediately:r=!1}={}){var o;const[i,a]=(o=Ga.get(e))!=null?o:[nP],l=t??i;let c;if(r){if(a&&(c=n(i,l)))return a;const u=e({...l});return Ga.set(e,[l,u]),u}(c??n(i,l))||Ga.set(e,[l])}async function oP(e,t,n=yi){const r={...yi,...n},o=await am(e,{fireImmediately:!0});let i,a;if("width"in t&&"height"in t&&"data"in t){const{data:c,data:{byteLength:u},width:d,height:f}=t;a=o._malloc(u),o.HEAPU8.set(c,a),i=o.readBarcodesFromPixmap(a,d,f,zd(r))}else{let c,u;if("buffer"in t)[c,u]=[t.byteLength,t];else if("byteLength"in t)[c,u]=[t.byteLength,new Uint8Array(t)];else if("size"in t)[c,u]=[t.size,new Uint8Array(await t.arrayBuffer())];else throw new TypeError("Invalid input type");a=o._malloc(c),o.HEAPU8.set(u,a),i=o.readBarcodesFromImage(a,c,zd(r))}o._free(a);const l=[];for(let c=0;c<i.size();++c)l.push(tP(i.get(c)));return l}({...yi,formats:[...yi.formats]});async function lm(e={}){var t,n,r,o=e,i=!!globalThis.window,a=typeof Bun<"u",l=!!globalThis.WorkerGlobalScope;!((n=globalThis.process)===null||n===void 0||(n=n.versions)===null||n===void 0)&&n.node&&((r=globalThis.process)===null||r===void 0?void 0:r.type)!="renderer";var c="./this.program",u,d="";function f(g){return o.locateFile?o.locateFile(g,d):d+g}var h,v;if(i||l||a){try{d=new URL(".",u).href}catch{}l&&(v=g=>{var y=new XMLHttpRequest;return y.open("GET",g,!1),y.responseType="arraybuffer",y.send(null),new Uint8Array(y.response)}),h=async g=>{var y=await fetch(g,{credentials:"same-origin"});if(y.ok)return y.arrayBuffer();throw new Error(y.status+" : "+y.url)}}var m=console.log.bind(console),p=console.error.bind(console),b,C=!1,D,E,S,A,k,w,M,N,V,F,Y=!1;function $(){var g=ms.buffer;S=new Int8Array(g),k=new Int16Array(g),o.HEAPU8=A=new Uint8Array(g),w=new Uint16Array(g),M=new Int32Array(g),N=new Uint32Array(g),V=new Float32Array(g),F=new Float64Array(g)}function O(){if(o.preRun)for(typeof o.preRun=="function"&&(o.preRun=[o.preRun]);o.preRun.length;)X(o.preRun.shift());oe(ee)}function j(){Y=!0,po.xa()}function I(){if(o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;)te(o.postRun.shift());oe(ie)}function q(g){var y,P;(y=o.onAbort)===null||y===void 0||y.call(o,g),g="Aborted("+g+")",p(g),C=!0,g+=". Build with -sASSERTIONS for more info.";var L=new WebAssembly.RuntimeError(g);throw(P=E)===null||P===void 0||P(L),L}var B;function Q(){return f("zxing_reader.wasm")}function _(g){if(g==B&&b)return new Uint8Array(b);if(v)return v(g);throw"both async and sync fetching of the wasm failed"}async function H(g){if(!b)try{var y=await h(g);return new Uint8Array(y)}catch{}return _(g)}async function le(g,y){try{var P=await H(g),L=await WebAssembly.instantiate(P,y);return L}catch(G){p(`failed to asynchronously prepare wasm: ${G}`),q(G)}}async function ne(g,y,P){if(!g&&WebAssembly.instantiateStreaming)try{var L=fetch(y,{credentials:"same-origin"}),G=await WebAssembly.instantiateStreaming(L,P);return G}catch(J){p(`wasm streaming compile failed: ${J}`),p("falling back to ArrayBuffer instantiation")}return le(y,P)}function se(){var g={a:wy};return g}async function Z(){function g(J,ae){return po=J.exports,Ty(po),$(),po}function y(J){return g(J.instance)}var P=se();if(o.instantiateWasm)return new Promise((J,ae)=>{o.instantiateWasm(P,(ue,ye)=>{J(g(ue))})});B!=null||(B=Q());var L=await ne(b,B,P),G=y(L);return G}var oe=g=>{for(;g.length>0;)g.shift()(o)},ie=[],te=g=>ie.push(g),ee=[],X=g=>ee.push(g),K=g=>jc(g),U=()=>Vc(),z=[],ce=0,pe=g=>{var y=new me(g);return y.get_caught()||(y.set_caught(!0),ce--),y.set_rethrown(!1),z.push(y),Lc(g),Nc(g)},re=0,he=()=>{Ue(0,0);var g=z.pop();$c(g.excPtr),re=0};class me{constructor(y){this.excPtr=y,this.ptr=y-24}set_type(y){N[this.ptr+4>>2]=y}get_type(){return N[this.ptr+4>>2]}set_destructor(y){N[this.ptr+8>>2]=y}get_destructor(){return N[this.ptr+8>>2]}set_caught(y){y=y?1:0,S[this.ptr+12]=y}get_caught(){return S[this.ptr+12]!=0}set_rethrown(y){y=y?1:0,S[this.ptr+13]=y}get_rethrown(){return S[this.ptr+13]!=0}init(y,P){this.set_adjusted_ptr(0),this.set_type(y),this.set_destructor(P)}set_adjusted_ptr(y){N[this.ptr+16>>2]=y}get_adjusted_ptr(){return N[this.ptr+16>>2]}}var Ce=g=>Bc(g),Ee=g=>{var y=re;if(!y)return Ce(0),0;var P=new me(y);P.set_adjusted_ptr(y);var L=P.get_type();if(!L)return Ce(0),y;for(var G of g){if(G===0||G===L)break;var J=P.ptr+16;if(_c(G,L,J))return Ce(G),y}return Ce(L),y},Se=()=>Ee([]),$e=g=>Ee([g]),et=(g,y)=>Ee([g,y]),We=()=>{var g=z.pop();g||q("no exception to throw");var y=g.excPtr;throw g.get_rethrown()||(z.push(g),g.set_rethrown(!0),g.set_caught(!1),ce++),re=y,re},mt=(g,y,P)=>{var L=new me(g);throw L.init(y,P),re=g,ce++,re},vt=()=>ce,Ct=g=>{throw re||(re=g),re},Le=()=>q(""),Oe={},gt=g=>{for(;g.length;){var y=g.pop(),P=g.pop();P(y)}};function $t(g){return this.fromWireType(N[g>>2])}var Nt={},Bt={},De={},_e=class extends Error{constructor(g){super(g),this.name="InternalError"}},it=g=>{throw new _e(g)},Ot=(g,y,P)=>{g.forEach(ue=>De[ue]=y);function L(ue){var ye=P(ue);ye.length!==g.length&&it("Mismatched type converter count");for(var xe=0;xe<g.length;++xe)sn(g[xe],ye[xe])}var G=new Array(y.length),J=[],ae=0;{const ue=y;for(let ye=0;ye<ue.length;++ye){const xe=ue[ye];Bt.hasOwnProperty(xe)?G[ye]=Bt[xe]:(J.push(xe),Nt.hasOwnProperty(xe)||(Nt[xe]=[]),Nt[xe].push(()=>{G[ye]=Bt[xe],++ae,ae===J.length&&L(G)}))}}J.length===0&&L(G)},Mn=g=>{var y=Oe[g];delete Oe[g];var P=y.rawConstructor,L=y.rawDestructor,G=y.fields,J=G.map(ae=>ae.getterReturnType).concat(G.map(ae=>ae.setterArgumentType));Ot([g],J,ae=>{var ue={};{const ye=G;for(let xe=0;xe<ye.length;++xe){const Pe=ye[xe],je=ae[xe],lt=Pe.getter,yt=Pe.getterContext,Dt=ae[xe+G.length],Rt=Pe.setter,bt=Pe.setterContext;ue[Pe.fieldName]={read:dt=>je.fromWireType(lt(yt,dt)),write:(dt,ir)=>{var Wt=[];Rt(bt,dt,Dt.toWireType(Wt,ir)),gt(Wt)},optional:je.optional}}}return[{name:y.name,fromWireType:ye=>{var xe={};for(var Pe in ue)xe[Pe]=ue[Pe].read(ye);return L(ye),xe},toWireType:(ye,xe)=>{for(var Pe in ue)if(!(Pe in xe)&&!ue[Pe].optional)throw new TypeError(`Missing field: "${Pe}"`);var je=P();for(Pe in ue)ue[Pe].write(je,xe[Pe]);return ye!==null&&ye.push(L,je),je},readValueFromPointer:$t,destructorFunction:L}]})},at=(g,y,P,L,G)=>{},ze=g=>{for(var y="";;){var P=A[g++];if(!P)return y;y+=String.fromCharCode(P)}},Yt=class extends Error{constructor(g){super(g),this.name="BindingError"}},Ve=g=>{throw new Yt(g)};function cs(g,y){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var L=y.name;if(g||Ve(`type "${L}" must have a positive integer typeid pointer`),Bt.hasOwnProperty(g)){if(P.ignoreDuplicateRegistrations)return;Ve(`Cannot register type '${L}' twice`)}if(Bt[g]=y,delete De[g],Nt.hasOwnProperty(g)){var G=Nt[g];delete Nt[g],G.forEach(J=>J())}}function sn(g,y){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cs(g,y,P)}var us=(g,y,P,L)=>{y=ze(y),sn(g,{name:y,fromWireType:function(G){return!!G},toWireType:function(G,J){return J?P:L},readValueFromPointer:function(G){return this.fromWireType(A[G])},destructorFunction:null})},ca=g=>({count:g.count,deleteScheduled:g.deleteScheduled,preservePointerOnDelete:g.preservePointerOnDelete,ptr:g.ptr,ptrType:g.ptrType,smartPtr:g.smartPtr,smartPtrType:g.smartPtrType}),Er=g=>{function y(P){return P.$$.ptrType.registeredClass.name}Ve(y(g)+" instance already deleted")},Sr=!1,ds=g=>{},ua=g=>{g.smartPtr?g.smartPtrType.rawDestructor(g.smartPtr):g.ptrType.registeredClass.rawDestructor(g.ptr)},co=g=>{g.count.value-=1;var y=g.count.value===0;y&&ua(g)},Gn=g=>globalThis.FinalizationRegistry?(Sr=new FinalizationRegistry(y=>{co(y.$$)}),Gn=y=>{var P=y.$$,L=!!P.smartPtr;if(L){var G={$$:P};Sr.register(y,G,y)}return y},ds=y=>Sr.unregister(y),Gn(g)):(Gn=y=>y,g),da=()=>{let g=Rr.prototype;Object.assign(g,{isAliasOf(P){if(!(this instanceof Rr)||!(P instanceof Rr))return!1;var L=this.$$.ptrType.registeredClass,G=this.$$.ptr;P.$$=P.$$;for(var J=P.$$.ptrType.registeredClass,ae=P.$$.ptr;L.baseClass;)G=L.upcast(G),L=L.baseClass;for(;J.baseClass;)ae=J.upcast(ae),J=J.baseClass;return L===J&&G===ae},clone(){if(this.$$.ptr||Er(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var P=Gn(Object.create(Object.getPrototypeOf(this),{$$:{value:ca(this.$$)}}));return P.$$.count.value+=1,P.$$.deleteScheduled=!1,P},delete(){this.$$.ptr||Er(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ve("Object already scheduled for deletion"),ds(this),co(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Er(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ve("Object already scheduled for deletion"),this.$$.deleteScheduled=!0,this}});const y=Symbol.dispose;y&&(g[y]=g.delete)};function Rr(){}var uo=(g,y)=>Object.defineProperty(y,"name",{value:g}),fs={},W=(g,y,P)=>{if(g[y].overloadTable===void 0){var L=g[y];g[y]=function(){for(var G=arguments.length,J=new Array(G),ae=0;ae<G;ae++)J[ae]=arguments[ae];return g[y].overloadTable.hasOwnProperty(J.length)||Ve(`Function '${P}' called with an invalid number of arguments (${J.length}) - expects one of (${g[y].overloadTable})!`),g[y].overloadTable[J.length].apply(this,J)},g[y].overloadTable=[],g[y].overloadTable[L.argCount]=L}},be=(g,y,P)=>{o.hasOwnProperty(g)?((P===void 0||o[g].overloadTable!==void 0&&o[g].overloadTable[P]!==void 0)&&Ve(`Cannot register public name '${g}' twice`),W(o,g,g),o[g].overloadTable.hasOwnProperty(P)&&Ve(`Cannot register multiple overloads of a function with the same number of arguments (${P})!`),o[g].overloadTable[P]=y):(o[g]=y,o[g].argCount=P)},Re=48,Ne=57,He=g=>{g=g.replace(/[^a-zA-Z0-9_]/g,"$");var y=g.charCodeAt(0);return y>=Re&&y<=Ne?`_${g}`:g};function ot(g,y,P,L,G,J,ae,ue){this.name=g,this.constructor=y,this.instancePrototype=P,this.rawDestructor=L,this.baseClass=G,this.getActualType=J,this.upcast=ae,this.downcast=ue,this.pureVirtualFunctions=[]}var Ye=(g,y,P)=>{for(;y!==P;)y.upcast||Ve(`Expected null or instance of ${P.name}, got an instance of ${y.name}`),g=y.upcast(g),y=y.baseClass;return g},qe=g=>{if(g===null)return"null";var y=typeof g;return y==="object"||y==="array"||y==="function"?g.toString():""+g};function jt(g,y){if(y===null)return this.isReference&&Ve(`null is not a valid ${this.name}`),0;y.$$||Ve(`Cannot pass "${qe(y)}" as a ${this.name}`),y.$$.ptr||Ve(`Cannot pass deleted object as a pointer of type ${this.name}`);var P=y.$$.ptrType.registeredClass,L=Ye(y.$$.ptr,P,this.registeredClass);return L}function Tt(g,y){var P;if(y===null)return this.isReference&&Ve(`null is not a valid ${this.name}`),this.isSmartPointer?(P=this.rawConstructor(),g!==null&&g.push(this.rawDestructor,P),P):0;(!y||!y.$$)&&Ve(`Cannot pass "${qe(y)}" as a ${this.name}`),y.$$.ptr||Ve(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&y.$$.ptrType.isConst&&Ve(`Cannot convert argument of type ${y.$$.smartPtrType?y.$$.smartPtrType.name:y.$$.ptrType.name} to parameter type ${this.name}`);var L=y.$$.ptrType.registeredClass;if(P=Ye(y.$$.ptr,L,this.registeredClass),this.isSmartPointer)switch(y.$$.smartPtr===void 0&&Ve("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:y.$$.smartPtrType===this?P=y.$$.smartPtr:Ve(`Cannot convert argument of type ${y.$$.smartPtrType?y.$$.smartPtrType.name:y.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:P=y.$$.smartPtr;break;case 2:if(y.$$.smartPtrType===this)P=y.$$.smartPtr;else{var G=y.clone();P=this.rawShare(P,An.toHandle(()=>G.delete())),g!==null&&g.push(this.rawDestructor,P)}break;default:Ve("Unsupporting sharing policy")}return P}function St(g,y){if(y===null)return this.isReference&&Ve(`null is not a valid ${this.name}`),0;y.$$||Ve(`Cannot pass "${qe(y)}" as a ${this.name}`),y.$$.ptr||Ve(`Cannot pass deleted object as a pointer of type ${this.name}`),y.$$.ptrType.isConst&&Ve(`Cannot convert argument of type ${y.$$.ptrType.name} to parameter type ${this.name}`);var P=y.$$.ptrType.registeredClass,L=Ye(y.$$.ptr,P,this.registeredClass);return L}var Ut=(g,y,P)=>{if(y===P)return g;if(P.baseClass===void 0)return null;var L=Ut(g,y,P.baseClass);return L===null?null:P.downcast(L)},zn={},Nn=(g,y)=>{for(y===void 0&&Ve("ptr should not be undefined");g.baseClass;)y=g.upcast(y),g=g.baseClass;return y},Lt=(g,y)=>(y=Nn(g,y),zn[y]),Hn=(g,y)=>{(!y.ptrType||!y.ptr)&&it("makeClassHandle requires ptr and ptrType");var P=!!y.smartPtrType,L=!!y.smartPtr;return P!==L&&it("Both smartPtrType and smartPtr must be specified"),y.count={value:1},Gn(Object.create(g,{$$:{value:y,writable:!0}}))};function fa(g){var y=this.getPointee(g);if(!y)return this.destructor(g),null;var P=Lt(this.registeredClass,y);if(P!==void 0){if(P.$$.count.value===0)return P.$$.ptr=y,P.$$.smartPtr=g,P.clone();var L=P.clone();return this.destructor(g),L}function G(){return this.isSmartPointer?Hn(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:y,smartPtrType:this,smartPtr:g}):Hn(this.registeredClass.instancePrototype,{ptrType:this,ptr:g})}var J=this.registeredClass.getActualType(y),ae=fs[J];if(!ae)return G.call(this);var ue;this.isConst?ue=ae.constPointerType:ue=ae.pointerType;var ye=Ut(y,this.registeredClass,ue.registeredClass);return ye===null?G.call(this):this.isSmartPointer?Hn(ue.registeredClass.instancePrototype,{ptrType:ue,ptr:ye,smartPtrType:this,smartPtr:g}):Hn(ue.registeredClass.instancePrototype,{ptrType:ue,ptr:ye})}var pa=()=>{Object.assign(ps.prototype,{getPointee(g){return this.rawGetPointee&&(g=this.rawGetPointee(g)),g},destructor(g){var y;(y=this.rawDestructor)===null||y===void 0||y.call(this,g)},readValueFromPointer:$t,fromWireType:fa})};function ps(g,y,P,L,G,J,ae,ue,ye,xe,Pe){this.name=g,this.registeredClass=y,this.isReference=P,this.isConst=L,this.isSmartPointer=G,this.pointeeType=J,this.sharingPolicy=ae,this.rawGetPointee=ue,this.rawConstructor=ye,this.rawShare=xe,this.rawDestructor=Pe,!G&&y.baseClass===void 0?L?(this.toWireType=jt,this.destructorFunction=null):(this.toWireType=St,this.destructorFunction=null):this.toWireType=Tt}var Tc=(g,y,P)=>{o.hasOwnProperty(g)||it("Replacing nonexistent public symbol"),o[g].overloadTable!==void 0&&P!==void 0?o[g].overloadTable[P]=y:(o[g]=y,o[g].argCount=P)},Kn={},Tg=(g,y,P)=>{g=g.replace(/p/g,"i");var L=Kn[g];return L(y,...P)},wc=[],Ge=g=>{var y=wc[g];return y||(wc[g]=y=Uc.get(g)),y},wg=function(g,y){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(g.includes("j"))return Tg(g,y,P);var L=Ge(y),G=L(...P);return G},Eg=function(g,y){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return function(){for(var L=arguments.length,G=new Array(L),J=0;J<L;J++)G[J]=arguments[J];return wg(g,y,G,P)}},bn=function(g,y){g=ze(g);function P(){if(g.includes("j"))return Eg(g,y);var G=Ge(y);return G}var L=P();return typeof L!="function"&&Ve(`unknown function pointer with signature ${g}: ${y}`),L};class Sg extends Error{}var Ec=g=>{var y=Fc(g),P=ze(y);return Qn(y),P},hs=(g,y)=>{var P=[],L={};function G(J){if(!L[J]&&!Bt[J]){if(De[J]){De[J].forEach(G);return}P.push(J),L[J]=!0}}throw y.forEach(G),new Sg(`${g}: `+P.map(Ec).join([", "]))},Rg=(g,y,P,L,G,J,ae,ue,ye,xe,Pe,je,lt)=>{Pe=ze(Pe),J=bn(G,J),ue&&(ue=bn(ae,ue)),xe&&(xe=bn(ye,xe)),lt=bn(je,lt);var yt=He(Pe);be(yt,function(){hs(`Cannot construct ${Pe} due to unbound types`,[L])}),Ot([g,y,P],L?[L]:[],Dt=>{Dt=Dt[0];var Rt,bt;L?(Rt=Dt.registeredClass,bt=Rt.instancePrototype):bt=Rr.prototype;var dt=uo(Pe,function(){if(Object.getPrototypeOf(this)!==ir)throw new Yt(`Use 'new' to construct ${Pe}`);if(Wt.constructor_body===void 0)throw new Yt(`${Pe} has no accessible constructor`);for(var zc=arguments.length,ys=new Array(zc),bs=0;bs<zc;bs++)ys[bs]=arguments[bs];var Hc=Wt.constructor_body[ys.length];if(Hc===void 0)throw new Yt(`Tried to invoke ctor of ${Pe} with invalid number of parameters (${ys.length}) - expected (${Object.keys(Wt.constructor_body).toString()}) parameters instead!`);return Hc.apply(this,ys)}),ir=Object.create(bt,{constructor:{value:dt}});dt.prototype=ir;var Wt=new ot(Pe,dt,ir,lt,Rt,J,ue,xe);if(Wt.baseClass){var Bn,gs;(gs=(Bn=Wt.baseClass).__derivedClasses)!==null&&gs!==void 0||(Bn.__derivedClasses=[]),Wt.baseClass.__derivedClasses.push(Wt)}var ib=new ps(Pe,Wt,!0,!1,!1),Wc=new ps(Pe+"*",Wt,!1,!1,!1),Gc=new ps(Pe+" const*",Wt,!1,!0,!1);return fs[g]={pointerType:Wc,constPointerType:Gc},Tc(yt,dt),[ib,Wc,Gc]})},ha=(g,y)=>{for(var P=[],L=0;L<g;L++)P.push(N[y+L*4>>2]);return P};function Mg(g){for(var y=1;y<g.length;++y)if(g[y]!==null&&g[y].destructorFunction===void 0)return!0;return!1}function ma(g,y,P,L,G,J){var ae=y.length;ae<2&&Ve("argTypes array size mismatch! Must at least get return value and 'this' types!");var ue=y[1]!==null&&P!==null,ye=Mg(y),xe=!y[0].isVoid,Pe=ae-2,je=new Array(Pe),lt=[],yt=[],Dt=function(){yt.length=0;var Rt;lt.length=ue?2:1,lt[0]=G,ue&&(Rt=y[1].toWireType(yt,this),lt[1]=Rt);for(var bt=0;bt<Pe;++bt)je[bt]=y[bt+2].toWireType(yt,bt<0||arguments.length<=bt?void 0:arguments[bt]),lt.push(je[bt]);var dt=L(...lt);function ir(Wt){if(ye)gt(yt);else for(var Bn=ue?1:2;Bn<y.length;Bn++){var gs=Bn===1?Rt:je[Bn-2];y[Bn].destructorFunction!==null&&y[Bn].destructorFunction(gs)}if(xe)return y[0].fromWireType(Wt)}return ir(dt)};return uo(g,Dt)}var Ag=(g,y,P,L,G,J)=>{var ae=ha(y,P);G=bn(L,G),Ot([],[g],ue=>{ue=ue[0];var ye=`constructor ${ue.name}`;if(ue.registeredClass.constructor_body===void 0&&(ue.registeredClass.constructor_body=[]),ue.registeredClass.constructor_body[y-1]!==void 0)throw new Yt(`Cannot register multiple constructors with identical number of parameters (${y-1}) for class '${ue.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return ue.registeredClass.constructor_body[y-1]=()=>{hs(`Cannot construct ${ue.name} due to unbound types`,ae)},Ot([],ae,xe=>(xe.splice(1,0,null),ue.registeredClass.constructor_body[y-1]=ma(ye,xe,null,G,J),[])),[]})},Sc=g=>{g=g.trim();const y=g.indexOf("(");return y===-1?g:g.slice(0,y)},Dg=(g,y,P,L,G,J,ae,ue,ye,xe)=>{var Pe=ha(P,L);y=ze(y),y=Sc(y),J=bn(G,J),Ot([],[g],je=>{je=je[0];var lt=`${je.name}.${y}`;y.startsWith("@@")&&(y=Symbol[y.substring(2)]),ue&&je.registeredClass.pureVirtualFunctions.push(y);function yt(){hs(`Cannot call ${lt} due to unbound types`,Pe)}var Dt=je.registeredClass.instancePrototype,Rt=Dt[y];return Rt===void 0||Rt.overloadTable===void 0&&Rt.className!==je.name&&Rt.argCount===P-2?(yt.argCount=P-2,yt.className=je.name,Dt[y]=yt):(W(Dt,y,lt),Dt[y].overloadTable[P-2]=yt),Ot([],Pe,bt=>{var dt=ma(lt,bt,je,J,ae);return Dt[y].overloadTable===void 0?(dt.argCount=P-2,Dt[y]=dt):Dt[y].overloadTable[P-2]=dt,[]}),[]})},Rc=[],sr=[0,1,,1,null,1,!0,1,!1,1],ga=g=>{g>9&&--sr[g+1]===0&&(sr[g]=void 0,Rc.push(g))},An={toValue:g=>(g||Ve(`Cannot use deleted val. handle = ${g}`),sr[g]),toHandle:g=>{switch(g){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const y=Rc.pop()||sr.length;return sr[y]=g,sr[y+1]=1,y}}}},Mc={name:"emscripten::val",fromWireType:g=>{var y=An.toValue(g);return ga(g),y},toWireType:(g,y)=>An.toHandle(y),readValueFromPointer:$t,destructorFunction:null},Pg=g=>sn(g,Mc),Og=(g,y)=>{switch(y){case 4:return function(P){return this.fromWireType(V[P>>2])};case 8:return function(P){return this.fromWireType(F[P>>3])};default:throw new TypeError(`invalid float width (${y}): ${g}`)}},kg=(g,y,P)=>{y=ze(y),sn(g,{name:y,fromWireType:L=>L,toWireType:(L,G)=>G,readValueFromPointer:Og(y,P),destructorFunction:null})},Ig=(g,y,P,L,G,J,ae,ue)=>{var ye=ha(y,P);g=ze(g),g=Sc(g),G=bn(L,G),be(g,function(){hs(`Cannot call ${g} due to unbound types`,ye)},y-1),Ot([],ye,xe=>{var Pe=[xe[0],null].concat(xe.slice(1));return Tc(g,ma(g,Pe,null,G,J),y-1),[]})},Fg=(g,y,P)=>{switch(y){case 1:return P?L=>S[L]:L=>A[L];case 2:return P?L=>k[L>>1]:L=>w[L>>1];case 4:return P?L=>M[L>>2]:L=>N[L>>2];default:throw new TypeError(`invalid integer width (${y}): ${g}`)}},Ng=(g,y,P,L,G)=>{y=ze(y);const J=L===0;let ae=ye=>ye;if(J){var ue=32-8*P;ae=ye=>ye<<ue>>>ue,G=ae(G)}sn(g,{name:y,fromWireType:ae,toWireType:(ye,xe)=>xe,readValueFromPointer:Fg(y,P,L!==0),destructorFunction:null})},Bg=(g,y,P)=>{var L=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],G=L[y];function J(ae){var ue=N[ae>>2],ye=N[ae+4>>2];return new G(S.buffer,ye,ue)}P=ze(P),sn(g,{name:P,fromWireType:J,readValueFromPointer:J},{ignoreDuplicateRegistrations:!0})},jg=Object.assign({optional:!0},Mc),Vg=(g,y)=>{sn(g,jg)},$g=(g,y,P,L)=>{if(!(L>0))return 0;for(var G=P,J=P+L-1,ae=0;ae<g.length;++ae){var ue=g.codePointAt(ae);if(ue<=127){if(P>=J)break;y[P++]=ue}else if(ue<=2047){if(P+1>=J)break;y[P++]=192|ue>>6,y[P++]=128|ue&63}else if(ue<=65535){if(P+2>=J)break;y[P++]=224|ue>>12,y[P++]=128|ue>>6&63,y[P++]=128|ue&63}else{if(P+3>=J)break;y[P++]=240|ue>>18,y[P++]=128|ue>>12&63,y[P++]=128|ue>>6&63,y[P++]=128|ue&63,ae++}}return y[P]=0,P-G},Mr=(g,y,P)=>$g(g,A,y,P),Ac=g=>{for(var y=0,P=0;P<g.length;++P){var L=g.charCodeAt(P);L<=127?y++:L<=2047?y+=2:L>=55296&&L<=57343?(y+=4,++P):y+=3}return y},Dc=globalThis.TextDecoder&&new TextDecoder,Pc=(g,y,P,L)=>{var G=y+P;if(L)return G;for(;g[y]&&!(y>=G);)++y;return y},Oc=function(g){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=arguments.length>2?arguments[2]:void 0,L=arguments.length>3?arguments[3]:void 0;var G=Pc(g,y,P,L);if(G-y>16&&g.buffer&&Dc)return Dc.decode(g.subarray(y,G));for(var J="";y<G;){var ae=g[y++];if(!(ae&128)){J+=String.fromCharCode(ae);continue}var ue=g[y++]&63;if((ae&224)==192){J+=String.fromCharCode((ae&31)<<6|ue);continue}var ye=g[y++]&63;if((ae&240)==224?ae=(ae&15)<<12|ue<<6|ye:ae=(ae&7)<<18|ue<<12|ye<<6|g[y++]&63,ae<65536)J+=String.fromCharCode(ae);else{var xe=ae-65536;J+=String.fromCharCode(55296|xe>>10,56320|xe&1023)}}return J},Lg=(g,y,P)=>g?Oc(A,g,y,P):"",_g=(g,y)=>{y=ze(y),sn(g,{name:y,fromWireType(P){var L=N[P>>2],G=P+4,J;return J=Lg(G,L,!0),Qn(P),J},toWireType(P,L){L instanceof ArrayBuffer&&(L=new Uint8Array(L));var G,J=typeof L=="string";J||ArrayBuffer.isView(L)&&L.BYTES_PER_ELEMENT==1||Ve("Cannot pass non-string to std::string"),J?G=Ac(L):G=L.length;var ae=va(4+G+1),ue=ae+4;return N[ae>>2]=G,J?Mr(L,ue,G+1):A.set(L,ue),P!==null&&P.push(Qn,ae),ae},readValueFromPointer:$t,destructorFunction(P){Qn(P)}})},kc=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,qg=(g,y,P)=>{var L=g>>1,G=Pc(w,L,y/2,P);if(G-L>16&&kc)return kc.decode(w.subarray(L,G));for(var J="",ae=L;ae<G;++ae){var ue=w[ae];J+=String.fromCharCode(ue)}return J},Yg=(g,y,P)=>{if(P!=null||(P=2147483647),P<2)return 0;P-=2;for(var L=y,G=P<g.length*2?P/2:g.length,J=0;J<G;++J){var ae=g.charCodeAt(J);k[y>>1]=ae,y+=2}return k[y>>1]=0,y-L},Ug=g=>g.length*2,Wg=(g,y,P)=>{for(var L="",G=g>>2,J=0;!(J>=y/4);J++){var ae=N[G+J];if(!ae&&!P)break;L+=String.fromCodePoint(ae)}return L},Gg=(g,y,P)=>{if(P!=null||(P=2147483647),P<4)return 0;for(var L=y,G=L+P-4,J=0;J<g.length;++J){var ae=g.codePointAt(J);if(ae>65535&&J++,M[y>>2]=ae,y+=4,y+4>G)break}return M[y>>2]=0,y-L},zg=g=>{for(var y=0,P=0;P<g.length;++P){var L=g.codePointAt(P);L>65535&&P++,y+=4}return y},Hg=(g,y,P)=>{P=ze(P);var L,G,J;y===2?(L=qg,G=Yg,J=Ug):(L=Wg,G=Gg,J=zg),sn(g,{name:P,fromWireType:ae=>{var ue=N[ae>>2],ye=L(ae+4,ue*y,!0);return Qn(ae),ye},toWireType:(ae,ue)=>{typeof ue!="string"&&Ve(`Cannot pass non-string to C++ string type ${P}`);var ye=J(ue),xe=va(4+ye+y);return N[xe>>2]=ye/y,G(ue,xe+4,ye+y),ae!==null&&ae.push(Qn,xe),xe},readValueFromPointer:$t,destructorFunction(ae){Qn(ae)}})},Kg=(g,y,P,L,G,J)=>{Oe[g]={name:ze(y),rawConstructor:bn(P,L),rawDestructor:bn(G,J),fields:[]}},Qg=(g,y,P,L,G,J,ae,ue,ye,xe)=>{Oe[g].fields.push({fieldName:ze(y),getterReturnType:P,getter:bn(L,G),getterContext:J,setterArgumentType:ae,setter:bn(ue,ye),setterContext:xe})},Jg=(g,y)=>{y=ze(y),sn(g,{isVoid:!0,name:y,fromWireType:()=>{},toWireType:(P,L)=>{}})},ya=[],Zg=g=>{var y=ya.length;return ya.push(g),y},Xg=(g,y)=>{var P=Bt[g];return P===void 0&&Ve(`${y} has unknown type ${Ec(g)}`),P},ey=(g,y)=>{for(var P=new Array(g),L=0;L<g;++L)P[L]=Xg(N[y+L*4>>2],`parameter ${L}`);return P},ty=(g,y,P)=>{var L=[],G=g(L,P);return L.length&&(N[y>>2]=An.toHandle(L)),G},ny={},Ic=g=>{var y=ny[g];return y===void 0?ze(g):y},ry=(g,y,P)=>{var L=8,[G,...J]=ey(g,y),ae=G.toWireType.bind(G),ue=J.map(je=>je.readValueFromPointer.bind(je));g--;var ye=new Array(g),xe=(je,lt,yt,Dt)=>{for(var Rt=0,bt=0;bt<g;++bt)ye[bt]=ue[bt](Dt+Rt),Rt+=L;var dt;switch(P){case 0:dt=An.toValue(je).apply(null,ye);break;case 2:dt=Reflect.construct(An.toValue(je),ye);break;case 3:dt=ye[0];break;case 1:dt=An.toValue(je)[Ic(lt)](...ye);break}return ty(ae,yt,dt)},Pe=`methodCaller<(${J.map(je=>je.name)}) => ${G.name}>`;return Zg(uo(Pe,xe))},oy=g=>g?(g=Ic(g),An.toHandle(globalThis[g])):An.toHandle(globalThis),sy=g=>{g>9&&(sr[g+1]+=1)},iy=(g,y,P,L,G)=>ya[g](y,P,L,G),ay=g=>{var y=An.toValue(g);gt(y),ga(g)},ly=(g,y,P,L)=>{var G=new Date().getFullYear(),J=new Date(G,0,1),ae=new Date(G,6,1),ue=J.getTimezoneOffset(),ye=ae.getTimezoneOffset(),xe=Math.max(ue,ye);N[g>>2]=xe*60,M[y>>2]=+(ue!=ye);var Pe=yt=>{var Dt=yt>=0?"-":"+",Rt=Math.abs(yt),bt=String(Math.floor(Rt/60)).padStart(2,"0"),dt=String(Rt%60).padStart(2,"0");return`UTC${Dt}${bt}${dt}`},je=Pe(ue),lt=Pe(ye);ye<ue?(Mr(je,P,17),Mr(lt,L,17)):(Mr(je,L,17),Mr(lt,P,17))},cy=()=>2147483648,uy=(g,y)=>Math.ceil(g/y)*y,dy=g=>{var y=ms.buffer.byteLength,P=(g-y+65535)/65536|0;try{return ms.grow(P),$(),1}catch{}},fy=g=>{var y=A.length;g>>>=0;var P=cy();if(g>P)return!1;for(var L=1;L<=4;L*=2){var G=y*(1+.2/L);G=Math.min(G,g+100663296);var J=Math.min(P,uy(Math.max(g,G),65536)),ae=dy(J);if(ae)return!0}return!1},ba={},py=()=>c||"./this.program",fo=()=>{if(!fo.strings){var g=(typeof navigator=="object"&&navigator.language||"C").replace("-","_")+".UTF-8",y={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:g,_:py()};for(var P in ba)ba[P]===void 0?delete y[P]:y[P]=ba[P];var L=[];for(var P in y)L.push(`${P}=${y[P]}`);fo.strings=L}return fo.strings},hy=(g,y)=>{var P=0,L=0;for(var G of fo()){var J=y+P;N[g+L>>2]=J,P+=Mr(G,J,1/0)+1,L+=4}return 0},my=(g,y)=>{var P=fo();N[g>>2]=P.length;var L=0;for(var G of P)L+=Ac(G)+1;return N[y>>2]=L,0},gy=g=>52;function yy(g,y,P,L,G){return 70}var by=[null,[],[]],vy=(g,y)=>{var P=by[g];y===0||y===10?((g===1?m:p)(Oc(P)),P.length=0):P.push(y)},Cy=(g,y,P,L)=>{for(var G=0,J=0;J<P;J++){var ae=N[y>>2],ue=N[y+4>>2];y+=8;for(var ye=0;ye<ue;ye++)vy(g,A[ae+ye]);G+=ue}return N[L>>2]=G,0},xy=g=>g;if(da(),pa(),o.noExitRuntime&&o.noExitRuntime,o.print&&(m=o.print),o.printErr&&(p=o.printErr),o.wasmBinary&&(b=o.wasmBinary),o.arguments&&o.arguments,o.thisProgram&&(c=o.thisProgram),o.preInit)for(typeof o.preInit=="function"&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.shift()();var Fc,Qn,va,Nc,Ue,Bc,jc,Vc,$c,Lc,_c,qc,Yc,ms,Uc;function Ty(g){Fc=g.ya,Qn=o._free=g.za,va=o._malloc=g.Ba,Nc=g.Ca,Ue=g.Da,Bc=g.Ea,jc=g.Fa,Vc=g.Ga,$c=g.Ha,Lc=g.Ia,_c=g.Ja,Kn.viijii=g.Ka,qc=Kn.iiijj=g.La,Kn.jiji=g.Ma,Yc=Kn.jiiii=g.Na,Kn.iiiiij=g.Oa,Kn.iiiiijj=g.Pa,Kn.iiiiiijj=g.Qa,ms=g.wa,Uc=g.Aa}var wy={s:pe,w:he,a:Se,j:$e,m:et,Q:We,p:mt,U:vt,d:Ct,ca:Le,ta:Mn,ba:at,oa:us,ra:Rg,qa:Ag,H:Dg,ma:Pg,X:kg,Y:Ig,x:Ng,t:Bg,sa:Vg,na:_g,R:Hg,I:Kg,ua:Qg,pa:Jg,N:ry,va:ga,D:oy,S:sy,M:iy,ia:ay,da:ly,ga:fy,ea:hy,fa:my,ha:gy,$:yy,V:Cy,K:Gy,C:Ky,Z:Py,T:tb,r:qy,b:Ay,E:Wy,ka:Jy,c:Oy,ja:Zy,h:Dy,i:Fy,q:Vy,P:Uy,v:Ly,F:_y,L:Yy,z:Qy,J:nb,aa:rb,_:ob,f:ky,l:Ey,e:My,g:Ry,O:eb,k:Sy,la:zy,o:$y,B:Ny,u:Hy,W:jy,A:Xy,n:Iy,G:By,y:xy};function Ey(g,y){var P=U();try{Ge(g)(y)}catch(L){if(K(P),L!==L+0)throw L;Ue(1,0)}}function Sy(g,y,P,L,G){var J=U();try{Ge(g)(y,P,L,G)}catch(ae){if(K(J),ae!==ae+0)throw ae;Ue(1,0)}}function Ry(g,y,P,L){var G=U();try{Ge(g)(y,P,L)}catch(J){if(K(G),J!==J+0)throw J;Ue(1,0)}}function My(g,y,P){var L=U();try{Ge(g)(y,P)}catch(G){if(K(L),G!==G+0)throw G;Ue(1,0)}}function Ay(g,y){var P=U();try{return Ge(g)(y)}catch(L){if(K(P),L!==L+0)throw L;Ue(1,0)}}function Dy(g,y,P,L){var G=U();try{return Ge(g)(y,P,L)}catch(J){if(K(G),J!==J+0)throw J;Ue(1,0)}}function Py(g,y,P,L,G,J){var ae=U();try{return Ge(g)(y,P,L,G,J)}catch(ue){if(K(ae),ue!==ue+0)throw ue;Ue(1,0)}}function Oy(g,y,P){var L=U();try{return Ge(g)(y,P)}catch(G){if(K(L),G!==G+0)throw G;Ue(1,0)}}function ky(g){var y=U();try{Ge(g)()}catch(P){if(K(y),P!==P+0)throw P;Ue(1,0)}}function Iy(g,y,P,L,G,J,ae,ue,ye,xe,Pe){var je=U();try{Ge(g)(y,P,L,G,J,ae,ue,ye,xe,Pe)}catch(lt){if(K(je),lt!==lt+0)throw lt;Ue(1,0)}}function Fy(g,y,P,L,G){var J=U();try{return Ge(g)(y,P,L,G)}catch(ae){if(K(J),ae!==ae+0)throw ae;Ue(1,0)}}function Ny(g,y,P,L,G,J,ae){var ue=U();try{Ge(g)(y,P,L,G,J,ae)}catch(ye){if(K(ue),ye!==ye+0)throw ye;Ue(1,0)}}function By(g,y,P,L,G,J,ae,ue,ye,xe,Pe,je,lt,yt,Dt,Rt){var bt=U();try{Ge(g)(y,P,L,G,J,ae,ue,ye,xe,Pe,je,lt,yt,Dt,Rt)}catch(dt){if(K(bt),dt!==dt+0)throw dt;Ue(1,0)}}function jy(g,y,P,L,G,J,ae,ue,ye){var xe=U();try{Ge(g)(y,P,L,G,J,ae,ue,ye)}catch(Pe){if(K(xe),Pe!==Pe+0)throw Pe;Ue(1,0)}}function Vy(g,y,P,L,G,J){var ae=U();try{return Ge(g)(y,P,L,G,J)}catch(ue){if(K(ae),ue!==ue+0)throw ue;Ue(1,0)}}function $y(g,y,P,L,G,J){var ae=U();try{Ge(g)(y,P,L,G,J)}catch(ue){if(K(ae),ue!==ue+0)throw ue;Ue(1,0)}}function Ly(g,y,P,L,G,J,ae){var ue=U();try{return Ge(g)(y,P,L,G,J,ae)}catch(ye){if(K(ue),ye!==ye+0)throw ye;Ue(1,0)}}function _y(g,y,P,L,G,J,ae,ue){var ye=U();try{return Ge(g)(y,P,L,G,J,ae,ue)}catch(xe){if(K(ye),xe!==xe+0)throw xe;Ue(1,0)}}function qy(g){var y=U();try{return Ge(g)()}catch(P){if(K(y),P!==P+0)throw P;Ue(1,0)}}function Yy(g,y,P,L,G,J,ae,ue,ye){var xe=U();try{return Ge(g)(y,P,L,G,J,ae,ue,ye)}catch(Pe){if(K(xe),Pe!==Pe+0)throw Pe;Ue(1,0)}}function Uy(g,y,P,L,G,J,ae){var ue=U();try{return Ge(g)(y,P,L,G,J,ae)}catch(ye){if(K(ue),ye!==ye+0)throw ye;Ue(1,0)}}function Wy(g,y,P,L){var G=U();try{return Ge(g)(y,P,L)}catch(J){if(K(G),J!==J+0)throw J;Ue(1,0)}}function Gy(g,y,P,L){var G=U();try{return Ge(g)(y,P,L)}catch(J){if(K(G),J!==J+0)throw J;Ue(1,0)}}function zy(g,y,P,L,G,J,ae,ue){var ye=U();try{Ge(g)(y,P,L,G,J,ae,ue)}catch(xe){if(K(ye),xe!==xe+0)throw xe;Ue(1,0)}}function Hy(g,y,P,L,G,J,ae,ue){var ye=U();try{Ge(g)(y,P,L,G,J,ae,ue)}catch(xe){if(K(ye),xe!==xe+0)throw xe;Ue(1,0)}}function Ky(g,y,P,L,G,J){var ae=U();try{return Ge(g)(y,P,L,G,J)}catch(ue){if(K(ae),ue!==ue+0)throw ue;Ue(1,0)}}function Qy(g,y,P,L,G,J,ae,ue,ye,xe){var Pe=U();try{return Ge(g)(y,P,L,G,J,ae,ue,ye,xe)}catch(je){if(K(Pe),je!==je+0)throw je;Ue(1,0)}}function Jy(g,y,P){var L=U();try{return Ge(g)(y,P)}catch(G){if(K(L),G!==G+0)throw G;Ue(1,0)}}function Zy(g,y,P,L,G){var J=U();try{return Ge(g)(y,P,L,G)}catch(ae){if(K(J),ae!==ae+0)throw ae;Ue(1,0)}}function Xy(g,y,P,L,G,J,ae,ue,ye,xe){var Pe=U();try{Ge(g)(y,P,L,G,J,ae,ue,ye,xe)}catch(je){if(K(Pe),je!==je+0)throw je;Ue(1,0)}}function eb(g,y,P,L,G,J,ae){var ue=U();try{Ge(g)(y,P,L,G,J,ae)}catch(ye){if(K(ue),ye!==ye+0)throw ye;Ue(1,0)}}function tb(g,y,P,L){var G=U();try{return Ge(g)(y,P,L)}catch(J){if(K(G),J!==J+0)throw J;Ue(1,0)}}function nb(g,y,P,L,G,J,ae,ue,ye,xe,Pe,je){var lt=U();try{return Ge(g)(y,P,L,G,J,ae,ue,ye,xe,Pe,je)}catch(yt){if(K(lt),yt!==yt+0)throw yt;Ue(1,0)}}function rb(g,y,P,L,G,J,ae){var ue=U();try{return qc(g,y,P,L,G,J,ae)}catch(ye){if(K(ue),ye!==ye+0)throw ye;Ue(1,0)}}function ob(g,y,P,L,G){var J=U();try{return Yc(g,y,P,L,G)}catch(ae){if(K(J),ae!==ae+0)throw ae;Ue(1,0)}}function sb(){O();function g(){var y,P;o.calledRun=!0,!C&&(j(),(y=D)===null||y===void 0||y(o),(P=o.onRuntimeInitialized)===null||P===void 0||P.call(o),I())}o.setStatus?(o.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>o.setStatus(""),1),g()},1)):g()}var po;return po=await Z(),sb(),Y?t=o:t=new Promise((g,y)=>{D=g,E=y}),t}function sP(e){return am(lm,e)}async function iP(e,t){return oP(lm,e,t)}const cm=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["databar_limited","DataBarLimited"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"],["any","Any"]],aP=[...cm,["unknown"]].map(e=>e[0]),ml=new Map(cm);function lP(e){for(const[t,n]of ml)if(e===n)return t;return"unknown"}function cP(e){if(um(e))return{width:e.naturalWidth,height:e.naturalHeight};if(dm(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(fm(e))return{width:e.videoWidth,height:e.videoHeight};if(hm(e))return{width:e.width,height:e.height};if(gm(e))return{width:e.displayWidth,height:e.displayHeight};if(pm(e))return{width:e.width,height:e.height};if(mm(e))return{width:e.width,height:e.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function um(e){var t,n;try{return e instanceof((n=(t=e?.ownerDocument)==null?void 0:t.defaultView)==null?void 0:n.HTMLImageElement)}catch{return!1}}function dm(e){var t,n;try{return e instanceof((n=(t=e?.ownerDocument)==null?void 0:t.defaultView)==null?void 0:n.SVGImageElement)}catch{return!1}}function fm(e){var t,n;try{return e instanceof((n=(t=e?.ownerDocument)==null?void 0:t.defaultView)==null?void 0:n.HTMLVideoElement)}catch{return!1}}function pm(e){var t,n;try{return e instanceof((n=(t=e?.ownerDocument)==null?void 0:t.defaultView)==null?void 0:n.HTMLCanvasElement)}catch{return!1}}function hm(e){try{return e instanceof ImageBitmap||Object.prototype.toString.call(e)==="[object ImageBitmap]"}catch{return!1}}function mm(e){try{return e instanceof OffscreenCanvas||Object.prototype.toString.call(e)==="[object OffscreenCanvas]"}catch{return!1}}function gm(e){try{return e instanceof VideoFrame||Object.prototype.toString.call(e)==="[object VideoFrame]"}catch{return!1}}function uP(e){try{return e instanceof Blob||Object.prototype.toString.call(e)==="[object Blob]"}catch{return!1}}function dP(e){try{return e instanceof ImageData||Object.prototype.toString.call(e)==="[object ImageData]"}catch{return!1}}function fP(e,t){try{const n=new OffscreenCanvas(e,t);if(n.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return n;throw void 0}catch{const n=document.createElement("canvas");return n.width=e,n.height=t,n}}async function ym(e){if(um(e)&&!await gP(e))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(dm(e)&&!await yP(e))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(gm(e)&&bP(e))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(fm(e)&&(e.readyState===0||e.readyState===1))throw new DOMException("Invalid element or state.","InvalidStateError");if(hm(e)&&CP(e))throw new DOMException("The image source is detached.","InvalidStateError");const{width:t,height:n}=cP(e);if(t===0||n===0)return null;const r=fP(t,n).getContext("2d");r.drawImage(e,0,0);try{return r.getImageData(0,0,t,n)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function pP(e){let t;try{t=await createImageBitmap(e)}catch{try{if(globalThis.Image){t=new Image;let n="";try{n=URL.createObjectURL(e),t.src=n,await t.decode()}finally{URL.revokeObjectURL(n)}}else return e}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}}return await ym(t)}function hP(e){const{width:t,height:n}=e;if(t===0||n===0)return null;const r=e.getContext("2d");try{return r.getImageData(0,0,t,n)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function mP(e){if(uP(e))return await pP(e);if(dP(e)){if(vP(e))throw new DOMException("The image data has been detached.","InvalidStateError");return e}return pm(e)||mm(e)?hP(e):await ym(e)}async function gP(e){try{return await e.decode(),!0}catch{return!1}}async function yP(e){var t;try{return await((t=e.decode)==null?void 0:t.call(e)),!0}catch{return!1}}function bP(e){return e.format===null}function vP(e){return e.data.buffer.byteLength===0}function CP(e){return e.width===0&&e.height===0}function Hd(e,t){return xP(e)?new DOMException(`${t}: ${e.message}`,e.name):TP(e)?new e.constructor(`${t}: ${e.message}`):new Error(`${t}: ${e}`)}function xP(e){return e instanceof DOMException||Object.prototype.toString.call(e)==="[object DOMException]"}function TP(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}var zs;class gl{constructor(t={}){LD(this,zs);var n;try{const r=(n=t?.formats)==null?void 0:n.filter(o=>o!=="unknown");if(r?.length===0)throw new TypeError("Hint option provided, but is empty.");for(const o of r??[])if(!ml.has(o))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${o}' is not a valid enum value of type BarcodeFormat.`);_D(this,zs,r??[]),sP({fireImmediately:!0}).catch(()=>{})}catch(r){throw Hd(r,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return aP.filter(t=>t!=="unknown")}async detect(t){try{const n=await mP(t);if(n===null)return[];let r;const o={tryCode39ExtendedMode:!1,textMode:"Plain",formats:$D(this,zs).map(i=>ml.get(i))};try{r=await iP(n,o)}catch(i){throw console.error(i),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return r.map(i=>{const{topLeft:{x:a,y:l},topRight:{x:c,y:u},bottomLeft:{x:d,y:f},bottomRight:{x:h,y:v}}=i.position,m=Math.min(a,c,d,h),p=Math.min(l,u,f,v),b=Math.max(a,c,d,h),C=Math.max(l,u,f,v);return{boundingBox:new DOMRectReadOnly(m,p,b-m,C-p),rawValue:i.text,format:lP(i.format),cornerPoints:[{x:a,y:l},{x:c,y:u},{x:h,y:v},{x:d,y:f}]}})}catch(n){throw Hd(n,"Failed to execute 'detect' on 'BarcodeDetector'")}}}zs=new WeakMap;globalThis.BarcodeDetector!=null||(globalThis.BarcodeDetector=gl);let bm=!0,vm=!0;function Oo(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseFloat(r[n],10)}function wr(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(a,l){if(a!==t)return o.apply(this,arguments);const c=u=>{const d=n(u);d&&(l.handleEvent?l.handleEvent(d):l(d))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(l,c),o.apply(this,[a,c])};const i=r.removeEventListener;r.removeEventListener=function(a,l){if(a!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(l))return i.apply(this,arguments);const c=this._eventMap[t].get(l);return this._eventMap[t].delete(l),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,i.apply(this,[a,c])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function wP(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(bm=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function EP(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(vm=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Cm(){if(typeof window=="object"){if(bm)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function gc(e,t){vm&&console.warn(e+" is deprecated, please use "+t+" instead.")}function SP(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(o=>o.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=parseInt(Oo(n.userAgent,/Firefox\/(\d+)\./,1));else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=parseInt(Oo(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2));else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=parseInt(Oo(n.userAgent,/AppleWebKit\/(\d+)\./,1)),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype,t._safariVersion=Oo(n.userAgent,/Version\/(\d+(\.?\d+))/,1);else return t.browser="Not a supported browser.",t;return t}function Kd(e){return Object.prototype.toString.call(e)==="[object Object]"}function xm(e){return Kd(e)?Object.keys(e).reduce(function(t,n){const r=Kd(e[n]),o=r?xm(e[n]):e[n],i=r&&!Object.keys(o).length;return o===void 0||i?t:Object.assign(t,{[n]:o})},{}):e}function yl(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?yl(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(o=>{yl(e,e.get(o),n)})}))}function Qd(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(t===null)return o;const i=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&i.push(a)}),i.forEach(a=>{e.forEach(l=>{l.type===r&&l.trackId===a.id&&yl(e,l,o)})}),o}const Jd=Cm;function Tm(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(l){if(typeof l!="object"||l.mandatory||l.optional)return l;const c={};return Object.keys(l).forEach(u=>{if(u==="require"||u==="advanced"||u==="mediaSource")return;const d=typeof l[u]=="object"?l[u]:{ideal:l[u]};d.exact!==void 0&&typeof d.exact=="number"&&(d.min=d.max=d.exact);const f=function(h,v){return h?h+v.charAt(0).toUpperCase()+v.slice(1):v==="deviceId"?"sourceId":v};if(d.ideal!==void 0){c.optional=c.optional||[];let h={};typeof d.ideal=="number"?(h[f("min",u)]=d.ideal,c.optional.push(h),h={},h[f("max",u)]=d.ideal,c.optional.push(h)):(h[f("",u)]=d.ideal,c.optional.push(h))}d.exact!==void 0&&typeof d.exact!="number"?(c.mandatory=c.mandatory||{},c.mandatory[f("",u)]=d.exact):["min","max"].forEach(h=>{d[h]!==void 0&&(c.mandatory=c.mandatory||{},c.mandatory[f(h,u)]=d[h])})}),l.advanced&&(c.optional=(c.optional||[]).concat(l.advanced)),c},o=function(l,c){if(t.version>=61)return c(l);if(l=JSON.parse(JSON.stringify(l)),l&&typeof l.audio=="object"){const u=function(d,f,h){f in d&&!(h in d)&&(d[h]=d[f],delete d[f])};l=JSON.parse(JSON.stringify(l)),u(l.audio,"autoGainControl","googAutoGainControl"),u(l.audio,"noiseSuppression","googNoiseSuppression"),l.audio=r(l.audio)}if(l&&typeof l.video=="object"){let u=l.video.facingMode;u=u&&(typeof u=="object"?u:{ideal:u});const d=t.version<66;if(u&&(u.exact==="user"||u.exact==="environment"||u.ideal==="user"||u.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!d)){delete l.video.facingMode;let f;if(u.exact==="environment"||u.ideal==="environment"?f=["back","rear"]:(u.exact==="user"||u.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(h=>{h=h.filter(m=>m.kind==="videoinput");let v=h.find(m=>f.some(p=>m.label.toLowerCase().includes(p)));return!v&&h.length&&f.includes("back")&&(v=h[h.length-1]),v&&(l.video.deviceId=u.exact?{exact:v.deviceId}:{ideal:v.deviceId}),l.video=r(l.video),Jd("chrome: "+JSON.stringify(l)),c(l)})}l.video=r(l.video)}return Jd("chrome: "+JSON.stringify(l)),c(l)},i=function(l){return t.version>=64?l:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[l.name]||l.name,message:l.message,constraint:l.constraint||l.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(l,c,u){o(l,d=>{n.webkitGetUserMedia(d,c,f=>{u&&u(i(f))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const l=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(c){return o(c,u=>l(u).then(d=>{if(u.audio&&!d.getAudioTracks().length||u.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return d},d=>Promise.reject(i(d))))}}}function wm(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Em(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(l=>l.track&&l.track.id===o.track.id):i={track:o.track};const a=new Event("track");a.track=o.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(l=>l.track&&l.track.id===o.id):i={track:o};const a=new Event("track");a.track=o,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else wr(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Sm(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(o,i){return{track:i,get dtmf(){return this._dtmf===void 0&&(i.kind==="audio"?this._dtmf=o.createDTMFSender(i):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(l,c){let u=o.apply(this,arguments);return u||(u=t(this,l),this._senders.push(u)),u};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(l){i.apply(this,arguments);const c=this._senders.indexOf(l);c!==-1&&this._senders.splice(c,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(i){this._senders=this._senders||[],n.apply(this,[i]),i.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(i){this._senders=this._senders||[],r.apply(this,[i]),i.getTracks().forEach(a=>{const l=this._senders.find(c=>c.track===a);l&&this._senders.splice(this._senders.indexOf(l),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(o=>o._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Rm(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=r.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>Qd(a,i.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=n.apply(this,[]);return o.forEach(i=>i._pc=this),o}),wr(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const o=this;return this._pc.getStats().then(i=>Qd(i,o.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let o,i,a;return this.getSenders().forEach(l=>{l.track===r&&(o?a=!0:o=l)}),this.getReceivers().forEach(l=>(l.track===r&&(i?a=!0:i=l),l.track===r)),a||o&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):o?o.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Mm(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,l){if(!l)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const c=t.apply(this,arguments);return this._shimmedLocalStreams[l.id]?this._shimmedLocalStreams[l.id].indexOf(c)===-1&&this._shimmedLocalStreams[l.id].push(c):this._shimmedLocalStreams[l.id]=[l,c],c};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(u=>{if(this.getSenders().find(f=>f.track===u))throw new DOMException("Track already exists.","InvalidAccessError")});const l=this.getSenders();n.apply(this,arguments);const c=this.getSenders().filter(u=>l.indexOf(u)===-1);this._shimmedLocalStreams[a.id]=[a].concat(c)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(l=>{const c=this._shimmedLocalStreams[l].indexOf(a);c!==-1&&this._shimmedLocalStreams[l].splice(c,1),this._shimmedLocalStreams[l].length===1&&delete this._shimmedLocalStreams[l]}),o.apply(this,arguments)}}function Am(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Mm(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const d=n.apply(this);return this._reverseStreams=this._reverseStreams||{},d.map(f=>this._reverseStreams[f.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(d){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},d.getTracks().forEach(f=>{if(this.getSenders().find(v=>v.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[d.id]){const f=new e.MediaStream(d.getTracks());this._streams[d.id]=f,this._reverseStreams[f.id]=d,d=f}r.apply(this,[d])};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(d){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[d.id]||d]),delete this._reverseStreams[this._streams[d.id]?this._streams[d.id].id:d.id],delete this._streams[d.id]},e.RTCPeerConnection.prototype.addTrack=function(d,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const h=[].slice.call(arguments,1);if(h.length!==1||!h[0].getTracks().find(p=>p===d))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(p=>p.track===d))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(d),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const p=new e.MediaStream([d]);this._streams[f.id]=p,this._reverseStreams[p.id]=f,this.addStream(p)}return this.getSenders().find(p=>p.track===d)};function i(u,d){let f=d.sdp;return Object.keys(u._reverseStreams||[]).forEach(h=>{const v=u._reverseStreams[h],m=u._streams[v.id];f=f.replace(new RegExp(m.id,"g"),v.id)}),new RTCSessionDescription({type:d.type,sdp:f})}function a(u,d){let f=d.sdp;return Object.keys(u._reverseStreams||[]).forEach(h=>{const v=u._reverseStreams[h],m=u._streams[v.id];f=f.replace(new RegExp(v.id,"g"),m.id)}),new RTCSessionDescription({type:d.type,sdp:f})}["createOffer","createAnswer"].forEach(function(u){const d=e.RTCPeerConnection.prototype[u],f={[u](){const h=arguments;return arguments.length&&typeof arguments[0]=="function"?d.apply(this,[m=>{const p=i(this,m);h[0].apply(null,[p])},m=>{h[1]&&h[1].apply(null,m)},arguments[2]]):d.apply(this,arguments).then(m=>i(this,m))}};e.RTCPeerConnection.prototype[u]=f[u]});const l=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?l.apply(this,arguments):(arguments[0]=a(this,arguments[0]),l.apply(this,arguments))};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const u=c.get.apply(this);return u.type===""?u:i(this,u)}}),e.RTCPeerConnection.prototype.removeTrack=function(d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!d._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(d._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let h;Object.keys(this._streams).forEach(v=>{this._streams[v].getTracks().find(p=>d.track===p)&&(h=this._streams[v])}),h&&(h.getTracks().length===1?this.removeStream(this._reverseStreams[h.id]):h.removeTrack(d.track),this.dispatchEvent(new Event("negotiationneeded")))}}function bl(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],o={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=o[n]})}function Dm(e,t){wr(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const Zd=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Dm,shimAddTrackRemoveTrack:Am,shimAddTrackRemoveTrackWithNative:Mm,shimGetSendersWithDtmf:Sm,shimGetUserMedia:Tm,shimMediaStream:wm,shimOnTrack:Em,shimPeerConnection:bl,shimSenderReceiverGetStats:Rm},Symbol.toStringTag,{value:"Module"}));function Pm(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(o,i,a){gc("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(o).then(i,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const o=function(a,l,c){l in a&&!(c in a)&&(a[c]=a[l],delete a[l])},i=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),o(a.audio,"autoGainControl","mozAutoGainControl"),o(a.audio,"noiseSuppression","mozNoiseSuppression")),i(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const l=a.apply(this,arguments);return o(l,"mozAutoGainControl","autoGainControl"),o(l,"mozNoiseSuppression","noiseSuppression"),l}}if(r&&r.prototype.applyConstraints){const a=r.prototype.applyConstraints;r.prototype.applyConstraints=function(l){return this.kind==="audio"&&typeof l=="object"&&(l=JSON.parse(JSON.stringify(l)),o(l,"autoGainControl","mozAutoGainControl"),o(l,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[l])}}}}function RP(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function Om(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function vl(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(o){const i=e.RTCPeerConnection.prototype[o],a={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=a[o]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[i,a,l]=arguments;return r.apply(this,[i||null]).then(c=>{if(t.version<53&&!a)try{c.forEach(u=>{u.type=n[u.type]||u.type})}catch(u){if(u.name!=="TypeError")throw u;c.forEach((d,f)=>{c.set(f,Object.assign({},d,{type:n[d.type]||d.type}))})}return c}).then(a,l)}}function km(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=t.apply(this,[]);return o.forEach(i=>i._pc=this),o});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=n.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Im(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(o=>o._pc=this),r}),wr(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Fm(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){gc("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function Nm(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function Bm(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const o=r.length>0;o&&r.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const i=t.apply(this,arguments);if(o){const{sender:a}=i,l=a.getParameters();(!("encodings"in l)||l.encodings.length===1&&Object.keys(l.encodings[0]).length===0)&&(l.encodings=r,a.sendEncodings=r,this.setParametersPromises.push(a.setParameters(l).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return i})}function jm(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function Vm(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function $m(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const Xd=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:Bm,shimCreateAnswer:$m,shimCreateOffer:Vm,shimGetDisplayMedia:RP,shimGetParameters:jm,shimGetUserMedia:Pm,shimOnTrack:Om,shimPeerConnection:vl,shimRTCDataChannel:Nm,shimReceiverGetStats:Im,shimRemoveStream:Fm,shimSenderGetStats:km},Symbol.toStringTag,{value:"Module"}));function Lm(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(o=>t.call(this,o,r)),r.getVideoTracks().forEach(o=>t.call(this,o,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...o){return o&&o.forEach(i=>{this._localStreams?this._localStreams.includes(i)||this._localStreams.push(i):this._localStreams=[i]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const o=n.getTracks();this.getSenders().forEach(i=>{o.includes(i.track)&&this.removeTrack(i)})})}}function _m(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);const i=new Event("addstream");i.stream=o,this.dispatchEvent(i)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(o){o.streams.forEach(i=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(i)>=0)return;r._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function qm(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(u,d){const f=arguments.length>=2?arguments[2]:arguments[0],h=n.apply(this,[f]);return d?(h.then(u,d),Promise.resolve()):h},t.createAnswer=function(u,d){const f=arguments.length>=2?arguments[2]:arguments[0],h=r.apply(this,[f]);return d?(h.then(u,d),Promise.resolve()):h};let l=function(c,u,d){const f=o.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f};t.setLocalDescription=l,l=function(c,u,d){const f=i.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f},t.setRemoteDescription=l,l=function(c,u,d){const f=a.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f},t.addIceCandidate=l}function Ym(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=o=>r(Um(o))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,o,i){t.mediaDevices.getUserMedia(r).then(o,i)}).bind(t))}function Um(e){return e&&e.video!==void 0?Object.assign({},e,{video:xm(e.video)}):e}function Wm(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,o){if(r&&r.iceServers){const i=[];for(let a=0;a<r.iceServers.length;a++){let l=r.iceServers[a];l.urls===void 0&&l.url?(gc("RTCIceServer.url","RTCIceServer.urls"),l=JSON.parse(JSON.stringify(l)),l.urls=l.url,delete l.url,i.push(l)):i.push(r.iceServers[a])}r.iceServers=i}return new t(r,o)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function Gm(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function zm(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const o=this.getTransceivers().find(a=>a.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveAudio===!0&&!o&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveVideo===!0&&!i&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Hm(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const ef=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Hm,shimCallbacksAPI:qm,shimConstraints:Um,shimCreateOfferLegacy:zm,shimGetUserMedia:Ym,shimLocalStreamsAPI:Lm,shimRTCIceServerUrls:Wm,shimRemoteStreamsAPI:_m,shimTrackEventTransceiver:Gm},Symbol.toStringTag,{value:"Module"}));var za={exports:{}},tf;function MP(){return tf||(tf=1,(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(`
|
|
147
|
+
`).map(r=>r.trim())},t.splitSections=function(n){return n.split(`
|
|
148
|
+
m=`).map((o,i)=>(i>0?"m="+o:o).trim()+`\r
|
|
149
|
+
`)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(o=>o.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const o={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let i=8;i<r.length;i+=2)switch(r[i]){case"raddr":o.relatedAddress=r[i+1];break;case"rport":o.relatedPort=parseInt(r[i+1],10);break;case"tcptype":o.tcpType=r[i+1];break;case"ufrag":o.ufrag=r[i+1],o.usernameFragment=r[i+1];break;default:o[r[i]]===void 0&&(o[r[i]]=r[i+1]);break}return o},t.writeCandidate=function(n){const r=[];r.push(n.foundation);const o=n.component;o==="rtp"?r.push(1):o==="rtcp"?r.push(2):r.push(o),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const i=n.type;return r.push("typ"),r.push(i),i!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},t.parseIceOptions=function(n){return n.substring(14).split(" ")},t.parseRtpMap=function(n){let r=n.substring(9).split(" ");const o={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),o.name=r[0],o.clockRate=parseInt(r[1],10),o.channels=r.length===3?parseInt(r[2],10):1,o.numChannels=o.channels,o},t.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const o=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(o!==1?"/"+o:"")+`\r
|
|
150
|
+
`},t.parseExtmap=function(n){const r=n.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r
|
|
151
|
+
`},t.parseFmtp=function(n){const r={};let o;const i=n.substring(n.indexOf(" ")+1).split(";");for(let a=0;a<i.length;a++)o=i[a].trim().split("="),r[o[0].trim()]=o[1];return r},t.writeFmtp=function(n){let r="",o=n.payloadType;if(n.preferredPayloadType!==void 0&&(o=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const i=[];Object.keys(n.parameters).forEach(a=>{n.parameters[a]!==void 0?i.push(a+"="+n.parameters[a]):i.push(a)}),r+="a=fmtp:"+o+" "+i.join(";")+`\r
|
|
152
|
+
`}return r},t.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(n){let r="",o=n.payloadType;return n.preferredPayloadType!==void 0&&(o=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(i=>{r+="a=rtcp-fb:"+o+" "+i.type+(i.parameter&&i.parameter.length?" "+i.parameter:"")+`\r
|
|
153
|
+
`}),r},t.parseSsrcMedia=function(n){const r=n.indexOf(" "),o={ssrc:parseInt(n.substring(7,r),10)},i=n.indexOf(":",r);return i>-1?(o.attribute=n.substring(r+1,i),o.value=n.substring(i+1)):o.attribute=n.substring(r+1),o},t.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(o=>parseInt(o,10))}},t.getMid=function(n){const r=t.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:t.matchPrefix(n+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(n,r){let o="a=setup:"+r+`\r
|
|
154
|
+
`;return n.fingerprints.forEach(i=>{o+="a=fingerprint:"+i.algorithm+" "+i.value+`\r
|
|
155
|
+
`}),o},t.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?t.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r
|
|
156
|
+
`},t.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},t.getCryptoParameters=function(n,r){return t.matchPrefix(n+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(n,r){const o=t.matchPrefix(n+r,"a=ice-ufrag:")[0],i=t.matchPrefix(n+r,"a=ice-pwd:")[0];return o&&i?{usernameFragment:o.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r
|
|
157
|
+
a=ice-pwd:`+n.password+`\r
|
|
158
|
+
`;return n.iceLite&&(r+=`a=ice-lite\r
|
|
159
|
+
`),r},t.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=t.splitLines(n)[0].split(" ");r.profile=i[2];for(let l=3;l<i.length;l++){const c=i[l],u=t.matchPrefix(n,"a=rtpmap:"+c+" ")[0];if(u){const d=t.parseRtpMap(u),f=t.matchPrefix(n,"a=fmtp:"+c+" ");switch(d.parameters=f.length?t.parseFmtp(f[0]):{},d.rtcpFeedback=t.matchPrefix(n,"a=rtcp-fb:"+c+" ").map(t.parseRtcpFb),r.codecs.push(d),d.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(d.name.toUpperCase());break}}}t.matchPrefix(n,"a=extmap:").forEach(l=>{r.headerExtensions.push(t.parseExtmap(l))});const a=t.matchPrefix(n,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(l=>{a.forEach(c=>{l.rtcpFeedback.find(d=>d.type===c.type&&d.parameter===c.parameter)||l.rtcpFeedback.push(c)})}),r},t.writeRtpDescription=function(n,r){let o="";o+="m="+n+" ",o+=r.codecs.length>0?"9":"0",o+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",o+=r.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r
|
|
160
|
+
`,o+=`c=IN IP4 0.0.0.0\r
|
|
161
|
+
`,o+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
|
162
|
+
`,r.codecs.forEach(a=>{o+=t.writeRtpMap(a),o+=t.writeFmtp(a),o+=t.writeRtcpFb(a)});let i=0;return r.codecs.forEach(a=>{a.maxptime>i&&(i=a.maxptime)}),i>0&&(o+="a=maxptime:"+i+`\r
|
|
163
|
+
`),r.headerExtensions&&r.headerExtensions.forEach(a=>{o+=t.writeExtmap(a)}),o},t.parseRtpEncodingParameters=function(n){const r=[],o=t.parseRtpParameters(n),i=o.fecMechanisms.indexOf("RED")!==-1,a=o.fecMechanisms.indexOf("ULPFEC")!==-1,l=t.matchPrefix(n,"a=ssrc:").map(h=>t.parseSsrcMedia(h)).filter(h=>h.attribute==="cname"),c=l.length>0&&l[0].ssrc;let u;const d=t.matchPrefix(n,"a=ssrc-group:FID").map(h=>h.substring(17).split(" ").map(m=>parseInt(m,10)));d.length>0&&d[0].length>1&&d[0][0]===c&&(u=d[0][1]),o.codecs.forEach(h=>{if(h.name.toUpperCase()==="RTX"&&h.parameters.apt){let v={ssrc:c,codecPayloadType:parseInt(h.parameters.apt,10)};c&&u&&(v.rtx={ssrc:u}),r.push(v),i&&(v=JSON.parse(JSON.stringify(v)),v.fec={ssrc:c,mechanism:a?"red+ulpfec":"red"},r.push(v))}}),r.length===0&&c&&r.push({ssrc:c});let f=t.matchPrefix(n,"b=");return f.length&&(f[0].indexOf("b=TIAS:")===0?f=parseInt(f[0].substring(7),10):f[0].indexOf("b=AS:")===0?f=parseInt(f[0].substring(5),10)*1e3*.95-2e3*8:f=void 0,r.forEach(h=>{h.maxBitrate=f})),r},t.parseRtcpParameters=function(n){const r={},o=t.matchPrefix(n,"a=ssrc:").map(l=>t.parseSsrcMedia(l)).filter(l=>l.attribute==="cname")[0];o&&(r.cname=o.value,r.ssrc=o.ssrc);const i=t.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=i.length>0,r.compound=i.length===0;const a=t.matchPrefix(n,"a=rtcp-mux");return r.mux=a.length>0,r},t.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r
|
|
164
|
+
`),n.mux&&(r+=`a=rtcp-mux\r
|
|
165
|
+
`),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r
|
|
166
|
+
`),r},t.parseMsid=function(n){let r;const o=t.matchPrefix(n,"a=msid:");if(o.length===1)return r=o[0].substring(7).split(" "),{stream:r[0],track:r[1]};const i=t.matchPrefix(n,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(i.length>0)return r=i[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(n){const r=t.parseMLine(n),o=t.matchPrefix(n,"a=max-message-size:");let i;o.length>0&&(i=parseInt(o[0].substring(19),10)),isNaN(i)&&(i=65536);const a=t.matchPrefix(n,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:r.fmt,maxMessageSize:i};const l=t.matchPrefix(n,"a=sctpmap:");if(l.length>0){const c=l[0].substring(10).split(" ");return{port:parseInt(c[0],10),protocol:c[1],maxMessageSize:i}}},t.writeSctpDescription=function(n,r){let o=[];return n.protocol!=="DTLS/SCTP"?o=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r
|
|
167
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
168
|
+
`,"a=sctp-port:"+r.port+`\r
|
|
169
|
+
`]:o=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r
|
|
170
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
171
|
+
`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
|
|
172
|
+
`],r.maxMessageSize!==void 0&&o.push("a=max-message-size:"+r.maxMessageSize+`\r
|
|
173
|
+
`),o.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(n,r,o){let i;const a=r!==void 0?r:2;return n?i=n:i=t.generateSessionId(),`v=0\r
|
|
174
|
+
o=`+(o||"thisisadapterortc")+" "+i+" "+a+` IN IP4 127.0.0.1\r
|
|
175
|
+
s=-\r
|
|
176
|
+
t=0 0\r
|
|
177
|
+
`},t.getDirection=function(n,r){const o=t.splitLines(n);for(let i=0;i<o.length;i++)switch(o[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return o[i].substring(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(n){return t.splitLines(n)[0].split(" ")[0].substring(2)},t.isRejected=function(n){return n.split(" ",2)[1]==="0"},t.parseMLine=function(n){const o=t.splitLines(n)[0].substring(2).split(" ");return{kind:o[0],port:parseInt(o[1],10),protocol:o[2],fmt:o.slice(3).join(" ")}},t.parseOLine=function(n){const o=t.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:o[0],sessionId:o[1],sessionVersion:parseInt(o[2],10),netType:o[3],addressType:o[4],address:o[5]}},t.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=t.splitLines(n);for(let o=0;o<r.length;o++)if(r[o].length<2||r[o].charAt(1)!=="=")return!1;return!0},e.exports=t})(za)),za.exports}var Km=MP();const Qr=pn(Km),AP=lb({__proto__:null,default:Qr},[Km]);function Hs(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const o=new t(r),i=Qr.parseCandidate(r.candidate);for(const a in i)a in o||Object.defineProperty(o,a,{value:i[a]});return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new t(r)},e.RTCIceCandidate.prototype=t.prototype,wr(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function Cl(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||wr(e,"icecandidate",t=>{if(t.candidate){const n=Qr.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function Ks(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(l){if(!l||!l.sdp)return!1;const c=Qr.splitSections(l.sdp);return c.shift(),c.some(u=>{const d=Qr.parseMLine(u);return d&&d.kind==="application"&&d.protocol.indexOf("SCTP")!==-1})},r=function(l){const c=l.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(c===null||c.length<2)return-1;const u=parseInt(c[1],10);return u!==u?-1:u},o=function(l){let c=65536;return t.browser==="firefox"&&(t.version<57?l===-1?c=16384:c=2147483637:t.version<60?c=t.version===57?65535:65536:c=2147483637),c},i=function(l,c){let u=65536;t.browser==="firefox"&&t.version===57&&(u=65535);const d=Qr.matchPrefix(l.sdp,"a=max-message-size:");return d.length>0?u=parseInt(d[0].substring(19),10):t.browser==="firefox"&&c!==-1&&(u=2147483637),u},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:c}=this.getConfiguration();c==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const c=r(arguments[0]),u=o(c),d=i(arguments[0],c);let f;u===0&&d===0?f=Number.POSITIVE_INFINITY:u===0||d===0?f=Math.max(u,d):f=Math.min(u,d);const h={};Object.defineProperty(h,"maxMessageSize",{get(){return f}}),this._sctp=h}return a.apply(this,arguments)}}function Qs(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,o){const i=r.send;r.send=function(){const l=arguments[0],c=l.length||l.size||l.byteLength;if(r.readyState==="open"&&o.sctp&&c>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return i.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const o=n.apply(this,arguments);return t(o,this),o},wr(e,"datachannel",r=>(t(r.channel,r.target),r))}function xl(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=o=>{const i=o.target;if(i._lastConnectionState!==i.connectionState){i._lastConnectionState=i.connectionState;const a=new Event("connectionstatechange",o);i.dispatchEvent(a)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function Tl(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t._safariVersion>=13.1)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(o){if(o&&o.sdp&&o.sdp.indexOf(`
|
|
178
|
+
a=extmap-allow-mixed`)!==-1){const i=o.sdp.split(`
|
|
179
|
+
`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(`
|
|
180
|
+
`);e.RTCSessionDescription&&o instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:o.type,sdp:i}):o.sdp=i}return n.apply(this,arguments)}}function Js(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function Zs(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let o=arguments[0]||{};if(typeof o!="object"||o.type&&o.sdp)return n.apply(this,arguments);if(o={type:o.type,sdp:o.sdp},!o.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":o.type="offer";break;default:o.type="answer";break}return o.sdp||o.type!=="offer"&&o.type!=="answer"?n.apply(this,[o]):(o.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const DP=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:Tl,shimAddIceCandidateNullOrEmpty:Js,shimConnectionState:xl,shimMaxMessageSize:Ks,shimParameterlessSetLocalDescription:Zs,shimRTCIceCandidate:Hs,shimRTCIceCandidateRelayProtocol:Cl,shimSendThrowTypeError:Qs},Symbol.toStringTag,{value:"Module"}));function PP({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Cm,r=SP(e),o={browserDetails:r,commonShim:DP,extractVersion:Oo,disableLog:wP,disableWarnings:EP,sdp:AP};switch(r.browser){case"chrome":if(!Zd||!bl||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),o;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),o;n("adapter.js shimming chrome."),o.browserShim=Zd,Js(e,r),Zs(e),Tm(e,r),wm(e),bl(e,r),Em(e),Am(e,r),Sm(e),Rm(e),Dm(e,r),Hs(e),Cl(e),xl(e),Ks(e,r),Qs(e),Tl(e,r);break;case"firefox":if(!Xd||!vl||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),o;n("adapter.js shimming firefox."),o.browserShim=Xd,Js(e,r),Zs(e),Pm(e,r),vl(e,r),Om(e),Fm(e),km(e),Im(e),Nm(e),Bm(e),jm(e),Vm(e),$m(e),Hs(e),xl(e),Ks(e,r),Qs(e);break;case"safari":if(!ef||!t.shimSafari)return n("Safari shim is not included in this adapter release."),o;n("adapter.js shimming safari."),o.browserShim=ef,Js(e,r),Zs(e),Wm(e),zm(e),qm(e),Lm(e),_m(e),Gm(e),Ym(e),Hm(e),Hs(e),Cl(e),Ks(e,r),Qs(e),Tl(e,r);break;default:n("Unsupported browser!");break}return o}PP({window:typeof window>"u"?void 0:window});const OP={finder:!0,torch:!0,tracker:void 0,onOff:!1,zoom:!1},kP={facingMode:"environment",width:{min:640,ideal:720,max:1920},height:{min:640,ideal:720,max:1080}},IP={width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",aspectRatio:"1/1"},FP={width:"100%",height:"100%",objectFit:"cover",overflow:"hidden"};function NP(e,t){e.forEach(n=>{const{boundingBox:r,rawValue:o}=n,i=r.x+r.width/2,a=r.y+r.height/2,l=Math.max(12,50*r.width/t.canvas.width),c=l;let u;t.font=`${l}px sans-serif`,t.textAlign="left";try{u=JSON.stringify(JSON.parse(o),null,2)}catch{u=o}const d=u.split(`
|
|
181
|
+
`),f=Math.max(...d.map(C=>t.measureText(C).width)),h=d.length*c,v=i-f/2-10,m=a-h/2-10,p=f+20,b=h+10;t.beginPath(),t.moveTo(v+8,m),t.lineTo(v+p-8,m),t.quadraticCurveTo(v+p,m,v+p,m+8),t.lineTo(v+p,m+b-8),t.quadraticCurveTo(v+p,m+b,v+p-8,m+b),t.lineTo(v+8,m+b),t.quadraticCurveTo(v,m+b,v,m+b-8),t.lineTo(v,m+8),t.quadraticCurveTo(v,m,v+8,m),t.closePath(),t.fillStyle="rgba(255, 255, 0, 0.9)",t.fill(),d.forEach((C,D)=>{const E=a+D*c-(d.length-1)*c/2;let S=i-f/2,A=0;const k=[...C.matchAll(/"([^"]+)":/g)],w=[...C.matchAll(/:\s*("[^"]*"|\d+|true|false|null)/g)];k.forEach((N,V)=>{const F=N[0].replace(":",""),Y=C.substring(A,N.index);if(t.fillStyle="black",t.fillText(Y,S,E),S+=t.measureText(Y).width,t.fillStyle="blue",t.fillText(F,S,E),S+=t.measureText(F).width,A=N.index+F.length,t.fillStyle="black",t.fillText(": ",S,E),S+=t.measureText(": ").width,V<w.length){const $=w[V],O=C.substring(A,$.index);t.fillStyle="black",t.fillText(O,S,E),S+=t.measureText(O).width;const j=$[0].match(/:\s*(.*)/)?.[1]??"";t.fillStyle="green",t.fillText(j,S,E),S+=t.measureText(j).width,A=$.index+$[0].length}}),t.fillStyle="black";const M=C.substring(A);t.fillText(M,S,E)})})}var ko=e=>e instanceof Date,Qm=e=>e==null;const Jm=e=>typeof e=="object";var nf=e=>!Qm(e)&&!Array.isArray(e)&&Jm(e)&&!ko(e),rf=e=>Qm(e)||!Jm(e);function Zm(e,t){if(rf(e)||rf(t))return e===t;if(ko(e)&&ko(t))return e.getTime()===t.getTime();const n=e,r=t,o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;for(const a of o){const l=n[a];if(!i.includes(a))return!1;if(a!=="ref"){const c=r[a];if(ko(l)&&ko(c)||nf(l)&&nf(c)||Array.isArray(l)&&Array.isArray(c)?!Zm(l,c):l!==c)return!1}}return!0}function BP(e){const{onClick:t,disabled:n,className:r}=e,o={cursor:n?"default":"pointer",stroke:n?"grey":"yellow",strokeLineJoin:"round",strokeLineCap:"round",strokeWidth:1.5,...e.style};return T.jsxs("svg",{onClick:n?void 0:t,className:r,style:o,width:"28px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("title",{children:"Camera Off"}),T.jsx("path",{d:"M3 3L6.00007 6.00007M21 21L19.8455 19.8221M9.74194 4.06811C9.83646 4.04279 9.93334 4.02428 10.0319 4.01299C10.1453 4 10.2683 4 10.5141 4H13.5327C13.7786 4 13.9015 4 14.015 4.01299C14.6068 4.08078 15.1375 4.40882 15.4628 4.90782C15.5252 5.00345 15.5802 5.11345 15.6901 5.33333C15.7451 5.44329 15.7726 5.49827 15.8037 5.54609C15.9664 5.79559 16.2318 5.95961 16.5277 5.9935C16.5844 6 16.6459 6 16.7688 6H17.8234C18.9435 6 19.5036 6 19.9314 6.21799C20.3077 6.40973 20.6137 6.71569 20.8055 7.09202C21.0234 7.51984 21.0234 8.0799 21.0234 9.2V15.3496M19.8455 19.8221C19.4278 20 18.8702 20 17.8234 20H6.22344C5.10333 20 4.54328 20 4.11546 19.782C3.73913 19.5903 3.43317 19.2843 3.24142 18.908C3.02344 18.4802 3.02344 17.9201 3.02344 16.8V9.2C3.02344 8.0799 3.02344 7.51984 3.24142 7.09202C3.43317 6.71569 3.73913 6.40973 4.11546 6.21799C4.51385 6.015 5.0269 6.00103 6.00007 6.00007M19.8455 19.8221L14.5619 14.5619M14.5619 14.5619C14.0349 15.4243 13.0847 16 12 16C10.3431 16 9 14.6569 9 13C9 11.9153 9.57566 10.9651 10.4381 10.4381M14.5619 14.5619L10.4381 10.4381M10.4381 10.4381L6.00007 6.00007"})]})}function jP(e){const{onClick:t,disabled:n,className:r}=e,o={cursor:n?"default":"pointer",stroke:n?"grey":"yellow",strokeLineJoin:"round",strokeLineCap:"round",strokeWidth:1.5,...e.style};return T.jsxs("svg",{onClick:n?void 0:t,className:r,style:o,width:"28px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("title",{children:"Camera On"}),T.jsx("path",{d:"M12 16C13.6569 16 15 14.6569 15 13C15 11.3431 13.6569 10 12 10C10.3431 10 9 11.3431 9 13C9 14.6569 10.3431 16 12 16Z"}),T.jsx("path",{d:"M3 16.8V9.2C3 8.0799 3 7.51984 3.21799 7.09202C3.40973 6.71569 3.71569 6.40973 4.09202 6.21799C4.51984 6 5.0799 6 6.2 6H7.25464C7.37758 6 7.43905 6 7.49576 5.9935C7.79166 5.95961 8.05705 5.79559 8.21969 5.54609C8.25086 5.49827 8.27836 5.44328 8.33333 5.33333C8.44329 5.11342 8.49827 5.00346 8.56062 4.90782C8.8859 4.40882 9.41668 4.08078 10.0085 4.01299C10.1219 4 10.2448 4 10.4907 4H13.5093C13.7552 4 13.8781 4 13.9915 4.01299C14.5833 4.08078 15.1141 4.40882 15.4394 4.90782C15.5017 5.00345 15.5567 5.11345 15.6667 5.33333C15.7216 5.44329 15.7491 5.49827 15.7803 5.54609C15.943 5.79559 16.2083 5.95961 16.5042 5.9935C16.561 6 16.6224 6 16.7454 6H17.8C18.9201 6 19.4802 6 19.908 6.21799C20.2843 6.40973 20.5903 6.71569 20.782 7.09202C21 7.51984 21 8.0799 21 9.2V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8Z"})]})}function VP(e){const{scanning:t,startScanning:n,stopScanning:r}=e,[o,i]=ge.useState(!1);function a(){i(!0),t?r():n(),setTimeout(()=>i(!1),1e3)}return T.jsx("div",{style:{bottom:85,right:8,position:"absolute",zIndex:2,cursor:o?"default":"pointer"},children:T.jsx(t?BP:jP,{disabled:o,onClick:a})})}function $P(e){const{onClick:t,className:n,style:r}=e;return T.jsxs("svg",{onClick:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:r,xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("title",{children:"Torch Off"}),T.jsx("path",{strokeWidth:.2,stroke:"yellow",fill:"yellow",d:"M14.516 15.158l.714.714-4.595 6.14-.75-.364L12.337 13H6.978L8.22 8.861l.803.803L8.322 12h3.036l1.793 1.792-1.475 5.16zm5.984 4.05L4.793 3.5l.707-.707 3.492 3.492L10.278 2h7.972l-5.025 7h7.149l-3.71 4.957 4.543 4.543zM12.707 10l3.243 3.243L18.376 10zM9.795 7.088l2.079 2.079L16.3 3h-5.278z"})]})}function LP(e){const{onClick:t,className:n,style:r}=e;return T.jsxs("svg",{onClick:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:r,xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("title",{children:"Torch On"}),T.jsx("path",{strokeWidth:.2,stroke:"yellow",fill:"yellow",d:"M13.225 9l5.025-7h-7.972l-3.3 11h5.359l-2.452 8.648.75.364L20.374 9zm.438 3H8.322l2.7-9H16.3l-5.025 7h7.101l-6.7 8.953z"})]})}function _P(e){const{status:t,scanning:n,torchToggle:r}=e;function o(i){r(i)}return n&&r?T.jsx("div",{style:{bottom:35,right:8,position:"absolute",zIndex:2,cursor:"pointer"},children:t?T.jsx($P,{onClick:()=>o(!1)}):T.jsx(LP,{onClick:()=>o(!0)})}):null}function qP(e){const{onClick:t,className:n,disabled:r=!1}=e,o={cursor:r?"default":"pointer",stroke:r?"grey":"yellow",fill:r?"grey":"yellow",...e.style};return T.jsxs("svg",{onClick:r?void 0:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:o,xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("title",{children:"Zoom In"}),T.jsx("path",{strokeWidth:.3,d:"M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-7.46,0.5l-1.5,0c-0.645,0 -0.643,-1 -0,-1l1.5,0l-0,-1.5c-0,-0.645 1,-0.643 1,0l-0,1.5l1.5,0c0.645,0 0.643,1 -0,1l-1.5,0l-0,1.5c-0,0.645 -1,0.643 -1,0l-0,-1.5Z"})]})}function YP(e){const{onClick:t,className:n,disabled:r=!1}=e,o={cursor:r?"default":"pointer",stroke:r?"grey":"yellow",fill:r?"grey":"yellow",...e.style};return T.jsxs("svg",{onClick:r?void 0:t,width:"30px",height:"30px",viewBox:"0 0 24 24",className:n,style:o,xmlns:"http://www.w3.org/2000/svg",children:[T.jsx("title",{children:"Zoom Out"}),T.jsx("path",{strokeWidth:.3,d:"M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-4.96,-0.5c0.645,0 0.643,1 -0,1l-4,0c-0.645,0 -0.643,-1 -0,-1l4,0Z"})]})}function UP(e){const{scanning:t,capabilities:n,onZoom:r,value:o}=e;if(!t||!r)return null;const i=(n.max-n.min)/3;return T.jsxs(ge.Fragment,{children:[T.jsx("div",{style:{bottom:130,right:8,position:"absolute",zIndex:2,cursor:"pointer"},children:T.jsx(YP,{disabled:o<=n.min,onClick:function(){r(Math.max(o-i,n.min))}})}),T.jsx("div",{style:{bottom:180,right:8,position:"absolute",zIndex:2,cursor:"pointer"},children:T.jsx(qP,{disabled:o>=n.max,onClick:function(){r(Math.min(o+i,n.max))}})})]})}const Zn={fullContainer:{width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},innerContainer:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},overlay:{position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},borderBox:{position:"relative",width:"70%",aspectRatio:"1 / 1",border:"2px dashed rgba(239, 68, 68, 0.4)",borderRadius:"0.5rem"},cornerTopLeft:{position:"absolute",width:"15%",height:"15%",border:"4px solid #ef4444",top:0,left:0,borderBottomColor:"transparent",borderRightColor:"transparent",borderTopLeftRadius:"0.5rem"},cornerTopRight:{position:"absolute",width:"15%",height:"15%",border:"4px solid #ef4444",top:0,right:0,borderBottomColor:"transparent",borderLeftColor:"transparent",borderTopRightRadius:"0.5rem"},cornerBottomLeft:{position:"absolute",width:"15%",height:"15%",border:"4px solid #ef4444",bottom:0,left:0,borderTopColor:"transparent",borderRightColor:"transparent",borderBottomLeftRadius:"0.5rem"},cornerBottomRight:{position:"absolute",width:"15%",height:"15%",border:"4px solid #ef4444",bottom:0,right:0,borderTopColor:"transparent",borderLeftColor:"transparent",borderBottomRightRadius:"0.5rem"}};function WP(e){const{scanning:t,capabilities:n,onOff:r,torch:o,zoom:i,startScanning:a,stopScanning:l}=e;return T.jsx("div",{style:Zn.fullContainer,children:T.jsxs("div",{style:Zn.innerContainer,children:[T.jsx("div",{style:Zn.overlay,children:T.jsxs("div",{style:Zn.borderBox,children:[T.jsx("div",{style:Zn.cornerTopLeft}),T.jsx("div",{style:Zn.cornerTopRight}),T.jsx("div",{style:Zn.cornerBottomLeft}),T.jsx("div",{style:Zn.cornerBottomRight})]})}),r&&T.jsx(VP,{scanning:t,startScanning:a,stopScanning:l}),o&&n.torch&&T.jsx(_P,{scanning:t,status:o.status,torchToggle:o.toggle}),i&&n.zoom&&T.jsx(UP,{scanning:t,capabilities:n.zoom,value:i.value,onZoom:i.onChange})]})})}function Os(e){if(e===null)throw new Error("Canvas should always be defined when component is mounted.");const t=e.getContext("2d");if(t===null)throw new Error("Canvas 2D context should be non-null");t.clearRect(0,0,e.width,e.height)}function GP(e){const{onScan:t,constraints:n,formats:r=["any"],paused:o=!1,components:i,children:a,styles:l,classNames:c,allowMultiple:u,scanDelay:d,onError:f,sound:h}=e,v=ge.useRef(null),m=ge.useRef(null),p=ge.useRef(null),b=ge.useMemo(()=>({...kP,...n}),[n]),C=ge.useMemo(()=>({...OP,...i}),[i]),[D,E]=ge.useState(!1),[S,A]=ge.useState(!0),[k,w]=ge.useState(b),M=(function(){const B=ge.useRef(Promise.resolve({type:"stop",data:{}})),Q=ge.useRef(null),_=ge.useRef(null),[H,le]=ge.useState({}),[ne,se]=ge.useState({}),Z=ge.useCallback(async(X,K)=>{if(!window.isSecureContext)throw new Error("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.");if(navigator?.mediaDevices?.getUserMedia===void 0)throw new Error("this browser has no Stream API support");const U=await navigator.mediaDevices.getUserMedia({audio:!1,video:K});X.srcObject!==void 0?X.srcObject=U:X.mozSrcObject!==void 0?X.mozSrcObject=U:window.URL.createObjectURL?X.src=window.URL.createObjectURL(U):window.webkitURL?X.src=window.webkitURL.createObjectURL(U):X.src=U.id,await Promise.race([X.play(),new Promise(ce=>setTimeout(ce,3e3)).then(()=>{throw new Error("Loading camera stream timed out after 3 seconds.")})]),await new Promise(ce=>setTimeout(ce,500));const[z]=U.getVideoTracks();return se(z.getSettings()),le(z?.getCapabilities?.()??{}),Q.current=U,_.current=z,{type:"start",data:{videoEl:X,stream:U,constraints:K}}},[]),oe=ge.useCallback(async(X,K)=>{X.src="",X.srcObject=null,X.load();for(const U of K.getTracks())K.removeTrack(U),U.stop();return Q.current=null,_.current=null,se({}),{type:"stop",data:{}}},[]),ie=ge.useCallback(async(X,{constraints:K,restart:U=!1})=>{let z=null;B.current=B.current.then(pe=>{if(pe.type==="start"){const{data:{videoEl:re,stream:he,constraints:me}}=pe;return U||X!==re||K!==me?oe(re,he).then(()=>Z(X,K)):pe}return Z(X,K)}).catch(pe=>(z=pe,{type:"stop",data:{}}));const ce=await B.current;if(z)throw z;if(ce.type==="stop")throw new Error("Something went wrong with the camera task queue (start task).")},[Z,oe]),te=ge.useCallback(async()=>{if(B.current=B.current.then(X=>{if(X.type==="stop")return X;const{data:{videoEl:K,stream:U}}=X;return oe(K,U)}),(await B.current).type==="start")throw new Error("Something went wrong with the camera task queue (stop task).")},[oe]),ee=ge.useCallback(async X=>{const K=_.current;if(!K)throw new Error("No active video track found.");{X.advanced?.[0].zoom&&K.getCapabilities().torch&&await K.applyConstraints({advanced:[{torch:!1}]}),await K.applyConstraints(X);const U=K.getCapabilities(),z=K.getSettings();le(U),se(z)}},[]);return ge.useEffect(()=>()=>{(async()=>await te())()},[te]),{capabilities:H,settings:ne,startCamera:ie,stopCamera:te,updateConstraints:ee}})(),N=ge.useRef(M),V=ge.useRef(f),F=ge.useRef(C.tracker);ge.useEffect(()=>{N.current=M},[M]),ge.useEffect(()=>{V.current=f},[f]),ge.useEffect(()=>{F.current=C.tracker},[C.tracker]);const Y=ge.useCallback(B=>{(function(Q,_,H,le){const ne=H;if(ne==null)throw new Error("onFound handler should only be called when component is mounted. Thus tracking canvas is always defined.");const se=_;if(se==null)throw new Error("onFound handler should only be called when component is mounted. Thus video element is always defined.");if(Q.length===0||le===void 0)Os(ne);else{const Z=se.offsetWidth,oe=se.offsetHeight,ie=se.videoWidth,te=se.videoHeight,ee=Math.max(Z/ie,oe/te),X=ie*ee,K=te*ee,U=X/ie,z=K/te,ce=(Z-X)/2,pe=(oe-K)/2,re=({x:Ee,y:Se})=>({x:Math.floor(Ee*U),y:Math.floor(Se*z)}),he=({x:Ee,y:Se})=>({x:Math.floor(Ee+ce),y:Math.floor(Se+pe)}),me=Q.map(Ee=>{const{boundingBox:Se,cornerPoints:$e}=Ee,{x:et,y:We}=he(re({x:Se.x,y:Se.y})),{x:mt,y:vt}=re({x:Se.width,y:Se.height});return{...Ee,cornerPoints:$e.map(Ct=>he(re(Ct))),boundingBox:DOMRectReadOnly.fromRect({x:et,y:We,width:mt,height:vt})}});ne.width=se.offsetWidth,ne.height=se.offsetHeight;const Ce=ne.getContext("2d");if(Ce===null)throw new Error("onFound handler should only be called when component is mounted. Thus tracking canvas 2D context is always defined.");le(me,Ce)}})(B,v.current,p.current,F.current)},[]),{startScanning:$,stopScanning:O}=(function(B){const{videoElementRef:Q,onScan:_,onFound:H,retryDelay:le=100,scanDelay:ne=0,formats:se=[],allowMultiple:Z=!1,sound:oe=!0}=B,ie=ge.useRef(new gl({formats:se})),te=ge.useRef(null),ee=ge.useRef(null);ge.useEffect(()=>{ie.current=new gl({formats:se})},[se]),ge.useEffect(()=>{typeof window<"u"&&oe&&(te.current=new Audio(typeof oe=="string"?oe:"data:audio/mp3;base64,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"))},[oe]);const X=ge.useCallback(K=>async U=>{if(Q.current!==null&&Q.current.readyState>1){const{lastScan:z,contentBefore:ce,lastScanHadContent:pe}=K;if(U-z<le)ee.current=window.requestAnimationFrame(X(K));else{const re=await ie.current.detect(Q.current),he=re.some(Se=>!ce.includes(Se.rawValue)),me=re.length>0;let Ce=K.lastOnScan;(he||Z&&me&&U-Ce>=ne)&&(oe&&te.current&&te.current.paused&&te.current.play().catch(Se=>console.error("Error playing the sound",Se)),Ce=U,_(re)),me&&H(re),!me&&pe&&H(re);const Ee={lastScan:U,lastOnScan:Ce,lastScanHadContent:me,contentBefore:he?re.map(Se=>Se.rawValue):ce};ee.current=window.requestAnimationFrame(X(Ee))}}},[_,H,le,Z,ne,oe]);return{startScanning:ge.useCallback(()=>{const K=performance.now(),U={lastScan:K,lastOnScan:K,contentBefore:[],lastScanHadContent:!1};ee.current=window.requestAnimationFrame(X(U))},[X]),stopScanning:ge.useCallback(()=>{ee.current!==null&&(window.cancelAnimationFrame(ee.current),ee.current=null)},[])}})({videoElementRef:v,onScan:t,onFound:Y,formats:r,retryDelay:C.tracker===void 0?500:10,scanDelay:d,allowMultiple:u,sound:h});ge.useEffect(()=>(E(!0),()=>{E(!1)}),[]),ge.useEffect(()=>{if(!Zm(b,k)){const B=b;n?.deviceId&&delete B.facingMode,w(B)}},[n,b,k]);const j=ge.useMemo(()=>({constraints:k,shouldStream:D&&!o}),[k,D,o]),I=ge.useCallback(async()=>{const B=v.current;if(B==null)throw new Error("Video should be defined when component is mounted.");const Q=m.current;if(Q==null)throw new Error("Canvas should be defined when component is mounted.");const _=Q.getContext("2d");if(_==null)throw new Error("Canvas should be defined when component is mounted.");if(j.shouldStream){await N.current.stopCamera(),A(!1);try{await N.current.startCamera(B,j),B?A(!0):await N.current.stopCamera()}catch(H){V.current?.(H),console.error("error",H)}}else Q.width=B.videoWidth,Q.height=B.videoHeight,_.drawImage(B,0,0,B.videoWidth,B.videoHeight),await N.current.stopCamera(),A(!1)},[j]);ge.useEffect(()=>{(async()=>await I())()},[I]);const q=ge.useMemo(()=>j.shouldStream&&S,[j.shouldStream,S]);return ge.useEffect(()=>{if(q){if(m.current===void 0)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus pause frame canvas is defined");if(Os(m.current),p.current===void 0)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus tracking canvas is defined");if(Os(p.current),v.current==null)throw new Error("shouldScan effect should only be triggered when component is mounted. Thus video element is defined");$()}return()=>{O()}},[q,$,O]),T.jsxs("div",{style:{...IP,...l?.container},className:c?.container,children:[T.jsx("video",{ref:v,style:{...FP,...l?.video,visibility:o?"hidden":"visible"},className:c?.video,autoPlay:!0,muted:!0,playsInline:!0}),T.jsx("canvas",{ref:m,style:{display:o?"block":"none",position:"absolute",width:"100%",height:"100%"}}),T.jsx("canvas",{ref:p,style:{position:"absolute",width:"100%",height:"100%"}}),T.jsxs("div",{style:{position:"absolute",width:"100%",height:"100%"},children:[C.finder&&T.jsx(WP,{scanning:S,capabilities:M.capabilities,onOff:C.onOff,zoom:C.zoom&&M.settings.zoom?{value:M.settings.zoom,onChange:async B=>{const Q={...k,advanced:[{zoom:B}]};await M.updateConstraints(Q)}}:void 0,torch:C.torch?{status:M.settings.torch??!1,toggle:async B=>{const Q={...k,advanced:[{torch:B}]};await M.updateConstraints(Q)}}:void 0,startScanning:async()=>await I(),stopScanning:async()=>{await M.stopCamera(),Os(p.current),A(!1)}}),a]})]})}var Mo={},of;function zP(){if(of)return Mo;of=1;var e=Bi();Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var t=e(om()),n=Ml();return Mo.default=(0,t.default)((0,n.jsx)("path",{d:"M9.5 6.5v3h-3v-3zM11 5H5v6h6zm-1.5 9.5v3h-3v-3zM11 13H5v6h6zm6.5-6.5v3h-3v-3zM19 5h-6v6h6zm-6 8h1.5v1.5H13zm1.5 1.5H16V16h-1.5zM16 13h1.5v1.5H16zm-3 3h1.5v1.5H13zm1.5 1.5H16V19h-1.5zM16 16h1.5v1.5H16zm1.5-1.5H19V16h-1.5zm0 3H19V19h-1.5zM22 7h-2V4h-3V2h5zm0 15v-5h-2v3h-3v2zM2 22h5v-2H4v-3H2zM2 2v5h2V4h3V2z"}),"QrCodeScanner"),Mo}var HP=zP();const KP=pn(HP),QP=({disabled:e,hidden:t,gridValues:n,parseFunction:r,closeOnScan:o})=>{const{setFieldValue:i,values:a}=zt.useFormikContext(),[l,c]=ge.useState(!1),u=()=>{c(!1)},d=()=>{c(!0)};return T.jsxs(Ae.Grid,{item:!0,display:t?.(a)?"none":"unset",xs:n?.xs??1,sm:n?.sm??1,md:n?.md??1,lg:n?.lg??1,xl:n?.xl??1,sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[T.jsx(Ae.Dialog,{open:l,onClose:u,children:T.jsx(Ae.DialogContent,{sx:{padding:1},children:T.jsx(GP,{formats:["qr_code","micro_qr_code","rm_qr_code","maxi_code","pdf417","aztec","data_matrix","matrix_codes","dx_film_edge","databar","databar_expanded","codabar","code_39","code_93","code_128","ean_8","ean_13","itf","linear_codes","upc_a","upc_e"],onScan:f=>{const h=r(f[0].rawValue),v=Object.keys(h);o&&u(),v.length&&v.forEach(m=>{i(m,h[m])})},components:{onOff:!0,torch:!0,zoom:!0,finder:!0,tracker:NP},allowMultiple:!0,scanDelay:2e3})})}),T.jsx(Ae.IconButton,{onClick:d,color:"primary",sx:{marginLeft:{sm:2,xs:2,md:0}},children:T.jsx(KP,{})})]})};function JP(e){return ZP[e]}const ZP={number:MD,select:Wd,multiselect:Wd,autocomplete:Gb,date:RD,time:VD,check:zb,switch:BD,slider:ND,text:jD,radio:DD,rating:PD,component:Hb,scanner:QP},XP=({controlArray:e,dataSource:t,editMode:n,initialValue:r})=>e.map((o,i)=>{const a=JP(o.type);return ge.createElement(a,{...o,key:`${o.name}-${i}`,options:o.options??t[o.name],editMode:n,initialValue:r[o.name]})}),eO=({modalType:e,name:t,setIdFunction:n,children:r,visible:o,setVisible:i})=>e?T.jsx(Ae.Dialog,{fullWidth:e==="fullWith",maxWidth:e==="fullWith"?!1:e,open:o,onClose:()=>{i?.(!1),n?.(null)},scroll:"paper",children:r}):r;function Xm(e,t){return function(){return e.apply(t,arguments)}}const{toString:tO}=Object.prototype,{getPrototypeOf:yc}=Object,{iterator:oa,toStringTag:eg}=Symbol,sa=(e=>t=>{const n=tO.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rn=e=>(e=e.toLowerCase(),t=>sa(t)===e),ia=e=>t=>typeof t===e,{isArray:lo}=Array,no=ia("undefined");function os(e){return e!==null&&!no(e)&&e.constructor!==null&&!no(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tg=Rn("ArrayBuffer");function nO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tg(e.buffer),t}const rO=ia("string"),Qt=ia("function"),ng=ia("number"),ss=e=>e!==null&&typeof e=="object",oO=e=>e===!0||e===!1,Xs=e=>{if(sa(e)!=="object")return!1;const t=yc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(eg in e)&&!(oa in e)},sO=e=>{if(!ss(e)||os(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},iO=Rn("Date"),aO=Rn("File"),lO=Rn("Blob"),cO=Rn("FileList"),uO=e=>ss(e)&&Qt(e.pipe),dO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=sa(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},fO=Rn("URLSearchParams"),[pO,hO,mO,gO]=["ReadableStream","Request","Response","Headers"].map(Rn),yO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function is(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),lo(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(os(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function rg(e,t){if(os(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,og=e=>!no(e)&&e!==mr;function wl(){const{caseless:e,skipUndefined:t}=og(this)&&this||{},n={},r=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=e&&rg(n,i)||i;Xs(n[a])&&Xs(o)?n[a]=wl(n[a],o):Xs(o)?n[a]=wl({},o):lo(o)?n[a]=o.slice():(!t||!no(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&is(arguments[o],r);return n}const bO=(e,t,n,{allOwnKeys:r}={})=>(is(t,(o,i)=>{n&&Qt(o)?Object.defineProperty(e,i,{value:Xm(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),vO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xO=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&yc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},TO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wO=e=>{if(!e)return null;if(lo(e))return e;let t=e.length;if(!ng(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},EO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yc(Uint8Array)),SO=(e,t)=>{const r=(e&&e[oa]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},RO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},MO=Rn("HTMLFormElement"),AO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),sf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),DO=Rn("RegExp"),sg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};is(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},PO=e=>{sg(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OO=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return lo(e)?r(e):r(String(e).split(t)),n},kO=()=>{},IO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function FO(e){return!!(e&&Qt(e.append)&&e[eg]==="FormData"&&e[oa])}const NO=e=>{const t=new Array(10),n=(r,o)=>{if(ss(r)){if(t.indexOf(r)>=0)return;if(os(r))return r;if(!("toJSON"in r)){t[o]=r;const i=lo(r)?[]:{};return is(r,(a,l)=>{const c=n(a,o+1);!no(c)&&(i[l]=c)}),t[o]=void 0,i}}return r};return n(e,0)},BO=Rn("AsyncFunction"),jO=e=>e&&(ss(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),ig=((e,t)=>e?setImmediate:t?((n,r)=>(mr.addEventListener("message",({source:o,data:i})=>{o===mr&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),mr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qt(mr.postMessage)),VO=typeof queueMicrotask<"u"?queueMicrotask.bind(mr):typeof process<"u"&&process.nextTick||ig,$O=e=>e!=null&&Qt(e[oa]),de={isArray:lo,isArrayBuffer:tg,isBuffer:os,isFormData:dO,isArrayBufferView:nO,isString:rO,isNumber:ng,isBoolean:oO,isObject:ss,isPlainObject:Xs,isEmptyObject:sO,isReadableStream:pO,isRequest:hO,isResponse:mO,isHeaders:gO,isUndefined:no,isDate:iO,isFile:aO,isBlob:lO,isRegExp:DO,isFunction:Qt,isStream:uO,isURLSearchParams:fO,isTypedArray:EO,isFileList:cO,forEach:is,merge:wl,extend:bO,trim:yO,stripBOM:vO,inherits:CO,toFlatObject:xO,kindOf:sa,kindOfTest:Rn,endsWith:TO,toArray:wO,forEachEntry:SO,matchAll:RO,isHTMLForm:MO,hasOwnProperty:sf,hasOwnProp:sf,reduceDescriptors:sg,freezeMethods:PO,toObjectSet:OO,toCamelCase:AO,noop:kO,toFiniteNumber:IO,findKey:rg,global:mr,isContextDefined:og,isSpecCompliantForm:FO,toJSONObject:NO,isAsyncFn:BO,isThenable:jO,setImmediate:ig,asap:VO,isIterable:$O};let Be=class ag extends Error{static from(t,n,r,o,i,a){const l=new ag(t.message,n||t.code,r,o,i);return l.cause=t,l.name=t.name,a&&Object.assign(l,a),l}constructor(t,n,r,o,i){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}};Be.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Be.ERR_BAD_OPTION="ERR_BAD_OPTION";Be.ECONNABORTED="ECONNABORTED";Be.ETIMEDOUT="ETIMEDOUT";Be.ERR_NETWORK="ERR_NETWORK";Be.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Be.ERR_DEPRECATED="ERR_DEPRECATED";Be.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Be.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Be.ERR_CANCELED="ERR_CANCELED";Be.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Be.ERR_INVALID_URL="ERR_INVALID_URL";const LO=null;function El(e){return de.isPlainObject(e)||de.isArray(e)}function lg(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function af(e,t,n){return e?e.concat(t).map(function(o,i){return o=lg(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function _O(e){return de.isArray(e)&&!e.some(El)}const qO=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function aa(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!de.isUndefined(b[p])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(de.isDate(m))return m.toISOString();if(de.isBoolean(m))return m.toString();if(!c&&de.isBlob(m))throw new Be("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(m)||de.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,b){let C=m;if(m&&!b&&typeof m=="object"){if(de.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(de.isArray(m)&&_O(m)||(de.isFileList(m)||de.endsWith(p,"[]"))&&(C=de.toArray(m)))return p=lg(p),C.forEach(function(E,S){!(de.isUndefined(E)||E===null)&&t.append(a===!0?af([p],S,i):a===null?p:p+"[]",u(E))}),!1}return El(m)?!0:(t.append(af(b,p,i),u(m)),!1)}const f=[],h=Object.assign(qO,{defaultVisitor:d,convertValue:u,isVisitable:El});function v(m,p){if(!de.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),de.forEach(m,function(C,D){(!(de.isUndefined(C)||C===null)&&o.call(t,C,de.isString(D)?D.trim():D,p,h))===!0&&v(C,p?p.concat(D):[D])}),f.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return v(e),t}function lf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function bc(e,t){this._pairs=[],e&&aa(e,this,t)}const cg=bc.prototype;cg.append=function(t,n){this._pairs.push([t,n])};cg.toString=function(t){const n=t?function(r){return t.call(this,r,lf)}:lf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function YO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ug(e,t,n){if(!t)return e;const r=n&&n.encode||YO,o=de.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(i?a=i(t,o):a=de.isURLSearchParams(t)?t.toString():new bc(t,o).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class cf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},UO=typeof URLSearchParams<"u"?URLSearchParams:bc,WO=typeof FormData<"u"?FormData:null,GO=typeof Blob<"u"?Blob:null,zO={isBrowser:!0,classes:{URLSearchParams:UO,FormData:WO,Blob:GO},protocols:["http","https","file","blob","url","data"]},Cc=typeof window<"u"&&typeof document<"u",Sl=typeof navigator=="object"&&navigator||void 0,HO=Cc&&(!Sl||["ReactNative","NativeScript","NS"].indexOf(Sl.product)<0),KO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QO=Cc&&window.location.href||"http://localhost",JO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cc,hasStandardBrowserEnv:HO,hasStandardBrowserWebWorkerEnv:KO,navigator:Sl,origin:QO},Symbol.toStringTag,{value:"Module"})),qt={...JO,...zO};function ZO(e,t){return aa(e,new qt.classes.URLSearchParams,{visitor:function(n,r,o,i){return qt.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function XO(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ek(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function dg(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=i>=n.length;return a=!a&&de.isArray(o)?o.length:a,c?(de.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!de.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&de.isArray(o[a])&&(o[a]=ek(o[a])),!l)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,o)=>{t(XO(r),o,n,0)}),n}return null}function tk(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const as={transitional:vc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=de.isObject(t);if(i&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return o?JSON.stringify(dg(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ZO(t,this.formSerializer).toString();if((l=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return aa(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),tk(t)):t}],transformResponse:[function(t){const n=this.transitional||as.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Be.from(l,Be.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{as.headers[e]={}});const nk=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rk=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
182
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&nk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},uf=Symbol("internals");function Ao(e){return e&&String(e).trim().toLowerCase()}function ei(e){return e===!1||e==null?e:de.isArray(e)?e.map(ei):String(e)}function ok(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const sk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ha(e,t,n,r,o){if(de.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function ik(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ak(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,c,u){const d=Ao(c);if(!d)throw new Error("header name must be a non-empty string");const f=de.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=ei(l))}const a=(l,c)=>de.forEach(l,(u,d)=>i(u,d,c));if(de.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(de.isString(t)&&(t=t.trim())&&!sk(t))a(rk(t),n);else if(de.isObject(t)&&de.isIterable(t)){let l={},c,u;for(const d of t){if(!de.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(c=l[u])?de.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ao(t),t){const r=de.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return ok(o);if(de.isFunction(n))return n.call(this,o,r);if(de.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ao(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ha(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Ao(a),a){const l=de.findKey(r,a);l&&(!n||Ha(r,r[l],l,n))&&(delete r[l],o=!0)}}return de.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ha(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return de.forEach(this,(o,i)=>{const a=de.findKey(r,i);if(a){n[a]=ei(o),delete n[i];return}const l=t?ik(i):String(i).trim();l!==i&&delete n[i],n[l]=ei(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
183
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[uf]=this[uf]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=Ao(a);r[l]||(ak(o,a),r[l]=!0)}return de.isArray(t)?t.forEach(i):i(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Jt);function Ka(e,t){const n=this||as,r=t||n,o=Jt.from(r.headers);let i=r.data;return de.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function fg(e){return!!(e&&e.__CANCEL__)}let ls=class extends Be{constructor(t,n,r){super(t??"canceled",Be.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function pg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Be("Request failed with status code "+n.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ck(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[i];a||(a=u),n[o]=c,r[o]=u;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const v=d&&u-d;return v?Math.round(h*1e3/v):void 0}}function uk(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const bi=(e,t,n=3)=>{let r=0;const o=ck(50,250);return uk(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,c=a-r,u=o(c),d=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-a)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},df=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ff=e=>(...t)=>de.asap(()=>e(...t)),dk=qt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,qt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(qt.origin),qt.navigator&&/(msie|trident)/i.test(qt.navigator.userAgent)):()=>!0,fk=qt.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];de.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),de.isString(r)&&l.push(`path=${r}`),de.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),de.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pk(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hg(e,t,n){let r=!pk(t);return e&&(r||n==!1)?hk(e,t):t}const pf=e=>e instanceof Jt?{...e}:e;function Cr(e,t){t=t||{};const n={};function r(u,d,f,h){return de.isPlainObject(u)&&de.isPlainObject(d)?de.merge.call({caseless:h},u,d):de.isPlainObject(d)?de.merge({},d):de.isArray(d)?d.slice():d}function o(u,d,f,h){if(de.isUndefined(d)){if(!de.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function i(u,d){if(!de.isUndefined(d))return r(void 0,d)}function a(u,d){if(de.isUndefined(d)){if(!de.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,d,f)=>o(pf(u),pf(d),f,!0)};return de.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=de.hasOwnProp(c,d)?c[d]:o,h=f(e[d],t[d],d);de.isUndefined(h)&&f!==l||(n[d]=h)}),n}const mg=e=>{const t=Cr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=Jt.from(a),t.url=ug(hg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),de.isFormData(n)){if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(de.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,f])=>{u.includes(d.toLowerCase())&&a.set(d,f)})}}if(qt.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&dk(t.url))){const c=o&&i&&fk.read(i);c&&a.set(o,c)}return t},mk=typeof XMLHttpRequest<"u",gk=mk&&function(e){return new Promise(function(n,r){const o=mg(e);let i=o.data;const a=Jt.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,f,h,v,m;function p(){v&&v(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function C(){if(!b)return;const E=Jt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:E,config:e,request:b};pg(function(w){n(w),p()},function(w){r(w),p()},A),b=null}"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(C)},b.onabort=function(){b&&(r(new Be("Request aborted",Be.ECONNABORTED,e,b)),b=null)},b.onerror=function(S){const A=S&&S.message?S.message:"Network Error",k=new Be(A,Be.ERR_NETWORK,e,b);k.event=S||null,r(k),b=null},b.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||vc;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new Be(S,A.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&de.forEach(a.toJSON(),function(S,A){b.setRequestHeader(A,S)}),de.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),u&&([h,m]=bi(u,!0),b.addEventListener("progress",h)),c&&b.upload&&([f,v]=bi(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(d=E=>{b&&(r(!E||E.type?new ls(null,e,b):E),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const D=lk(o.url);if(D&&qt.protocols.indexOf(D)===-1){r(new Be("Unsupported protocol "+D+":",Be.ERR_BAD_REQUEST,e));return}b.send(i||null)})},yk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Be?d:new ls(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new Be(`timeout of ${t}ms exceeded`,Be.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>de.asap(l),c}},bk=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},vk=async function*(e,t){for await(const n of Ck(e))yield*bk(n,t)},Ck=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},hf=(e,t,n,r)=>{const o=vk(e,t);let i=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},mf=64*1024,{isFunction:ks}=de,xk=(({Request:e,Response:t})=>({Request:e,Response:t}))(de.global),{ReadableStream:gf,TextEncoder:yf}=de.global,bf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Tk=e=>{e=de.merge.call({skipUndefined:!0},xk,e);const{fetch:t,Request:n,Response:r}=e,o=t?ks(t):typeof fetch=="function",i=ks(n),a=ks(r);if(!o)return!1;const l=o&&ks(gf),c=o&&(typeof yf=="function"?(m=>p=>m.encode(p))(new yf):async m=>new Uint8Array(await new n(m).arrayBuffer())),u=i&&l&&bf(()=>{let m=!1;const p=new n(qt.origin,{body:new gf,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!p}),d=a&&l&&bf(()=>de.isReadableStream(new r("").body)),f={stream:d&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(p,b)=>{let C=p&&p[m];if(C)return C.call(p);throw new Be(`Response type '${m}' is not supported`,Be.ERR_NOT_SUPPORT,b)})});const h=async m=>{if(m==null)return 0;if(de.isBlob(m))return m.size;if(de.isSpecCompliantForm(m))return(await new n(qt.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(de.isArrayBufferView(m)||de.isArrayBuffer(m))return m.byteLength;if(de.isURLSearchParams(m)&&(m=m+""),de.isString(m))return(await c(m)).byteLength},v=async(m,p)=>{const b=de.toFiniteNumber(m.getContentLength());return b??h(p)};return async m=>{let{url:p,method:b,data:C,signal:D,cancelToken:E,timeout:S,onDownloadProgress:A,onUploadProgress:k,responseType:w,headers:M,withCredentials:N="same-origin",fetchOptions:V}=mg(m),F=t||fetch;w=w?(w+"").toLowerCase():"text";let Y=yk([D,E&&E.toAbortSignal()],S),$=null;const O=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let j;try{if(k&&u&&b!=="get"&&b!=="head"&&(j=await v(M,C))!==0){let H=new n(p,{method:"POST",body:C,duplex:"half"}),le;if(de.isFormData(C)&&(le=H.headers.get("content-type"))&&M.setContentType(le),H.body){const[ne,se]=df(j,bi(ff(k)));C=hf(H.body,mf,ne,se)}}de.isString(N)||(N=N?"include":"omit");const I=i&&"credentials"in n.prototype,q={...V,signal:Y,method:b.toUpperCase(),headers:M.normalize().toJSON(),body:C,duplex:"half",credentials:I?N:void 0};$=i&&new n(p,q);let B=await(i?F($,V):F(p,q));const Q=d&&(w==="stream"||w==="response");if(d&&(A||Q&&O)){const H={};["status","statusText","headers"].forEach(Z=>{H[Z]=B[Z]});const le=de.toFiniteNumber(B.headers.get("content-length")),[ne,se]=A&&df(le,bi(ff(A),!0))||[];B=new r(hf(B.body,mf,ne,()=>{se&&se(),O&&O()}),H)}w=w||"text";let _=await f[de.findKey(f,w)||"text"](B,m);return!Q&&O&&O(),await new Promise((H,le)=>{pg(H,le,{data:_,headers:Jt.from(B.headers),status:B.status,statusText:B.statusText,config:m,request:$})})}catch(I){throw O&&O(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new Be("Network Error",Be.ERR_NETWORK,m,$,I&&I.response),{cause:I.cause||I}):Be.from(I,I&&I.code,m,$,I&&I.response)}}},wk=new Map,gg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,l=a,c,u,d=wk;for(;l--;)c=i[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:Tk(t)),d=u;return u};gg();const xc={http:LO,xhr:gk,fetch:{get:gg}};de.forEach(xc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vf=e=>`- ${e}`,Ek=e=>de.isFunction(e)||e===null||e===!1;function Sk(e,t){e=de.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!Ek(r)&&(o=xc[(l=String(r)).toLowerCase()],o===void 0))throw new Be(`Unknown adapter '${l}'`);if(o&&(de.isFunction(o)||(o=o.get(t))))break;i[l||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
|
|
184
|
+
`+a.map(vf).join(`
|
|
185
|
+
`):" "+vf(a[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const yg={getAdapter:Sk,adapters:xc};function Qa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ls(null,e)}function Cf(e){return Qa(e),e.headers=Jt.from(e.headers),e.data=Ka.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yg.getAdapter(e.adapter||as.adapter,e)(e).then(function(r){return Qa(e),r.data=Ka.call(e,e.transformResponse,r),r.headers=Jt.from(r.headers),r},function(r){return fg(r)||(Qa(e),r&&r.response&&(r.response.data=Ka.call(e,e.transformResponse,r.response),r.response.headers=Jt.from(r.response.headers))),Promise.reject(r)})}const bg="1.13.5",la={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{la[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xf={};la.transitional=function(t,n,r){function o(i,a){return"[Axios v"+bg+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new Be(o(a," has been removed"+(n?" in "+n:"")),Be.ERR_DEPRECATED);return n&&!xf[a]&&(xf[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};la.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Rk(e,t,n){if(typeof e!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],c=l===void 0||a(l,i,e);if(c!==!0)throw new Be("option "+i+" must be "+c,Be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Be("Unknown option "+i,Be.ERR_BAD_OPTION)}}const ti={assertOptions:Rk,validators:la},ln=ti.validators;let yr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cf,response:new cf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
186
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ti.assertOptions(r,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean),legacyInterceptorReqResOrdering:ln.transitional(ln.boolean)},!1),o!=null&&(de.isFunction(o)?n.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:ln.function,serialize:ln.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ti.assertOptions(n,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&de.merge(i.common,i[n.method]);i&&de.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Jt.concat(a,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(n)===!1)return;c=c&&p.synchronous;const b=n.transitional||vc;b&&b.legacyInterceptorReqResOrdering?l.unshift(p.fulfilled,p.rejected):l.push(p.fulfilled,p.rejected)});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,h;if(!c){const m=[Cf.bind(this),void 0];for(m.unshift(...l),m.push(...u),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=l.length;let v=n;for(;f<h;){const m=l[f++],p=l[f++];try{v=m(v)}catch(b){p.call(this,b);break}}try{d=Cf.call(this,v)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Cr(this.defaults,t);const n=hg(t.baseURL,t.url,t.allowAbsoluteUrls);return ug(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){yr.prototype[t]=function(n,r){return this.request(Cr(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(Cr(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}yr.prototype[t]=n(),yr.prototype[t+"Form"]=n(!0)});let Mk=class vg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new ls(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vg(function(o){t=o}),cancel:t}}};function Ak(e){return function(n){return e.apply(null,n)}}function Dk(e){return de.isObject(e)&&e.isAxiosError===!0}const Rl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rl).forEach(([e,t])=>{Rl[t]=e});function Cg(e){const t=new yr(e),n=Xm(yr.prototype.request,t);return de.extend(n,yr.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Cg(Cr(e,o))},n}const Et=Cg(as);Et.Axios=yr;Et.CanceledError=ls;Et.CancelToken=Mk;Et.isCancel=fg;Et.VERSION=bg;Et.toFormData=aa;Et.AxiosError=Be;Et.Cancel=Et.CanceledError;Et.all=function(t){return Promise.all(t)};Et.spread=Ak;Et.isAxiosError=Dk;Et.mergeConfig=Cr;Et.AxiosHeaders=Jt;Et.formToJSON=e=>dg(de.isHTMLForm(e)?new FormData(e):e);Et.getAdapter=yg.getAdapter;Et.HttpStatusCode=Rl;Et.default=Et;const{Axios:Yk,AxiosError:Uk,CanceledError:Wk,isCancel:Gk,CancelToken:zk,VERSION:Hk,all:Kk,Cancel:Qk,isAxiosError:Jk,spread:Zk,toFormData:Xk,AxiosHeaders:eI,HttpStatusCode:tI,formToJSON:nI,getAdapter:rI,mergeConfig:oI}=Et,Pk=async({name:e,url:t,connectionMode:n},r)=>{try{if(r)return await r(t);const{data:o}=await Et.get(`undefined/gw/${t}`);return o}catch(o){return console.error("Error obteniendo los datos de ",e,o),[]}},Ok=async(e,t,n=null)=>{const{data:r}=await Et.get(`undefined/gw/${t}?id=${e}`);return r},kk=async(e,t,n,r)=>{try{const{data:o}=await Et.request({url:`undefined/gw/${r}`,method:n?"PUT":"POST",params:{id:n,name:t},data:e});return o}catch(o){return console.log(Date.now(),o),{}}},xg={component:null,autocomplete:"",check:null,date:"",number:"",radio:"",rating:0,select:[],multiselect:[],slider:0,switch:!1,text:"",time:""};hn(Ln,"customMore",function(e,t,n){return this.test("custom-more",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a>l?!0:i({path:o,message:t})})});hn(Ln,"customRequired",function(e){return this.test("custom-required",e,function(t){const{path:n,createError:r}=this;return t==null||t.length===0||t===!1?r({path:n,message:e}):!0})});hn(Al,"customRequired",function(e){return this.test("custom-required",e,function(t){const{path:n,createError:r}=this;return t==null||t.length===0||t===!1?r({path:n,message:e}):!0})});hn(un,"customRequired",function(e){return this.test("custom-required",e,function(t){const{path:n,createError:r}=this;return t==null||t.length===0||t===!1?r({path:n,message:e}):!0})});hn(oi,"customRequired",function(e){return this.test("custom-required",e,function(t){const{path:n,createError:r}=this;return t==null||t.length===0||t===!1?r({path:n,message:e}):!0})});hn(Ln,"customMax",function(e,t,n){return this.test("custom-max",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a<=l?!0:i({path:o,message:t})})});hn(Ln,"customMin",function(e,t,n){return this.test("custom-min",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a>=l?!0:i({path:o,message:t})})});hn(Ln,"customLess",function(e,t,n){return this.test("custom-less",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a<l?!0:i({path:o,message:t})})});hn(un,"customMore",function(e,t,n){return this.test("custom-more",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a>l?!0:i({path:o,message:t})})});hn(un,"customMax",function(e,t,n){return this.test("custom-max",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a<=l?!0:i({path:o,message:t})})});hn(un,"customMin",function(e,t,n){return this.test("custom-min",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a>=l?!0:i({path:o,message:t})})});hn(un,"customLess",function(e,t,n){return this.test("custom-less",t,function(r){const{path:o,createError:i}=this,a=Array.isArray(r)?r.length:parseFloat(r),l=n?parseFloat(this.parent[n]):e;return a<l?!0:i({path:o,message:t})})});const Ik={component:Pf().nullable(),text:un(),select:Ln(),multiselect:Ln(),date:un(),number:un(),autocomplete:Ln(),check:un(),radio:un(),rating:oi(),slider:oi(),switch:Al(),time:un()},Fk={required:(e,{message:t,when:n,reference:r})=>n?e.when(n.name,{is:n.expression,then:o=>o.customRequired(t),otherwise:o=>o}):e.customRequired(t),length:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.length(o?Ar(o):n,t),otherwise:i=>i}):e.length(o?Ar(o):n,`${t}`),min:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.customMin(n,t,o),otherwise:i=>i}):e.customMin(n,t,o),max:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.customMax(n,t,o),otherwise:i=>i}):e.customMax(n,t,o),moreThan:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.customMore(n,t,o),otherwise:i=>i}):e.customMore(n,t,o),lessThan:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.customLess(n,t,o),otherwise:i=>i}):e.customLess(n,t,o),integer:(e,{message:t,when:n,reference:r})=>n?e.when(n.name,{is:n.expression,then:o=>o.integer(t),otherwise:o=>o}):e.integer(t),positive:(e,{message:t,when:n,reference:r})=>n?e.when(n.name,{is:n.expression,then:o=>o.positive(t),otherwise:o=>o}):e.positive(t),negative:(e,{message:t,when:n,reference:r})=>n?e.when(n.name,{is:n.expression,then:o=>o.negative(t),otherwise:o=>o}):e.negative(t),regex:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.matches(o?Ar(o):n,t),otherwise:i=>i}):e.matches(o?Ar(o):n,t),email:(e,{message:t,when:n,reference:r})=>n?e.when(n.name,{is:n.expression,then:o=>o.email(t),otherwise:o=>o}):e.email(t),url:(e,{message:t,when:n,reference:r})=>n?e.when(n.name,{is:n.expression,then:o=>o.url(t),otherwise:o=>o}):e.url(t),oneOf:(e,{message:t,value:n,when:r,reference:o})=>r?e.when(r.name,{is:r.expression,then:i=>i.oneOf(o?Ar(o):n,t),otherwise:i=>i}):e.oneOf(o?Ar(o):n,t),tests:(e,t)=>{let n=e;return t.forEach(({message:r,test:o},i)=>{n=n.test(`test-${i}`,r,(a,l)=>{const{path:c,createError:u}=l,d=o(l.parent);return d?u({path:c,message:r}):!d})}),n}},Nk=async(e,t,n,r,o,i)=>{let a={};const l={},c={};let u=!1;if(await Promise.all(e.filter(({name:d})=>d.length)?.map(async({name:d,type:f,defaultValue:h,validations:v,url:m,options:p})=>{a[d]=h??xg[f],Bk.includes(f)&&m&&(p&&console.log(Date.now(),`El control ${d} tiene url y opciones, los datos que mostrará vendrán del servicio correspondiente`),c[d]=await Pk({name:d,url:m},i)),l[d]=Ik[f],v&&Object.keys(v).forEach(b=>{const C=Fk[b];C&&(l[d]=C(l[d],v[b]))})})),n){const d=typeof o=="function"?await o(n):await Ok(n,t);Object.keys(d)?.map(f=>{a[f]=d[f]??""}),u=d.editMode!==void 0?d.editMode:!0}return{initialFormData:a,validationSchema:l,dataSource:c,editMode:u}},Bk=["select","multiselect","autocomplete","radio"],jk=e=>{const t=Object.keys(e),n={};return t.forEach(r=>{n[r]=e[r]?.length===0?null:e[r]}),n},Vk=({hideButtons:e,sx:t,children:n})=>T.jsx(Ae.Grid,{container:!0,spacing:1,p:e?0:2,sx:t,children:n}),$k=e=>{const{title:t,editTitle:n,createTitle:r,name:o,endpointPath:i,controls:a,description:l,modalType:c,showSpecificDescription:u,descriptionOnCreate:d,descriptionOnEdit:f,idForEdit:h,connectionMode:v,hideButtons:m,setIdFunction:p,submitFunction:b,getByIdFunction:C,nextButton:D,prevButton:E,applyButton:S,saveOnDirty:A,saveButton:k,updateButton:w,dataAction:M,notifyValidation:N,sx:V,gridContainerSx:F,acceptDisabledFunction:Y,applyDisabledFunction:$,nextDisabledFunction:O,prevDisabledFunction:j,submitDisabledFunction:I,setExternalErrors:q,notificationProvider:B,specificGetItems:Q,Loading:_,visible:H,setVisible:le}=e,ne=ge.useRef(null),se=B?.(),[Z,oe]=ge.useState({}),[ie,te]=ge.useState(null),[ee,X]=ge.useState({}),[K,U]=ge.useState(!1),z=ge.useCallback((re,he)=>{const me=a.reduce((Ce,Ee)=>(Ee.name.length>0&&(!Ee.hidden?.(re)||Ee.persist?Ce[Ee.name]=Ee.type=="text"?re[Ee.name]?.trim():re[Ee.name]:Ce[Ee.name]=xg[Ee.type]),Ce),{});return b?b({...me,editMode:K},o,h,he):kk({...me,editMode:K},o,h,i)},[h,K,b,a,Z]);ge.useEffect(()=>{Nk(a,i,h,v,C,Q).then(({initialFormData:re,validationSchema:he,dataSource:me,editMode:Ce})=>{oe(re),te(he),X(me),U(Ce)})},[h]);const ce=u?K||h?f??l:d??l:l,pe=n||r?K?n:r:t;return Z&&ie&&ne?T.jsxs(eO,{modalType:c,name:o,setIdFunction:p,visible:H,setVisible:le,children:[pe&&T.jsx(Ae.DialogTitle,{children:pe}),ce&&T.jsx(Ae.DialogContentText,{mx:3,children:ce}),T.jsx(zt.Formik,{className:"formik-object",validateOnChange:!0,initialValues:Z,validationSchema:jf().shape(ie),onSubmit:re=>console.log(Date.now(),re),innerRef:ne,validateOnMount:!1,validateOnBlur:!1,enableReinitialize:!0,children:re=>{const{values:he,validateForm:me,setErrors:Ce,errors:Ee,resetForm:Se,setFieldTouched:$e,isValid:et,touched:We}=re,mt=async vt=>{const Ct=await N?.({...ne?.current.values,editMode:K});if(Ct)se?.({type:"warning",title:Ct});else{const Le=await me(),Oe=Object.keys(Le);q?.(gt=>({...gt||{},...Oe})),Oe.length?(Oe.forEach(gt=>$e(gt)),Ce(Le)):await z(jk(ne?.current.values),vt)!==!1&&(vt?.target?.id==="acceptButton"&&(le?.(!1),c&&p?.(null),!c&&U(!0)),vt?.target?.id==="applyButton"&&Se())}};return T.jsxs(T.Fragment,{children:[T.jsx(Ae.DialogContent,{dividers:!!c,sx:V,children:T.jsx(Vk,{hideButtons:m,sx:F,children:T.jsx(XP,{controlArray:a,dataSource:ee,editMode:K,initialValue:Z})})}),T.jsx(Ae.Box,{sx:{flexGrow:1}}),!m&&T.jsxs(Ae.DialogActions,{sx:{justifyContent:" "},children:[E&&T.jsx(Ae.Button,{onClick:()=>{E?.action(he)},color:"primary",variant:"contained",disabled:j?.(he),children:E?.text}),c&&T.jsx(Ae.Button,{onClick:()=>{le?.(!1),p?.(null)},color:"primary",variant:"contained",children:"Cancelar"}),M?.map((vt,Ct)=>T.jsx(Ae.Button,{onClick:()=>{vt.action()},color:"primary",variant:"contained",children:vt.label},Ct)),!K&&(S===void 0||S)&&T.jsx(Ae.Button,{onClick:mt,disabled:$?.(he)||I?.(he),color:"primary",variant:"contained",id:"applyButton",children:"Aplicar"}),T.jsx(Ae.Button,{onClick:mt,disabled:Y?.(he)||I?.(he),color:"primary",variant:"contained",id:"acceptButton",children:"Aceptar"})," ",D&&T.jsx(Ae.Button,{onClick:()=>{D?.submitOnAction&&mt().finally(()=>D?.action(he)),!D?.submitOnAction&&D?.action(he)},disabled:O?.(he),color:"primary",variant:"contained",children:D?.text})]})]})}})]}):_?T.jsx(_,{}):"Cargando..."};exports.GenericForm=$k;
|