@codeplex-sac/ui 0.0.6 → 0.0.9
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/index.cjs +336 -0
- package/index.js +33073 -148
- package/lib/alerta/alerta.d.ts +9 -5
- package/lib/autocompletado/autocompletado.d.ts +14 -6
- package/lib/avatar-usuario/avatar-usuario.d.ts +15 -4
- package/lib/boton/boton.d.ts +13 -3
- package/lib/campo-numero/campo-numero.d.ts +14 -4
- package/lib/campo-texto/campo-texto.d.ts +20 -3
- package/lib/cargando/cargando.d.ts +3 -3
- package/lib/casilla/casilla.d.ts +16 -3
- package/lib/deslizador/deslizador.d.ts +15 -7
- package/lib/esqueleto/esqueleto.d.ts +6 -5
- package/lib/grupo-botones/grupo-botones.d.ts +12 -6
- package/lib/grupo-radio/grupo-radio.d.ts +11 -3
- package/lib/insignia/insignia.d.ts +15 -6
- package/lib/interruptor/interruptor.d.ts +17 -6
- package/lib/lista-transferencia/lista-transferencia.d.ts +4 -2
- package/lib/mensaje-emergente/mensaje-emergente.d.ts +11 -10
- package/lib/notificacion/notificacion.d.ts +15 -11
- package/lib/progreso/progreso.d.ts +4 -4
- package/lib/selector/selector.d.ts +6 -2
- package/lib/tarjeta/tarjeta.d.ts +8 -4
- package/lib/valoracion/valoracion.d.ts +19 -10
- package/package.json +6 -4
- package/index.mjs +0 -30885
package/index.cjs
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Re=require("react"),_n=require("react-dom");function Uc(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)}const w=Uc(Re),xp=Uc(_n),Cp={};function wp(){return m.jsx("div",{className:Cp.container,children:m.jsx("h1",{children:"Welcome to Ui!"})})}function Tp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}},Or={exports:{}},Ye={};var ol;function Sp(){if(ol)return Ye;ol=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,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=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,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function T(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case t:switch(S=S.type,S){case c:case u:case r:case i:case a:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case h:case x:case s:return S;default:return E}}case n:return E}}}function C(S){return T(S)===u}return Ye.AsyncMode=c,Ye.ConcurrentMode=u,Ye.ContextConsumer=l,Ye.ContextProvider=s,Ye.Element=t,Ye.ForwardRef=d,Ye.Fragment=r,Ye.Lazy=h,Ye.Memo=x,Ye.Portal=n,Ye.Profiler=i,Ye.StrictMode=a,Ye.Suspense=f,Ye.isAsyncMode=function(S){return C(S)||T(S)===c},Ye.isConcurrentMode=C,Ye.isContextConsumer=function(S){return T(S)===l},Ye.isContextProvider=function(S){return T(S)===s},Ye.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Ye.isForwardRef=function(S){return T(S)===d},Ye.isFragment=function(S){return T(S)===r},Ye.isLazy=function(S){return T(S)===h},Ye.isMemo=function(S){return T(S)===x},Ye.isPortal=function(S){return T(S)===n},Ye.isProfiler=function(S){return T(S)===i},Ye.isStrictMode=function(S){return T(S)===a},Ye.isSuspense=function(S){return T(S)===f},Ye.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===a||S===f||S===y||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===x||S.$$typeof===s||S.$$typeof===l||S.$$typeof===d||S.$$typeof===b||S.$$typeof===v||S.$$typeof===O||S.$$typeof===p)},Ye.typeOf=T,Ye}var Xe={};var nl;function Op(){return nl||(nl=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,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=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,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function T(W){return typeof W=="string"||typeof W=="function"||W===r||W===u||W===i||W===a||W===f||W===y||typeof W=="object"&&W!==null&&(W.$$typeof===h||W.$$typeof===x||W.$$typeof===s||W.$$typeof===l||W.$$typeof===d||W.$$typeof===b||W.$$typeof===v||W.$$typeof===O||W.$$typeof===p)}function C(W){if(typeof W=="object"&&W!==null){var ae=W.$$typeof;switch(ae){case t:var se=W.type;switch(se){case c:case u:case r:case i:case a:case f:return se;default:var ue=se&&se.$$typeof;switch(ue){case l:case d:case h:case x:case s:return ue;default:return ae}}case n:return ae}}}var S=c,E=u,P=l,$=s,I=t,N=d,A=r,g=h,j=x,R=n,M=i,k=a,z=f,F=!1;function _(W){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(W)||C(W)===c}function B(W){return C(W)===u}function L(W){return C(W)===l}function G(W){return C(W)===s}function J(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function te(W){return C(W)===d}function K(W){return C(W)===r}function U(W){return C(W)===h}function ne(W){return C(W)===x}function le(W){return C(W)===n}function Z(W){return C(W)===i}function X(W){return C(W)===a}function ce(W){return C(W)===f}Xe.AsyncMode=S,Xe.ConcurrentMode=E,Xe.ContextConsumer=P,Xe.ContextProvider=$,Xe.Element=I,Xe.ForwardRef=N,Xe.Fragment=A,Xe.Lazy=g,Xe.Memo=j,Xe.Portal=R,Xe.Profiler=M,Xe.StrictMode=k,Xe.Suspense=z,Xe.isAsyncMode=_,Xe.isConcurrentMode=B,Xe.isContextConsumer=L,Xe.isContextProvider=G,Xe.isElement=J,Xe.isForwardRef=te,Xe.isFragment=K,Xe.isLazy=U,Xe.isMemo=ne,Xe.isPortal=le,Xe.isProfiler=Z,Xe.isStrictMode=X,Xe.isSuspense=ce,Xe.isValidElementType=T,Xe.typeOf=C})()),Xe}var rl;function Ji(){return rl||(rl=1,process.env.NODE_ENV==="production"?Or.exports=Sp():Or.exports=Op()),Or.exports}var Ja,al;function Ep(){if(al)return Ja;al=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 a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(d){return s[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 Ja=a()?Object.assign:function(i,s){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 y=0;y<u.length;y++)n.call(l,u[y])&&(c[u[y]]=l[u[y]])}}return c},Ja}var Za,il;function Zi(){if(il)return Za;il=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Za=e,Za}var Qa,sl;function Hc(){return sl||(sl=1,Qa=Function.call.bind(Object.prototype.hasOwnProperty)),Qa}var ei,ll;function kp(){if(ll)return ei;ll=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Zi(),n={},r=Hc();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,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 y=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 y.name="Invariant Violation",y}f=i[d](s,d,c,l,null,t)}catch(h){f=h}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 x=u?u():"";e("Failed "+l+" type: "+f.message+(x??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ei=a,ei}var ti,cl;function Pp(){if(cl)return ti;cl=1;var e=Ji(),t=Ep(),n=Zi(),r=Hc(),a=kp(),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 s(){return null}return ti=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(B){var L=B&&(u&&B[u]||B[d]);if(typeof L=="function")return L}var y="<<anonymous>>",x={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:O(),arrayOf:T,element:C(),elementType:S(),instanceOf:E,node:N(),objectOf:$,oneOf:P,oneOfType:I,shape:g,exact:j};function h(B,L){return B===L?B!==0||1/B===1/L:B!==B&&L!==L}function p(B,L){this.message=B,this.data=L&&typeof L=="object"?L:{},this.stack=""}p.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var L={},G=0;function J(K,U,ne,le,Z,X,ce){if(le=le||y,X=X||ne,ce!==n){if(c){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=le+":"+ne;!L[ae]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+le+"`. 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."),L[ae]=!0,G++)}}return U[ne]==null?K?U[ne]===null?new p("The "+Z+" `"+X+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new p("The "+Z+" `"+X+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:B(U,ne,le,Z,X)}var te=J.bind(null,!1);return te.isRequired=J.bind(null,!0),te}function v(B){function L(G,J,te,K,U,ne){var le=G[J],Z=k(le);if(Z!==B){var X=z(le);return new p("Invalid "+K+" `"+U+"` of type "+("`"+X+"` supplied to `"+te+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(L)}function O(){return b(s)}function T(B){function L(G,J,te,K,U){if(typeof B!="function")return new p("Property `"+U+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var ne=G[J];if(!Array.isArray(ne)){var le=k(ne);return new p("Invalid "+K+" `"+U+"` of type "+("`"+le+"` supplied to `"+te+"`, expected an array."))}for(var Z=0;Z<ne.length;Z++){var X=B(ne,Z,te,K,U+"["+Z+"]",n);if(X instanceof Error)return X}return null}return b(L)}function C(){function B(L,G,J,te,K){var U=L[G];if(!l(U)){var ne=k(U);return new p("Invalid "+te+" `"+K+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return b(B)}function S(){function B(L,G,J,te,K){var U=L[G];if(!e.isValidElementType(U)){var ne=k(U);return new p("Invalid "+te+" `"+K+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return b(B)}function E(B){function L(G,J,te,K,U){if(!(G[J]instanceof B)){var ne=B.name||y,le=_(G[J]);return new p("Invalid "+K+" `"+U+"` of type "+("`"+le+"` supplied to `"+te+"`, expected ")+("instance of `"+ne+"`."))}return null}return b(L)}function P(B){if(!Array.isArray(B))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.")),s;function L(G,J,te,K,U){for(var ne=G[J],le=0;le<B.length;le++)if(h(ne,B[le]))return null;var Z=JSON.stringify(B,function(ce,W){var ae=z(W);return ae==="symbol"?String(W):W});return new p("Invalid "+K+" `"+U+"` of value `"+String(ne)+"` "+("supplied to `"+te+"`, expected one of "+Z+"."))}return b(L)}function $(B){function L(G,J,te,K,U){if(typeof B!="function")return new p("Property `"+U+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var ne=G[J],le=k(ne);if(le!=="object")return new p("Invalid "+K+" `"+U+"` of type "+("`"+le+"` supplied to `"+te+"`, expected an object."));for(var Z in ne)if(r(ne,Z)){var X=B(ne,Z,te,K,U+"."+Z,n);if(X instanceof Error)return X}return null}return b(L)}function I(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var L=0;L<B.length;L++){var G=B[L];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(G)+" at index "+L+"."),s}function J(te,K,U,ne,le){for(var Z=[],X=0;X<B.length;X++){var ce=B[X],W=ce(te,K,U,ne,le,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&Z.push(W.data.expectedType)}var ae=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new p("Invalid "+ne+" `"+le+"` supplied to "+("`"+U+"`"+ae+"."))}return b(J)}function N(){function B(L,G,J,te,K){return R(L[G])?null:new p("Invalid "+te+" `"+K+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return b(B)}function A(B,L,G,J,te){return new p((B||"React class")+": "+L+" type `"+G+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function g(B){function L(G,J,te,K,U){var ne=G[J],le=k(ne);if(le!=="object")return new p("Invalid "+K+" `"+U+"` of type `"+le+"` "+("supplied to `"+te+"`, expected `object`."));for(var Z in B){var X=B[Z];if(typeof X!="function")return A(te,K,U,Z,z(X));var ce=X(ne,Z,te,K,U+"."+Z,n);if(ce)return ce}return null}return b(L)}function j(B){function L(G,J,te,K,U){var ne=G[J],le=k(ne);if(le!=="object")return new p("Invalid "+K+" `"+U+"` of type `"+le+"` "+("supplied to `"+te+"`, expected `object`."));var Z=t({},G[J],B);for(var X in Z){var ce=B[X];if(r(B,X)&&typeof ce!="function")return A(te,K,U,X,z(ce));if(!ce)return new p("Invalid "+K+" `"+U+"` key `"+X+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(G[J],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var W=ce(ne,X,te,K,U+"."+X,n);if(W)return W}return null}return b(L)}function R(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(R);if(B===null||l(B))return!0;var L=f(B);if(L){var G=L.call(B),J;if(L!==B.entries){for(;!(J=G.next()).done;)if(!R(J.value))return!1}else for(;!(J=G.next()).done;){var te=J.value;if(te&&!R(te[1]))return!1}}else return!1;return!0;default:return!1}}function M(B,L){return B==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function k(B){var L=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":M(L,B)?"symbol":L}function z(B){if(typeof B>"u"||B===null)return""+B;var L=k(B);if(L==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return L}function F(B){var L=z(B);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function _(B){return!B.constructor||!B.constructor.name?y:B.constructor.name}return x.checkPropTypes=a,x.resetWarningCache=a.resetWarningCache,x.PropTypes=x,x},ti}var oi,ul;function Rp(){if(ul)return oi;ul=1;var e=Zi();function t(){}function n(){}return n.resetWarningCache=t,oi=function(){function r(s,l,c,u,d,f){if(f!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},oi}var dl;function $p(){if(dl)return Sr.exports;if(dl=1,process.env.NODE_ENV!=="production"){var e=Ji(),t=!0;Sr.exports=Pp()(e.isElement,t)}else Sr.exports=Rp()();return Sr.exports}var Ip=$p();const o=Tp(Ip);function qc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=qc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=qc(e))&&(r&&(r+=" "),r+=t);return r}function tr(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const i=a;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)r[i]=s||{};else if(!s)r[i]=l;else{r[i]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const u=c;r[i][u]=tr(s[u],l[u],n)}}}else i==="className"&&n&&t.className?r.className=Q(e?.className,t?.className):i==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[i]===void 0&&(r[i]=e[i])}return r}function he(e,t,n=void 0){const r={};for(const a in e){const i=e[a];let s="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(s+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(s+=" "+n[u]))}r[a]=s}return r}const pl=e=>e,jp=()=>{let e=pl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pl}}},Gc=jp();function go(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function V(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":go(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ci(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}var Er={exports:{}},tt={};var fl;function Mp(){if(fl)return tt;fl=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=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"),y=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function h(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case n:case a:case r:case c:case u:case y:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case f:case d:return p;case i:return p;default:return b}}case t:return b}}}return tt.ContextConsumer=i,tt.ContextProvider=s,tt.Element=e,tt.ForwardRef=l,tt.Fragment=n,tt.Lazy=f,tt.Memo=d,tt.Portal=t,tt.Profiler=a,tt.StrictMode=r,tt.Suspense=c,tt.SuspenseList=u,tt.isContextConsumer=function(p){return h(p)===i},tt.isContextProvider=function(p){return h(p)===s},tt.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},tt.isForwardRef=function(p){return h(p)===l},tt.isFragment=function(p){return h(p)===n},tt.isLazy=function(p){return h(p)===f},tt.isMemo=function(p){return h(p)===d},tt.isPortal=function(p){return h(p)===t},tt.isProfiler=function(p){return h(p)===a},tt.isStrictMode=function(p){return h(p)===r},tt.isSuspense=function(p){return h(p)===c},tt.isSuspenseList=function(p){return h(p)===u},tt.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===r||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===s||p.$$typeof===i||p.$$typeof===l||p.$$typeof===x||p.getModuleId!==void 0)},tt.typeOf=h,tt}var ot={};var ml;function Np(){return ml||(ml=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 a:case u:case d:case x:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case y:case f:return p;case s: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"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=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"),y=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");ot.ContextConsumer=s,ot.ContextProvider=l,ot.Element=t,ot.ForwardRef=c,ot.Fragment=r,ot.Lazy=y,ot.Memo=f,ot.Portal=n,ot.Profiler=i,ot.StrictMode=a,ot.Suspense=u,ot.SuspenseList=d,ot.isContextConsumer=function(p){return e(p)===s},ot.isContextProvider=function(p){return e(p)===l},ot.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ot.isForwardRef=function(p){return e(p)===c},ot.isFragment=function(p){return e(p)===r},ot.isLazy=function(p){return e(p)===y},ot.isMemo=function(p){return e(p)===f},ot.isPortal=function(p){return e(p)===n},ot.isProfiler=function(p){return e(p)===i},ot.isStrictMode=function(p){return e(p)===a},ot.isSuspense=function(p){return e(p)===u},ot.isSuspenseList=function(p){return e(p)===d},ot.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===a||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===y||p.$$typeof===f||p.$$typeof===l||p.$$typeof===s||p.$$typeof===c||p.$$typeof===h||p.getModuleId!==void 0)},ot.typeOf=e})()),ot}var gl;function Ap(){return gl||(gl=1,process.env.NODE_ENV==="production"?Er.exports=Mp():Er.exports=Np()),Er.exports}var Ao=Ap();function co(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 Kc(e){if(w.isValidElement(e)||Ao.isValidElementType(e)||!co(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kc(e[n])}),t}function wt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return co(e)&&co(t)&&Object.keys(t).forEach(a=>{w.isValidElement(t[a])||Ao.isValidElementType(t[a])?r[a]=t[a]:co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&co(e[a])?r[a]=wt(e[a],t[a],n):n.clone?r[a]=co(t[a])?Kc(t[a]):t[a]:r[a]=t[a]}),r}function Yn(e,t){return t?wt(e,t,{clone:!1}):e}const Bo=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function hl(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(a.match(i)?.[1]||0)});return n.length?n.reduce((r,a)=>{const i=t[a];return delete r[a],r[a]=i,r},{...t}):t}function Lp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Dp(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
3
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:go(18,`(${t})`));return null}const[,r,a]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(i)}function Bp(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...l)=>t(e.breakpoints.up(...l),s),i.down=(...l)=>t(e.breakpoints.down(...l),s),i.between=(...l)=>t(e.breakpoints.between(...l),s),i.only=(...l)=>t(e.breakpoints.only(...l),s),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},a=i=>(n(r,i),r);return n(a),{...e,containerQueries:a}}const sa={xs:0,sm:600,md:900,lg:1200,xl:1536},bl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sa[e]}px)`},Fp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:sa[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function oo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||bl;return t.reduce((s,l,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||bl;return Object.keys(t).reduce((s,l)=>{if(Lp(i.keys,l)){const c=Dp(r.containerQueries?r:Fp,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(i.values||sa).includes(l)){const c=i.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function Yc(e={}){return e.keys?.reduce((n,r)=>{const a=e.up(r);return n[a]={},n},{})||{}}function wi(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function zp(e,...t){const n=Yc(e),r=[n,...t].reduce((a,i)=>wt(a,i),{});return wi(Object.keys(n),r)}function Vp(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((a,i)=>{i<e.length&&(n[a]=!0)}):r.forEach(a=>{e[a]!=null&&(n[a]=!0)}),n}function ni({values:e,breakpoints:t,base:n}){const r=n||Vp(e,t),a=Object.keys(r);if(a.length===0)return e;let i;return a.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[i],i=l):s[l]=e,s),{})}function la(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function Ur(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=la(e,n)||r,t&&(a=t(a,r,e)),a}function pt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,i=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=la(c,r)||{};return oo(s,l,f=>{let y=Ur(u,a,f);return f===y&&typeof f=="string"&&(y=Ur(u,a,`${t}${f==="default"?"":V(f)}`,f)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Bo}:{},i.filterProps=[t],i}function _p(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Wp={m:"margin",p:"padding"},Up={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hp=_p(e=>{if(e.length>2)if(yl[e])e=yl[e];else return[e];const[t,n]=e.split(""),r=Wp[t],a=Up[n]||"";return Array.isArray(a)?a.map(i=>r+i):[r+a]}),ca=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ua=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],qp=[...ca,...ua];function dr(e,t,n,r){const a=la(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof a=="string"?a.startsWith("var(")&&i===0?0:a.startsWith("var(")&&i===1?a:`calc(${i} * ${a})`:a*i):Array.isArray(a)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>a.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${s} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
4
|
+
`)):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(`
|
|
5
|
+
`)));const l=a[s];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
6
|
+
`)),()=>{})}function da(e){return dr(e,"spacing",8,"spacing")}function Jo(e,t){return typeof t=="string"||t==null?t:e(t)}function Gp(e,t){return n=>e.reduce((r,a)=>(r[a]=Jo(t,n),r),{})}function Kp(e,t,n,r){if(!t.includes(n))return null;const a=Hp(n),i=Gp(a,r),s=e[n];return oo(e,s,i)}function Xc(e,t){const n=da(e.theme);return Object.keys(e).map(r=>Kp(e,t,r,n)).reduce(Yn,{})}function ct(e){return Xc(e,ca)}ct.propTypes=process.env.NODE_ENV!=="production"?ca.reduce((e,t)=>(e[t]=Bo,e),{}):{};ct.filterProps=ca;function ut(e){return Xc(e,ua)}ut.propTypes=process.env.NODE_ENV!=="production"?ua.reduce((e,t)=>(e[t]=Bo,e),{}):{};ut.filterProps=ua;process.env.NODE_ENV!=="production"&&qp.reduce((e,t)=>(e[t]=Bo,e),{});function pa(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(i=>{r[i]=a}),r),{}),n=r=>Object.keys(r).reduce((a,i)=>t[i]?Yn(a,t[i](r)):a,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Gt(e){return typeof e!="number"?e:`${e}px solid`}function eo(e,t){return pt({prop:e,themeKey:"borders",transform:t})}const Yp=eo("border",Gt),Xp=eo("borderTop",Gt),Jp=eo("borderRight",Gt),Zp=eo("borderBottom",Gt),Qp=eo("borderLeft",Gt),ef=eo("borderColor"),tf=eo("borderTopColor"),of=eo("borderRightColor"),nf=eo("borderBottomColor"),rf=eo("borderLeftColor"),af=eo("outline",Gt),sf=eo("outlineColor"),fa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Jo(t,r)});return oo(e,e.borderRadius,n)}return null};fa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Bo}:{};fa.filterProps=["borderRadius"];pa(Yp,Xp,Jp,Zp,Qp,ef,tf,of,nf,rf,fa,af,sf);const ma=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dr(e.theme,"spacing",8,"gap"),n=r=>({gap:Jo(t,r)});return oo(e,e.gap,n)}return null};ma.propTypes=process.env.NODE_ENV!=="production"?{gap:Bo}:{};ma.filterProps=["gap"];const ga=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Jo(t,r)});return oo(e,e.columnGap,n)}return null};ga.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Bo}:{};ga.filterProps=["columnGap"];const ha=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Jo(t,r)});return oo(e,e.rowGap,n)}return null};ha.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Bo}:{};ha.filterProps=["rowGap"];const lf=pt({prop:"gridColumn"}),cf=pt({prop:"gridRow"}),uf=pt({prop:"gridAutoFlow"}),df=pt({prop:"gridAutoColumns"}),pf=pt({prop:"gridAutoRows"}),ff=pt({prop:"gridTemplateColumns"}),mf=pt({prop:"gridTemplateRows"}),gf=pt({prop:"gridTemplateAreas"}),hf=pt({prop:"gridArea"});pa(ma,ga,ha,lf,cf,uf,df,pf,ff,mf,gf,hf);function bn(e,t){return t==="grey"?t:e}const bf=pt({prop:"color",themeKey:"palette",transform:bn}),yf=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bn}),vf=pt({prop:"backgroundColor",themeKey:"palette",transform:bn});pa(bf,yf,vf);function Vt(e){return e<=1&&e!==0?`${e*100}%`:e}const xf=pt({prop:"width",transform:Vt}),Qi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||sa[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Vt(n)}};return oo(e,e.maxWidth,t)}return null};Qi.filterProps=["maxWidth"];const Cf=pt({prop:"minWidth",transform:Vt}),wf=pt({prop:"height",transform:Vt}),Tf=pt({prop:"maxHeight",transform:Vt}),Sf=pt({prop:"minHeight",transform:Vt});pt({prop:"size",cssProperty:"width",transform:Vt});pt({prop:"size",cssProperty:"height",transform:Vt});const Of=pt({prop:"boxSizing"});pa(xf,Qi,Cf,wf,Tf,Sf,Of);const pr={border:{themeKey:"borders",transform:Gt},borderTop:{themeKey:"borders",transform:Gt},borderRight:{themeKey:"borders",transform:Gt},borderBottom:{themeKey:"borders",transform:Gt},borderLeft:{themeKey:"borders",transform:Gt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fa},color:{themeKey:"palette",transform:bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bn},backgroundColor:{themeKey:"palette",transform:bn},p:{style:ut},pt:{style:ut},pr:{style:ut},pb:{style:ut},pl:{style:ut},px:{style:ut},py:{style:ut},padding:{style:ut},paddingTop:{style:ut},paddingRight:{style:ut},paddingBottom:{style:ut},paddingLeft:{style:ut},paddingX:{style:ut},paddingY:{style:ut},paddingInline:{style:ut},paddingInlineStart:{style:ut},paddingInlineEnd:{style:ut},paddingBlock:{style:ut},paddingBlockStart:{style:ut},paddingBlockEnd:{style:ut},m:{style:ct},mt:{style:ct},mr:{style:ct},mb:{style:ct},ml:{style:ct},mx:{style:ct},my:{style:ct},margin:{style:ct},marginTop:{style:ct},marginRight:{style:ct},marginBottom:{style:ct},marginLeft:{style:ct},marginX:{style:ct},marginY:{style:ct},marginInline:{style:ct},marginInlineStart:{style:ct},marginInlineEnd:{style:ct},marginBlock:{style:ct},marginBlockStart:{style:ct},marginBlockEnd:{style:ct},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:ma},rowGap:{style:ha},columnGap:{style:ga},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vt},maxWidth:{style:Qi},minWidth:{transform:Vt},height:{transform:Vt},maxHeight:{transform:Vt},minHeight:{transform:Vt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ef(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function kf(e,t){return typeof e=="function"?e(t):e}function Pf(){function e(n,r,a,i){const s={[n]:r,theme:a},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 y=la(a,u)||{};return f?f(s):oo(s,r,h=>{let p=Ur(y,d,h);return h===p&&typeof h=="string"&&(p=Ur(y,d,`${n}${h==="default"?"":V(h)}`,h)),c===!1?p:{[c]:p}})}function t(n){const{sx:r,theme:a={},nested:i}=n||{};if(!r)return null;const s=a.unstable_sxConfig??pr;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=Yc(a.breakpoints),f=Object.keys(d);let y=d;return Object.keys(u).forEach(x=>{const h=kf(u[x],a);if(h!=null)if(typeof h=="object")if(s[x])y=Yn(y,e(x,h,a,s));else{const p=oo({theme:a},h,b=>({[x]:b}));Ef(p,h)?y[x]=t({sx:h,theme:a,nested:!0}):y=Yn(y,p)}else y=Yn(y,e(x,h,a,s))}),!i&&a.modularCssLayers?{"@layer sx":hl(a,wi(f,y))}:hl(a,wi(f,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const Zo=Pf();Zo.filterProps=["sx"];const Rf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??pr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function es(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=Rf(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return co(l)?{...r,...l}:r}:i={...r,...t},{...a,sx:i}}function Hr(){return Hr=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},Hr.apply(null,arguments)}function $f(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 If(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 jf=(function(){function e(n){var r=this;this._insertTag=function(a){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(a,i),r.tags.push(a)},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(If(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=$f(a);try{i.insertRule(r,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Rt="-ms-",qr="-moz-",Ge="-webkit-",Jc="comm",ts="rule",os="decl",Mf="@import",Zc="@keyframes",Nf="@layer",Af=Math.abs,ba=String.fromCharCode,Lf=Object.assign;function Df(e,t){return Et(e,0)^45?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function Qc(e){return e.trim()}function Bf(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,n){return e.replace(t,n)}function Ti(e,t){return e.indexOf(t)}function Et(e,t){return e.charCodeAt(t)|0}function or(e,t,n){return e.slice(t,n)}function so(e){return e.length}function ns(e){return e.length}function kr(e,t){return t.push(e),e}function Ff(e,t){return e.map(t).join("")}var ya=1,xn=1,eu=0,Dt=0,gt=0,kn="";function va(e,t,n,r,a,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:ya,column:xn,length:s,return:""}}function Nn(e,t){return Lf(va("",null,null,"",null,null,0),e,{length:-e.length},t)}function zf(){return gt}function Vf(){return gt=Dt>0?Et(kn,--Dt):0,xn--,gt===10&&(xn=1,ya--),gt}function _t(){return gt=Dt<eu?Et(kn,Dt++):0,xn++,gt===10&&(xn=1,ya++),gt}function uo(){return Et(kn,Dt)}function Fr(){return Dt}function fr(e,t){return or(kn,e,t)}function nr(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 tu(e){return ya=xn=1,eu=so(kn=e),Dt=0,[]}function ou(e){return kn="",e}function zr(e){return Qc(fr(Dt-1,Si(e===91?e+2:e===40?e+1:e)))}function _f(e){for(;(gt=uo())&><33;)_t();return nr(e)>2||nr(gt)>3?"":" "}function Wf(e,t){for(;--t&&_t()&&!(gt<48||gt>102||gt>57&><65||gt>70&><97););return fr(e,Fr()+(t<6&&uo()==32&&_t()==32))}function Si(e){for(;_t();)switch(gt){case e:return Dt;case 34:case 39:e!==34&&e!==39&&Si(gt);break;case 40:e===41&&Si(e);break;case 92:_t();break}return Dt}function Uf(e,t){for(;_t()&&e+gt!==57;)if(e+gt===84&&uo()===47)break;return"/*"+fr(t,Dt-1)+"*"+ba(e===47?e:_t())}function Hf(e){for(;!nr(uo());)_t();return fr(e,Dt)}function qf(e){return ou(Vr("",null,null,null,[""],e=tu(e),0,[0],e))}function Vr(e,t,n,r,a,i,s,l,c){for(var u=0,d=0,f=s,y=0,x=0,h=0,p=1,b=1,v=1,O=0,T="",C=a,S=i,E=r,P=T;b;)switch(h=O,O=_t()){case 40:if(h!=108&&Et(P,f-1)==58){Ti(P+=Ke(zr(O),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=zr(O);break;case 9:case 10:case 13:case 32:P+=_f(h);break;case 92:P+=Wf(Fr()-1,7);continue;case 47:switch(uo()){case 42:case 47:kr(Gf(Uf(_t(),Fr()),t,n),c);break;default:P+="/"}break;case 123*p:l[u++]=so(P)*v;case 125*p:case 59:case 0:switch(O){case 0:case 125:b=0;case 59+d:v==-1&&(P=Ke(P,/\f/g,"")),x>0&&so(P)-f&&kr(x>32?xl(P+";",r,n,f-1):xl(Ke(P," ","")+";",r,n,f-2),c);break;case 59:P+=";";default:if(kr(E=vl(P,t,n,u,d,a,l,T,C=[],S=[],f),i),O===123)if(d===0)Vr(P,t,E,E,C,i,f,l,S);else switch(y===99&&Et(P,3)===110?100:y){case 100:case 108:case 109:case 115:Vr(e,E,E,r&&kr(vl(e,E,E,0,0,a,l,T,a,C=[],f),S),a,S,f,l,r?C:S);break;default:Vr(P,E,E,E,[""],S,0,l,S)}}u=d=x=0,p=v=1,T=P="",f=s;break;case 58:f=1+so(P),x=h;default:if(p<1){if(O==123)--p;else if(O==125&&p++==0&&Vf()==125)continue}switch(P+=ba(O),O*p){case 38:v=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(so(P)-1)*v,v=1;break;case 64:uo()===45&&(P+=zr(_t())),y=uo(),d=f=so(T=P+=Hf(Fr())),O++;break;case 45:h===45&&so(P)==2&&(p=0)}}return i}function vl(e,t,n,r,a,i,s,l,c,u,d){for(var f=a-1,y=a===0?i:[""],x=ns(y),h=0,p=0,b=0;h<r;++h)for(var v=0,O=or(e,f+1,f=Af(p=s[h])),T=e;v<x;++v)(T=Qc(p>0?y[v]+" "+O:Ke(O,/&\f/g,y[v])))&&(c[b++]=T);return va(e,t,n,a===0?ts:l,c,u,d)}function Gf(e,t,n){return va(e,t,n,Jc,ba(zf()),or(e,2,-2),0)}function xl(e,t,n,r){return va(e,t,n,os,or(e,0,r),or(e,r+1,-1),r)}function yn(e,t){for(var n="",r=ns(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Kf(e,t,n,r){switch(e.type){case Nf:if(e.children.length)break;case Mf:case os:return e.return=e.return||e.value;case Jc:return"";case Zc:return e.return=e.value+"{"+yn(e.children,r)+"}";case ts:e.value=e.props.join(",")}return so(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yf(e){var t=ns(e);return function(n,r,a,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,a,i)||"";return s}}function Xf(e){return function(t){t.root||(t=t.return)&&e(t)}}function nu(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Jf=function(t,n,r){for(var a=0,i=0;a=i,i=uo(),a===38&&i===12&&(n[r]=1),!nr(i);)_t();return fr(t,Dt)},Zf=function(t,n){var r=-1,a=44;do switch(nr(a)){case 0:a===38&&uo()===12&&(n[r]=1),t[r]+=Jf(Dt-1,n,r);break;case 2:t[r]+=zr(a);break;case 4:if(a===44){t[++r]=uo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ba(a)}while(a=_t());return t},Qf=function(t,n){return ou(Zf(tu(t),n))},Cl=new WeakMap,em=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=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&&!Cl.get(r))&&!a){Cl.set(t,!0);for(var i=[],s=Qf(n,i),l=r.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},tm=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ru(e,t){switch(Df(e,t)){case 5103:return Ge+"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 Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+qr+e+Rt+e+e;case 6828:case 4268:return Ge+e+Rt+e+e;case 6165:return Ge+e+Rt+"flex-"+e+e;case 5187:return Ge+e+Ke(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return Ge+e+Rt+"flex-item-"+Ke(e,/flex-|-self/,"")+e;case 4675:return Ge+e+Rt+"flex-line-pack"+Ke(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+Rt+Ke(e,"shrink","negative")+e;case 5292:return Ge+e+Rt+Ke(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+Ke(e,"-grow","")+Ge+e+Rt+Ke(e,"grow","positive")+e;case 4554:return Ge+Ke(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Ge+"$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(so(e)-1-t>6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+qr+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ti(e,"stretch")?ru(Ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,so(e)-3-(~Ti(e,"!important")&&10))){case 107:return Ke(e,":",":"+Ge)+e;case 101:return Ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Et(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return Ge+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+Rt+e+e}return e}var om=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case os:t.return=ru(t.value,t.length);break;case Zc:return yn([Nn(t,{value:Ke(t.value,"@","@"+Ge)})],a);case ts:if(t.length)return Ff(t.props,function(i){switch(Bf(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([Nn(t,{props:[Ke(i,/:(read-\w+)/,":"+qr+"$1")]})],a);case"::placeholder":return yn([Nn(t,{props:[Ke(i,/:(plac\w+)/,":"+Ge+"input-$1")]}),Nn(t,{props:[Ke(i,/:(plac\w+)/,":"+qr+"$1")]}),Nn(t,{props:[Ke(i,/:(plac\w+)/,Rt+"input-$1")]})],a)}return""})}},nm=[om],rm=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 a=t.stylisPlugins||nm,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)i[b[v]]=!0;l.push(p)});var c,u=[em,tm];{var d,f=[Kf,Xf(function(p){d.insert(p)})],y=Yf(u.concat(a,f)),x=function(b){return yn(qf(b),y)};c=function(b,v,O,T){d=O,x(b?b+"{"+v.styles+"}":v.styles),T&&(h.inserted[v.name]=!0)}}var h={key:n,sheet:new jf({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return h.sheet.hydrate(l),h},ri,wl;function am(){if(wl)return ri;wl=1;var e=Ji(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(h){return e.isMemo(h)?a:i[h.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,y=Object.prototype;function x(h,p,b){if(typeof p!="string"){if(y){var v=f(p);v&&v!==y&&x(h,v,b)}var O=c(p);u&&(O=O.concat(u(p)));for(var T=s(h),C=s(p),S=0;S<O.length;++S){var E=O[S];if(!n[E]&&!(b&&b[E])&&!(C&&C[E])&&!(T&&T[E])){var P=d(p,E);try{l(h,E,P)}catch{}}}}return h}return ri=x,ri}am();var im=!0;function au(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var rs=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||im===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},as=function(t,n,r){rs(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function sm(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 lm={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},cm=/[A-Z]|^ms/g,um=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iu=function(t){return t.charCodeAt(1)===45},Tl=function(t){return t!=null&&typeof t!="boolean"},ai=nu(function(e){return iu(e)?e:e.replace(cm,"-$&").toLowerCase()}),Sl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(um,function(r,a,i){return lo={name:a,styles:i,next:lo},a})}return lm[t]!==1&&!iu(t)&&typeof n=="number"&&n!==0?n+"px":n};function rr(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 a=n;if(a.anim===1)return lo={name:a.name,styles:a.styles,next:lo},a.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)lo={name:s.name,styles:s.styles,next:lo},s=s.next;var l=i.styles+";";return l}return dm(e,t,n)}case"function":{if(e!==void 0){var c=lo,u=n(e);return lo=c,rr(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function dm(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=rr(e,t,n[a])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":Tl(l)&&(r+=ai(i)+":"+Sl(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)Tl(s[c])&&(r+=ai(i)+":"+Sl(i,s[c])+";");else{var u=rr(e,t,s);switch(i){case"animation":case"animationName":{r+=ai(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var Ol=/label:\s*([^\s;{]+)\s*(;|$)/g,lo;function mr(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,a="";lo=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,a+=rr(n,t,i);else{var s=i;a+=s[0]}for(var l=1;l<e.length;l++)if(a+=rr(n,t,e[l]),r){var c=i;a+=c[l]}Ol.lastIndex=0;for(var u="",d;(d=Ol.exec(a))!==null;)u+="-"+d[1];var f=sm(a)+u;return{name:f,styles:a,next:lo}}var pm=function(t){return t()},su=w.useInsertionEffect?w.useInsertionEffect:!1,lu=su||pm,El=su||w.useLayoutEffect,cu=w.createContext(typeof HTMLElement<"u"?rm({key:"css"}):null);cu.Provider;var is=function(t){return Re.forwardRef(function(n,r){var a=Re.useContext(cu);return t(n,a,r)})},xa=w.createContext({}),ss={}.hasOwnProperty,Oi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fm=function(t,n){var r={};for(var a in n)ss.call(n,a)&&(r[a]=n[a]);return r[Oi]=t,r},mm=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return rs(n,r,a),lu(function(){return as(n,r,a)}),null},gm=is(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[Oi],i=[r],s="";typeof e.className=="string"?s=au(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=mr(i,void 0,w.useContext(xa));s+=t.key+"-"+l.name;var c={};for(var u in e)ss.call(e,u)&&u!=="css"&&u!==Oi&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),w.createElement(w.Fragment,null,w.createElement(mm,{cache:t,serialized:l,isStringTag:typeof a=="string"}),w.createElement(a,c))}),hm=gm,kl=function(t,n){var r=arguments;if(n==null||!ss.call(n,"css"))return w.createElement.apply(void 0,r);var a=r.length,i=new Array(a);i[0]=hm,i[1]=fm(t,n);for(var s=2;s<a;s++)i[s]=r[s];return w.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(kl||(kl={}));var bm=is(function(e,t){var n=e.styles,r=mr([n],void 0,w.useContext(xa)),a=w.useRef();return El(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),a.current=[s,l],function(){s.flush()}},[t]),El(function(){var i=a.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&as(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr(t)}function Bt(){var e=Fo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ym=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,vm=nu(function(e){return ym.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xm=vm,Cm=function(t){return t!=="theme"},Pl=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xm:Cm},Rl=function(t,n,r){var a;if(n){var i=n.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},wm=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return rs(n,r,a),lu(function(){return as(n,r,a)}),null},Tm=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var l=Rl(t,n,r),c=l||Pl(a),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var y=d[0];f.push(y[0]);for(var x=d.length,h=1;h<x;h++)f.push(d[h],y[h])}var p=is(function(b,v,O){var T=u&&b.as||a,C="",S=[],E=b;if(b.theme==null){E={};for(var P in b)E[P]=b[P];E.theme=w.useContext(xa)}typeof b.className=="string"?C=au(v.registered,S,b.className):b.className!=null&&(C=b.className+" ");var $=mr(f.concat(S),v.registered,E);C+=v.key+"-"+$.name,s!==void 0&&(C+=" "+s);var I=u&&l===void 0?Pl(T):c,N={};for(var A in b)u&&A==="as"||I(A)&&(N[A]=b[A]);return N.className=C,O&&(N.ref=O),w.createElement(w.Fragment,null,w.createElement(wm,{cache:v,serialized:$,isStringTag:typeof T=="string"}),w.createElement(T,N))});return p.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=f,p.__emotion_forwardProp=l,Object.defineProperty(p,"toString",{value:function(){return"."+s}}),p.withComponent=function(b,v){var O=e(b,Hr({},n,v,{shouldForwardProp:Rl(p,v,!0)}));return O.apply(void 0,f)},p}},Sm=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ei=Tm.bind(null);Sm.forEach(function(e){Ei[e]=Ei(e)});function Om(e){return e==null||Object.keys(e).length===0}function uu(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(Om(a)?n:a):t;return m.jsx(bm,{styles:r})}process.env.NODE_ENV!=="production"&&(uu.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function du(e,t){const n=Ei(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const a=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
7
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),n(...r)}:n}function Em(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const $l=[];function Mo(e){return $l[0]=e,mr($l)}const km=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)=>({...n,[r.key]:r.val}),{})};function Pm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,i=km(t),s=Object.keys(i);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function u(y,x){const h=s.indexOf(x);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:x)-r/100}${n})`}function d(y){return s.indexOf(y)+1<s.length?u(y,s[s.indexOf(y)+1]):l(y)}function f(y){const x=s.indexOf(y);return x===0?l(s[1]):x===s.length-1?c(s[x]):u(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:c,between:u,only:d,not:f,unit:n,...a}}const Rm={borderRadius:4};function pu(e=8,t=da({spacing:e})){if(e.mui)return e;const 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 s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function $m(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ca(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:i={},...s}=e,l=Pm(n),c=pu(a);let u=wt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Rm,...i}},s);return u=Bp(u),u.applyStyles=$m,u=t.reduce((d,f)=>wt(d,f),u),u.unstable_sxConfig={...pr,...s?.unstable_sxConfig},u.unstable_sx=function(f){return Zo({sx:f,theme:this})},u}function Im(e){return Object.keys(e).length===0}function jm(e=null){const t=w.useContext(xa);return!t||Im(t)?e:t}const Mm=Ca();function wa(e=Mm){return jm(e)}function ii(e){const t=Mo(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function fu({styles:e,themeId:t,defaultTheme:n={}}){const r=wa(n),a=t&&r[t]||r;let i=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(i)?i=i.map(s=>ii(typeof s=="function"?s(a):s)):i=ii(i)),m.jsx(uu,{styles:i})}process.env.NODE_ENV!=="production"&&(fu.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});function Nm(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,i=du("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Zo);return w.forwardRef(function(c,u){const d=wa(n),{className:f,component:y="div",...x}=es(c);return m.jsx(i,{as:y,ref:u,className:Q(f,a?a(r):r),theme:t&&d[t]||d,...x})})}const Am={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 ge(e,t,n="Mui"){const r=Am[t];return r?`${n}-${r}`:`${Gc.generate(e)}-${t}`}function be(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=ge(e,a,n)}),r}function mu(e,t=""){return e.displayName||e.name||t}function Il(e,t,n){const r=mu(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Lm(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return mu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ao.ForwardRef:return Il(e,e.render,"ForwardRef");case Ao.Memo:return Il(e,e.type,"memo");default:return}}}function gu(e){const{variants:t,...n}=e,r={variants:t,style:Mo(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Mo(a.style))}),r}const Dm=Ca();function si(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Go(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Bm(e){return e?(t,n)=>n[e]:null}function Fm(e,t,n){e.theme=_m(e.theme)?n:e.theme[t]||e.theme}function _r(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>_r(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?Go(r.style,n):r.style;else{const{variants:i,...s}=r;a=n?Go(Mo(s),n):s}return hu(e,r.variants,[a],n)}return r?.isProcessed?n?Go(Mo(r.style),n):r.style:n?Go(Mo(r),n):r}function hu(e,t,n=[],r=void 0){let a;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Go(Mo(s.style(a)),r):s.style(a))):n.push(r?Go(Mo(s.style),r):s.style)}return n}function bu(e={}){const{themeId:t,defaultTheme:n=Dm,rootShouldForwardProp:r=si,slotShouldForwardProp:a=si}=e;function i(l){Fm(l,t,n)}return(l,c={})=>{Em(l,E=>E.filter(P=>P!==Zo));const{name:u,slot:d,skipVariantsResolver:f,skipSx:y,overridesResolver:x=Bm(yu(d)),...h}=c,p=u&&u.startsWith("Mui")||d?"components":"custom",b=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,v=y||!1;let O=si;d==="Root"||d==="root"?O=r:d?O=a:Wm(l)&&(O=void 0);const T=du(l,{shouldForwardProp:O,label:Vm(u,d),...h}),C=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function($){return _r($,E,$.theme.modularCssLayers?p:void 0)};if(co(E)){const P=gu(E);return function(I){return P.variants?_r(I,P,I.theme.modularCssLayers?p:void 0):I.theme.modularCssLayers?Go(P.style,p):P.style}}return E},S=(...E)=>{const P=[],$=E.map(C),I=[];if(P.push(i),u&&x&&I.push(function(j){const M=j.theme.components?.[u]?.styleOverrides;if(!M)return null;const k={};for(const z in M)k[z]=_r(j,M[z],j.theme.modularCssLayers?"theme":void 0);return x(j,k)}),u&&!b&&I.push(function(j){const M=j.theme?.components?.[u]?.variants;return M?hu(j,M,[],j.theme.modularCssLayers?"theme":void 0):null}),v||I.push(Zo),Array.isArray($[0])){const g=$.shift(),j=new Array(P.length).fill(""),R=new Array(I.length).fill("");let M;M=[...j,...g,...R],M.raw=[...j,...g.raw,...R],P.unshift(M)}const N=[...P,...$,...I],A=T(...N);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=zm(u,d,l)),A};return T.withConfig&&(S.withConfig=T.withConfig),S}}function zm(e,t,n){return e?`${e}${V(t||"")}`:`Styled(${Lm(n)})`}function Vm(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${yu(t||"Root")}`),n}function _m(e){for(const t in e)return!1;return!0}function Wm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Um=bu();function Hm(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:tr(t.components[n].defaultProps,r)}function qm({props:e,name:t,defaultTheme:n,themeId:r}){let a=wa(n);return r&&(a=a[r]||a),Hm({theme:a,name:t,props:e})}const Jt=typeof window<"u"?w.useLayoutEffect:w.useEffect;function qo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ls(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}].`),qo(e,t,n)}function Gm(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Lo(e){if(e.type)return e;if(e.charAt(0)==="#")return Lo(Gm(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
8
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:go(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
|
|
9
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:go(10,a))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:a}}const Km=e=>{const t=Lo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Wn=(e,t)=>{try{return Km(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,i)=>i<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vu(e){e=Lo(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),s=(u,d=(u+n/30)%12)=>a-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ta({type:l,values:c})}function ki(e){e=Lo(e);let t=e.type==="hsl"||e.type==="hsla"?Lo(vu(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jl(e,t){const n=ki(e),r=ki(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ve(e,t){return e=Lo(e),t=ls(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ta(e)}function _o(e,t,n){try{return ve(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Sa(e,t){if(e=Lo(e),t=ls(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ta(e)}function Qe(e,t,n){try{return Sa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oa(e,t){if(e=Lo(e),t=ls(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ta(e)}function et(e,t,n){try{return Oa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Pi(e,t=.15){return ki(e)>.5?Sa(e,t):Oa(e,t)}function Pr(e,t,n){try{return Pi(e,t)}catch{return e}}const Ym="exact-prop: ";function cs(e){return process.env.NODE_ENV==="production"?e:{...e,[Ym]: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}}}const Xm=w.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Pn=()=>w.useContext(Xm)??!1,Jm=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Zm(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?tr(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?tr(a,r,t.components.mergeClassNameAndStyle):r}function Qm({props:e,name:t}){const n=w.useContext(Jm);return Zm({props:e,name:t,theme:{components:n}})}let Ml=0;function eg(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t==null&&(Ml+=1,n(`mui-${Ml}`))},[t]),r}const tg={...w},Nl=tg.useId;function vo(e){if(Nl!==void 0){const t=Nl();return e??t}return eg(e)}const Al={theme:void 0};function og(e){let t,n;return function(a){let i=t;return(i===void 0||a.theme!==n)&&(Al.theme=a.theme,i=gu(e(Al)),t=i,n=a.theme),i}}function ng(e=""){function t(...r){if(!r.length)return"";const a=r[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...r.slice(1))})`:`, ${a}`}return(r,...a)=>`var(--${e?`${e}-`:""}${r}${t(...a)})`}const Ll=(e,t,n,r=[])=>{let a=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(a)?a[Number(i)]=n:a&&typeof a=="object"&&(a[i]=n):a&&typeof a=="object"&&(a[i]||(a[i]=r.includes(i)?[]:{}),a=a[i])})},rg=(e,t,n)=>{function r(a,i=[],s=[]){Object.entries(a).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,l],Array.isArray(c)?[...s,l]:s):t([...i,l],c,s))})}r(e)},ag=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function li(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},i={},s={};return rg(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=ag(l,c);Object.assign(a,{[d]:f}),Ll(i,l,`var(${d})`,u),Ll(s,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:a,vars:i,varsWithDefaults:s}}function ig(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:y}=li(u,t);let x=y;const h={},{[c]:p,...b}=s;if(Object.entries(b||{}).forEach(([C,S])=>{const{vars:E,css:P,varsWithDefaults:$}=li(S,t);x=wt(x,$),h[C]={css:P,vars:E}}),p){const{css:C,vars:S,varsWithDefaults:E}=li(p,t);x=wt(x,E),h[c]={css:C,vars:S}}function v(C,S){let E=a;if(a==="class"&&(E=".%s"),a==="data"&&(E="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(E=`[${a}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${s[C]?.palette?.mode||C})`]:{":root":S}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:x,generateThemeVars:()=>{let C={...d};return Object.entries(h).forEach(([,{vars:S}])=>{C=wt(C,S)}),C},generateStyleSheets:()=>{const C=[],S=e.defaultColorScheme||"light";function E(I,N){Object.keys(N).length&&C.push(typeof I=="string"?{[I]:{...N}}:I)}E(n(void 0,{...f}),f);const{[S]:P,...$}=h;if(P){const{css:I}=P,N=s[S]?.palette?.mode,A=!r&&N?{colorScheme:N,...I}:{...I};E(n(S,{...A}),A)}return Object.entries($).forEach(([I,{css:N}])=>{const A=s[I]?.palette?.mode,g=!r&&A?{colorScheme:A,...N}:{...N};E(n(I,{...g}),g)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function sg(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Xn(e,t){return w.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const lg=Ca(),cg=Um("div",{name:"MuiStack",slot:"Root"});function ug(e){return qm({props:e,name:"MuiStack",defaultTheme:lg})}function dg(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce((r,a,i)=>(r.push(a),i<n.length-1&&r.push(w.cloneElement(t,{key:`separator-${i}`})),r),[])}const pg=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],fg=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...oo({theme:t},ni({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=da(t),a=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),i=ni({values:e.direction,base:a}),s=ni({values:e.spacing,base:a});typeof i=="object"&&Object.keys(i).forEach((c,u,d)=>{if(!i[c]){const y=u>0?i[d[u-1]]:"column";i[c]=y}}),n=wt(n,oo({theme:t},s,(c,u)=>e.useFlexGap?{gap:Jo(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${pg(u?i[u]:e.direction)}`]:Jo(r,c)}}))}return n=zp(t.breakpoints,n),n};function mg(e={}){const{createStyledComponent:t=cg,useThemeProps:n=ug,componentName:r="MuiStack"}=e,a=()=>he({root:["root"]},c=>ge(r,c),{}),i=t(fg),s=w.forwardRef(function(c,u){const d=n(c),f=es(d),{component:y="div",direction:x="column",spacing:h=0,divider:p,children:b,className:v,useFlexGap:O=!1,...T}=f,C={direction:x,spacing:h,useFlexGap:O},S=a();return m.jsx(i,{as:y,ownerState:C,ref:u,className:Q(S.root,v),...T,children:p?dg(b,p):b})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}const ar={black:"#000",white:"#fff"},gg={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"},an={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},sn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},An={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ln={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},cn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},un={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function xu(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ar.white,default:ar.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Cu=xu();function wu(){return{text:{primary:ar.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:ar.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ri=wu();function Dl(e,t,n,r){const a=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Oa(e.main,a):t==="dark"&&(e.dark=Sa(e.main,i)))}function Bl(e,t,n,r,a){const i=a.light||a,s=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function hg(e="light"){return e==="dark"?{main:ln[200],light:ln[50],dark:ln[400]}:{main:ln[700],light:ln[400],dark:ln[800]}}function bg(e="light"){return e==="dark"?{main:an[200],light:an[50],dark:an[400]}:{main:an[500],light:an[300],dark:an[700]}}function yg(e="light"){return e==="dark"?{main:sn[500],light:sn[300],dark:sn[700]}:{main:sn[700],light:sn[400],dark:sn[800]}}function vg(e="light"){return e==="dark"?{main:cn[400],light:cn[300],dark:cn[700]}:{main:cn[700],light:cn[500],dark:cn[900]}}function xg(e="light"){return e==="dark"?{main:un[400],light:un[300],dark:un[700]}:{main:un[800],light:un[500],dark:un[900]}}function Cg(e="light"){return e==="dark"?{main:An[400],light:An[300],dark:An[700]}:{main:"#ed6c02",light:An[500],dark:An[900]}}function wg(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function us(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...i}=e,s=e.primary||hg(t),l=e.secondary||bg(t),c=e.error||yg(t),u=e.info||vg(t),d=e.success||xg(t),f=e.warning||Cg(t);function y(b){if(a)return wg(b);const v=jl(b,Ri.text.primary)>=n?Ri.text.primary:Cu.text.primary;if(process.env.NODE_ENV!=="production"){const O=jl(b,v);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
10
|
+
`))}return v}const x=({color:b,name:v,mainShade:O=500,lightShade:T=300,darkShade:C=700})=>{if(b={...b},!b.main&&b[O]&&(b.main=b[O]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
11
|
+
The color object needs to have a \`main\` property or a \`${O}\` property.`:go(11,v?` (${v})`:"",O));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
12
|
+
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
13
|
+
|
|
14
|
+
Did you intend to use one of the following approaches?
|
|
15
|
+
|
|
16
|
+
import { green } from "@mui/material/colors";
|
|
17
|
+
|
|
18
|
+
const theme1 = createTheme({ palette: {
|
|
19
|
+
primary: green,
|
|
20
|
+
} });
|
|
21
|
+
|
|
22
|
+
const theme2 = createTheme({ palette: {
|
|
23
|
+
primary: { main: green[500] },
|
|
24
|
+
} });`:go(12,v?` (${v})`:"",JSON.stringify(b.main)));return a?(Bl(a,b,"light",T,r),Bl(a,b,"dark",C,r)):(Dl(b,"light",T,r),Dl(b,"dark",C,r)),b.contrastText||(b.contrastText=y(b.main)),b};let h;return t==="light"?h=xu():t==="dark"&&(h=wu()),process.env.NODE_ENV!=="production"&&(h||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),wt({common:{...ar},mode:t,primary:x({color:s,name:"primary"}),secondary:x({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:c,name:"error"}),warning:x({color:f,name:"warning"}),info:x({color:u,name:"info"}),success:x({color:d,name:"success"}),grey:gg,contrastThreshold:n,getContrastText:y,augmentColor:x,tonalOffset:r,...h},i)}function Tg(e){const t={};return Object.entries(e).forEach(r=>{const[a,i]=r;typeof i=="object"&&(t[a]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Sg(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Og(e){return Math.round(e*1e5)/1e5}const Fl={textTransform:"uppercase"},zl='"Roboto", "Helvetica", "Arial", sans-serif';function Eg(e,t){const{fontFamily:n=zl,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,x=d||(b=>`${b/c*y}rem`),h=(b,v,O,T,C)=>({fontFamily:n,fontWeight:b,fontSize:x(v),lineHeight:O,...n===zl?{letterSpacing:`${Og(T/v)}em`}:{},...C,...u}),p={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,Fl),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Fl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wt({htmlFontSize:c,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...p},f,{clone:!1})}const kg=.2,Pg=.14,Rg=.12;function st(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kg})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Pg})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Rg})`].join(",")}const $g=["none",st(0,2,1,-1,0,1,1,0,0,1,3,0),st(0,3,1,-2,0,2,2,0,0,1,5,0),st(0,3,3,-2,0,3,4,0,0,1,8,0),st(0,2,4,-1,0,4,5,0,0,1,10,0),st(0,3,5,-1,0,5,8,0,0,1,14,0),st(0,3,5,-1,0,6,10,0,0,1,18,0),st(0,4,5,-2,0,7,10,1,0,2,16,1),st(0,5,5,-3,0,8,10,1,0,3,14,2),st(0,5,6,-3,0,9,12,1,0,3,16,2),st(0,6,6,-3,0,10,14,1,0,4,18,3),st(0,6,7,-4,0,11,15,1,0,4,20,3),st(0,7,8,-4,0,12,17,2,0,5,22,4),st(0,7,8,-4,0,13,19,2,0,5,24,4),st(0,7,9,-4,0,14,21,2,0,5,26,4),st(0,8,9,-5,0,15,22,2,0,6,28,5),st(0,8,10,-5,0,16,24,2,0,6,30,5),st(0,8,11,-5,0,17,26,2,0,6,32,5),st(0,9,11,-5,0,18,28,2,0,7,34,6),st(0,9,12,-6,0,19,29,2,0,7,36,6),st(0,10,13,-6,0,20,31,3,0,8,38,7),st(0,10,13,-6,0,21,33,3,0,8,40,7),st(0,10,14,-6,0,22,35,3,0,8,42,7),st(0,11,14,-7,0,23,36,3,0,9,44,8),st(0,11,15,-7,0,24,38,3,0,9,46,8)],Ig={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)"},Tu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vl(e){return`${Math.round(e)}ms`}function jg(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Mg(e){const t={...Ig,...e.easing},n={...Tu,...e.duration};return{getAutoHeightDuration:jg,create:(a=["all"],i={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=y=>typeof y=="string",f=y=>!Number.isNaN(parseFloat(y));!d(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),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(`
|
|
25
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(d=>`${d} ${typeof s=="string"?s:Vl(s)} ${l} ${typeof c=="string"?c:Vl(c)}`).join(",")},...e,easing:t,duration:n}}const Ng={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ag(e){return co(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Su(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let i=0;i<a.length;i++){const[s,l]=a[i];!Ag(l)||s.startsWith("unstable_")?delete r[s]:co(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
26
|
+
|
|
27
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
28
|
+
|
|
29
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
30
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
31
|
+
|
|
32
|
+
export default theme;`}function _l(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Lg=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Dg(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:ve(t,Lg(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${_l(n)})`:Oa(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${_l(n)})`:Sa(t,n)}})}function $i(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:i={},transitions:s={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":go(20));const f=us({...i,colorSpace:u}),y=Ca(e);let x=wt(y,{mixins:Sg(y.breakpoints,r),palette:f,shadows:$g.slice(),typography:Eg(f,l),transitions:Mg(s),zIndex:{...Ng}});if(x=wt(x,d),x=t.reduce((h,p)=>wt(h,p),x),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(b,v)=>{let O;for(O in b){const T=b[O];if(h.includes(O)&&Object.keys(T).length>0){if(process.env.NODE_ENV!=="production"){const C=ge("",O);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${O}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:T}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
33
|
+
`))}b[O]={}}}};Object.keys(x.components).forEach(b=>{const v=x.components[b].styleOverrides;v&&b.startsWith("Mui")&&p(v,b)})}return x.unstable_sxConfig={...pr,...d?.unstable_sxConfig},x.unstable_sx=function(p){return Zo({sx:p,theme:this})},x.toRuntimeSource=Su,Dg(x),x}function Ii(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Bg=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ii(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ou(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Eu(e){return e==="dark"?Bg:[]}function Fg(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:a,...i}=e,s=us({...t,colorSpace:a});return{palette:s,opacity:{...Ou(s.mode),...n},overlays:r||Eu(s.mode),...i}}function zg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Vg=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_g=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let i=a;if(a==="class"&&(i=".%s"),a==="data"&&(i="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(i=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Vg(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Wg(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function q(e,t,n){!e[t]&&n&&(e[t]=n)}function Un(e){return typeof e!="string"||!e.startsWith("hsl")?e:vu(e)}function Co(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wn(Un(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
34
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Ug(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ao=e=>{try{return e()}catch{}},Hg=(e="mui")=>ng(e);function ci(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const i=a==="dark"?"dark":"light";if(!r){t[a]=Fg({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:s,...l}=$i({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[a]={...n,palette:s,opacity:{...Ou(i),...n?.opacity},overlays:n?.overlays||Eu(i)},l}function qg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=zg,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],y=r||(n.light&&f!=="light"?"light":f),x=Hg(i),{[y]:h,light:p,dark:b,...v}=n,O={...v};let T=h;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:go(21,y));let C;s&&(C="oklch");const S=ci(C,O,T,d,y);p&&!O.light&&ci(C,O,p,void 0,"light"),b&&!O.dark&&ci(C,O,b,void 0,"dark");let E={defaultColorScheme:y,...S,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:x,colorSchemes:O,font:{...Tg(S.typography),...S.font},spacing:Ug(d.spacing)};Object.keys(E.colorSchemes).forEach(A=>{const g=E.colorSchemes[A].palette,j=M=>{const k=M.split("-"),z=k[1],F=k[2];return x(M,g[z][F])};g.mode==="light"&&(q(g.common,"background","#fff"),q(g.common,"onBackground","#000")),g.mode==="dark"&&(q(g.common,"background","#000"),q(g.common,"onBackground","#fff"));function R(M,k,z){if(C){let F;return M===_o&&(F=`transparent ${((1-z)*100).toFixed(0)}%`),M===Qe&&(F=`#000 ${(z*100).toFixed(0)}%`),M===et&&(F=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${C}, ${k}, ${F})`}return M(k,z)}if(Wg(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){q(g.Alert,"errorColor",R(Qe,g.error.light,.6)),q(g.Alert,"infoColor",R(Qe,g.info.light,.6)),q(g.Alert,"successColor",R(Qe,g.success.light,.6)),q(g.Alert,"warningColor",R(Qe,g.warning.light,.6)),q(g.Alert,"errorFilledBg",j("palette-error-main")),q(g.Alert,"infoFilledBg",j("palette-info-main")),q(g.Alert,"successFilledBg",j("palette-success-main")),q(g.Alert,"warningFilledBg",j("palette-warning-main")),q(g.Alert,"errorFilledColor",ao(()=>g.getContrastText(g.error.main))),q(g.Alert,"infoFilledColor",ao(()=>g.getContrastText(g.info.main))),q(g.Alert,"successFilledColor",ao(()=>g.getContrastText(g.success.main))),q(g.Alert,"warningFilledColor",ao(()=>g.getContrastText(g.warning.main))),q(g.Alert,"errorStandardBg",R(et,g.error.light,.9)),q(g.Alert,"infoStandardBg",R(et,g.info.light,.9)),q(g.Alert,"successStandardBg",R(et,g.success.light,.9)),q(g.Alert,"warningStandardBg",R(et,g.warning.light,.9)),q(g.Alert,"errorIconColor",j("palette-error-main")),q(g.Alert,"infoIconColor",j("palette-info-main")),q(g.Alert,"successIconColor",j("palette-success-main")),q(g.Alert,"warningIconColor",j("palette-warning-main")),q(g.AppBar,"defaultBg",j("palette-grey-100")),q(g.Avatar,"defaultBg",j("palette-grey-400")),q(g.Button,"inheritContainedBg",j("palette-grey-300")),q(g.Button,"inheritContainedHoverBg",j("palette-grey-A100")),q(g.Chip,"defaultBorder",j("palette-grey-400")),q(g.Chip,"defaultAvatarColor",j("palette-grey-700")),q(g.Chip,"defaultIconColor",j("palette-grey-700")),q(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(g.LinearProgress,"primaryBg",R(et,g.primary.main,.62)),q(g.LinearProgress,"secondaryBg",R(et,g.secondary.main,.62)),q(g.LinearProgress,"errorBg",R(et,g.error.main,.62)),q(g.LinearProgress,"infoBg",R(et,g.info.main,.62)),q(g.LinearProgress,"successBg",R(et,g.success.main,.62)),q(g.LinearProgress,"warningBg",R(et,g.warning.main,.62)),q(g.Skeleton,"bg",C?R(_o,g.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),q(g.Slider,"primaryTrack",R(et,g.primary.main,.62)),q(g.Slider,"secondaryTrack",R(et,g.secondary.main,.62)),q(g.Slider,"errorTrack",R(et,g.error.main,.62)),q(g.Slider,"infoTrack",R(et,g.info.main,.62)),q(g.Slider,"successTrack",R(et,g.success.main,.62)),q(g.Slider,"warningTrack",R(et,g.warning.main,.62));const M=C?R(Qe,g.background.default,.6825):Pr(g.background.default,.8);q(g.SnackbarContent,"bg",M),q(g.SnackbarContent,"color",ao(()=>C?Ri.text.primary:g.getContrastText(M))),q(g.SpeedDialAction,"fabHoverBg",Pr(g.background.paper,.15)),q(g.StepConnector,"border",j("palette-grey-400")),q(g.StepContent,"border",j("palette-grey-400")),q(g.Switch,"defaultColor",j("palette-common-white")),q(g.Switch,"defaultDisabledColor",j("palette-grey-100")),q(g.Switch,"primaryDisabledColor",R(et,g.primary.main,.62)),q(g.Switch,"secondaryDisabledColor",R(et,g.secondary.main,.62)),q(g.Switch,"errorDisabledColor",R(et,g.error.main,.62)),q(g.Switch,"infoDisabledColor",R(et,g.info.main,.62)),q(g.Switch,"successDisabledColor",R(et,g.success.main,.62)),q(g.Switch,"warningDisabledColor",R(et,g.warning.main,.62)),q(g.TableCell,"border",R(et,R(_o,g.divider,1),.88)),q(g.Tooltip,"bg",R(_o,g.grey[700],.92))}if(g.mode==="dark"){q(g.Alert,"errorColor",R(et,g.error.light,.6)),q(g.Alert,"infoColor",R(et,g.info.light,.6)),q(g.Alert,"successColor",R(et,g.success.light,.6)),q(g.Alert,"warningColor",R(et,g.warning.light,.6)),q(g.Alert,"errorFilledBg",j("palette-error-dark")),q(g.Alert,"infoFilledBg",j("palette-info-dark")),q(g.Alert,"successFilledBg",j("palette-success-dark")),q(g.Alert,"warningFilledBg",j("palette-warning-dark")),q(g.Alert,"errorFilledColor",ao(()=>g.getContrastText(g.error.dark))),q(g.Alert,"infoFilledColor",ao(()=>g.getContrastText(g.info.dark))),q(g.Alert,"successFilledColor",ao(()=>g.getContrastText(g.success.dark))),q(g.Alert,"warningFilledColor",ao(()=>g.getContrastText(g.warning.dark))),q(g.Alert,"errorStandardBg",R(Qe,g.error.light,.9)),q(g.Alert,"infoStandardBg",R(Qe,g.info.light,.9)),q(g.Alert,"successStandardBg",R(Qe,g.success.light,.9)),q(g.Alert,"warningStandardBg",R(Qe,g.warning.light,.9)),q(g.Alert,"errorIconColor",j("palette-error-main")),q(g.Alert,"infoIconColor",j("palette-info-main")),q(g.Alert,"successIconColor",j("palette-success-main")),q(g.Alert,"warningIconColor",j("palette-warning-main")),q(g.AppBar,"defaultBg",j("palette-grey-900")),q(g.AppBar,"darkBg",j("palette-background-paper")),q(g.AppBar,"darkColor",j("palette-text-primary")),q(g.Avatar,"defaultBg",j("palette-grey-600")),q(g.Button,"inheritContainedBg",j("palette-grey-800")),q(g.Button,"inheritContainedHoverBg",j("palette-grey-700")),q(g.Chip,"defaultBorder",j("palette-grey-700")),q(g.Chip,"defaultAvatarColor",j("palette-grey-300")),q(g.Chip,"defaultIconColor",j("palette-grey-300")),q(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(g.LinearProgress,"primaryBg",R(Qe,g.primary.main,.5)),q(g.LinearProgress,"secondaryBg",R(Qe,g.secondary.main,.5)),q(g.LinearProgress,"errorBg",R(Qe,g.error.main,.5)),q(g.LinearProgress,"infoBg",R(Qe,g.info.main,.5)),q(g.LinearProgress,"successBg",R(Qe,g.success.main,.5)),q(g.LinearProgress,"warningBg",R(Qe,g.warning.main,.5)),q(g.Skeleton,"bg",C?R(_o,g.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),q(g.Slider,"primaryTrack",R(Qe,g.primary.main,.5)),q(g.Slider,"secondaryTrack",R(Qe,g.secondary.main,.5)),q(g.Slider,"errorTrack",R(Qe,g.error.main,.5)),q(g.Slider,"infoTrack",R(Qe,g.info.main,.5)),q(g.Slider,"successTrack",R(Qe,g.success.main,.5)),q(g.Slider,"warningTrack",R(Qe,g.warning.main,.5));const M=C?R(et,g.background.default,.985):Pr(g.background.default,.98);q(g.SnackbarContent,"bg",M),q(g.SnackbarContent,"color",ao(()=>C?Cu.text.primary:g.getContrastText(M))),q(g.SpeedDialAction,"fabHoverBg",Pr(g.background.paper,.15)),q(g.StepConnector,"border",j("palette-grey-600")),q(g.StepContent,"border",j("palette-grey-600")),q(g.Switch,"defaultColor",j("palette-grey-300")),q(g.Switch,"defaultDisabledColor",j("palette-grey-600")),q(g.Switch,"primaryDisabledColor",R(Qe,g.primary.main,.55)),q(g.Switch,"secondaryDisabledColor",R(Qe,g.secondary.main,.55)),q(g.Switch,"errorDisabledColor",R(Qe,g.error.main,.55)),q(g.Switch,"infoDisabledColor",R(Qe,g.info.main,.55)),q(g.Switch,"successDisabledColor",R(Qe,g.success.main,.55)),q(g.Switch,"warningDisabledColor",R(Qe,g.warning.main,.55)),q(g.TableCell,"border",R(Qe,R(_o,g.divider,1),.68)),q(g.Tooltip,"bg",R(_o,g.grey[700],.92))}Co(g.background,"default"),Co(g.background,"paper"),Co(g.common,"background"),Co(g.common,"onBackground"),Co(g,"divider"),Object.keys(g).forEach(M=>{const k=g[M];M!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(g[M],"mainChannel",Wn(Un(k.main))),k.light&&q(g[M],"lightChannel",Wn(Un(k.light))),k.dark&&q(g[M],"darkChannel",Wn(Un(k.dark))),k.contrastText&&q(g[M],"contrastTextChannel",Wn(Un(k.contrastText))),M==="text"&&(Co(g[M],"primary"),Co(g[M],"secondary")),M==="action"&&(k.active&&Co(g[M],"active"),k.selected&&Co(g[M],"selected")))})}),E=t.reduce((A,g)=>wt(A,g),E);const P={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:_g(E),enableContrastVars:s},{vars:$,generateThemeVars:I,generateStyleSheets:N}=ig(E,P);return E.vars=$,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([A,g])=>{E[A]=g}),E.generateThemeVars=I,E.generateStyleSheets=N,E.generateSpacing=function(){return pu(d.spacing,da(this))},E.getColorSchemeSelector=sg(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...pr,...d?.unstable_sxConfig},E.unstable_sx=function(g){return Zo({sx:g,theme:this})},E.toRuntimeSource=Su,E}function Wl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:us({...n===!0?{}:n.palette,mode:t})})}function ku(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...s}=e,l=i||"light",c=a?.[l],u={...a,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return $i(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=$i({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Wl(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Wl(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),qg({...s,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const ds=ku(),Ea="$$material";function xt(){const e=wa(ds);return process.env.NODE_ENV!=="production"&&w.useDebugValue(e),e[Ea]||e}function Pu(e){return m.jsx(fu,{...e,defaultTheme:ds,themeId:Ea})}process.env.NODE_ENV!=="production"&&(Pu.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function gr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const St=e=>gr(e)&&e!=="classes",D=bu({themeId:Ea,defaultTheme:ds,rootShouldForwardProp:St});function Gg(e){return function(n){return m.jsx(Pu,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Kg(){return es}const pe=og;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function we(e){return Qm(e)}function Yg(e){return ge("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xg=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${V(t)}`,`fontSize${V(n)}`]};return he(a,Yg,r)},Jg=D("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${V(n.color)}`],t[`fontSize${V(n.fontSize)}`]]}})(pe(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Gr=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:a,className:i,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:y="0 0 24 24",...x}=r,h=w.isValidElement(a)&&a.type==="svg",p={...r,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:y,hasSvgAsChild:h},b={};d||(b.viewBox=y);const v=Xg(p);return m.jsxs(Jg,{as:l,className:Q(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...x,...h&&a.props,ownerState:p,children:[h?a.props.children:a,f?m.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string});Gr.muiName="SvgIcon";function lt(e,t){function n(r,a){return m.jsx(Gr,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:a,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Gr.muiName,w.memo(w.forwardRef(n))}function ps(e,t=166){let n;function r(...a){const i=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function ht(e){return e&&e.ownerDocument||document}function no(e){return ht(e).defaultView||window}function ji(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Zg(e,t,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=a||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function po(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:i}=w.useRef(t!==void 0),[s,l]=w.useState(n),c=i?t:s;if(process.env.NODE_ENV!=="production"){w.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${a} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
35
|
+
`))},[a,r,t]);const{current:d}=w.useRef(n);w.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
36
|
+
`))},[JSON.stringify(n)])}const u=w.useCallback(d=>{i||l(d)},[]);return[c,u]}function vt(e){const t=w.useRef(e);return Jt(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function nt(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const a=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{a.forEach(i=>i?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Qg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ru(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(u=>{Qg(u,l[u])&&typeof s[u]=="function"&&(c[u]=(...d)=>{s[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=Q(s?.className,l?.className,c?.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,a=n(e,r),i=Q(r?.className,e?.className);return{...t,...e,...a,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Mt=o.oneOfType([o.func,o.object]);function Tt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function eh(e){const{prototype:t={}}=e;return!!t.isReactComponent}function th(e,t,n,r,a){const i=e[t],s=a||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!eh(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 hr=Tt(o.elementType,th);function Do(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
37
|
+
`))}return!1}const Ul={};function $u(e,t){const n=w.useRef(Ul);return n.current===Ul&&(n.current=e(t)),n}class Kr{static create(){return new Kr}static use(){const t=$u(Kr.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nh(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function oh(){return Kr.use()}function nh(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function Iu(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 Mi(e,t){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mi(e,t)}function ju(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mi(e,t)}const Hl={disabled:!1};var rh=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Yr=Re.createContext(null);var ah=function(t){return t.scrollTop},Hn="unmounted",Uo="exited",Ho="entering",fn="entered",Ni="exiting",Ut=(function(e){ju(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=a,l=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=Uo,i.appearStatus=Ho):c=fn:r.unmountOnExit||r.mountOnEnter?c=Hn:c=Uo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===Hn?{status:Uo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Ho&&s!==fn&&(i=Ho):(s===Ho||s===fn)&&(i=Ni)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,l;return i=s=l=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,l=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Ho){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:_n.findDOMNode(this);s&&ah(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Uo&&this.setState({status:Hn})},n.performEnter=function(a){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[_n.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),y=l?f.appear:f.enter;if(!a&&!s||Hl.disabled){this.safeSetState({status:fn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Ho},function(){i.props.onEntering(u,d),i.onTransitionEnd(y,function(){i.safeSetState({status:fn},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:_n.findDOMNode(this);if(!i||Hl.disabled){this.safeSetState({status:Uo},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ni},function(){a.props.onExiting(l),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Uo},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,a(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:_n.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Hn)return null;var i=this.props,s=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=Iu(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Re.createElement(Yr.Provider,{value:null},typeof s=="function"?s(a,l):Re.cloneElement(Re.Children.only(s),l))},t})(Re.Component);Ut.contextType=Yr;Ut.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,a,i){var s=e[t];return o.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=rh;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function dn(){}Ut.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:dn,onEntering:dn,onEntered:dn,onExit:dn,onExiting:dn,onExited:dn};Ut.UNMOUNTED=Hn;Ut.EXITED=Uo;Ut.ENTERING=Ho;Ut.ENTERED=fn;Ut.EXITING=Ni;function ih(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e,t){var n=function(i){return t&&Re.isValidElement(i)?t(i):i},r=Object.create(null);return e&&Re.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function sh(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),a=[];for(var i in e)i in t?a.length&&(r[i]=a,a=[]):a.push(i);var s,l={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var u=r[c][s];l[r[c][s]]=n(u)}l[c]=n(c)}for(s=0;s<a.length;s++)l[a[s]]=n(a[s]);return l}function Ko(e,t,n){return n[t]!=null?n[t]:e.props[t]}function lh(e,t){return fs(e.children,function(n){return Re.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ko(n,"appear",e),enter:Ko(n,"enter",e),exit:Ko(n,"exit",e)})})}function ch(e,t,n){var r=fs(e.children),a=sh(t,r);return Object.keys(a).forEach(function(i){var s=a[i];if(Re.isValidElement(s)){var l=i in t,c=i in r,u=t[i],d=Re.isValidElement(u)&&!u.props.in;c&&(!l||d)?a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ko(s,"exit",e),enter:Ko(s,"enter",e)}):!c&&l&&!d?a[i]=Re.cloneElement(s,{in:!1}):c&&l&&Re.isValidElement(u)&&(a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Ko(s,"exit",e),enter:Ko(s,"enter",e)}))}}),a}var uh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},dh={component:"div",childFactory:function(t){return t}},ms=(function(e){ju(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=i.handleExited.bind(ih(i));return i.state={contextValue:{isMounting:!0},handleExited:s,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(a,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?lh(a,l):ch(a,s,l),firstRender:!1}},n.handleExited=function(a,i){var s=fs(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(l){var c=Hr({},l.children);return delete c[a.key],{children:c}}))},n.render=function(){var a=this.props,i=a.component,s=a.childFactory,l=Iu(a,["component","childFactory"]),c=this.state.contextValue,u=uh(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?Re.createElement(Yr.Provider,{value:c},u):Re.createElement(Yr.Provider,{value:c},Re.createElement(i,l,u))},t})(Re.Component);ms.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};ms.defaultProps=dh;const ph=[];function fh(e){w.useEffect(e,ph)}class ka{static create(){return new ka}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function jo(){const e=$u(ka.create).current;return fh(e.disposeEffect),e}function Mu(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=w.useState(!1),y=Q(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:s,height:s,top:-(s/2)+i,left:-(s/2)+a},h=Q(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&f(!0),w.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,u);return()=>{clearTimeout(p)}}},[c,l,u]),m.jsx("span",{className:y,style:x,children:m.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(Mu.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const qt=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ai=550,mh=80,gh=Bt`
|
|
38
|
+
0% {
|
|
39
|
+
transform: scale(0);
|
|
40
|
+
opacity: 0.1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
100% {
|
|
44
|
+
transform: scale(1);
|
|
45
|
+
opacity: 0.3;
|
|
46
|
+
}
|
|
47
|
+
`,hh=Bt`
|
|
48
|
+
0% {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
100% {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
`,bh=Bt`
|
|
56
|
+
0% {
|
|
57
|
+
transform: scale(1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
50% {
|
|
61
|
+
transform: scale(0.92);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
100% {
|
|
65
|
+
transform: scale(1);
|
|
66
|
+
}
|
|
67
|
+
`,yh=D("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vh=D(Mu,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
68
|
+
opacity: 0;
|
|
69
|
+
position: absolute;
|
|
70
|
+
|
|
71
|
+
&.${qt.rippleVisible} {
|
|
72
|
+
opacity: 0.3;
|
|
73
|
+
transform: scale(1);
|
|
74
|
+
animation-name: ${gh};
|
|
75
|
+
animation-duration: ${Ai}ms;
|
|
76
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.${qt.ripplePulsate} {
|
|
80
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
& .${qt.child} {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
display: block;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
background-color: currentColor;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
& .${qt.childLeaving} {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
animation-name: ${hh};
|
|
95
|
+
animation-duration: ${Ai}ms;
|
|
96
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& .${qt.childPulsate} {
|
|
100
|
+
position: absolute;
|
|
101
|
+
/* @noflip */
|
|
102
|
+
left: 0px;
|
|
103
|
+
top: 0;
|
|
104
|
+
animation-name: ${bh};
|
|
105
|
+
animation-duration: 2500ms;
|
|
106
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
107
|
+
animation-iteration-count: infinite;
|
|
108
|
+
animation-delay: 200ms;
|
|
109
|
+
}
|
|
110
|
+
`,Nu=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:i={},className:s,...l}=r,[c,u]=w.useState([]),d=w.useRef(0),f=w.useRef(null);w.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const y=w.useRef(!1),x=jo(),h=w.useRef(null),p=w.useRef(null),b=w.useCallback(C=>{const{pulsate:S,rippleX:E,rippleY:P,rippleSize:$,cb:I}=C;u(N=>[...N,m.jsx(vh,{classes:{ripple:Q(i.ripple,qt.ripple),rippleVisible:Q(i.rippleVisible,qt.rippleVisible),ripplePulsate:Q(i.ripplePulsate,qt.ripplePulsate),child:Q(i.child,qt.child),childLeaving:Q(i.childLeaving,qt.childLeaving),childPulsate:Q(i.childPulsate,qt.childPulsate)},timeout:Ai,pulsate:S,rippleX:E,rippleY:P,rippleSize:$},d.current)]),d.current+=1,f.current=I},[i]),v=w.useCallback((C={},S={},E=()=>{})=>{const{pulsate:P=!1,center:$=a||S.pulsate,fakeElement:I=!1}=S;if(C?.type==="mousedown"&&y.current){y.current=!1;return}C?.type==="touchstart"&&(y.current=!0);const N=I?null:p.current,A=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let g,j,R;if($||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)g=Math.round(A.width/2),j=Math.round(A.height/2);else{const{clientX:M,clientY:k}=C.touches&&C.touches.length>0?C.touches[0]:C;g=Math.round(M-A.left),j=Math.round(k-A.top)}if($)R=Math.sqrt((2*A.width**2+A.height**2)/3),R%2===0&&(R+=1);else{const M=Math.max(Math.abs((N?N.clientWidth:0)-g),g)*2+2,k=Math.max(Math.abs((N?N.clientHeight:0)-j),j)*2+2;R=Math.sqrt(M**2+k**2)}C?.touches?h.current===null&&(h.current=()=>{b({pulsate:P,rippleX:g,rippleY:j,rippleSize:R,cb:E})},x.start(mh,()=>{h.current&&(h.current(),h.current=null)})):b({pulsate:P,rippleX:g,rippleY:j,rippleSize:R,cb:E})},[a,b,x]),O=w.useCallback(()=>{v({},{pulsate:!0})},[v]),T=w.useCallback((C,S)=>{if(x.clear(),C?.type==="touchend"&&h.current){h.current(),h.current=null,x.start(0,()=>{T(C,S)});return}h.current=null,u(E=>E.length>0?E.slice(1):E),f.current=S},[x]);return w.useImperativeHandle(n,()=>({pulsate:O,start:v,stop:T}),[O,v,T]),m.jsx(yh,{className:Q(qt.root,i.root,s),ref:p,...l,children:m.jsx(ms,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Nu.propTypes={center:o.bool,classes:o.object,className:o.string});function xh(e){return ge("MuiButtonBase",e)}const Ch=be("MuiButtonBase",["root","disabled","focusVisible"]),wh=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=he({root:["root",t&&"disabled",n&&"focusVisible"]},xh,a);return n&&r&&(s.root+=` ${r}`),s},Th=D("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ch.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),To=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:i=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:y=!1,focusVisibleClassName:x,LinkComponent:h="a",onBlur:p,onClick:b,onContextMenu:v,onDragLeave:O,onFocus:T,onFocusVisible:C,onKeyDown:S,onKeyUp:E,onMouseDown:P,onMouseLeave:$,onMouseUp:I,onTouchEnd:N,onTouchMove:A,onTouchStart:g,tabIndex:j=0,TouchRippleProps:R,touchRippleRef:M,type:k,...z}=r,F=w.useRef(null),_=oh(),B=nt(_.ref,M),[L,G]=w.useState(!1);u&&L&&G(!1),w.useImperativeHandle(a,()=>({focusVisible:()=>{G(!0),F.current.focus()}}),[]);const J=_.shouldMount&&!d&&!u;w.useEffect(()=>{L&&y&&!d&&_.pulsate()},[d,y,L,_]);const te=wo(_,"start",P,f),K=wo(_,"stop",v,f),U=wo(_,"stop",O,f),ne=wo(_,"stop",I,f),le=wo(_,"stop",ie=>{L&&ie.preventDefault(),$&&$(ie)},f),Z=wo(_,"start",g,f),X=wo(_,"stop",N,f),ce=wo(_,"stop",A,f),W=wo(_,"stop",ie=>{Do(ie.target)||G(!1),p&&p(ie)},!1),ae=vt(ie=>{F.current||(F.current=ie.currentTarget),Do(ie.target)&&(G(!0),C&&C(ie)),T&&T(ie)}),se=()=>{const ie=F.current;return c&&c!=="button"&&!(ie.tagName==="A"&&ie.href)},ue=vt(ie=>{y&&!ie.repeat&&L&&ie.key===" "&&_.stop(ie,()=>{_.start(ie)}),ie.target===ie.currentTarget&&se()&&ie.key===" "&&ie.preventDefault(),S&&S(ie),ie.target===ie.currentTarget&&se()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),b&&b(ie))}),ke=vt(ie=>{y&&ie.key===" "&&L&&!ie.defaultPrevented&&_.stop(ie,()=>{_.pulsate(ie)}),E&&E(ie),b&&ie.target===ie.currentTarget&&se()&&ie.key===" "&&!ie.defaultPrevented&&b(ie)});let Ee=c;Ee==="button"&&(z.href||z.to)&&(Ee=h);const oe={};if(Ee==="button"){const ie=!!z.formAction;oe.type=k===void 0&&!ie?"button":k,oe.disabled=u}else!z.href&&!z.to&&(oe.role="button"),u&&(oe["aria-disabled"]=u);const Be=nt(n,F),Se={...r,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:y,tabIndex:j,focusVisible:L},ye=wh(Se);return m.jsxs(Th,{as:Ee,className:Q(ye.root,l),ownerState:Se,onBlur:W,onClick:b,onContextMenu:K,onFocus:ae,onKeyDown:ue,onKeyUp:ke,onMouseDown:te,onMouseLeave:le,onMouseUp:ne,onDragLeave:U,onTouchEnd:X,onTouchMove:ce,onTouchStart:Z,ref:Be,tabIndex:u?-1:j,type:k,...oe,...z,children:[s,J?m.jsx(Nu,{ref:B,center:i,...R}):null]})});function wo(e,t,n,r=!1){return vt(a=>(n&&n(a),r||e[t](a),!0))}process.env.NODE_ENV!=="production"&&(To.propTypes={action:Mt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:hr,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function Sh(e){return typeof e.main=="string"}function Oh(e,t=[]){if(!Sh(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function qe(e=[]){return([,t])=>t&&Oh(t,e)}function Eh(e){return ge("MuiCircularProgress",e)}be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const to=44,Li=Bt`
|
|
111
|
+
0% {
|
|
112
|
+
transform: rotate(0deg);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
100% {
|
|
116
|
+
transform: rotate(360deg);
|
|
117
|
+
}
|
|
118
|
+
`,Di=Bt`
|
|
119
|
+
0% {
|
|
120
|
+
stroke-dasharray: 1px, 200px;
|
|
121
|
+
stroke-dashoffset: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
50% {
|
|
125
|
+
stroke-dasharray: 100px, 200px;
|
|
126
|
+
stroke-dashoffset: -15px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
100% {
|
|
130
|
+
stroke-dasharray: 1px, 200px;
|
|
131
|
+
stroke-dashoffset: -126px;
|
|
132
|
+
}
|
|
133
|
+
`,kh=typeof Li!="string"?Fo`
|
|
134
|
+
animation: ${Li} 1.4s linear infinite;
|
|
135
|
+
`:null,Ph=typeof Di!="string"?Fo`
|
|
136
|
+
animation: ${Di} 1.4s ease-in-out infinite;
|
|
137
|
+
`:null,Rh=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${V(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${V(n)}`,a&&"circleDisableShrink"]};return he(i,Eh,t)},$h=D("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:kh||{animation:`${Li} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ih=D("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),jh=D("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${V(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(pe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Ph||{animation:`${Di} 1.4s ease-in-out infinite`}}]}))),Mh=D("circle",{name:"MuiCircularProgress",slot:"Track"})(pe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),No=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:f=0,variant:y="indeterminate",...x}=r,h={...r,color:i,disableShrink:s,size:c,thickness:d,value:f,variant:y,enableTrackSlot:l},p=Rh(h),b={},v={},O={};if(y==="determinate"){const T=2*Math.PI*((to-d)/2);b.strokeDasharray=T.toFixed(3),O["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*T).toFixed(3)}px`,v.transform="rotate(-90deg)"}return m.jsx($h,{className:Q(p.root,a),style:{width:c,height:c,...v,...u},ownerState:h,ref:n,role:"progressbar",...O,...x,children:m.jsxs(Ih,{className:p.svg,ownerState:h,viewBox:`${to/2} ${to/2} ${to} ${to}`,children:[l?m.jsx(Mh,{className:p.track,ownerState:h,cx:to,cy:to,r:(to-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,m.jsx(jh,{className:p.circle,style:b,ownerState:h,cx:to,cy:to,r:(to-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(No.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Tt(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function Nh(e){return ge("MuiButton",e)}const Wo=be("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),gs=w.createContext({});process.env.NODE_ENV!=="production"&&(gs.displayName="ButtonGroupContext");const hs=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(hs.displayName="ButtonGroupButtonContext");const Ah=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",i,`${i}${V(t)}`,`size${V(a)}`,`${i}Size${V(a)}`,`color${V(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${V(l)}`],startIcon:["icon","startIcon",`iconSize${V(a)}`],endIcon:["icon","endIcon",`iconSize${V(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=he(u,Nh,c);return{...c,...d}},Au=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Lh=D(To,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${V(n.color)}`],t[`size${V(n.size)}`],t[`${n.variant}Size${V(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Wo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Wo.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Wo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Wo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Wo.loading}`]:{color:"transparent"}}}]}})),Dh=D("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${V(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Au]})),Bh=D("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${V(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Au]})),Fh=D("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ql=D("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),bs=w.forwardRef(function(t,n){const r=w.useContext(gs),a=w.useContext(hs),i=tr(r,t),s=we({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:y=!1,disableFocusRipple:x=!1,endIcon:h,focusVisibleClassName:p,fullWidth:b=!1,id:v,loading:O=null,loadingIndicator:T,loadingPosition:C="center",size:S="medium",startIcon:E,type:P,variant:$="text",...I}=s,N=vo(v),A=T??m.jsx(No,{"aria-labelledby":N,color:"inherit",size:16}),g={...s,color:c,component:u,disabled:f,disableElevation:y,disableFocusRipple:x,fullWidth:b,loading:O,loadingIndicator:A,loadingPosition:C,size:S,type:P,variant:$},j=Ah(g),R=(E||O&&C==="start")&&m.jsx(Dh,{className:j.startIcon,ownerState:g,children:E||m.jsx(ql,{className:j.loadingIconPlaceholder,ownerState:g})}),M=(h||O&&C==="end")&&m.jsx(Bh,{className:j.endIcon,ownerState:g,children:h||m.jsx(ql,{className:j.loadingIconPlaceholder,ownerState:g})}),k=a||"",z=typeof O=="boolean"?m.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:O&&m.jsx(Fh,{className:j.loadingIndicator,ownerState:g,children:A})}):null;return m.jsxs(Lh,{ownerState:g,className:Q(r.className,j.root,d,k),component:u,disabled:f||O,focusRipple:!x,focusVisibleClassName:Q(j.focusVisible,p),ref:n,type:P,id:O?N:v,...I,classes:j,children:[R,C!=="end"&&z,l,C==="end"&&z,M]})});process.env.NODE_ENV!=="production"&&(bs.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function zh(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Vh(e){return parseFloat(e)}const _h=lt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Wh=lt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Gl=Bt`
|
|
138
|
+
from { transform: scale(0); opacity: 0; }
|
|
139
|
+
to { transform: scale(1); opacity: 1; }
|
|
140
|
+
`,Uh=D("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),ys=Re.forwardRef(({variante:e="primario",tamano:t="md",forma:n="cuadrado",estado:r="inactivo",cargando:a=!1,disabled:i=!1,iconoIzquierda:s,iconoDerecha:l,soloIcono:c=!1,texto:u,textoCargando:d,textoExito:f,textoError:y,children:x,startIcon:h,endIcon:p,sx:b,color:v,alHacerClick:O,...T},C)=>{const S=xt(),E=a?"cargando":r,P=E==="cargando",$=E==="exito",I=E==="error",N=E==="inactivo"&&!i,A=k=>["contorno","secundario"].includes(k)?"outlined":["fantasma","enlace"].includes(k)?"text":"contained",g=k=>k==="xs"?"small":k==="xl"?"large":k==="md"?"medium":k==="sm"?"small":k==="lg"?"large":"medium",j=(k,z)=>{if(z)switch(z){case"primario":return"primary";case"secundario":return"secondary";case"exito":return"success";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"oscuro":return"inherit";default:return z}switch(k){case"primario":return"primary";case"secundario":return"secondary";case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";case"info":return"info";case"oscuro":return"inherit";case"contorno":return"primary";case"fantasma":return"inherit";default:return"primary"}},R=()=>{const k={textTransform:"none",fontWeight:600,letterSpacing:"0.01em",boxShadow:"none",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:n==="pildora"?"9999px":n==="circulo"?"50%":"10px",...c&&{minWidth:"auto",width:g(t)==="small"?32:g(t)==="large"?48:40,height:g(t)==="small"?32:g(t)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:N?"translateY(-1px)":"none",boxShadow:N&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:N?"scale(0.98)":"none"}};if(t==="xs"?(k.padding=c?0:"2px 8px",k.fontSize="0.75rem",k.minWidth=c?24:"auto",c&&(k.height=24,k.width=24)):t==="xl"&&(k.padding=c?0:"12px 28px",k.fontSize="1.125rem",c&&(k.height=56,k.width=56)),$&&(k.backgroundColor=S.palette.success.main,k.color=S.palette.success.contrastText,k["&:hover"]={backgroundColor:S.palette.success.dark}),I&&(k.backgroundColor=S.palette.error.main,k.color=S.palette.error.contrastText,k["&:hover"]={backgroundColor:S.palette.error.dark}),e==="suave"&&!$&&!I){const z=j("primario",v)||"primary";let F=S.palette.primary.main;z==="error"?F=S.palette.error.main:z==="success"?F=S.palette.success.main:z==="warning"?F=S.palette.warning.main:z==="info"?F=S.palette.info.main:z==="secondary"&&(F=S.palette.secondary.main),k.backgroundColor=ve(F,.1),k.color=F,k.boxShadow="none",k["&:hover"]={...k["&:hover"],backgroundColor:ve(F,.2),boxShadow:"none"}}return e==="fantasma"&&(k.backgroundColor="transparent",k["&:hover"].backgroundColor=ve(S.palette.action.active,.08)),e==="enlace"&&(k.padding=0,k.minWidth="auto",k.borderRadius=0,k.verticalAlign="baseline",k["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},k["&:active"]={transform:"none"}),e==="oscuro"&&!$&&!I&&(k.backgroundColor="#1f2937",k.color="#ffffff",k["&:hover"]={...k["&:hover"],backgroundColor:"#111827"}),e==="claro"&&!$&&!I&&(k.backgroundColor="#f3f4f6",k.color="#1f2937",k["&:hover"]={...k["&:hover"],backgroundColor:"#e5e7eb"}),k},M=()=>{const k=x||u;return P?m.jsxs(Re.Fragment,{children:[m.jsx(No,{size:20,color:"inherit",sx:{mr:d?1:0}}),d||k]}):$?m.jsxs(Re.Fragment,{children:[m.jsx(_h,{sx:{mr:f?1:0,animation:`${Gl} 0.3s ease-out`}}),f||"¡Éxito!"]}):I?m.jsxs(Re.Fragment,{children:[m.jsx(Wh,{sx:{mr:y?1:0,animation:`${Gl} 0.3s ease-out`}}),y||"Error"]}):m.jsxs(Re.Fragment,{children:[s&&m.jsx("span",{style:{marginRight:k?8:0,display:"flex"},children:s}),k,l&&m.jsx("span",{style:{marginLeft:k?8:0,display:"flex"},children:l})]})};return m.jsx(bs,{ref:C,variant:A(e),color:j(e,v),size:g(t),disabled:i||P,onClick:O,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...R(),...b},...T,children:M()})});ys.displayName="CodeplexBoton";const Hh=ys;function vs(e){const t=w.useRef({});return w.useEffect(()=>{t.current=e}),t.current}function qh(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:a=!1}=e,i=vs({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!a&&(s=!0);const{badgeContent:l,max:c=r}=s?i:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:u}}function Gh(e){return ge("MuiBadge",e)}const $o=be("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function fo(e){return typeof e=="string"}function Lu(e,t,n){return e===void 0||fo(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Du(e,t,n){return typeof e=="function"?e(t,n):e}function Yo(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 Kl(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 Bu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const x=Q(n?.className,i,a?.className,r?.className),h={...n?.style,...a?.style,...r?.style},p={...n,...a,...r};return x.length>0&&(p.className=x),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:void 0}}const s=Yo({...a,...r}),l=Kl(r),c=Kl(a),u=t(s),d=Q(u?.className,n?.className,i,a?.className,r?.className),f={...u?.style,...n?.style,...a?.style,...r?.style},y={...u,...n,...c,...l};return d.length>0&&(y.className=d),Object.keys(f).length>0&&(y.style=f),{props:y,internalRef:u.ref}}function me(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...y}=i,x=d[e]||r,h=Du(f[e],a),{props:{component:p,...b},internalRef:v}=Bu({className:n,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:h}),O=nt(v,h?.ref,t.ref),T=e==="root"?p||u:p,C=Lu(x,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...b,...T&&!l&&{as:T},...T&&l&&{component:T},ref:O},a);return[x,C]}const ui=10,di=4,Kh=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:a,variant:i,classes:s={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${V(n.vertical)}${V(n.horizontal)}`,`anchorOrigin${V(n.vertical)}${V(n.horizontal)}${V(a)}`,`overlap${V(a)}`,t!=="default"&&`color${V(t)}`]};return he(l,Gh,s)},Yh=D("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Xh=D("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${V(n.anchorOrigin.vertical)}${V(n.anchorOrigin.horizontal)}${V(n.overlap)}`],n.color!=="default"&&t[`color${V(n.color)}`],n.invisible&&t.invisible]}})(pe(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ui*2,lineHeight:1,padding:"0 6px",height:ui*2,borderRadius:ui,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(qe(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:di,height:di*2,minWidth:di*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$o.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Yl(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Pa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiBadge"}),{anchorOrigin:a,className:i,classes:s,component:l,components:c={},componentsProps:u={},children:d,overlap:f="rectangular",color:y="default",invisible:x=!1,max:h=99,badgeContent:p,slots:b,slotProps:v,showZero:O=!1,variant:T="standard",...C}=r,{badgeContent:S,invisible:E,max:P,displayValue:$}=qh({max:h,invisible:x,badgeContent:p,showZero:O}),I=vs({anchorOrigin:Yl(a),color:y,overlap:f,variant:T,badgeContent:p}),N=E||S==null&&T!=="dot",{color:A=y,overlap:g=f,anchorOrigin:j,variant:R=T}=N?I:r,M=Yl(j),k=R!=="dot"?$:void 0,z={...r,badgeContent:S,invisible:N,max:P,displayValue:k,showZero:O,anchorOrigin:M,color:A,overlap:g,variant:R},F=Kh(z),_={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:v?.root??u.root,badge:v?.badge??u.badge}},[B,L]=me("root",{elementType:Yh,externalForwardedProps:{..._,...C},ownerState:z,className:Q(F.root,i),ref:n,additionalProps:{as:l}}),[G,J]=me("badge",{elementType:Xh,externalForwardedProps:_,ownerState:z,className:F.badge});return m.jsxs(B,{...L,children:[d,m.jsx(G,{...J,children:k})]})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});const Jh=Bt`
|
|
141
|
+
0% {
|
|
142
|
+
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
|
|
143
|
+
transform: scale(1);
|
|
144
|
+
}
|
|
145
|
+
50% {
|
|
146
|
+
transform: scale(1.1);
|
|
147
|
+
}
|
|
148
|
+
70% {
|
|
149
|
+
box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
|
|
150
|
+
}
|
|
151
|
+
100% {
|
|
152
|
+
transform: scale(1);
|
|
153
|
+
}
|
|
154
|
+
`,Zh=D(Pa,{shouldForwardProp:e=>e!=="animado"&&e!=="borde"})(({theme:e,animado:t,borde:n})=>({"& .MuiBadge-badge":{...n&&{boxShadow:`0 0 0 2px ${e.palette.background.paper}`},...t&&{animation:`${Jh} 1.5s infinite ease-in-out`}}})),Fu=({children:e,color:t="primario",contenido:n,variante:r="estandar",maximo:a=99,mostrarCero:i=!1,superposicion:s="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:u="derecha",animado:d=!1,borde:f=!1,...y})=>{const x=b=>{switch(b){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"primary"}},h=b=>b==="punto"?"dot":"standard",p=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:u==="derecha"?"right":"left"});return m.jsx(Zh,{color:x(t),badgeContent:n,variant:h(r),max:a,showZero:i,overlap:s,invisible:l,anchorOrigin:p(),animado:d,borde:f,...y,children:e})},Qh=Fu,eb=be("MuiBox",["root"]),tb=ku(),Ue=Nm({themeId:Ea,defaultTheme:tb,defaultClassName:eb.root,generateClassName:Gc.generate});process.env.NODE_ENV!=="production"&&(Ue.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ob(e){return ge("MuiTypography",e)}const Xr=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),nb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},rb=Kg(),ab=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${V(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return he(l,ob,s)},ib=D("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${V(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(pe(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${V(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Xl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},at=w.forwardRef(function(t,n){const{color:r,...a}=we({props:t,name:"MuiTypography"}),i=!nb[r],s=rb({...a,...i&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:y=!1,variant:x="body1",variantMapping:h=Xl,...p}=s,b={...s,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:y,variant:x,variantMapping:h},v=u||(y?"p":h[x]||Xl[x])||"span",O=ab(b);return m.jsx(ib,{as:v,ref:n,className:Q(O.root,c),...p,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(at.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const zu=({tamano:e="md",color:t="primario",tipo:n="borde",etiqueta:r,posicionEtiqueta:a="derecha",pantallaCompleta:i=!1,className:s="",sx:l,...c})=>{const u=xt(),f=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],x={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning",blanco:"inherit",gris:"inherit"}[t]||"primary",p=t==="blanco"?"#ffffff":t==="gris"?u.palette.grey[500]:u.palette[x]?.main||u.palette.primary.main,b=()=>m.jsx(No,{size:f,color:x,className:s,sx:{color:x==="inherit"?p:void 0,...l},...c}),v=()=>m.jsxs(Ue,{position:"relative",display:"inline-flex",width:f,height:f,className:s,sx:l,children:[m.jsx(No,{variant:"determinate",value:100,size:f,sx:{color:u.palette.mode==="dark"?ve(p,.2):ve(p,.1),position:"absolute"}}),m.jsx(No,{variant:"indeterminate",disableShrink:!0,size:f,sx:{color:p,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),O=()=>m.jsx(Ue,{display:"flex",gap:.5,className:s,sx:{height:f,alignItems:"center",...l},children:[0,1,2].map(A=>m.jsx(Ue,{sx:{width:f/3,height:f/3,borderRadius:"50%",bgcolor:p,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${A*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},A))}),T=()=>m.jsxs(Ue,{position:"relative",display:"inline-flex",width:f,height:f,className:s,sx:l,children:[m.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:p,opacity:.75,animation:"pulso 1s cubic-bezier(0, 0, 0.2, 1) infinite","@keyframes pulso":{"75%, 100%":{transform:"scale(2)",opacity:0}}}}),m.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:p}})]}),C=()=>{const A=f/2-f*.1;return m.jsx(Ue,{width:f,height:f,position:"relative",className:s,sx:l,children:[0,1,2,3].map(g=>m.jsx(Ue,{sx:{position:"absolute",width:A,height:A,borderRadius:"50%",bgcolor:p,top:g<2?0:"auto",bottom:g>=2?0:"auto",left:g%2===0?0:"auto",right:g%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:g===1?"-0.4s":g===2?"-0.8s":g===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},g))})},S=(A,g,j,R)=>m.jsx(Ue,{width:f,height:f,position:"relative",className:s,sx:l,children:Array.from({length:A}).map((M,k)=>m.jsx(Ue,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+k/A}s`,transform:`rotate(${k*(360/A)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:f*g,height:f*j,borderRadius:R,bgcolor:p,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},k))}),E=()=>S(12,.08,.24,"4px"),P=()=>S(8,.2,.2,"4px"),$=()=>S(12,.15,.15,"50%"),I=()=>{switch(n){case"anillo":return v();case"puntos":return O();case"pulso":return T();case"segmentos":return P();case"lineas":return E();case"puntos-circulo":return $();case"cuadricula":return C();default:return b()}},N=m.jsxs(Ue,{display:"inline-flex",flexDirection:a==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[I(),r&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:r})]});return i?m.jsx(Ue,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:u.palette.mode==="dark"?"rgba(0,0,0,0.85)":"rgba(255, 255, 255, 0.9)",sx:{backdropFilter:"blur(5px)"},children:N}):N},sb=zu,Vu=({teclas:e,tamano:t="md",className:n="",children:r,...a})=>{const i=t==="sm"?"text-[10px] px-1.5 py-0.5":t==="lg"?"text-xs px-2.5 py-1.5":"text-[11px] px-2 py-1",s="inline-flex items-center justify-center rounded border border-gray-300 bg-gray-50 text-gray-800 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 font-mono shadow-sm";return e&&e.length>0?m.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...a,children:e.map((l,c)=>m.jsx("kbd",{className:`${s} ${i}`,children:l},l+c))}):m.jsx("kbd",{className:`${s} ${i} ${n}`,...a,children:r})},lb=Vu,cb=lt(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ub(e){return ge("MuiAvatar",e)}const db=be("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),pb=e=>{const{classes:t,variant:n,colorDefault:r}=e;return he({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ub,t)},fb=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(pe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),mb=D("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),gb=D(cb,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function hb({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,i]=w.useState(!1);return w.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),a}const xs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatar"}),{alt:a,children:i,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:f,src:y,srcSet:x,variant:h="circular",...p}=r;let b=null;const v={...r,component:l,variant:h},O=hb({...d,...typeof u.img=="function"?u.img(v):u.img,src:y,srcSet:x}),T=y||x,C=T&&O!=="error";v.colorDefault=!C,delete v.ownerState;const S=pb(v),[E,P]=me("root",{ref:n,className:Q(S.root,s),elementType:fb,externalForwardedProps:{slots:c,slotProps:u,component:l,...p},ownerState:v}),[$,I]=me("img",{className:S.img,elementType:mb,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:a,src:y,srcSet:x,sizes:f},ownerState:v}),[N,A]=me("fallback",{className:S.fallback,elementType:gb,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:v});return C?b=m.jsx($,{...I}):i||i===0?b=i:T&&a?b=a[0]:b=m.jsx(N,{...A}),m.jsx(E,{...P,children:b})});process.env.NODE_ENV!=="production"&&(xs.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function bb(e){return ge("MuiAvatarGroup",e)}const yb=be("MuiAvatarGroup",["root","avatar"]),pi={small:-16,medium:-8},vb=e=>{const{classes:t}=e;return he({root:["root"],avatar:["avatar"]},bb,t)},xb=D("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${yb.avatar}`]:t.avatar},t.root]})(pe(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${db.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),_u=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatarGroup"}),{children:a,className:i,component:s="div",componentsProps:l,max:c=5,renderSurplus:u,slotProps:d={},slots:f={},spacing:y="medium",total:x,variant:h="circular",...p}=r;let b=c<2?2:c;const v={...r,max:c,spacing:y,component:s,variant:h},O=vb(v),T=w.Children.toArray(a).filter(g=>(process.env.NODE_ENV!=="production"&&Ao.isFragment(g)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
155
|
+
`)),w.isValidElement(g))),C=x||T.length;C===b&&(b+=1),b=Math.min(C+1,b);const S=Math.min(T.length,b-1),E=Math.max(C-b,C-S,0),P=u?u(E):`+${E}`;let $;v.spacing&&pi[v.spacing]!==void 0?$=pi[v.spacing]:v.spacing===0?$=0:$=-v.spacing||pi.medium;const I={slots:f,slotProps:{surplus:d.additionalAvatar??l?.additionalAvatar,...l,...d}},[N,A]=me("surplus",{elementType:xs,externalForwardedProps:I,className:O.avatar,ownerState:v,additionalProps:{variant:h}});return m.jsxs(xb,{as:s,ownerState:v,className:Q(O.root,i),ref:n,...p,style:{"--AvatarGroup-spacing":`${$}px`,...p.style},children:[E?m.jsx(N,{...A,children:P}):null,T.slice(0,S).reverse().map(g=>w.cloneElement(g,{className:Q(g.props.className,O.avatar),variant:g.props.variant||h}))]})});process.env.NODE_ENV!=="production"&&(_u.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,componentsProps:o.shape({additionalAvatar:o.object}),max:Tt(o.number,e=>e.max<2?new Error(["MUI: The prop `max` should be equal to 2 or above.","A value below is clamped to 2."].join(`
|
|
156
|
+
`)):null),renderSurplus:o.func,slotProps:o.shape({additionalAvatar:o.object,surplus:o.oneOfType([o.func,o.object])}),slots:o.shape({surplus:o.elementType}),spacing:o.oneOfType([o.oneOf(["medium","small"]),o.number]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),total:o.number,variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function Cb(e){return ge("MuiSkeleton",e)}be("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const wb=e=>{const{classes:t,variant:n,animation:r,hasChildren:a,width:i,height:s}=e;return he({root:["root",n,r,a&&"withChildren",a&&!i&&"fitContent",a&&!s&&"heightAuto"]},Cb,t)},Bi=Bt`
|
|
157
|
+
0% {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
50% {
|
|
162
|
+
opacity: 0.4;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
100% {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
}
|
|
168
|
+
`,Fi=Bt`
|
|
169
|
+
0% {
|
|
170
|
+
transform: translateX(-100%);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
50% {
|
|
174
|
+
/* +0.5s of delay between each loop */
|
|
175
|
+
transform: translateX(100%);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
100% {
|
|
179
|
+
transform: translateX(100%);
|
|
180
|
+
}
|
|
181
|
+
`,Tb=typeof Bi!="string"?Fo`
|
|
182
|
+
animation: ${Bi} 2s ease-in-out 0.5s infinite;
|
|
183
|
+
`:null,Sb=typeof Fi!="string"?Fo`
|
|
184
|
+
&::after {
|
|
185
|
+
animation: ${Fi} 2s linear 0.5s infinite;
|
|
186
|
+
}
|
|
187
|
+
`:null,Ob=D("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(pe(({theme:e})=>{const t=zh(e.shape.borderRadius)||"px",n=Vh(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Tb||{animation:`${Bi} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
188
|
+
90deg,
|
|
189
|
+
transparent,
|
|
190
|
+
${(e.vars||e).palette.action.hover},
|
|
191
|
+
transparent
|
|
192
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sb||{"&::after":{animation:`${Fi} 2s linear 0.5s infinite`}}}]}})),Cs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:i,component:s="span",height:l,style:c,variant:u="text",width:d,...f}=r,y={...r,animation:a,component:s,variant:u,hasChildren:!!f.children},x=wb(y);return m.jsx(Ob,{as:s,ref:n,className:Q(x.root,i),ownerState:y,...f,style:{width:d,height:l,...c}})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={animation:o.oneOf(["pulse","wave",!1]),children:o.node,classes:o.object,className:o.string,component:o.elementType,height:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rectangular","rounded","text"]),o.string]),width:o.oneOfType([o.number,o.string])});const zi=e=>typeof e=="number"?e:e&&{xs:24,sm:32,md:40,lg:48,xl:64,xxl:80}[e]||40,Eb=e=>{const t=zi(e);return{width:t,height:t,fontSize:t/2}},kb=D(Pa)(({theme:e})=>({"& .MuiBadge-badge":{backgroundColor:"#44b700",color:"#44b700",boxShadow:`0 0 0 2px ${e.palette.background.paper}`,"&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}})),Wu=({tamano:e="md",variante:t="circular",estado:n,imagen:r,texto:a,cargando:i=!1,insignia:s,colorInsignia:l="error",sx:c,children:u,...d})=>{const f=v=>{switch(v){case"cuadrado":return"square";case"redondeado":return"rounded";default:return"circular"}},y=v=>{switch(v){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"error"}},x=()=>{if(s)return s},h=()=>n&&!s?"dot":"standard",p=()=>{if(l&&s)return y(l)||"error";switch(n){case"conectado":return"#44b700";case"desconectado":return"#bdbdbd";case"ocupado":return"#f44336";case"ausente":return"#ff9800";default:return"transparent"}};if(i)return m.jsx(Cs,{variant:t==="circular"?"circular":"rectangular",width:zi(e),height:zi(e),animation:"wave"});const b=m.jsx(xs,{variant:f(t),src:r,alt:a,sx:[Eb(e),...Array.isArray(c)?c:[c]],...d,children:u||(a?a.charAt(0).toUpperCase():null)});return!n&&!s?b:n==="conectado"&&!s?m.jsx(kb,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:b}):m.jsx(Pa,{overlap:t==="circular"?"circular":"rectangular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:x(),variant:h(),sx:{"& .MuiBadge-badge":{backgroundColor:s?void 0:p(),color:s?void 0:p()}},color:s?y(l):void 0,children:b})},Uu=({children:e,spacing:t="medium",maximo:n=5,...r})=>m.jsx(_u,{max:n,spacing:t,...r,children:e}),Hu=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r+=1){const a=t>>r*8&255;n+=`00${a.toString(16)}`.slice(-2)}return{sx:{bgcolor:n},children:`${e.split(" ")[0][0]}${e.split(" ")[1]?.[0]||""}`}},Pb=Hu,Rb=Uu,$b=Wu,ws=({requisitos:e=[],className:t=""})=>{const[n,r]=Re.useState(!1),a=Re.useRef(null),i=Re.useId(),s=u=>{u.stopPropagation(),u.preventDefault(),r(!n)},l=()=>r(!0),c=()=>r(!1);return Re.useEffect(()=>{const u=d=>{n&&a.current&&!a.current.contains(d.target)&&r(!1)};return document.addEventListener("click",u),()=>{document.removeEventListener("click",u)}},[n]),m.jsxs("div",{ref:a,className:`relative inline-flex items-center ml-0.5 align-top ${t}`,onMouseEnter:l,onMouseLeave:c,children:[m.jsx("button",{type:"button",onClick:s,"aria-expanded":n,"aria-controls":i,"aria-label":"Ver requisitos",className:`
|
|
193
|
+
group flex items-center justify-center
|
|
194
|
+
text-red-500 dark:text-red-400
|
|
195
|
+
font-bold text-lg leading-none
|
|
196
|
+
cursor-help select-none
|
|
197
|
+
transition-transform duration-200
|
|
198
|
+
focus:outline-none focus:text-red-600 dark:focus:text-red-300
|
|
199
|
+
${n?"scale-110":"hover:scale-110"}
|
|
200
|
+
`,children:"*"}),n&&m.jsxs("div",{id:i,className:`
|
|
201
|
+
absolute bottom-full left-0 mb-1.5 z-[100]
|
|
202
|
+
/* Responsive Width: Fijo en desktop, limitado al viewport en móvil */
|
|
203
|
+
w-64 max-w-[85vw] sm:max-w-xs
|
|
204
|
+
bg-white dark:bg-gray-800
|
|
205
|
+
border border-gray-200 dark:border-gray-700
|
|
206
|
+
rounded-lg shadow-xl
|
|
207
|
+
animate-in fade-in zoom-in-95 slide-in-from-bottom-1 duration-150
|
|
208
|
+
origin-bottom-left
|
|
209
|
+
`,onClick:u=>u.stopPropagation(),children:[m.jsx("div",{className:"px-3 py-2 border-b border-gray-100 dark:border-gray-700/50 bg-gray-50/80 dark:bg-gray-800/80 rounded-t-lg backdrop-blur-sm",children:m.jsxs("h4",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-wider flex items-center gap-1.5",children:[m.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Requisitos"]})}),m.jsx("ul",{className:"p-1.5 space-y-0.5",children:e.map((u,d)=>m.jsxs("li",{className:`
|
|
210
|
+
flex items-start gap-2 px-2 py-1.5 rounded
|
|
211
|
+
text-xs text-gray-600 dark:text-gray-300
|
|
212
|
+
hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors
|
|
213
|
+
`,children:[m.jsx("span",{className:"text-blue-500 dark:text-blue-400 mt-[2px]",children:"•"}),m.jsx("span",{className:"leading-snug",children:u})]},d))}),m.jsx("div",{className:"absolute -bottom-1 left-1.5 w-2 h-2 bg-white dark:bg-gray-800 border-b border-r border-gray-200 dark:border-gray-700 rotate-45"})]})]})},Ib=ws,qu=({para:e,texto:t,obligatorio:n,requisitos:r,className:a="",children:i,...s})=>m.jsxs("div",{className:`flex items-center gap-2 mb-1.5 ${a}`,...s,children:[m.jsx("label",{htmlFor:e,className:"text-sm font-medium text-gray-800 dark:text-gray-100 cursor-pointer select-none",children:t}),n&&(r&&r.length>0?m.jsx(ws,{requisitos:r}):m.jsx("span",{className:"text-xs text-red-500 font-bold select-none",title:"Campo obligatorio",children:"*"})),i]}),jb=qu;function Mb(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Gu(e,t,n,r){const a=e[t];if(a==null||!Number.isInteger(a)){const i=Mb(a);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Ku(e,t,n,r){return e[t]===void 0?null:Gu(e,t,n,r)}function Vi(){return null}Ku.isRequired=Gu;Vi.isRequired=Vi;const Ts=process.env.NODE_ENV==="production"?Vi:Ku;function Nb(e){return ge("MuiPaper",e)}be("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 Ab=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return he(i,Nb,a)},Lb=D("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}`]]}})(pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),xo=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiPaper"}),a=xt(),{className:i,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=r,f={...r,component:s,elevation:l,square:c,variant:u},y=Ab(f);return process.env.NODE_ENV!=="production"&&a.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
214
|
+
`)),m.jsx(Lb,{as:s,ownerState:f,className:Q(y.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[l],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[l]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ve("#fff",Ii(l))}, ${ve("#fff",Ii(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(xo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:Tt(Ts,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:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});function Db(e){return ge("MuiCard",e)}be("MuiCard",["root"]);const Bb=e=>{const{classes:t}=e;return he({root:["root"]},Db,t)},Fb=D(xo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ss=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCard"}),{className:a,raised:i=!1,...s}=r,l={...r,raised:i},c=Bb(l);return m.jsx(Fb,{className:Q(c.root,a),elevation:i?8:void 0,ref:n,ownerState:l,...s})});process.env.NODE_ENV!=="production"&&(Ss.propTypes={children:o.node,classes:o.object,className:o.string,raised:Tt(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function zb(e){return ge("MuiCardActionArea",e)}const fi=be("MuiCardActionArea",["root","focusVisible","focusHighlight"]),Vb=e=>{const{classes:t}=e;return he({root:["root"],focusHighlight:["focusHighlight"]},zb,t)},_b=D(To,{name:"MuiCardActionArea",slot:"Root"})(pe(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${fi.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${fi.focusVisible} .${fi.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),Wb=D("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(pe(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),Yu=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardActionArea"}),{children:a,className:i,focusVisibleClassName:s,slots:l={},slotProps:c={},...u}=r,d=r,f=Vb(d),y={slots:l,slotProps:c},[x,h]=me("root",{elementType:_b,externalForwardedProps:{...y,...u},shouldForwardComponentProp:!0,ownerState:d,ref:n,className:Q(f.root,i),additionalProps:{focusVisibleClassName:Q(s,f.focusVisible)}}),[p,b]=me("focusHighlight",{elementType:Wb,externalForwardedProps:y,ownerState:d,ref:n,className:f.focusHighlight});return m.jsxs(x,{...h,children:[a,m.jsx(p,{...b})]})});process.env.NODE_ENV!=="production"&&(Yu.propTypes={children:o.node,classes:o.object,className:o.string,focusVisibleClassName:o.string,slotProps:o.shape({focusHighlight:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({focusHighlight:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ub(e){return ge("MuiCardContent",e)}be("MuiCardContent",["root"]);const Hb=e=>{const{classes:t}=e;return he({root:["root"]},Ub,t)},qb=D("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Xu=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardContent"}),{className:a,component:i="div",...s}=r,l={...r,component:i},c=Hb(l);return m.jsx(qb,{as:i,className:Q(c.root,a),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Gb(e){return ge("MuiCardMedia",e)}be("MuiCardMedia",["root","media","img"]);const Kb=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return he({root:["root",n&&"media",r&&"img"]},Gb,t)},Yb=D("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:a}=n;return[t.root,r&&t.media,a&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Xb=["video","audio","picture","iframe","img"],Jb=["picture","img"],Ju=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardMedia"}),{children:a,className:i,component:s="div",image:l,src:c,style:u,...d}=r,f=Xb.includes(s),y=!f&&l?{backgroundImage:`url("${l}")`,...u}:u,x={...r,component:s,isMediaComponent:f,isImageComponent:Jb.includes(s)},h=Kb(x);return m.jsx(Yb,{className:Q(h.root,i),as:s,role:!f&&l?"img":void 0,ref:n,style:y,ownerState:x,src:f?l||c:void 0,...d,children:a})});process.env.NODE_ENV!=="production"&&(Ju.propTypes={children:Tt(o.node,e=>!e.children&&!e.image&&!e.src&&!e.component?new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified."):null),classes:o.object,className:o.string,component:o.elementType,image:o.string,src:o.string,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Zu=({variante:e="estandar",relleno:t="m",efectoHover:n,clicable:r,titulo:a,subtitulo:i,accionCabecera:s,multimedia:l,cabecera:c,pie:u,alHacerClick:d,className:f="",children:y,sx:x,...h})=>{const p=xt(),b=P=>P==="contorno"||P==="suave"?"outlined":"elevation",v=P=>{switch(P){case"ninguno":return 0;case"p":return 1.5;case"g":return 3;default:return 2}},O=r||!!d,T=O?Yu:Re.Fragment,C=O?{component:"div",onClick:d}:{},S=()=>e==="suave"?{backgroundColor:p.palette.mode==="dark"?ve(p.palette.primary.main,.05):ve(p.palette.primary.main,.03),borderColor:p.palette.mode==="dark"?ve(p.palette.primary.main,.1):ve(p.palette.primary.main,.08)}:e==="estandar"?{backgroundColor:p.palette.background.paper}:{},E=()=>c?m.jsx(Ue,{sx:{p:v(t),pb:0},children:c}):a?m.jsxs(Ue,{sx:{p:v(t),pb:0,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[m.jsxs(Ue,{sx:{display:"flex",flexDirection:"column"},children:[m.jsx(at,{variant:"h6",component:"div",sx:{fontWeight:600,lineHeight:1.2,fontSize:"1rem",color:p.palette.text.primary},children:a}),i&&m.jsx(at,{variant:"body2",color:"text.secondary",sx:{mt:.5,fontSize:"0.875rem"},children:i})]}),s&&m.jsx(Ue,{sx:{mt:-.5,mr:-.5},children:s})]}):null;return m.jsx(Ss,{variant:b(e)==="outlined"?"outlined":void 0,elevation:e==="estandar"?2:0,className:f,sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:"12px",...S(),...n&&{transition:"transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{transform:"translateY(-4px)",boxShadow:p.shadows[8],...e!=="estandar"&&{borderColor:p.palette.primary.main}}},...x},...h,children:m.jsxs(T,{...C,children:[typeof l=="string"?m.jsx(Ju,{component:"img",image:l,alt:"Multimedia",height:"180",sx:{objectFit:"cover"}}):l,E(),m.jsx(Xu,{sx:{p:v(t),flexGrow:1,"&:last-child":{pb:v(t)}},children:y}),u&&m.jsx(Ue,{sx:{p:v(t),pt:0,mt:"auto",borderTop:e==="contorno"?`1px solid ${p.palette.divider}`:"none",...e==="contorno"&&{pt:v(t)}},children:u})]})})},Zb=Zu,Qu=({antetitulo:e,titulo:t,subtitulo:n,alineacion:r="left",etiquetaPrimaria:a,etiquetaSecundaria:i,alClickPrimario:s,alClickSecundario:l,alturaCompleta:c=!1,urlImagenFondo:u,capaOscura:d=!0,className:f="",children:y,...x})=>{const h=r==="center"?"text-center items-center":"text-left items-start",p=!!u;return m.jsxs("section",{className:`
|
|
215
|
+
relative overflow-hidden
|
|
216
|
+
border border-gray-200/80 dark:border-gray-700/80
|
|
217
|
+
rounded-2xl
|
|
218
|
+
px-6 py-10 md:px-10 md:py-14
|
|
219
|
+
shadow-sm
|
|
220
|
+
flex
|
|
221
|
+
${c?"min-h-[60vh]":""}
|
|
222
|
+
${p?"bg-cover bg-center":"bg-gradient-to-b from-white to-gray-50 dark:from-gray-900 dark:to-gray-950"}
|
|
223
|
+
${f}
|
|
224
|
+
`,style:p?{backgroundImage:`url(${u})`}:void 0,...x,children:[p&&d&&m.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[1px]"}),m.jsxs("div",{className:`
|
|
225
|
+
relative z-10
|
|
226
|
+
max-w-3xl mx-auto flex flex-col gap-6
|
|
227
|
+
${h}
|
|
228
|
+
`,children:[e&&m.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-blue-50 text-blue-700 dark:bg-blue-900/60 dark:text-blue-100",children:e}),m.jsxs("div",{className:"space-y-3 md:space-y-4",children:[m.jsx("h1",{className:`
|
|
229
|
+
text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight
|
|
230
|
+
${p?"text-white":"text-gray-900 dark:text-white"}
|
|
231
|
+
`,children:t}),n&&m.jsx("p",{className:`
|
|
232
|
+
text-base md:text-lg max-w-2xl
|
|
233
|
+
${p?"text-gray-100/90":"text-gray-600 dark:text-gray-300"}
|
|
234
|
+
`,children:n})]}),(a||i)&&m.jsxs("div",{className:`
|
|
235
|
+
flex flex-wrap gap-3 mt-2
|
|
236
|
+
${r==="center"?"justify-center":"justify-start"}
|
|
237
|
+
`,children:[a&&s&&m.jsx("button",{type:"button",className:"inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:s,children:a}),i&&l&&m.jsx("button",{type:"button",className:`
|
|
238
|
+
inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border
|
|
239
|
+
${p?"border-white/60 text-white bg-white/5 hover:bg-white/10":"border-gray-300 text-gray-700 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:bg-gray-700"}
|
|
240
|
+
focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500
|
|
241
|
+
`,onClick:l,children:i})]}),y]})]})},Qb=Qu,ey={info:"bg-blue-50 text-blue-800 border-blue-200 dark:bg-blue-900/30 dark:text-blue-100 dark:border-blue-800/60",success:"bg-emerald-50 text-emerald-800 border-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-100 dark:border-emerald-800/60",warning:"bg-amber-50 text-amber-800 border-amber-200 dark:bg-amber-900/30 dark:text-amber-100 dark:border-amber-800/60",error:"bg-red-50 text-red-800 border-red-200 dark:bg-red-900/30 dark:text-red-100 dark:border-red-800/60",neutral:"bg-gray-50 text-gray-800 border-gray-200 dark:bg-gray-900/40 dark:text-gray-100 dark:border-gray-700"},ed=({titulo:e,descripcion:t,variante:n="info",icono:r,cerrable:a=!1,abierto:i,alCerrar:s,anchoCompleto:l=!0,className:c="",children:u,...d})=>{const[f,y]=Re.useState(!0);if(!(i!==void 0?i:f))return null;const h=ey[n],p=r??(n==="success"?"✅":n==="warning"?"⚠️":n==="error"?"⛔":n==="neutral"?"💡":"ℹ️"),b=n==="error"||n==="warning"?"alert":"status",v=()=>{i===void 0&&y(!1),s&&s()};return m.jsx("div",{className:l?"w-full":"inline-flex",...d,children:m.jsxs("div",{className:`
|
|
242
|
+
flex w-full items-start gap-3 border rounded-lg px-4 py-3
|
|
243
|
+
shadow-sm ${h} ${c}
|
|
244
|
+
`,role:b,children:[p&&m.jsx("div",{className:"mt-0.5 text-xl shrink-0","aria-hidden":"true",children:p}),m.jsxs("div",{className:"flex-1 min-w-0",children:[e&&m.jsx("p",{className:"text-sm font-semibold leading-5 truncate",children:e}),t&&m.jsx("p",{className:"mt-0.5 text-xs sm:text-sm leading-5",children:t}),u]}),a&&m.jsx("button",{type:"button",className:"shrink-0 p-1.5 rounded-md hover:bg-black/5 dark:hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-500",onClick:v,"aria-label":"Cerrar aviso",children:m.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{fillRule:"evenodd",d:`M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414
|
|
245
|
+
1.414L11.414 10l4.293 4.293a1 1 0 01-1.414
|
|
246
|
+
1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586
|
|
247
|
+
10 4.293 5.707a1 1 0 010-1.414z`,clipRule:"evenodd"})})})]})})},ty=ed;function oy(e){return ge("MuiAlert",e)}const Jl=be("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function ny(e){return ge("MuiIconButton",e)}const Zl=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),ry=e=>{const{classes:t,disabled:n,color:r,edge:a,size:i,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${V(r)}`,a&&`edge${V(a)}`,`size${V(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return he(l,ny,t)},ay=D(To,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${V(n.color)}`],n.edge&&t[`edge${V(n.edge)}`],t[`size${V(n.size)}`]]}})(pe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),pe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Zl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Zl.loading}`]:{color:"transparent"}}))),iy=D("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Cn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiIconButton"}),{edge:a=!1,children:i,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:y=null,loadingIndicator:x,...h}=r,p=vo(f),b=x??m.jsx(No,{"aria-labelledby":p,color:"inherit",size:16}),v={...r,edge:a,color:l,disabled:c,disableFocusRipple:u,loading:y,loadingIndicator:b,size:d},O=ry(v);return m.jsxs(ay,{id:y?p:f,className:Q(O.root,s),centerRipple:!0,focusRipple:!u,disabled:c||y,ref:n,...h,ownerState:v,children:[typeof y=="boolean"&&m.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:m.jsx(iy,{className:O.loadingIndicator,ownerState:v,children:y&&b})}),i]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:Tt(o.node,e=>w.Children.toArray(e.children).some(n=>w.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(`
|
|
248
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const sy=lt(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ly=lt(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),cy=lt(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),uy=lt(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),td=lt(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dy=e=>{const{variant:t,color:n,severity:r,classes:a}=e,i={root:["root",`color${V(n||r)}`,`${t}${V(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return he(i,oy,a)},py=D(xo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${V(n.color||n.severity)}`]]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Jl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Jl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),fy=D("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),my=D("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),gy=D("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Ql={success:m.jsx(sy,{fontSize:"inherit"}),warning:m.jsx(ly,{fontSize:"inherit"}),error:m.jsx(cy,{fontSize:"inherit"}),info:m.jsx(uy,{fontSize:"inherit"})},Os=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAlert"}),{action:a,children:i,className:s,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:f,iconMapping:y=Ql,onClose:x,role:h="alert",severity:p="success",slotProps:b={},slots:v={},variant:O="standard",...T}=r,C={...r,color:c,severity:p,variant:O,colorSeverity:c||p},S=dy(C),E={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...v},slotProps:{...d,...b}},[P,$]=me("root",{ref:n,shouldForwardComponentProp:!0,className:Q(S.root,s),elementType:py,externalForwardedProps:{...E,...T},ownerState:C,additionalProps:{role:h,elevation:0}}),[I,N]=me("icon",{className:S.icon,elementType:fy,externalForwardedProps:E,ownerState:C}),[A,g]=me("message",{className:S.message,elementType:my,externalForwardedProps:E,ownerState:C}),[j,R]=me("action",{className:S.action,elementType:gy,externalForwardedProps:E,ownerState:C}),[M,k]=me("closeButton",{elementType:Cn,externalForwardedProps:E,ownerState:C}),[z,F]=me("closeIcon",{elementType:td,externalForwardedProps:E,ownerState:C});return m.jsxs(P,{...$,children:[f!==!1?m.jsx(I,{...N,children:f||y[p]||Ql[p]}):null,m.jsx(A,{...g,children:i}),a!=null?m.jsx(j,{...R,children:a}):null,a==null&&x?m.jsx(j,{...R,children:m.jsx(M,{size:"small","aria-label":l,title:l,color:"inherit",onClick:x,...k,children:m.jsx(z,{fontSize:"small",...F})})}):null]})});process.env.NODE_ENV!=="production"&&(Os.propTypes={action:o.node,children:o.node,classes:o.object,className:o.string,closeText:o.string,color:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),components:o.shape({CloseButton:o.elementType,CloseIcon:o.elementType}),componentsProps:o.shape({closeButton:o.object,closeIcon:o.object}),icon:o.node,iconMapping:o.shape({error:o.node,info:o.node,success:o.node,warning:o.node}),onClose:o.func,role:o.string,severity:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),slotProps:o.shape({action:o.oneOfType([o.func,o.object]),closeButton:o.oneOfType([o.func,o.object]),closeIcon:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),message:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,closeButton:o.elementType,closeIcon:o.elementType,icon:o.elementType,message:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function hy(e){return ge("MuiAlertTitle",e)}be("MuiAlertTitle",["root"]);const by=e=>{const{classes:t}=e;return he({root:["root"]},hy,t)},yy=D(at,{name:"MuiAlertTitle",slot:"Root"})(pe(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Es=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAlertTitle"}),{className:a,...i}=r,s=r,l=by(s);return m.jsx(yy,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Q(l.root,a),...i})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Ra=e=>e.scrollTop;function ho(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function vy(e){return ge("MuiCollapse",e)}be("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xy=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return he(r,vy,n)},Cy=D("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(pe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),wy=D("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ty=D("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Jr=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCollapse"}),{addEndListener:a,children:i,className:s,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:f,onEntered:y,onEntering:x,onExit:h,onExited:p,onExiting:b,orientation:v="vertical",slots:O={},slotProps:T={},style:C,timeout:S=Tu.standard,TransitionComponent:E=Ut,...P}=r,$={...r,orientation:v,collapsedSize:l},I=xy($),N=xt(),A=jo(),g=w.useRef(null),j=w.useRef(),R=typeof l=="number"?`${l}px`:l,M=v==="horizontal",k=M?"width":"height",z=w.useRef(null),F=nt(n,z),_=ue=>ke=>{if(ue){const Ee=z.current;ke===void 0?ue(Ee):ue(Ee,ke)}},B=()=>g.current?g.current[M?"clientWidth":"clientHeight"]:0,L=_((ue,ke)=>{g.current&&M&&(g.current.style.position="absolute"),ue.style[k]=R,f&&f(ue,ke)}),G=_((ue,ke)=>{const Ee=B();g.current&&M&&(g.current.style.position="");const{duration:oe,easing:Be}=ho({style:C,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Se=N.transitions.getAutoHeightDuration(Ee);ue.style.transitionDuration=`${Se}ms`,j.current=Se}else ue.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;ue.style[k]=`${Ee}px`,ue.style.transitionTimingFunction=Be,x&&x(ue,ke)}),J=_((ue,ke)=>{ue.style[k]="auto",y&&y(ue,ke)}),te=_(ue=>{ue.style[k]=`${B()}px`,h&&h(ue)}),K=_(p),U=_(ue=>{const ke=B(),{duration:Ee,easing:oe}=ho({style:C,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Be=N.transitions.getAutoHeightDuration(ke);ue.style.transitionDuration=`${Be}ms`,j.current=Be}else ue.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;ue.style[k]=R,ue.style.transitionTimingFunction=oe,b&&b(ue)}),ne=ue=>{S==="auto"&&A.start(j.current||0,ue),a&&a(z.current,ue)},le={slots:O,slotProps:T,component:c},[Z,X]=me("root",{ref:F,className:Q(I.root,s),elementType:Cy,externalForwardedProps:le,ownerState:$,additionalProps:{style:{[M?"minWidth":"minHeight"]:R,...C}}}),[ce,W]=me("wrapper",{ref:g,className:I.wrapper,elementType:wy,externalForwardedProps:le,ownerState:$}),[ae,se]=me("wrapperInner",{className:I.wrapperInner,elementType:Ty,externalForwardedProps:le,ownerState:$});return m.jsx(E,{in:d,onEnter:L,onEntered:J,onEntering:G,onExit:te,onExited:K,onExiting:U,addEndListener:ne,nodeRef:z,timeout:S==="auto"?null:S,...P,children:(ue,{ownerState:ke,...Ee})=>{const oe={...$,state:ue};return m.jsx(Z,{...X,className:Q(X.className,{entered:I.entered,exited:!d&&R==="0px"&&I.hidden}[ue]),ownerState:oe,...Ee,children:m.jsx(ce,{...W,ownerState:oe,children:m.jsx(ae,{...se,ownerState:oe,children:i})})})}})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:hr,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,orientation:o.oneOf(["horizontal","vertical"]),slotProps:o.shape({root:o.oneOfType([o.func,o.object]),wrapper:o.oneOfType([o.func,o.object]),wrapperInner:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,wrapper:o.elementType,wrapperInner:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Jr&&(Jr.muiSupportAuto=!0);const od=({variante:e="info",diseno:t="estandar",titulo:n,descripcion:r,cerrable:a=!1,abierto:i=!0,alCerrar:s,tiempoAutoCierre:l,accion:c,icono:u,className:d="",children:f,sx:y,...x})=>{const h=xt(),[p,b]=Re.useState(i);Re.useEffect(()=>{b(i)},[i]),Re.useEffect(()=>{if(l&&l>0&&p){const E=setTimeout(()=>{s&&s(),b(!1)},l);return()=>clearTimeout(E)}},[l,p,s]);const v=E=>{switch(E){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},O=E=>{switch(E){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},T=()=>{if(t!=="suave")return{};const E=v(e),P=h.palette[E];if(!P)return{};const $=P.main;return{backgroundColor:ve($,.12),color:$,"& .MuiAlert-icon":{color:$},"& .MuiAlertTitle-root":{color:$}}},C=()=>{s&&s(),b(!1)},S=i!==void 0?i:p;return m.jsx(Jr,{in:S,children:m.jsxs(Os,{severity:v(e),variant:O(t),onClose:a||s?C:void 0,className:d,icon:u,action:c,sx:{borderRadius:"12px",mb:2,border:t==="contorno"?"1px solid":void 0,boxShadow:t==="lleno"?"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)":"0 1px 2px 0 rgba(0,0,0,0.05)",alignItems:"center",...T(),"& .MuiAlertTitle-root":{fontWeight:700,mb:r||f?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:t==="suave"?1:.9},...y},...x,children:[n&&m.jsx(Es,{children:n}),r&&m.jsx(Ue,{component:"div",sx:{opacity:.9},children:r}),f]})})},Sy=od;function Oy(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nd(e,t,n,r,a){const i=e[t],s=a||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!Oy(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 Oo=Tt(o.element,nd);Oo.isRequired=Tt(o.element.isRequired,nd);function Eo(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function _i(e){return`scale(${e}, ${e**2})`}const Ey={entering:{opacity:1,transform:_i(1)},entered:{opacity:1,transform:"none"}},mi=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qo=w.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:i,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:y,onExiting:x,style:h,timeout:p="auto",TransitionComponent:b=Ut,...v}=t,O=jo(),T=w.useRef(),C=xt(),S=w.useRef(null),E=nt(S,Eo(i),n),P=M=>k=>{if(M){const z=S.current;k===void 0?M(z):M(z,k)}},$=P(d),I=P((M,k)=>{Ra(M);const{duration:z,delay:F,easing:_}=ho({style:h,timeout:p,easing:s},{mode:"enter"});let B;p==="auto"?(B=C.transitions.getAutoHeightDuration(M.clientHeight),T.current=B):B=z,M.style.transition=[C.transitions.create("opacity",{duration:B,delay:F}),C.transitions.create("transform",{duration:mi?B:B*.666,delay:F,easing:_})].join(","),c&&c(M,k)}),N=P(u),A=P(x),g=P(M=>{const{duration:k,delay:z,easing:F}=ho({style:h,timeout:p,easing:s},{mode:"exit"});let _;p==="auto"?(_=C.transitions.getAutoHeightDuration(M.clientHeight),T.current=_):_=k,M.style.transition=[C.transitions.create("opacity",{duration:_,delay:z}),C.transitions.create("transform",{duration:mi?_:_*.666,delay:mi?z:z||_*.333,easing:F})].join(","),M.style.opacity=0,M.style.transform=_i(.75),f&&f(M)}),j=P(y),R=M=>{p==="auto"&&O.start(T.current||0,M),r&&r(S.current,M)};return m.jsx(b,{appear:a,in:l,nodeRef:S,onEnter:I,onEntered:N,onEntering:$,onExit:g,onExited:j,onExiting:A,addEndListener:R,timeout:p==="auto"?null:p,...v,children:(M,{ownerState:k,...z})=>w.cloneElement(i,{style:{opacity:0,transform:_i(.75),visibility:M==="exited"&&!l?"hidden":void 0,...Ey[M],...h,...i.props.style},ref:E,...z})})});process.env.NODE_ENV!=="production"&&(Qo.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Qo&&(Qo.muiSupportAuto=!0);function bo(e,t,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=a||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var At="top",Zt="bottom",Qt="right",Lt="left",ks="auto",br=[At,Zt,Qt,Lt],wn="start",ir="end",ky="clippingParents",rd="viewport",Ln="popper",Py="reference",ec=br.reduce(function(e,t){return e.concat([t+"-"+wn,t+"-"+ir])},[]),ad=[].concat(br,[ks]).reduce(function(e,t){return e.concat([t,t+"-"+wn,t+"-"+ir])},[]),Ry="beforeRead",$y="read",Iy="afterRead",jy="beforeMain",My="main",Ny="afterMain",Ay="beforeWrite",Ly="write",Dy="afterWrite",By=[Ry,$y,Iy,jy,My,Ny,Ay,Ly,Dy];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function en(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Yt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ps(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fy(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Yt(i)||!yo(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function zy(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Yt(a)||!yo(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}const Vy={name:"applyStyles",enabled:!0,phase:"write",fn:Fy,effect:zy,requires:["computeStyles"]};function mo(e){return e.split("-")[0]}var Xo=Math.max,Zr=Math.min,Tn=Math.round;function Wi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function id(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function Sn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Yt(e)&&(a=e.offsetWidth>0&&Tn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Tn(r.height)/e.offsetHeight||1);var s=en(e)?Wt(e):window,l=s.visualViewport,c=!id()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/a,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/a,y=r.height/i;return{width:f,height:y,top:d,right:u+f,bottom:d+y,left:u,x:u,y:d}}function Rs(e){var t=Sn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sd(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ps(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function So(e){return Wt(e).getComputedStyle(e)}function _y(e){return["table","td","th"].indexOf(yo(e))>=0}function zo(e){return((en(e)?e.ownerDocument:e.document)||window.document).documentElement}function $a(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||zo(e)}function tc(e){return!Yt(e)||So(e).position==="fixed"?null:e.offsetParent}function Wy(e){var t=/firefox/i.test(Wi()),n=/Trident/i.test(Wi());if(n&&Yt(e)){var r=So(e);if(r.position==="fixed")return null}var a=$a(e);for(Ps(a)&&(a=a.host);Yt(a)&&["html","body"].indexOf(yo(a))<0;){var i=So(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function yr(e){for(var t=Wt(e),n=tc(e);n&&_y(n)&&So(n).position==="static";)n=tc(n);return n&&(yo(n)==="html"||yo(n)==="body"&&So(n).position==="static")?t:n||Wy(e)||t}function $s(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jn(e,t,n){return Xo(e,Zr(t,n))}function Uy(e,t,n){var r=Jn(e,t,n);return r>n?n:r}function ld(){return{top:0,right:0,bottom:0,left:0}}function cd(e){return Object.assign({},ld(),e)}function ud(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Hy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cd(typeof t!="number"?t:ud(t,br))};function qy(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=mo(n.placement),c=$s(l),u=[Lt,Qt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=Hy(a.padding,n),y=Rs(i),x=c==="y"?At:Lt,h=c==="y"?Zt:Qt,p=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],b=s[c]-n.rects.reference[c],v=yr(i),O=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,T=p/2-b/2,C=f[x],S=O-y[d]-f[h],E=O/2-y[d]/2+T,P=Jn(C,E,S),$=c;n.modifiersData[r]=(t={},t[$]=P,t.centerOffset=P-E,t)}}function Gy(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||sd(t.elements.popper,a)&&(t.elements.arrow=a))}const Ky={name:"arrow",enabled:!0,phase:"main",fn:qy,effect:Gy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function On(e){return e.split("-")[1]}var Yy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xy(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Tn(n*a)/a||0,y:Tn(r*a)/a||0}}function oc(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,y=s.x,x=y===void 0?0:y,h=s.y,p=h===void 0?0:h,b=typeof d=="function"?d({x,y:p}):{x,y:p};x=b.x,p=b.y;var v=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),T=Lt,C=At,S=window;if(u){var E=yr(n),P="clientHeight",$="clientWidth";if(E===Wt(n)&&(E=zo(n),So(E).position!=="static"&&l==="absolute"&&(P="scrollHeight",$="scrollWidth")),E=E,a===At||(a===Lt||a===Qt)&&i===ir){C=Zt;var I=f&&E===S&&S.visualViewport?S.visualViewport.height:E[P];p-=I-r.height,p*=c?1:-1}if(a===Lt||(a===At||a===Zt)&&i===ir){T=Qt;var N=f&&E===S&&S.visualViewport?S.visualViewport.width:E[$];x-=N-r.width,x*=c?1:-1}}var A=Object.assign({position:l},u&&Yy),g=d===!0?Xy({x,y:p},Wt(n)):{x,y:p};if(x=g.x,p=g.y,c){var j;return Object.assign({},A,(j={},j[C]=O?"0":"",j[T]=v?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+x+"px, "+p+"px)":"translate3d("+x+"px, "+p+"px, 0)",j))}return Object.assign({},A,(t={},t[C]=O?p+"px":"",t[T]=v?x+"px":"",t.transform="",t))}function Jy(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:mo(t.placement),variation:On(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,oc(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,oc(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jy,data:{}};var Rr={passive:!0};function Qy(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=Wt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Rr)}),l&&c.addEventListener("resize",n.update,Rr),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Rr)}),l&&c.removeEventListener("resize",n.update,Rr)}}const ev={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qy,data:{}};var tv={left:"right",right:"left",bottom:"top",top:"bottom"};function Wr(e){return e.replace(/left|right|bottom|top/g,function(t){return tv[t]})}var ov={start:"end",end:"start"};function nc(e){return e.replace(/start|end/g,function(t){return ov[t]})}function Is(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function js(e){return Sn(zo(e)).left+Is(e).scrollLeft}function nv(e,t){var n=Wt(e),r=zo(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;var u=id();(u||!u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l+js(e),y:c}}function rv(e){var t,n=zo(e),r=Is(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Xo(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Xo(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+js(e),c=-r.scrollTop;return So(a||n).direction==="rtl"&&(l+=Xo(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Ms(e){var t=So(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function dd(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:Yt(e)&&Ms(e)?e:dd($a(e))}function Zn(e,t){var n;t===void 0&&(t=[]);var r=dd(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Wt(r),s=a?[i].concat(i.visualViewport||[],Ms(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(Zn($a(s)))}function Ui(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function av(e,t){var n=Sn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rc(e,t,n){return t===rd?Ui(nv(e,n)):en(t)?av(t,n):Ui(rv(zo(e)))}function iv(e){var t=Zn($a(e)),n=["absolute","fixed"].indexOf(So(e).position)>=0,r=n&&Yt(e)?yr(e):e;return en(r)?t.filter(function(a){return en(a)&&sd(a,r)&&yo(a)!=="body"}):[]}function sv(e,t,n,r){var a=t==="clippingParents"?iv(e):[].concat(t),i=[].concat(a,[n]),s=i[0],l=i.reduce(function(c,u){var d=rc(e,u,r);return c.top=Xo(d.top,c.top),c.right=Zr(d.right,c.right),c.bottom=Zr(d.bottom,c.bottom),c.left=Xo(d.left,c.left),c},rc(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function pd(e){var t=e.reference,n=e.element,r=e.placement,a=r?mo(r):null,i=r?On(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(a){case At:c={x:s,y:t.y-n.height};break;case Zt:c={x:s,y:t.y+t.height};break;case Qt:c={x:t.x+t.width,y:l};break;case Lt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=a?$s(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case wn:c[u]=c[u]-(t[d]/2-n[d]/2);break;case ir:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function sr(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?ky:l,u=n.rootBoundary,d=u===void 0?rd:u,f=n.elementContext,y=f===void 0?Ln:f,x=n.altBoundary,h=x===void 0?!1:x,p=n.padding,b=p===void 0?0:p,v=cd(typeof b!="number"?b:ud(b,br)),O=y===Ln?Py:Ln,T=e.rects.popper,C=e.elements[h?O:y],S=sv(en(C)?C:C.contextElement||zo(e.elements.popper),c,d,s),E=Sn(e.elements.reference),P=pd({reference:E,element:T,placement:a}),$=Ui(Object.assign({},T,P)),I=y===Ln?$:E,N={top:S.top-I.top+v.top,bottom:I.bottom-S.bottom+v.bottom,left:S.left-I.left+v.left,right:I.right-S.right+v.right},A=e.modifiersData.offset;if(y===Ln&&A){var g=A[a];Object.keys(N).forEach(function(j){var R=[Qt,Zt].indexOf(j)>=0?1:-1,M=[At,Zt].indexOf(j)>=0?"y":"x";N[j]+=g[M]*R})}return N}function lv(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ad:c,d=On(r),f=d?l?ec:ec.filter(function(h){return On(h)===d}):br,y=f.filter(function(h){return u.indexOf(h)>=0});y.length===0&&(y=f);var x=y.reduce(function(h,p){return h[p]=sr(e,{placement:p,boundary:a,rootBoundary:i,padding:s})[mo(p)],h},{});return Object.keys(x).sort(function(h,p){return x[h]-x[p]})}function cv(e){if(mo(e)===ks)return[];var t=Wr(e);return[nc(e),t,nc(t)]}function uv(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,y=n.altBoundary,x=n.flipVariations,h=x===void 0?!0:x,p=n.allowedAutoPlacements,b=t.options.placement,v=mo(b),O=v===b,T=c||(O||!h?[Wr(b)]:cv(b)),C=[b].concat(T).reduce(function(te,K){return te.concat(mo(K)===ks?lv(t,{placement:K,boundary:d,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:p}):K)},[]),S=t.rects.reference,E=t.rects.popper,P=new Map,$=!0,I=C[0],N=0;N<C.length;N++){var A=C[N],g=mo(A),j=On(A)===wn,R=[At,Zt].indexOf(g)>=0,M=R?"width":"height",k=sr(t,{placement:A,boundary:d,rootBoundary:f,altBoundary:y,padding:u}),z=R?j?Qt:Lt:j?Zt:At;S[M]>E[M]&&(z=Wr(z));var F=Wr(z),_=[];if(i&&_.push(k[g]<=0),l&&_.push(k[z]<=0,k[F]<=0),_.every(function(te){return te})){I=A,$=!1;break}P.set(A,_)}if($)for(var B=h?3:1,L=function(K){var U=C.find(function(ne){var le=P.get(ne);if(le)return le.slice(0,K).every(function(Z){return Z})});if(U)return I=U,"break"},G=B;G>0;G--){var J=L(G);if(J==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const dv={name:"flip",enabled:!0,phase:"main",fn:uv,requiresIfExists:["offset"],data:{_skip:!1}};function ac(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ic(e){return[At,Qt,Zt,Lt].some(function(t){return e[t]>=0})}function pv(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=sr(t,{elementContext:"reference"}),l=sr(t,{altBoundary:!0}),c=ac(s,r),u=ac(l,a,i),d=ic(c),f=ic(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const fv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pv};function mv(e,t,n){var r=mo(e),a=[Lt,At].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Lt,Qt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function gv(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=ad.reduce(function(d,f){return d[f]=mv(f,t.rects,i),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const hv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gv};function bv(e){var t=e.state,n=e.name;t.modifiersData[n]=pd({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const yv={name:"popperOffsets",enabled:!0,phase:"read",fn:bv,data:{}};function vv(e){return e==="x"?"y":"x"}function xv(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,y=n.tether,x=y===void 0?!0:y,h=n.tetherOffset,p=h===void 0?0:h,b=sr(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=mo(t.placement),O=On(t.placement),T=!O,C=$s(v),S=vv(C),E=t.modifiersData.popperOffsets,P=t.rects.reference,$=t.rects.popper,I=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,g={x:0,y:0};if(E){if(i){var j,R=C==="y"?At:Lt,M=C==="y"?Zt:Qt,k=C==="y"?"height":"width",z=E[C],F=z+b[R],_=z-b[M],B=x?-$[k]/2:0,L=O===wn?P[k]:$[k],G=O===wn?-$[k]:-P[k],J=t.elements.arrow,te=x&&J?Rs(J):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ld(),U=K[R],ne=K[M],le=Jn(0,P[k],te[k]),Z=T?P[k]/2-B-le-U-N.mainAxis:L-le-U-N.mainAxis,X=T?-P[k]/2+B+le+ne+N.mainAxis:G+le+ne+N.mainAxis,ce=t.elements.arrow&&yr(t.elements.arrow),W=ce?C==="y"?ce.clientTop||0:ce.clientLeft||0:0,ae=(j=A?.[C])!=null?j:0,se=z+Z-ae-W,ue=z+X-ae,ke=Jn(x?Zr(F,se):F,z,x?Xo(_,ue):_);E[C]=ke,g[C]=ke-z}if(l){var Ee,oe=C==="x"?At:Lt,Be=C==="x"?Zt:Qt,Se=E[S],ye=S==="y"?"height":"width",ie=Se+b[oe],Fe=Se-b[Be],Me=[At,Lt].indexOf(v)!==-1,re=(Ee=A?.[S])!=null?Ee:0,ee=Me?ie:Se-P[ye]-$[ye]-re+N.altAxis,xe=Me?Se+P[ye]+$[ye]-re-N.altAxis:Fe,Oe=x&&Me?Uy(ee,Se,xe):Jn(x?ee:ie,Se,x?xe:Fe);E[S]=Oe,g[S]=Oe-Se}t.modifiersData[r]=g}}const Cv={name:"preventOverflow",enabled:!0,phase:"main",fn:xv,requiresIfExists:["offset"]};function wv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tv(e){return e===Wt(e)||!Yt(e)?Is(e):wv(e)}function Sv(e){var t=e.getBoundingClientRect(),n=Tn(t.width)/e.offsetWidth||1,r=Tn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ov(e,t,n){n===void 0&&(n=!1);var r=Yt(t),a=Yt(t)&&Sv(t),i=zo(t),s=Sn(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yo(t)!=="body"||Ms(i))&&(l=Tv(t)),Yt(t)?(c=Sn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=js(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Ev(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function kv(e){var t=Ev(e);return By.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Pv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Rv(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sc={placement:"bottom",modifiers:[],strategy:"absolute"};function lc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function $v(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?sc:a;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},sc,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],y=!1,x={state:d,setOptions:function(v){var O=typeof v=="function"?v(d.options):v;p(),d.options=Object.assign({},i,d.options,O),d.scrollParents={reference:en(l)?Zn(l):l.contextElement?Zn(l.contextElement):[],popper:Zn(c)};var T=kv(Rv([].concat(r,d.options.modifiers)));return d.orderedModifiers=T.filter(function(C){return C.enabled}),h(),x.update()},forceUpdate:function(){if(!y){var v=d.elements,O=v.reference,T=v.popper;if(lc(O,T)){d.rects={reference:Ov(O,yr(T),d.options.strategy==="fixed"),popper:Rs(T)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var S=d.orderedModifiers[C],E=S.fn,P=S.options,$=P===void 0?{}:P,I=S.name;typeof E=="function"&&(d=E({state:d,options:$,name:I,instance:x})||d)}}}},update:Pv(function(){return new Promise(function(b){x.forceUpdate(),b(d)})}),destroy:function(){p(),y=!0}};if(!lc(l,c))return x;x.setOptions(u).then(function(b){!y&&u.onFirstUpdate&&u.onFirstUpdate(b)});function h(){d.orderedModifiers.forEach(function(b){var v=b.name,O=b.options,T=O===void 0?{}:O,C=b.effect;if(typeof C=="function"){var S=C({state:d,name:v,instance:x,options:T}),E=function(){};f.push(S||E)}})}function p(){f.forEach(function(b){return b()}),f=[]}return x}}var Iv=[ev,yv,Zy,Vy,hv,dv,Cv,Ky,fv],jv=$v({defaultModifiers:Iv});function io(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...i}=e,s=a?{}:Du(n,r),{props:l,internalRef:c}=Bu({...i,externalSlotProps:s}),u=nt(c,s?.ref,e.additionalProps?.ref);return Lu(t,{...l,ref:u},r)}function Mv(e){return typeof e=="function"?e():e}const lr=w.forwardRef(function(t,n){const{children:r,container:a,disablePortal:i=!1}=t,[s,l]=w.useState(null),c=nt(w.isValidElement(r)?Eo(r):null,n);if(Jt(()=>{i||l(Mv(a)||document.body)},[a,i]),Jt(()=>{if(s&&!i)return ji(n,s),()=>{ji(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const u={ref:c};return w.cloneElement(r,u)}return r}return s&&xp.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(lr.propTypes={children:o.node,container:o.oneOfType([bo,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(lr.propTypes=cs(lr.propTypes));function Nv(e){return ge("MuiPopper",e)}be("MuiPopper",["root"]);function Av(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Qr(e){return typeof e=="function"?e():e}function Ia(e){return e.nodeType!==void 0}function Lv(e){return!Ia(e)}const Dv=e=>{const{classes:t}=e;return he({root:["root"]},Nv,t)},Bv={},Fv=w.forwardRef(function(t,n){const{anchorEl:r,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:y={},slots:x={},TransitionProps:h,ownerState:p,...b}=t,v=w.useRef(null),O=nt(v,n),T=w.useRef(null),C=nt(T,f),S=w.useRef(C);Jt(()=>{S.current=C},[C]),w.useImperativeHandle(f,()=>T.current,[]);const E=Av(u,i),[P,$]=w.useState(E),[I,N]=w.useState(Qr(r));w.useEffect(()=>{T.current&&T.current.forceUpdate()}),w.useEffect(()=>{r&&N(Qr(r))},[r]),Jt(()=>{if(!I||!c)return;const M=F=>{$(F.placement)};if(process.env.NODE_ENV!=="production"&&I&&Ia(I)&&I.nodeType===1){const F=I.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.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(`
|
|
249
|
+
`))}let k=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{M(F)}}];l!=null&&(k=k.concat(l)),d&&d.modifiers!=null&&(k=k.concat(d.modifiers));const z=jv(I,v.current,{placement:E,...d,modifiers:k});return S.current(z),()=>{z.destroy(),S.current(null)}},[I,s,l,c,d,E]);const A={placement:P};h!==null&&(A.TransitionProps=h);const g=Dv(t),j=x.root??"div",R=io({elementType:j,externalSlotProps:y.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:g.root});return m.jsx(j,{...R,children:typeof a=="function"?a(A):a})}),fd=w.forwardRef(function(t,n){const{anchorEl:r,children:a,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:y=Bv,popperRef:x,style:h,transition:p=!1,slotProps:b={},slots:v={},...O}=t,[T,C]=w.useState(!0),S=()=>{C(!1)},E=()=>{C(!0)};if(!c&&!d&&(!p||T))return null;let P;if(i)P=i;else if(r){const N=Qr(r);P=N&&Ia(N)?ht(N).body:ht(null).body}const $=!d&&c&&(!p||T)?"none":void 0,I=p?{in:d,onEnter:S,onExited:E}:void 0;return m.jsx(lr,{disablePortal:l,container:P,children:m.jsx(Fv,{anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:p?!T:d,placement:f,popperOptions:y,popperRef:x,slotProps:b,slots:v,...O,style:{position:"fixed",top:0,left:0,display:$,...h},TransitionProps:I,children:a})})});process.env.NODE_ENV!=="production"&&(fd.propTypes={anchorEl:Tt(o.oneOfType([bo,o.object,o.func]),e=>{if(e.open){const t=Qr(e.anchorEl);if(t&&Ia(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(`
|
|
250
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Lv(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
251
|
+
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([bo,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Mt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const zv=D(fd,{name:"MuiPopper",slot:"Root"})({}),vr=w.forwardRef(function(t,n){const r=Pn(),a=we({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:y,open:x,placement:h,popperOptions:p,popperRef:b,transition:v,slots:O,slotProps:T,...C}=a,S=O?.root??l?.Root,E={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:y,open:x,placement:h,popperOptions:p,popperRef:b,transition:v,...C};return m.jsx(zv,{as:s,direction:r?"rtl":"ltr",slots:{root:S},slotProps:T??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(vr.propTypes={anchorEl:o.oneOfType([bo,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([bo,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Mt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function Vv(e){return ge("MuiTooltip",e)}const Je=be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function _v(e){return Math.round(e*1e5)/1e5}const Wv=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${V(i.split("-")[0])}`],arrow:["arrow"]};return he(s,Vv,t)},Uv=D(vr,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Je.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Je.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Je.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Je.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Je.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Je.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Je.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Je.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Hv=D("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${V(n.placement.split("-")[0])}`]]}})(pe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Je.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Je.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Je.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Je.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_v(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Je.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Je.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Je.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Je.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Je.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Je.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Je.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Je.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Je.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Je.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qv=D("span",{name:"MuiTooltip",slot:"Arrow"})(pe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let $r=!1;const cc=new ka;let Dn={x:0,y:0};function Ir(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const xr=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:i,classes:s,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:y=!1,disableTouchListener:x=!1,enterDelay:h=100,enterNextDelay:p=0,enterTouchDelay:b=700,followCursor:v=!1,id:O,leaveDelay:T=0,leaveTouchDelay:C=1500,onClose:S,onOpen:E,open:P,placement:$="bottom",PopperComponent:I,PopperProps:N={},slotProps:A={},slots:g={},title:j,TransitionComponent:R,TransitionProps:M,...k}=r,z=w.isValidElement(i)?i:m.jsx("span",{children:i}),F=xt(),_=Pn(),[B,L]=w.useState(),[G,J]=w.useState(null),te=w.useRef(!1),K=y||v,U=jo(),ne=jo(),le=jo(),Z=jo(),[X,ce]=po({controlled:P,default:!1,name:"Tooltip",state:"open"});let W=X;if(process.env.NODE_ENV!=="production"){const{current:je}=w.useRef(P!==void 0);w.useEffect(()=>{B&&B.disabled&&!je&&j!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
252
|
+
`))},[j,B,je])}const ae=vo(O),se=w.useRef(),ue=vt(()=>{se.current!==void 0&&(document.body.style.WebkitUserSelect=se.current,se.current=void 0),Z.clear()});w.useEffect(()=>ue,[ue]);const ke=je=>{cc.clear(),$r=!0,ce(!0),E&&!W&&E(je)},Ee=vt(je=>{cc.start(800+T,()=>{$r=!1}),ce(!1),S&&W&&S(je),U.start(F.transitions.duration.shortest,()=>{te.current=!1})}),oe=je=>{te.current&&je.type!=="touchstart"||(B&&B.removeAttribute("title"),ne.clear(),le.clear(),h||$r&&p?ne.start($r?p:h,()=>{ke(je)}):ke(je))},Be=je=>{ne.clear(),le.start(T,()=>{Ee(je)})},[,Se]=w.useState(!1),ye=je=>{Do(je.target)||(Se(!1),Be(je))},ie=je=>{B||L(je.currentTarget),Do(je.target)&&(Se(!0),oe(je))},Fe=je=>{te.current=!0;const Pt=z.props;Pt.onTouchStart&&Pt.onTouchStart(je)},Me=je=>{Fe(je),le.clear(),U.clear(),ue(),se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Z.start(b,()=>{document.body.style.WebkitUserSelect=se.current,oe(je)})},re=je=>{z.props.onTouchEnd&&z.props.onTouchEnd(je),ue(),le.start(C,()=>{Ee(je)})};w.useEffect(()=>{if(!W)return;function je(Pt){Pt.key==="Escape"&&Ee(Pt)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[Ee,W]);const ee=nt(Eo(z),L,n);!j&&j!==0&&(W=!1);const xe=w.useRef(),Oe=je=>{const Pt=z.props;Pt.onMouseMove&&Pt.onMouseMove(je),Dn={x:je.clientX,y:je.clientY},xe.current&&xe.current.update()},Pe={},Te=typeof j=="string";u?(Pe.title=!W&&Te&&!f?j:null,Pe["aria-describedby"]=W?ae:null):(Pe["aria-label"]=Te?j:null,Pe["aria-labelledby"]=W&&!Te?ae:null);const de={...Pe,...k,...z.props,className:Q(k.className,z.props.className),onTouchStart:Fe,ref:ee,...v?{onMouseMove:Oe}:{}};process.env.NODE_ENV!=="production"&&(de["data-mui-internal-clone-element"]=!0,w.useEffect(()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
253
|
+
`))},[B]));const Ve={};x||(de.onTouchStart=Me,de.onTouchEnd=re),f||(de.onMouseOver=Ir(oe,de.onMouseOver),de.onMouseLeave=Ir(Be,de.onMouseLeave),K||(Ve.onMouseOver=oe,Ve.onMouseLeave=Be)),d||(de.onFocus=Ir(ie,de.onFocus),de.onBlur=Ir(ye,de.onBlur),K||(Ve.onFocus=ie,Ve.onBlur=ye)),process.env.NODE_ENV!=="production"&&z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
|
|
254
|
+
`));const Ne={...r,isRtl:_,arrow:a,disableInteractive:K,placement:$,PopperComponentProp:I,touch:te.current},We=typeof A.popper=="function"?A.popper(Ne):A.popper,$t=w.useMemo(()=>{let je=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return N.popperOptions?.modifiers&&(je=je.concat(N.popperOptions.modifiers)),We?.popperOptions?.modifiers&&(je=je.concat(We.popperOptions.modifiers)),{...N.popperOptions,...We?.popperOptions,modifiers:je}},[G,N.popperOptions,We?.popperOptions]),Ot=Wv(Ne),ft=typeof A.transition=="function"?A.transition(Ne):A.transition,Ce={slots:{popper:l.Popper,transition:l.Transition??R,tooltip:l.Tooltip,arrow:l.Arrow,...g},slotProps:{arrow:A.arrow??c.arrow,popper:{...N,...We??c.popper},tooltip:A.tooltip??c.tooltip,transition:{...M,...ft??c.transition}}},[Ae,Ze]=me("popper",{elementType:Uv,externalForwardedProps:Ce,ownerState:Ne,className:Q(Ot.popper,N?.className)}),[bt,_e]=me("transition",{elementType:Qo,externalForwardedProps:Ce,ownerState:Ne}),[rt,It]=me("tooltip",{elementType:Hv,className:Ot.tooltip,externalForwardedProps:Ce,ownerState:Ne}),[kt,mt]=me("arrow",{elementType:qv,className:Ot.arrow,externalForwardedProps:Ce,ownerState:Ne,ref:J});return m.jsxs(w.Fragment,{children:[w.cloneElement(z,de),m.jsx(Ae,{as:I??vr,placement:$,anchorEl:v?{getBoundingClientRect:()=>({top:Dn.y,left:Dn.x,right:Dn.x,bottom:Dn.y,width:0,height:0})}:B,popperRef:xe,open:B?W:!1,id:ae,transition:!0,...Ve,...Ze,popperOptions:$t,children:({TransitionProps:je})=>m.jsx(bt,{timeout:F.transitions.duration.shorter,...je,..._e,children:m.jsxs(rt,{...It,children:[j,a?m.jsx(kt,{...mt}):null]})})})]})});process.env.NODE_ENV!=="production"&&(xr.propTypes={arrow:o.bool,children:Oo.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function uc({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,a)=>n(r)===n(t[a]))}function dc(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Gv(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:a="any",stringify:i,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=s?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=dc(d));const f=d?l.filter(y=>{let x=(i||u)(y);return n&&(x=x.toLowerCase()),t&&(x=dc(x)),a==="start"?x.startsWith(d):x.includes(d)}):l;return typeof r=="number"?f.slice(0,r):f}}const Kv=Gv(),pc=5,Yv=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),Xv=[];function fc(e,t,n,r){if(t||e==null||r)return"";const a=n(e);return typeof a=="string"?a:""}function Jv(e){const{unstable_isActiveElementInListbox:t=Yv,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?Xv:null,disableClearable:f=!1,disableCloseOnSelect:y=!1,disabled:x,disabledItemsFocusable:h=!1,disableListWrap:p=!1,filterOptions:b=Kv,filterSelectedOptions:v=!1,freeSolo:O=!1,getOptionDisabled:T,getOptionKey:C,getOptionLabel:S=Y=>Y.label??Y,groupBy:E,handleHomeEndKeys:P=!e.freeSolo,id:$,includeInputInList:I=!1,inputValue:N,isOptionEqualToValue:A=(Y,H)=>Y===H,multiple:g=!1,onChange:j,onClose:R,onHighlightChange:M,onInputChange:k,onOpen:z,open:F,openOnFocus:_=!1,options:B,readOnly:L=!1,renderValue:G,selectOnFocus:J=!e.freeSolo,value:te}=e,K=vo($);let U=S;U=Y=>{const H=S(Y);if(typeof H!="string"){if(process.env.NODE_ENV!=="production"){const fe=H===void 0?"undefined":`${typeof H} (${H})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${fe} instead of a string for ${JSON.stringify(Y)}.`)}return String(H)}return H};const ne=w.useRef(!1),le=w.useRef(!0),Z=w.useRef(null),X=w.useRef(null),[ce,W]=w.useState(null),[ae,se]=w.useState(-1),ue=a?0:-1,ke=w.useRef(ue),Ee=w.useRef(fc(d??te,g,U)).current,[oe,Be]=po({controlled:te,default:d,name:u}),[Se,ye]=po({controlled:N,default:Ee,name:u,state:"inputValue"}),[ie,Fe]=w.useState(!1),Me=w.useCallback((Y,H,fe)=>{if(!(g?oe.length<H.length:H!==null)&&!l)return;const Ie=fc(H,g,U,G);Se!==Ie&&(ye(Ie),k&&k(Y,Ie,fe))},[U,Se,g,k,ye,l,oe,G]),[re,ee]=po({controlled:F,default:!1,name:u,state:"open"}),[xe,Oe]=w.useState(!0),Pe=!g&&oe!=null&&Se===U(oe),Te=re&&!L,de=Te?b(B.filter(Y=>!(v&&(g?oe:[oe]).some(H=>H!==null&&A(Y,H)))),{inputValue:Pe&&xe?"":Se,getOptionLabel:U}):[],Ve=vs({filteredOptions:de,value:oe,inputValue:Se});w.useEffect(()=>{const Y=oe!==Ve.value;ie&&!Y||O&&!Y||Me(null,oe,"reset")},[oe,Me,ie,Ve.value,O]);const Ne=re&&de.length>0&&!L,We=vt(Y=>{if(Y===-1)Z.current.focus();else{const H=G?"data-item-index":"data-tag-index";ce.querySelector(`[${H}="${Y}"]`).focus()}});w.useEffect(()=>{g&&ae>oe.length-1&&(se(-1),We(-1))},[oe,g,ae,We]);function $t(Y,H){if(!X.current||Y<0||Y>=de.length)return-1;let fe=Y;for(;;){const $e=X.current.querySelector(`[data-option-index="${fe}"]`),Ie=h?!1:!$e||$e.disabled||$e.getAttribute("aria-disabled")==="true";if($e&&$e.hasAttribute("tabindex")&&!Ie)return fe;if(H==="next"?fe=(fe+1)%de.length:fe=(fe-1+de.length)%de.length,fe===Y)return-1}}const Ot=vt(({event:Y,index:H,reason:fe})=>{if(ke.current=H,H===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${K}-option-${H}`),M&&["mouse","keyboard","touch"].includes(fe)&&M(Y,H===-1?null:de[H],fe),!X.current)return;const $e=X.current.querySelector(`[role="option"].${n}-focused`);$e&&($e.classList.remove(`${n}-focused`),$e.classList.remove(`${n}-focusVisible`));let Ie=X.current;if(X.current.getAttribute("role")!=="listbox"&&(Ie=X.current.parentElement.querySelector('[role="listbox"]')),!Ie)return;if(H===-1){Ie.scrollTop=0;return}const it=X.current.querySelector(`[data-option-index="${H}"]`);if(it&&(it.classList.add(`${n}-focused`),fe==="keyboard"&&it.classList.add(`${n}-focusVisible`),Ie.scrollHeight>Ie.clientHeight&&fe!=="mouse"&&fe!=="touch")){const dt=it,Nt=Ie.clientHeight+Ie.scrollTop,rn=dt.offsetTop+dt.offsetHeight;rn>Nt?Ie.scrollTop=rn-Ie.clientHeight:dt.offsetTop-dt.offsetHeight*(E?1.3:0)<Ie.scrollTop&&(Ie.scrollTop=dt.offsetTop-dt.offsetHeight*(E?1.3:0))}}),ft=vt(({event:Y,diff:H,direction:fe="next",reason:$e})=>{if(!Te)return;const it=$t((()=>{const dt=de.length-1;if(H==="reset")return ue;if(H==="start")return 0;if(H==="end")return dt;const Nt=ke.current+H;return Nt<0?Nt===-1&&I?-1:p&&ke.current!==-1||Math.abs(H)>1?0:dt:Nt>dt?Nt===dt+1&&I?-1:p||Math.abs(H)>1?dt:0:Nt})(),fe);if(Ot({index:it,reason:$e,event:Y}),r&&H!=="reset")if(it===-1)Z.current.value=Se;else{const dt=U(de[it]);Z.current.value=dt,dt.toLowerCase().indexOf(Se.toLowerCase())===0&&Se.length>0&&Z.current.setSelectionRange(Se.length,dt.length)}}),Ce=!uc({array1:Ve.filteredOptions,array2:de,parser:U}),Ae=()=>{const Y=(H,fe)=>{const $e=H?U(H):"",Ie=fe?U(fe):"";return $e===Ie};if(ke.current!==-1&&!uc({array1:Ve.filteredOptions,array2:de,parser:U})&&Ve.inputValue===Se&&(g?oe.length===Ve.value.length&&Ve.value.every((H,fe)=>U(oe[fe])===U(H)):Y(Ve.value,oe))){const H=Ve.filteredOptions[ke.current];if(H)return de.findIndex(fe=>U(fe)===U(H))}return-1},Ze=w.useCallback(()=>{if(!Te)return;const Y=Ae();if(Y!==-1){ke.current=Y;return}const H=g?oe[0]:oe;if(de.length===0||H==null){ft({diff:"reset"});return}if(X.current){if(H!=null){const fe=de[ke.current];if(g&&fe&&oe.findIndex(Ie=>A(fe,Ie))!==-1)return;const $e=de.findIndex(Ie=>A(Ie,H));$e===-1?ft({diff:"reset"}):Ot({index:$e});return}if(ke.current>=de.length-1){Ot({index:de.length-1});return}Ot({index:ke.current})}},[de.length,g?!1:oe,ft,Ot,Te,Se,g]),bt=vt(Y=>{ji(X,Y),Y&&Ze()});process.env.NODE_ENV!=="production"&&w.useEffect(()=>{(!Z.current||Z.current.nodeName!=="INPUT")&&(Z.current&&Z.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
255
|
+
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${Z.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
|
|
256
|
+
`)))},[u]),w.useEffect(()=>{(Ce||Te)&&Ze()},[Ze,Ce,Te]);const _e=Y=>{re||(ee(!0),Oe(!0),z&&z(Y))},rt=(Y,H)=>{re&&(ee(!1),R&&R(Y,H))},It=(Y,H,fe,$e)=>{if(g){if(oe.length===H.length&&oe.every((Ie,it)=>Ie===H[it]))return}else if(oe===H)return;j&&j(Y,H,fe,$e),Be(H)},kt=w.useRef(!1),mt=(Y,H,fe="selectOption",$e="options")=>{let Ie=fe,it=H;if(g){if(it=Array.isArray(oe)?oe.slice():[],process.env.NODE_ENV!=="production"){const Nt=it.filter(rn=>A(H,rn));Nt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Nt.length} matches.`].join(`
|
|
257
|
+
`))}const dt=it.findIndex(Nt=>A(H,Nt));dt===-1?it.push(H):$e!=="freeSolo"&&(it.splice(dt,1),Ie="removeOption")}Me(Y,it,Ie),It(Y,it,Ie,{option:H}),!y&&(!Y||!Y.ctrlKey&&!Y.metaKey)&&rt(Y,Ie),(s===!0||s==="touch"&&kt.current||s==="mouse"&&!kt.current)&&Z.current.blur()};function je(Y,H){if(Y===-1)return-1;let fe=Y;for(;;){if(H==="next"&&fe===oe.length||H==="previous"&&fe===-1)return-1;const $e=G?"data-item-index":"data-tag-index",Ie=ce.querySelector(`[${$e}="${fe}"]`);if(!Ie||!Ie.hasAttribute("tabindex")||Ie.disabled||Ie.getAttribute("aria-disabled")==="true")fe+=H==="next"?1:-1;else return fe}}const Pt=(Y,H)=>{if(!g)return;Se===""&&rt(Y,"toggleInput");let fe=ae;ae===-1?Se===""&&H==="previous"&&(fe=oe.length-1):(fe+=H==="next"?1:-1,fe<0&&(fe=0),fe===oe.length&&(fe=-1)),fe=je(fe,H),se(fe),We(fe)},wr=Y=>{ne.current=!0,ye(""),k&&k(Y,"","clear"),It(Y,g?[]:null,"clear")},Ha=Y=>H=>{if(Y.onKeyDown&&Y.onKeyDown(H),!H.defaultMuiPrevented&&(ae!==-1&&!["ArrowLeft","ArrowRight"].includes(H.key)&&(se(-1),We(-1)),H.which!==229))switch(H.key){case"Home":Te&&P&&(H.preventDefault(),ft({diff:"start",direction:"next",reason:"keyboard",event:H}));break;case"End":Te&&P&&(H.preventDefault(),ft({diff:"end",direction:"previous",reason:"keyboard",event:H}));break;case"PageUp":H.preventDefault(),ft({diff:-pc,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"PageDown":H.preventDefault(),ft({diff:pc,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowDown":H.preventDefault(),ft({diff:1,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowUp":H.preventDefault(),ft({diff:-1,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"ArrowLeft":!g&&G&&oe!=null?(se(0),We(0)):Pt(H,"previous");break;case"ArrowRight":!g&&G?(se(-1),We(-1)):Pt(H,"next");break;case"Enter":if(ke.current!==-1&&Te){const fe=de[ke.current],$e=T?T(fe):!1;if(H.preventDefault(),$e)return;mt(H,fe,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else O&&Se!==""&&Pe===!1&&(g&&H.preventDefault(),mt(H,Se,"createOption","freeSolo"));break;case"Escape":Te?(H.preventDefault(),H.stopPropagation(),rt(H,"escape")):c&&(Se!==""||g&&oe.length>0||G)&&(H.preventDefault(),H.stopPropagation(),wr(H));break;case"Backspace":if(g&&!L&&Se===""&&oe.length>0){const fe=ae===-1?oe.length-1:ae,$e=oe.slice();$e.splice(fe,1),It(H,$e,"removeOption",{option:oe[fe]})}!g&&G&&!L&&(Be(null),se(-1),We(-1));break;case"Delete":if(g&&!L&&Se===""&&oe.length>0&&ae!==-1){const fe=ae,$e=oe.slice();$e.splice(fe,1),It(H,$e,"removeOption",{option:oe[fe]})}!g&&G&&!L&&(Be(null),se(-1),We(-1));break}},on=Y=>{Fe(!0),ae!==-1&&(se(-1),We(-1)),_&&!ne.current&&_e(Y)},nn=Y=>{if(t(X)){Z.current.focus();return}Fe(!1),le.current=!0,ne.current=!1,i&&ke.current!==-1&&Te?mt(Y,de[ke.current],"blur"):i&&O&&Se!==""?mt(Y,Se,"blur","freeSolo"):l&&Me(Y,oe,"blur"),rt(Y,"blur")},$n=Y=>{const H=Y.target.value;Se!==H&&(ye(H),Oe(!1),k&&k(Y,H,"input")),H===""?!f&&!g&&It(Y,null,"clear"):_e(Y)},qa=Y=>{const H=Number(Y.currentTarget.getAttribute("data-option-index"));ke.current!==H&&Ot({event:Y,index:H,reason:"mouse"})},Ga=Y=>{Ot({event:Y,index:Number(Y.currentTarget.getAttribute("data-option-index")),reason:"touch"}),kt.current=!0},Ka=Y=>{const H=Number(Y.currentTarget.getAttribute("data-option-index"));mt(Y,de[H],"selectOption"),kt.current=!1},Ya=Y=>H=>{const fe=oe.slice();fe.splice(Y,1),It(H,fe,"removeOption",{option:oe[Y]})},In=Y=>{It(Y,null,"removeOption",{option:oe})},yt=Y=>{re?rt(Y,"toggleInput"):_e(Y)},Ct=Y=>{Y.currentTarget.contains(Y.target)&&Y.target.getAttribute("id")!==K&&Y.preventDefault()},ko=Y=>{Y.currentTarget.contains(Y.target)&&(Z.current.focus(),J&&le.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),le.current=!1)},Xa=Y=>{!x&&(Se===""||!re)&&yt(Y)};let jn=O&&Se.length>0;jn=jn||(g?oe.length>0:oe!==null);let Tr=de;if(E){const Y=new Map;let H=!1;Tr=de.reduce((fe,$e,Ie)=>{const it=E($e);return fe.length>0&&fe[fe.length-1].group===it?fe[fe.length-1].options.push($e):(process.env.NODE_ENV!=="production"&&(Y.get(it)&&!H&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),H=!0),Y.set(it,!0)),fe.push({key:Ie,index:Ie,group:it,options:[$e]})),fe},[])}return x&&ie&&nn(),{getRootProps:(Y={})=>({...Y,onKeyDown:Ha(Y),onMouseDown:Ct,onClick:ko}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:Se,onBlur:nn,onFocus:on,onChange:$n,onMouseDown:Xa,"aria-activedescendant":Te?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ne?`${K}-listbox`:void 0,"aria-expanded":Ne,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:x}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:wr}),getItemProps:({index:Y=0}={})=>({...g&&{key:Y},...G?{"data-item-index":Y}:{"data-tag-index":Y},tabIndex:-1,...!L&&{onDelete:g?Ya(Y):In}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:yt}),getTagProps:({index:Y})=>({key:Y,"data-tag-index":Y,tabIndex:-1,...!L&&{onDelete:Ya(Y)}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:bt,onMouseDown:Y=>{Y.preventDefault()}}),getOptionProps:({index:Y,option:H})=>{const fe=(g?oe:[oe]).some(Ie=>Ie!=null&&A(H,Ie)),$e=T?T(H):!1;return{key:C?.(H)??U(H),tabIndex:-1,role:"option",id:`${K}-option-${Y}`,onMouseMove:qa,onClick:Ka,onTouchStart:Ga,"data-option-index":Y,"aria-disabled":$e,"aria-selected":fe}},id:K,inputValue:Se,value:oe,dirty:jn,expanded:Te&&ce,popupOpen:Te,focused:ie||ae!==-1,anchorEl:ce,setAnchorEl:W,focusedItem:ae,focusedTag:ae,groupedOptions:Tr}}function Zv(e){return ge("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Qv=e=>{const{classes:t,color:n,disableGutters:r,inset:a,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${V(n)}`,!r&&"gutters",a&&"inset",!i&&"sticky"]};return he(s,Zv,t)},e0=D("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${V(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(pe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),En=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListSubheader"}),{className:a,color:i="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1,...d}=r,f={...r,color:i,component:s,disableGutters:l,disableSticky:c,inset:u},y=Qv(f);return m.jsx(e0,{as:s,className:Q(y.root,a),ref:n,ownerState:f,...d})});En&&(En.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(En.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const t0=lt(m.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 o0(e){return ge("MuiChip",e)}const ze=be("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),n0=e=>{const{classes:t,disabled:n,size:r,color:a,iconColor:i,onDelete:s,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${V(r)}`,`color${V(a)}`,l&&"clickable",l&&`clickableColor${V(a)}`,s&&"deletable",s&&`deletableColor${V(a)}`,`${c}${V(a)}`],label:["label",`label${V(r)}`],avatar:["avatar",`avatar${V(r)}`,`avatarColor${V(a)}`],icon:["icon",`icon${V(r)}`,`iconColor${V(i)}`],deleteIcon:["deleteIcon",`deleteIcon${V(r)}`,`deleteIconColor${V(a)}`,`deleteIcon${V(c)}Color${V(a)}`]};return he(u,o0,t)},r0=D("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:i,onDelete:s,size:l,variant:c}=n;return[{[`& .${ze.avatar}`]:t.avatar},{[`& .${ze.avatar}`]:t[`avatar${V(l)}`]},{[`& .${ze.avatar}`]:t[`avatarColor${V(r)}`]},{[`& .${ze.icon}`]:t.icon},{[`& .${ze.icon}`]:t[`icon${V(l)}`]},{[`& .${ze.icon}`]:t[`iconColor${V(a)}`]},{[`& .${ze.deleteIcon}`]:t.deleteIcon},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${V(l)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIconColor${V(r)}`]},{[`& .${ze.deleteIcon}`]:t[`deleteIcon${V(c)}Color${V(r)}`]},t.root,t[`size${V(l)}`],t[`color${V(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${V(r)}`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${V(r)}`],t[c],t[`${c}${V(r)}`]]}})(pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ze.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ze.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ze.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ze.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ze.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ze.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ze.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ze.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ze.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(qe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${ze.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${ze.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${ze.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${ze.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ze.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ze.avatar}`]:{marginLeft:4},[`& .${ze.avatarSmall}`]:{marginLeft:2},[`& .${ze.icon}`]:{marginLeft:4},[`& .${ze.iconSmall}`]:{marginLeft:2},[`& .${ze.deleteIcon}`]:{marginRight:5},[`& .${ze.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${ze.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${ze.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),a0=D("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${V(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function mc(e){return e.key==="Backspace"||e.key==="Delete"}const ja=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiChip"}),{avatar:a,className:i,clickable:s,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:y,onClick:x,onDelete:h,onKeyDown:p,onKeyUp:b,size:v="medium",variant:O="filled",tabIndex:T,skipFocusWhenDisabled:C=!1,slots:S={},slotProps:E={},...P}=r,$=w.useRef(null),I=nt($,n),N=U=>{U.stopPropagation(),h&&h(U)},A=U=>{U.currentTarget===U.target&&mc(U)&&U.preventDefault(),p&&p(U)},g=U=>{U.currentTarget===U.target&&h&&mc(U)&&h(U),b&&b(U)},j=s!==!1&&x?!0:s,R=j||h?To:c||"div",M={...r,component:R,disabled:d,size:v,color:l,iconColor:w.isValidElement(f)&&f.props.color||l,onDelete:!!h,clickable:j,variant:O},k=n0(M),z=R===To?{component:c||"div",focusVisibleClassName:k.focusVisible,...h&&{disableRipple:!0}}:{};let F=null;h&&(F=u&&w.isValidElement(u)?w.cloneElement(u,{className:Q(u.props.className,k.deleteIcon),onClick:N}):m.jsx(t0,{className:k.deleteIcon,onClick:N}));let _=null;a&&w.isValidElement(a)&&(_=w.cloneElement(a,{className:Q(k.avatar,a.props.className)}));let B=null;f&&w.isValidElement(f)&&(B=w.cloneElement(f,{className:Q(k.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&_&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const L={slots:S,slotProps:E},[G,J]=me("root",{elementType:r0,externalForwardedProps:{...L,...P},ownerState:M,shouldForwardComponentProp:!0,ref:I,className:Q(k.root,i),additionalProps:{disabled:j&&d?!0:void 0,tabIndex:C&&d?-1:T,...z},getSlotProps:U=>({...U,onClick:ne=>{U.onClick?.(ne),x?.(ne)},onKeyDown:ne=>{U.onKeyDown?.(ne),A(ne)},onKeyUp:ne=>{U.onKeyUp?.(ne),g(ne)}})}),[te,K]=me("label",{elementType:a0,externalForwardedProps:L,ownerState:M,className:k.label});return m.jsxs(G,{as:R,...J,children:[_||B,m.jsx(te,{...K,children:y}),F]})});process.env.NODE_ENV!=="production"&&(ja.propTypes={avatar:o.element,children:Zg,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});function jr(e){return parseInt(e,10)||0}const i0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function s0(e){for(const t in e)return!1;return!0}function gc(e){return s0(e)||e.outerHeightStyle===0&&!e.overflowing}const md=w.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:i=1,style:s,value:l,...c}=t,{current:u}=w.useRef(l!=null),d=w.useRef(null),f=nt(n,d),y=w.useRef(null),x=w.useRef(null),h=w.useCallback(()=>{const T=d.current,C=x.current;if(!T||!C)return;const E=no(T).getComputedStyle(T);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=E.width,C.value=T.value||t.placeholder||"x",C.value.slice(-1)===`
|
|
258
|
+
`&&(C.value+=" ");const P=E.boxSizing,$=jr(E.paddingBottom)+jr(E.paddingTop),I=jr(E.borderBottomWidth)+jr(E.borderTopWidth),N=C.scrollHeight;C.value="x";const A=C.scrollHeight;let g=N;i&&(g=Math.max(Number(i)*A,g)),a&&(g=Math.min(Number(a)*A,g)),g=Math.max(g,A);const j=g+(P==="border-box"?$+I:0),R=Math.abs(g-N)<=1;return{outerHeightStyle:j,overflowing:R}},[a,i,t.placeholder]),p=vt(()=>{const T=d.current,C=h();if(!T||!C||gc(C))return!1;const S=C.outerHeightStyle;return y.current!=null&&y.current!==S}),b=w.useCallback(()=>{const T=d.current,C=h();if(!T||!C||gc(C))return;const S=C.outerHeightStyle;y.current!==S&&(y.current=S,T.style.height=`${S}px`),T.style.overflow=C.overflowing?"hidden":""},[h]),v=w.useRef(-1);Jt(()=>{const T=ps(b),C=d?.current;if(!C)return;const S=no(C);S.addEventListener("resize",T);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{p()&&(E.unobserve(C),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{E.observe(C)}))}),E.observe(C)),()=>{T.clear(),cancelAnimationFrame(v.current),S.removeEventListener("resize",T),E&&E.disconnect()}},[h,b,p]),Jt(()=>{b()});const O=T=>{u||b();const C=T.target,S=C.value.length,E=C.value.endsWith(`
|
|
259
|
+
`),P=C.selectionStart===S;E&&P&&C.setSelectionRange(S,S),r&&r(T)};return m.jsxs(w.Fragment,{children:[m.jsx("textarea",{value:l,onChange:O,ref:f,rows:i,style:s,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...i0.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(md.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const Cr=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cr.displayName="FormControlContext");function ro(){return w.useContext(Cr)}function hc(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ea(e,t=!1){return e&&(hc(e.value)&&e.value!==""||t&&hc(e.defaultValue)&&e.defaultValue!=="")}function l0(e){return e.startAdornment}function c0(e){return ge("MuiInputBase",e)}const Ft=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bc;const Ma=(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${V(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Na=(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]},u0=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:i,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:y,startAdornment:x,type:h}=e,p={root:["root",`color${V(n)}`,r&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${V(y)}`,d&&"multiline",x&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",d&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",x&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return he(p,c0,t)},Aa=D("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ma})(pe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),La=D("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Na})(pe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ft.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Ft.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),yc=Gg({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Da=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:y,disableInjectingGlobalStyles:x,endAdornment:h,error:p,fullWidth:b=!1,id:v,inputComponent:O="input",inputProps:T={},inputRef:C,margin:S,maxRows:E,minRows:P,multiline:$=!1,name:I,onBlur:N,onChange:A,onClick:g,onFocus:j,onKeyDown:R,onKeyUp:M,placeholder:k,readOnly:z,renderSuffix:F,rows:_,size:B,slotProps:L={},slots:G={},startAdornment:J,type:te="text",value:K,...U}=r,ne=T.value!=null?T.value:K,{current:le}=w.useRef(ne!=null),Z=w.useRef(),X=w.useCallback(de=>{process.env.NODE_ENV!=="production"&&de&&de.nodeName!=="INPUT"&&!de.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
260
|
+
`))},[]),ce=nt(Z,C,T.ref,X),[W,ae]=w.useState(!1),se=ro();process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(se)return se.registerEffect()},[se]);const ue=Vo({props:r,muiFormControl:se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=se?se.focused:W,w.useEffect(()=>{!se&&y&&W&&(ae(!1),N&&N())},[se,y,W,N]);const ke=se&&se.onFilled,Ee=se&&se.onEmpty,oe=w.useCallback(de=>{ea(de)?ke&&ke():Ee&&Ee()},[ke,Ee]);Jt(()=>{le&&oe({value:ne})},[ne,oe,le]);const Be=de=>{j&&j(de),T.onFocus&&T.onFocus(de),se&&se.onFocus?se.onFocus(de):ae(!0)},Se=de=>{N&&N(de),T.onBlur&&T.onBlur(de),se&&se.onBlur?se.onBlur(de):ae(!1)},ye=(de,...Ve)=>{if(!le){const Ne=de.target||Z.current;if(Ne==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.":go(1));oe({value:Ne.value})}T.onChange&&T.onChange(de,...Ve),A&&A(de,...Ve)};w.useEffect(()=>{oe(Z.current)},[]);const ie=de=>{Z.current&&de.currentTarget===de.target&&Z.current.focus(),g&&g(de)};let Fe=O,Me=T;$&&Fe==="input"&&(_?(process.env.NODE_ENV!=="production"&&(P||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Me={type:void 0,minRows:_,maxRows:_,...Me}):Me={type:void 0,maxRows:E,minRows:P,...Me},Fe=md);const re=de=>{oe(de.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};w.useEffect(()=>{se&&se.setAdornedStart(!!J)},[se,J]);const ee={...r,color:ue.color||"primary",disabled:ue.disabled,endAdornment:h,error:ue.error,focused:ue.focused,formControl:se,fullWidth:b,hiddenLabel:ue.hiddenLabel,multiline:$,size:ue.size,startAdornment:J,type:te},xe=u0(ee),Oe=G.root||u.Root||Aa,Pe=L.root||d.root||{},Te=G.input||u.Input||La;return Me={...Me,...L.input??d.input},m.jsxs(w.Fragment,{children:[!x&&typeof yc=="function"&&(bc||(bc=m.jsx(yc,{}))),m.jsxs(Oe,{...Pe,ref:n,onClick:ie,...U,...!fo(Oe)&&{ownerState:{...ee,...Pe.ownerState}},className:Q(xe.root,Pe.className,l,z&&"MuiInputBase-readOnly"),children:[J,m.jsx(Cr.Provider,{value:null,children:m.jsx(Te,{"aria-invalid":ue.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ue.disabled,id:v,onAnimationStart:re,name:I,placeholder:k,readOnly:z,required:ue.required,rows:_,value:ne,onKeyDown:R,onKeyUp:M,type:te,...Me,...!fo(Te)&&{as:Fe,ownerState:{...ee,...Me.ownerState}},ref:ce,className:Q(xe.input,Me.className,z&&"MuiInputBase-readOnly"),onBlur:Se,onChange:ye,onFocus:Be})}),h,F?F({...ue,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(Da.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:hr,inputProps:o.object,inputRef:Mt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function d0(e){return ge("MuiInput",e)}const Io={...Ft,...be("MuiInput",["root","underline","input"])};function p0(e){return ge("MuiOutlinedInput",e)}const Ht={...Ft,...be("MuiOutlinedInput",["root","notchedOutline","input"])};function f0(e){return ge("MuiFilledInput",e)}const zt={...Ft,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},gd=lt(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function m0(e){return ge("MuiAutocomplete",e)}const De=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var vc,xc;const g0=e=>{const{classes:t,disablePortal:n,expanded:r,focused:a,fullWidth:i,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",a&&"focused",i&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${V(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return he(f,m0,t)},h0=D("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:i,inputFocused:s,size:l}=n;return[{[`& .${De.tag}`]:t.tag},{[`& .${De.tag}`]:t[`tagSize${V(l)}`]},{[`& .${De.inputRoot}`]:t.inputRoot},{[`& .${De.input}`]:t.input},{[`& .${De.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`&.${De.focused} .${De.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${De.clearIndicator}`]:{visibility:"visible"}},[`& .${De.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${De.inputRoot}`]:{[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:30},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:56},[`& .${De.input}`]:{width:0,minWidth:30}},[`& .${Io.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Io.root}.${Ft.sizeSmall}`]:{[`& .${Io.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ht.root}`]:{padding:9,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${De.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${Ht.root}.${Ft.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${De.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zt.root}`]:{paddingTop:19,paddingLeft:8,[`.${De.hasPopupIcon}&, .${De.hasClearIcon}&`]:{paddingRight:39},[`.${De.hasPopupIcon}.${De.hasClearIcon}&`]:{paddingRight:65},[`& .${zt.input}`]:{padding:"7px 4px"},[`& .${De.endAdornment}`]:{right:9}},[`& .${zt.root}.${Ft.sizeSmall}`]:{paddingBottom:1,[`& .${zt.input}`]:{padding:"2.5px 4px"}},[`& .${Ft.hiddenLabel}`]:{paddingTop:8},[`& .${zt.root}.${Ft.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${De.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zt.root}.${Ft.hiddenLabel}.${Ft.sizeSmall}`]:{[`& .${De.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${De.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${De.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${De.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${De.inputRoot}`]:{flexWrap:"wrap"}}}]}),b0=D("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),y0=D(Cn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),v0=D(Cn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),x0=D(vr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${De.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),C0=D(xo,{name:"MuiAutocomplete",slot:"Paper"})(pe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),w0=D("div",{name:"MuiAutocomplete",slot:"Loading"})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),T0=D("div",{name:"MuiAutocomplete",slot:"NoOptions"})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),S0=D("ul",{name:"MuiAutocomplete",slot:"Listbox"})(pe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${De.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${De.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${De.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),O0=D(En,{name:"MuiAutocomplete",slot:"GroupLabel"})(pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),E0=D("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${De.option}`]:{paddingLeft:24}}),hd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=vc||(vc=m.jsx(td,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:y=!1,clearText:x="Clear",closeText:h="Close",componentsProps:p,defaultValue:b=r.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:O=!1,disabled:T=!1,disabledItemsFocusable:C=!1,disableListWrap:S=!1,disablePortal:E=!1,filterOptions:P,filterSelectedOptions:$=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:A=!1,getLimitTagsText:g=He=>`+${He}`,getOptionDisabled:j,getOptionKey:R,getOptionLabel:M,isOptionEqualToValue:k,groupBy:z,handleHomeEndKeys:F=!r.freeSolo,id:_,includeInputInList:B=!1,inputValue:L,limitTags:G=-1,ListboxComponent:J,ListboxProps:te,loading:K=!1,loadingText:U="Loading…",multiple:ne=!1,noOptionsText:le="No options",onChange:Z,onClose:X,onHighlightChange:ce,onInputChange:W,onOpen:ae,open:se,openOnFocus:ue=!1,openText:ke="Open",options:Ee,PaperComponent:oe,PopperComponent:Be,popupIcon:Se=xc||(xc=m.jsx(gd,{})),readOnly:ye=!1,renderGroup:ie,renderInput:Fe,renderOption:Me,renderTags:re,renderValue:ee,selectOnFocus:xe=!r.freeSolo,size:Oe="medium",slots:Pe={},slotProps:Te={},value:de,...Ve}=r,{getRootProps:Ne,getInputProps:We,getInputLabelProps:$t,getPopupIndicatorProps:Ot,getClearProps:ft,getItemProps:Ce,getListboxProps:Ae,getOptionProps:Ze,value:bt,dirty:_e,expanded:rt,id:It,popupOpen:kt,focused:mt,focusedItem:je,anchorEl:Pt,setAnchorEl:wr,inputValue:Ha,groupedOptions:on}=Jv({...r,componentName:"Autocomplete"}),nn=!v&&!T&&_e&&!ye,$n=(!N||I===!0)&&I!==!1,{onMouseDown:qa}=We(),{ref:Ga,...Ka}=Ae(),In=M||(He=>He.label??He),yt={...r,disablePortal:E,expanded:rt,focused:mt,fullWidth:A,getOptionLabel:In,hasClearIcon:nn,hasPopupIcon:$n,inputFocused:je===-1,popupOpen:kt,size:Oe},Ct=g0(yt),ko={slots:{paper:oe,popper:Be,...Pe},slotProps:{chip:c,listbox:te,...p,...Te}},[Xa,jn]=me("listbox",{elementType:S0,externalForwardedProps:ko,ownerState:yt,className:Ct.listbox,additionalProps:Ka,ref:Ga}),[Tr,Y]=me("paper",{elementType:xo,externalForwardedProps:ko,ownerState:yt,className:Ct.paper}),[H,fe]=me("popper",{elementType:vr,externalForwardedProps:ko,ownerState:yt,className:Ct.popper,additionalProps:{disablePortal:E,style:{width:Pt?Pt.clientWidth:null},role:"presentation",anchorEl:Pt,open:kt}});let $e;const Ie=He=>({className:Ct.tag,disabled:T,...Ce(He)});if(ne?bt.length>0&&(re?$e=re(bt,Ie,yt):ee?$e=ee(bt,Ie,yt):$e=bt.map((He,Po)=>{const{key:Ro,...Mn}=Ie({index:Po});return m.jsx(ja,{label:In(He),size:Oe,...Mn,...ko.slotProps.chip},Ro)})):ee&&bt!=null&&($e=ee(bt,Ie,yt)),G>-1&&Array.isArray($e)){const He=$e.length-G;!mt&&He>0&&($e=$e.splice(0,G),$e.push(m.jsx("span",{className:Ct.tag,children:g(He)},$e.length)))}const dt=ie||(He=>m.jsxs("li",{children:[m.jsx(O0,{className:Ct.groupLabel,ownerState:yt,component:"div",children:He.group}),m.jsx(E0,{className:Ct.groupUl,ownerState:yt,children:He.children})]},He.key)),rn=Me||((He,Po)=>{const{key:Ro,...Mn}=He;return m.jsx("li",{...Mn,children:In(Po)},Ro)}),Qs=(He,Po)=>{const Ro=Ze({option:He,index:Po});return rn({...Ro,className:Ct.option},He,{selected:Ro["aria-selected"],index:Po,inputValue:Ha},yt)},el=ko.slotProps.clearIndicator,tl=ko.slotProps.popupIndicator;return m.jsxs(w.Fragment,{children:[m.jsx(h0,{ref:n,className:Q(Ct.root,u),ownerState:yt,...Ne(Ve),children:Fe({id:It,disabled:T,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:$t(),InputProps:{ref:wr,className:Ct.inputRoot,startAdornment:$e,onMouseDown:He=>{He.target===He.currentTarget&&qa(He)},...(nn||$n)&&{endAdornment:m.jsxs(b0,{className:Ct.endAdornment,ownerState:yt,children:[nn?m.jsx(y0,{...ft(),"aria-label":x,title:x,ownerState:yt,...el,className:Q(Ct.clearIndicator,el?.className),children:d}):null,$n?m.jsx(v0,{...Ot(),disabled:T,"aria-label":kt?h:ke,title:kt?h:ke,ownerState:yt,...tl,className:Q(Ct.popupIndicator,tl?.className),children:Se}):null]})}},inputProps:{className:Ct.input,disabled:T,readOnly:ye,...We()}})}),Pt?m.jsx(x0,{as:H,...fe,children:m.jsxs(C0,{as:Tr,...Y,children:[K&&on.length===0?m.jsx(w0,{className:Ct.loading,ownerState:yt,children:U}):null,on.length===0&&!N&&!K?m.jsx(T0,{className:Ct.noOptions,ownerState:yt,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:le}):null,on.length>0?m.jsx(Xa,{as:J,...jn,children:on.map((He,Po)=>z?dt({key:He.key,group:He.group,children:He.options.map((Ro,Mn)=>Qs(Ro,He.index+Mn))}):Qs(He,Po))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(hd.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:Tt(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
|
|
261
|
+
`)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:Ts,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,renderValue:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:Tt(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
|
|
262
|
+
`)):null)});const k0={entering:{opacity:1},entered:{opacity:1}},cr=w.forwardRef(function(t,n){const r=xt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:y,onExit:x,onExited:h,onExiting:p,style:b,timeout:v=a,TransitionComponent:O=Ut,...T}=t,C=w.useRef(null),S=nt(C,Eo(l),n),E=R=>M=>{if(R){const k=C.current;M===void 0?R(k):R(k,M)}},P=E(y),$=E((R,M)=>{Ra(R);const k=ho({style:b,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",k),R.style.transition=r.transitions.create("opacity",k),d&&d(R,M)}),I=E(f),N=E(p),A=E(R=>{const M=ho({style:b,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",M),R.style.transition=r.transitions.create("opacity",M),x&&x(R)}),g=E(h),j=R=>{i&&i(C.current,R)};return m.jsx(O,{appear:s,in:u,nodeRef:C,onEnter:$,onEntered:I,onEntering:P,onExit:A,onExited:g,onExiting:N,addEndListener:j,timeout:v,...T,children:(R,{ownerState:M,...k})=>w.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!u?"hidden":void 0,...k0[R],...b,...l.props.style},ref:S,...k})})});process.env.NODE_ENV!=="production"&&(cr.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function P0(e){return ge("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const R0=e=>{const{classes:t,invisible:n}=e;return he({root:["root",n&&"invisible"]},P0,t)},$0=D("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ns=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiBackdrop"}),{children:a,className:i,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:y={},TransitionComponent:x,transitionDuration:h,...p}=r,b={...r,component:s,invisible:l},v=R0(b),O={transition:x,root:u.Root,...y},T={...d,...f},C={component:s,slots:O,slotProps:T},[S,E]=me("root",{elementType:$0,externalForwardedProps:C,className:Q(v.root,i),ownerState:b}),[P,$]=me("transition",{elementType:cr,externalForwardedProps:C,ownerState:b});return m.jsx(P,{in:c,timeout:h,...p,...$,children:m.jsx(S,{"aria-hidden":!0,...E,classes:v,ref:n,children:a})})});process.env.NODE_ENV!=="production"&&(Ns.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function I0(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}function j0(e){return ge("MuiButtonGroup",e)}const Le=be("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),M0=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Le.grouped}`]:t.grouped},{[`& .${Le.grouped}`]:t[`grouped${V(n.orientation)}`]},{[`& .${Le.grouped}`]:t[`grouped${V(n.variant)}`]},{[`& .${Le.grouped}`]:t[`grouped${V(n.variant)}${V(n.orientation)}`]},{[`& .${Le.grouped}`]:t[`grouped${V(n.variant)}${V(n.color)}`]},{[`& .${Le.firstButton}`]:t.firstButton},{[`& .${Le.lastButton}`]:t.lastButton},{[`& .${Le.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},N0=e=>{const{classes:t,color:n,disabled:r,disableElevation:a,fullWidth:i,orientation:s,variant:l}=e,c={root:["root",l,s,i&&"fullWidth",a&&"disableElevation",`color${V(n)}`],grouped:["grouped",`grouped${V(s)}`,`grouped${V(l)}`,`grouped${V(l)}${V(s)}`,`grouped${V(l)}${V(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return he(c,j0,t)},A0=D("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:M0})(pe(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Le.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),bd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonGroup"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,disableRipple:f=!1,fullWidth:y=!1,orientation:x="horizontal",size:h="medium",variant:p="outlined",...b}=r,v={...r,color:s,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:f,fullWidth:y,orientation:x,size:h,variant:p},O=N0(v),T=w.useMemo(()=>({className:O.grouped,color:s,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:f,fullWidth:y,size:h,variant:p}),[s,c,u,d,f,y,h,p,O.grouped]),C=I0(a),S=C.length,E=P=>{const $=P===0,I=P===S-1;return $&&I?"":$?O.firstButton:I?O.lastButton:O.middleButton};return m.jsx(A0,{as:l,role:"group",className:Q(O.root,i),ref:n,ownerState:v,...b,children:m.jsx(gs.Provider,{value:T,children:C.map((P,$)=>m.jsx(hs.Provider,{value:E($),children:P},$))})})});process.env.NODE_ENV!=="production"&&(bd.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,fullWidth:o.bool,orientation:o.oneOf(["horizontal","vertical"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function L0(e){return ge("MuiCardHeader",e)}const ta=be("MuiCardHeader",["root","avatar","action","content","title","subheader"]),D0=e=>{const{classes:t}=e;return he({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},L0,t)},B0=D("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${ta.title}`]:t.title},{[`& .${ta.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),F0=D("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),z0=D("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),V0=D("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${Xr.root}:where(& .${ta.title})`]:{display:"block"},[`.${Xr.root}:where(& .${ta.subheader})`]:{display:"block"}}),yd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardHeader"}),{action:a,avatar:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,slots:y={},slotProps:x={},...h}=r,p={...r,component:s,disableTypography:l},b=D0(p),v={slots:y,slotProps:{title:f,subheader:u,...x}};let O=d;const[T,C]=me("title",{className:b.title,elementType:at,externalForwardedProps:v,ownerState:p,additionalProps:{variant:i?"body2":"h5",component:"span"}});O!=null&&O.type!==at&&!l&&(O=m.jsx(T,{...C,children:O}));let S=c;const[E,P]=me("subheader",{className:b.subheader,elementType:at,externalForwardedProps:v,ownerState:p,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});S!=null&&S.type!==at&&!l&&(S=m.jsx(E,{...P,children:S}));const[$,I]=me("root",{ref:n,className:b.root,elementType:B0,externalForwardedProps:{...v,...h,component:s},ownerState:p}),[N,A]=me("avatar",{className:b.avatar,elementType:F0,externalForwardedProps:v,ownerState:p}),[g,j]=me("content",{className:b.content,elementType:V0,externalForwardedProps:v,ownerState:p}),[R,M]=me("action",{className:b.action,elementType:z0,externalForwardedProps:v,ownerState:p});return m.jsxs($,{...I,children:[i&&m.jsx(N,{...A,children:i}),m.jsxs(g,{...j,children:[O,S]}),a&&m.jsx(R,{...M,children:a})]})});process.env.NODE_ENV!=="production"&&(yd.propTypes={action:o.node,avatar:o.node,children:o.node,classes:o.object,component:o.elementType,disableTypography:o.bool,slotProps:o.shape({action:o.oneOfType([o.func,o.object]),avatar:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),subheader:o.oneOfType([o.func,o.object]),title:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,avatar:o.elementType,content:o.elementType,root:o.elementType,subheader:o.elementType,title:o.elementType}),subheader:o.node,subheaderTypographyProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,titleTypographyProps:o.object});function _0(e){return ge("PrivateSwitchBase",e)}be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W0=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&`edge${V(a)}`],input:["input"]};return he(i,_0,t)},U0=D(To,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),H0=D("input",{name:"MuiSwitchBase",shouldForwardProp:St})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ba=w.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:y,inputRef:x,name:h,onBlur:p,onChange:b,onFocus:v,readOnly:O,required:T=!1,tabIndex:C,type:S,value:E,slots:P={},slotProps:$={},...I}=t,[N,A]=po({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),g=ro(),j=K=>{v&&v(K),g&&g.onFocus&&g.onFocus(K)},R=K=>{p&&p(K),g&&g.onBlur&&g.onBlur(K)},M=K=>{if(K.nativeEvent.defaultPrevented)return;const U=K.target.checked;A(U),b&&b(K,U)};let k=l;g&&typeof k>"u"&&(k=g.disabled);const z=S==="checkbox"||S==="radio",F={...t,checked:N,disabled:k,disableFocusRipple:c,edge:u},_=W0(F),B={slots:P,slotProps:{input:y,...$}},[L,G]=me("root",{ref:n,elementType:U0,className:_.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...I},getSlotProps:K=>({...K,onFocus:U=>{K.onFocus?.(U),j(U)},onBlur:U=>{K.onBlur?.(U),R(U)}}),ownerState:F,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:k,role:void 0,tabIndex:null}}),[J,te]=me("input",{ref:x,elementType:H0,className:_.input,externalForwardedProps:B,getSlotProps:K=>({...K,onChange:U=>{K.onChange?.(U),M(U)}}),ownerState:F,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:k,id:z?f:void 0,name:h,readOnly:O,required:T,tabIndex:C,type:S,...S==="checkbox"&&E===void 0?{}:{value:E}}});return m.jsxs(L,{...G,children:[m.jsx(J,{...te}),N?i:d]})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Mt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const q0=lt(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),G0=lt(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),K0=lt(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Y0(e){return ge("MuiCheckbox",e)}const gi=be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),X0=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${V(r)}`,`size${V(a)}`]},s=he(i,Y0,t);return{...t,...s}},J0=D(Ba,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${V(n.size)}`],n.color!=="default"&&t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{[`&.${gi.checked}, &.${gi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${gi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Z0=m.jsx(G0,{}),Q0=m.jsx(q0,{}),ex=m.jsx(K0,{}),oa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Z0,color:i="primary",icon:s=Q0,indeterminate:l=!1,indeterminateIcon:c=ex,inputProps:u,size:d="medium",disableRipple:f=!1,className:y,slots:x={},slotProps:h={},...p}=r,b=l?c:s,v=l?c:a,O={...r,disableRipple:f,color:i,indeterminate:l,size:d},T=X0(O),C=h.input??u,[S,E]=me("root",{ref:n,elementType:J0,className:Q(T.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:h,...p},ownerState:O,additionalProps:{type:"checkbox",icon:w.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:w.cloneElement(v,{fontSize:v.props.fontSize??d}),disableRipple:f,slots:x,slotProps:{input:Ru(typeof C=="function"?C(O):C,{"data-indeterminate":l})}}});return m.jsx(S,{...E,classes:T})});process.env.NODE_ENV!=="production"&&(oa.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Cc(e){return e.substring(2).toLowerCase()}function tx(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function na(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=w.useRef(!1),l=w.useRef(null),c=w.useRef(!1),u=w.useRef(!1);w.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=nt(Eo(t),l),f=vt(h=>{const p=u.current;u.current=!1;const b=ht(l.current);if(!c.current||!l.current||"clientX"in h&&tx(h,b))return;if(s.current){s.current=!1;return}let v;h.composedPath?v=h.composedPath().includes(l.current):v=!b.documentElement.contains(h.target)||l.current.contains(h.target),!v&&(n||!p)&&a(h)}),y=h=>p=>{u.current=!0;const b=t.props[h];b&&b(p)},x={ref:d};return i!==!1&&(x[i]=y(i)),w.useEffect(()=>{if(i!==!1){const h=Cc(i),p=ht(l.current),b=()=>{s.current=!0};return p.addEventListener(h,f),p.addEventListener("touchmove",b),()=>{p.removeEventListener(h,f),p.removeEventListener("touchmove",b)}}},[f,i]),r!==!1&&(x[r]=y(r)),w.useEffect(()=>{if(r!==!1){const h=Cc(r),p=ht(l.current);return p.addEventListener(h,f),()=>{p.removeEventListener(h,f)}}},[f,r]),w.cloneElement(t,x)}process.env.NODE_ENV!=="production"&&(na.propTypes={children:Oo.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(na.propTypes=cs(na.propTypes));function vd(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ox(e){const t=ht(e);return t.body===e?no(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wc(e){return parseInt(no(e).getComputedStyle(e).paddingRight,10)||0}function nx(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Tc(e,t,n,r,a){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=!i.includes(s),c=!nx(s);l&&c&&Qn(s,a)})}function hi(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function rx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ox(r)){const s=vd(no(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wc(r)+s}px`;const l=ht(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${wc(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ht(r).body;else{const s=r.parentElement,l=no(r);i=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function ax(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ix{constructor(){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&&Qn(t.modalRef,!1);const a=ax(n);Tc(n,t.mount,t.modalRef,a,!0);const i=hi(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=hi(this.containers,i=>i.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=rx(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=hi(this.containers,s=>s.modals.includes(t)),i=this.containers[a];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Qn(t.modalRef,n),Tc(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Qn(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function qn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const sx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lx(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 cx(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 ux(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||cx(e))}function dx(e){const t=[],n=[];return Array.from(e.querySelectorAll(sx)).forEach((r,a)=>{const i=lx(r);i===-1||!ux(r)||(i===0?t.push(r):n.push({documentOrder:a,tabIndex:i,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function px(){return!0}function ra(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:i=dx,isEnabled:s=px,open:l}=e,c=w.useRef(!1),u=w.useRef(null),d=w.useRef(null),f=w.useRef(null),y=w.useRef(null),x=w.useRef(!1),h=w.useRef(null),p=nt(Eo(t),h),b=w.useRef(null);w.useEffect(()=>{!l||!h.current||(x.current=!n)},[n,l]),w.useEffect(()=>{if(!l||!h.current)return;const T=ht(h.current),C=qn(T);return h.current.contains(C)||(h.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(`
|
|
263
|
+
`)),h.current.setAttribute("tabIndex","-1")),x.current&&h.current.focus()),()=>{a||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),w.useEffect(()=>{if(!l||!h.current)return;const T=ht(h.current),C=qn(T),S=$=>{b.current=$,!(r||!s()||$.key!=="Tab")&&C===h.current&&$.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{const $=h.current;if($===null)return;const I=qn(T);if(!T.hasFocus()||!s()||c.current){c.current=!1;return}if($.contains(I)||r&&I!==u.current&&I!==d.current)return;if(I!==y.current)y.current=null;else if(y.current!==null)return;if(!x.current)return;let N=[];if((I===u.current||I===d.current)&&(N=i(h.current)),N.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),g=N[0],j=N[N.length-1];typeof g!="string"&&typeof j!="string"&&(A?j.focus():g.focus())}else $.focus()};T.addEventListener("focusin",E),T.addEventListener("keydown",S,!0);const P=setInterval(()=>{const $=qn(T);$&&$.tagName==="BODY"&&E()},50);return()=>{clearInterval(P),T.removeEventListener("focusin",E),T.removeEventListener("keydown",S,!0)}},[n,r,a,s,l,i]);const v=T=>{f.current===null&&(f.current=T.relatedTarget),x.current=!0,y.current=T.target;const C=t.props.onFocus;C&&C(T)},O=T=>{f.current===null&&(f.current=T.relatedTarget),x.current=!0};return m.jsxs(w.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:p,onFocus:v}),m.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ra.propTypes={children:Oo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired});process.env.NODE_ENV!=="production"&&(ra.propTypes=cs(ra.propTypes));function fx(e){return typeof e=="function"?e():e}function mx(e){return e?e.props.hasOwnProperty("in"):!1}const Sc=()=>{},Mr=new ix;function gx(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=w.useRef({}),y=w.useRef(null),x=w.useRef(null),h=nt(x,d),[p,b]=w.useState(!u),v=mx(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const T=()=>ht(y.current),C=()=>(f.current.modalRef=x.current,f.current.mount=y.current,f.current),S=()=>{Mr.mount(C(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},E=vt(()=>{const M=fx(t)||T().body;Mr.add(C(),M),x.current&&S()}),P=()=>Mr.isTopModal(C()),$=vt(M=>{y.current=M,M&&(u&&P()?S():x.current&&Qn(x.current,O))}),I=w.useCallback(()=>{Mr.remove(C(),O)},[O]);w.useEffect(()=>()=>{I()},[I]),w.useEffect(()=>{u?E():(!v||!a)&&I()},[u,I,v,a,E]);const N=M=>k=>{M.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!P())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},A=M=>k=>{M.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(M={})=>{const k=Yo(e);delete k.onTransitionEnter,delete k.onTransitionExited;const z={...k,...M};return{role:"presentation",...z,onKeyDown:N(z),ref:h}},getBackdropProps:(M={})=>{const k=M;return{"aria-hidden":!0,...k,onClick:A(k),open:u}},getTransitionProps:()=>{const M=()=>{b(!1),i&&i()},k=()=>{b(!0),s&&s(),a&&I()};return{onEnter:Ci(M,l?.props.onEnter??Sc),onExited:Ci(k,l?.props.onExited??Sc)}},rootRef:h,portalRef:$,isTopModal:P,exited:p,hasTransition:v}}function hx(e){return ge("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const bx=e=>{const{open:t,exited:n,classes:r}=e;return he({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},hx,r)},yx=D("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(pe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),vx=D(Ns,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),As=w.forwardRef(function(t,n){const r=we({name:"MuiModal",props:t}),{BackdropComponent:a=vx,BackdropProps:i,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:y={},componentsProps:x={},disableAutoFocus:h=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:O=!1,disableScrollLock:T=!1,hideBackdrop:C=!1,keepMounted:S=!1,onClose:E,onTransitionEnter:P,onTransitionExited:$,open:I,slotProps:N={},slots:A={},theme:g,...j}=r,R={...r,closeAfterTransition:c,disableAutoFocus:h,disableEnforceFocus:p,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:O,disableScrollLock:T,hideBackdrop:C,keepMounted:S},{getRootProps:M,getBackdropProps:k,getTransitionProps:z,portalRef:F,isTopModal:_,exited:B,hasTransition:L}=gx({...R,rootRef:n}),G={...R,exited:B},J=bx(G),te={};if(u.props.tabIndex===void 0&&(te.tabIndex="-1"),L){const{onEnter:X,onExited:ce}=z();te.onEnter=X,te.onExited=ce}const K={slots:{root:y.Root,backdrop:y.Backdrop,...A},slotProps:{...x,...N}},[U,ne]=me("root",{ref:n,elementType:yx,externalForwardedProps:{...K,...j,component:f},getSlotProps:M,ownerState:G,className:Q(l,J?.root,!G.open&&G.exited&&J?.hidden)}),[le,Z]=me("backdrop",{ref:i?.ref,elementType:a,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:X=>k({...X,onClick:ce=>{X?.onClick&&X.onClick(ce)}}),className:Q(i?.className,J?.backdrop),ownerState:G});return!S&&!I&&(!L||B)?null:m.jsx(lr,{ref:F,container:d,disablePortal:v,children:m.jsxs(U,{...ne,children:[!C&&a?m.jsx(le,{...Z}):null,m.jsx(ra,{disableEnforceFocus:p,disableAutoFocus:h,disableRestoreFocus:O,isEnabled:_,open:I,children:w.cloneElement(u,te)})]})})});process.env.NODE_ENV!=="production"&&(As.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Oo.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([bo,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function xx(e){return ge("MuiDialog",e)}const bi=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ls=w.createContext({});process.env.NODE_ENV!=="production"&&(Ls.displayName="DialogContext");const Cx=D(Ns,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wx=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${V(n)}`],paper:["paper",`paperScroll${V(n)}`,`paperWidth${V(String(r))}`,a&&"paperFullWidth",i&&"paperFullScreen"]};return he(s,xx,t)},Tx=D(As,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Sx=D("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${V(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Ox=D(xo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${V(n.scroll)}`],t[`paperWidth${V(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(pe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${bi.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${bi.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${bi.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),xd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialog"}),a=xt(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:y,disableEscapeKeyDown:x=!1,fullScreen:h=!1,fullWidth:p=!1,maxWidth:b="sm",onClick:v,onClose:O,open:T,PaperComponent:C=xo,PaperProps:S={},scroll:E="paper",slots:P={},slotProps:$={},TransitionComponent:I=cr,transitionDuration:N=i,TransitionProps:A,...g}=r,j={...r,disableEscapeKeyDown:x,fullScreen:h,fullWidth:p,maxWidth:b,scroll:E},R=wx(j),M=w.useRef(),k=ae=>{M.current=ae.target===ae.currentTarget},z=ae=>{v&&v(ae),M.current&&(M.current=null,O&&O(ae,"backdropClick"))},F=vo(l),_=w.useMemo(()=>({titleId:F}),[F]),B={transition:I,...P},L={transition:A,paper:S,backdrop:d,...$},G={slots:B,slotProps:L},[J,te]=me("root",{elementType:Tx,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:j,className:Q(R.root,y),ref:n}),[K,U]=me("backdrop",{elementType:Cx,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:j}),[ne,le]=me("paper",{elementType:Ox,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:j,className:Q(R.paper,S.className)}),[Z,X]=me("container",{elementType:Sx,externalForwardedProps:G,ownerState:j,className:R.container}),[ce,W]=me("transition",{elementType:cr,externalForwardedProps:G,ownerState:j,additionalProps:{appear:!0,in:T,timeout:N,role:"presentation"}});return m.jsx(J,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:N,as:u,...U}},disableEscapeKeyDown:x,onClose:O,open:T,onClick:z,...te,...g,children:m.jsx(ce,{...W,children:m.jsx(Z,{onMouseDown:k,...X,children:m.jsx(ne,{as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F,"aria-modal":c,...le,children:m.jsx(Ls.Provider,{value:_,children:f})})})})})});process.env.NODE_ENV!=="production"&&(xd.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Ex(e){return ge("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const kx=e=>{const{classes:t,disableSpacing:n}=e;return he({root:["root",!n&&"spacing"]},Ex,t)},Px=D("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Cd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:i=!1,...s}=r,l={...r,disableSpacing:i},c=kx(l);return m.jsx(Px,{className:Q(c.root,a),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Cd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Rx(e){return ge("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);function $x(e){return ge("MuiDialogTitle",e)}const Ix=be("MuiDialogTitle",["root"]),jx=e=>{const{classes:t,dividers:n}=e;return he({root:["root",n&&"dividers"]},Rx,t)},Mx=D("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(pe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Ix.root} + &`]:{paddingTop:0}}}]}))),wd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContent"}),{className:a,dividers:i=!1,...s}=r,l={...r,dividers:i},c=jx(l);return m.jsx(Mx,{className:Q(c.root,a),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(wd.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Nx(e){return ge("MuiDialogContentText",e)}be("MuiDialogContentText",["root"]);const Ax=e=>{const{classes:t}=e,r=he({root:["root"]},Nx,t);return{...t,...r}},Lx=D(at,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Td=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContentText"}),{children:a,className:i,...s}=r,l=Ax(s);return m.jsx(Lx,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Q(l.root,i),...r,classes:l})});process.env.NODE_ENV!=="production"&&(Td.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Dx=e=>{const{classes:t}=e;return he({root:["root"]},$x,t)},Bx=D(at,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Sd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogTitle"}),{className:a,id:i,...s}=r,l=r,c=Dx(l),{titleId:u=i}=w.useContext(Ls);return m.jsx(Bx,{component:"h2",className:Q(c.root,a),ownerState:l,ref:n,variant:"h6",id:i??u,...s})});process.env.NODE_ENV!=="production"&&(Sd.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Fx(e){return ge("MuiDivider",e)}const Oc=be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zx=e=>{const{absolute:t,children:n,classes:r,flexItem:a,light:i,orientation:s,textAlign:l,variant:c}=e;return he({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Fx,r)},Vx=D("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(pe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),_x=D("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(pe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ur=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiDivider"}),{absolute:a=!1,children:i,className:s,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=c!=="hr"?"separator":void 0,textAlign:y="center",variant:x="fullWidth",...h}=r,p={...r,absolute:a,component:c,flexItem:u,light:d,orientation:l,role:f,textAlign:y,variant:x},b=zx(p);return m.jsx(Vx,{as:c,className:Q(b.root,s),role:f,ref:n,ownerState:p,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...h,children:i?m.jsx(_x,{className:b.wrapper,ownerState:p,children:i}):null})});ur&&(ur.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(ur.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});function Wx(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=no(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=i.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?a?`translateY(${a.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function Od(e){return typeof e=="function"?e():e}function Nr(e,t,n){const r=Od(n),a=Wx(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const Ed=w.forwardRef(function(t,n){const r=xt(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:f=a,in:y,onEnter:x,onEntered:h,onEntering:p,onExit:b,onExited:v,onExiting:O,style:T,timeout:C=i,TransitionComponent:S=Ut,...E}=t,P=w.useRef(null),$=nt(Eo(c),P,n),I=F=>_=>{F&&(_===void 0?F(P.current):F(P.current,_))},N=I((F,_)=>{Nr(d,F,u),Ra(F),x&&x(F,_)}),A=I((F,_)=>{const B=ho({timeout:C,style:T,easing:f},{mode:"enter"});F.style.webkitTransition=r.transitions.create("-webkit-transform",{...B}),F.style.transition=r.transitions.create("transform",{...B}),F.style.webkitTransform="none",F.style.transform="none",p&&p(F,_)}),g=I(h),j=I(O),R=I(F=>{const _=ho({timeout:C,style:T,easing:f},{mode:"exit"});F.style.webkitTransition=r.transitions.create("-webkit-transform",_),F.style.transition=r.transitions.create("transform",_),Nr(d,F,u),b&&b(F)}),M=I(F=>{F.style.webkitTransition="",F.style.transition="",v&&v(F)}),k=F=>{s&&s(P.current,F)},z=w.useCallback(()=>{P.current&&Nr(d,P.current,u)},[d,u]);return w.useEffect(()=>{if(y||d==="down"||d==="right")return;const F=ps(()=>{P.current&&Nr(d,P.current,u)}),_=no(P.current);return _.addEventListener("resize",F),()=>{F.clear(),_.removeEventListener("resize",F)}},[d,y,u]),w.useEffect(()=>{y||z()},[y,z]),m.jsx(S,{nodeRef:P,onEnter:N,onEntered:g,onEntering:A,onExit:R,onExited:M,onExiting:j,addEndListener:k,appear:l,in:y,timeout:C,...E,children:(F,{ownerState:_,...B})=>w.cloneElement(c,{ref:$,style:{visibility:F==="exited"&&!y?"hidden":void 0,...T,...c.props.style},...B})})});process.env.NODE_ENV!=="production"&&(Ed.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,container:Tt(o.oneOfType([bo,o.func]),e=>{if(e.open){const t=Od(e.container);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 `container` 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(`
|
|
264
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
|
|
265
|
+
`))}return null}),direction:o.oneOf(["down","left","right","up"]),easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const Ux=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:i,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",i==="small"&&`size${V(i)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},u=he(c,f0,t);return{...t,...u}},Hx=D(Aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(pe(({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)",a=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{position:"relative",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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${zt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${zt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):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(.${zt.disabled}, .${zt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),qx=D(La,{name:"MuiFilledInput",slot:"Input",overridesResolver:Na})(pe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Fa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:y={},type:x="text",...h}=r,p={...r,disableUnderline:a,fullWidth:l,inputComponent:u,multiline:d,type:x},b=Ux(r),v={root:{ownerState:p},input:{ownerState:p}},O=f??s?wt(v,f??s):v,T=y.root??i.Root??Hx,C=y.input??i.Input??qx;return m.jsx(Da,{slots:{root:T,input:C},slotProps:O,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:x,...h,classes:b})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Mt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Fa.muiName="Input";function Gx(e){return ge("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Kx=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${V(n)}`,r&&"fullWidth"]};return he(a,Gx,t)},Yx=D("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${V(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),za=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:y=!1,margin:x="none",required:h=!1,size:p="medium",variant:b="outlined",...v}=r,O={...r,color:s,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:y,margin:x,required:h,size:p,variant:b},T=Kx(O),[C,S]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{if(!Xn(z,["Input","Select"]))return;const F=Xn(z,["Select"])?z.props.input:z;F&&l0(F.props)&&(k=!0)}),k}),[E,P]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{Xn(z,["Input","Select"])&&(ea(z.props,!0)||ea(z.props.inputProps,!0))&&(k=!0)}),k}),[$,I]=w.useState(!1);c&&$&&I(!1);const N=d!==void 0&&!c?d:$;let A;const g=w.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(g.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
266
|
+
`)),g.current=!0,()=>{g.current=!1}));const j=w.useCallback(()=>{P(!0)},[]),R=w.useCallback(()=>{P(!1)},[]),M=w.useMemo(()=>({adornedStart:C,setAdornedStart:S,color:s,disabled:c,error:u,filled:E,focused:N,fullWidth:f,hiddenLabel:y,size:p,onBlur:()=>{I(!1)},onFocus:()=>{I(!0)},onEmpty:R,onFilled:j,registerEffect:A,required:h,variant:b}),[C,s,c,u,E,N,f,y,A,R,j,h,p,b]);return m.jsx(Cr.Provider,{value:M,children:m.jsx(Yx,{as:l,ownerState:O,className:Q(T.root,i),ref:n,...v,children:a})})});process.env.NODE_ENV!=="production"&&(za.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function Xx(e){return ge("MuiFormControlLabel",e)}const Gn=be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Jx=e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${V(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return he(s,Xx,t)},Zx=D("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gn.label}`]:t.label},t.root,t[`labelPlacement${V(n.labelPlacement)}`]]}})(pe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Gn.disabled}`]:{cursor:"default"},[`& .${Gn.label}`]:{[`&.${Gn.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Qx=D("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(pe(({theme:e})=>({[`&.${Gn.error}`]:{color:(e.vars||e).palette.error.main}}))),Va=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,inputRef:d,label:f,labelPlacement:y="end",name:x,onChange:h,required:p,slots:b={},slotProps:v={},value:O,...T}=r,C=ro(),S=c??l.props.disabled??C?.disabled,E=p??l.props.required,P={disabled:S,required:E};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof r[M]<"u"&&(P[M]=r[M])});const $=Vo({props:r,muiFormControl:C,states:["error"]}),I={...r,disabled:S,labelPlacement:y,required:E,error:$.error},N=Jx(I),A={slots:b,slotProps:{...s,...v}},[g,j]=me("typography",{elementType:at,externalForwardedProps:A,ownerState:I});let R=f;return R!=null&&R.type!==at&&!u&&(R=m.jsx(g,{component:"span",...j,className:Q(N.label,j?.className),children:R})),m.jsxs(Zx,{className:Q(N.root,i),ownerState:I,ref:n,...T,children:[w.cloneElement(l,P),E?m.jsxs("div",{children:[R,m.jsxs(Qx,{ownerState:I,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):R]})});process.env.NODE_ENV!=="production"&&(Va.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Mt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function e1(e){return ge("MuiFormGroup",e)}be("MuiFormGroup",["root","row","error"]);const t1=e=>{const{classes:t,row:n,error:r}=e;return he({root:["root",n&&"row",r&&"error"]},e1,t)},o1=D("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Ds=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormGroup"}),{className:a,row:i=!1,...s}=r,l=ro(),c=Vo({props:r,muiFormControl:l,states:["error"]}),u={...r,row:i,error:c.error},d=t1(u);return m.jsx(o1,{className:Q(d.root,a),ownerState:u,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Ds.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function n1(e){return ge("MuiFormHelperText",e)}const Ec=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kc;const r1=e=>{const{classes:t,contained:n,size:r,disabled:a,error:i,filled:s,focused:l,required:c}=e,u={root:["root",a&&"disabled",i&&"error",r&&`size${V(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return he(u,n1,t)},a1=D("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${V(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ec.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ec.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Bs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:a,className:i,component:s="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:y,variant:x,...h}=r,p=ro(),b=Vo({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const O=r1(v);return m.jsx(a1,{as:s,className:Q(O.root,i),ref:n,...h,ownerState:v,children:a===" "?kc||(kc=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function i1(e){return ge("MuiFormLabel",e)}const er=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),s1=e=>{const{classes:t,color:n,focused:r,disabled:a,error:i,filled:s,required:l}=e,c={root:["root",`color${V(n)}`,a&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return he(c,i1,t)},l1=D("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{[`&.${er.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${er.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${er.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),c1=D("span",{name:"MuiFormLabel",slot:"Asterisk"})(pe(({theme:e})=>({[`&.${er.error}`]:{color:(e.vars||e).palette.error.main}}))),aa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:a,className:i,color:s,component:l="label",disabled:c,error:u,filled:d,focused:f,required:y,...x}=r,h=ro(),p=Vo({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},v=s1(b);return m.jsxs(l1,{as:l,ownerState:b,className:Q(v.root,i),ref:n,...x,children:[a,p.required&&m.jsxs(c1,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(aa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const u1=e=>{const{classes:t,disableUnderline:n}=e,a=he({root:["root",!n&&"underline"],input:["input"]},d0,t);return{...t,...a}},d1=D(Aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(pe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Io.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Io.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(.${Io.disabled}, .${Io.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Io.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),p1=D(La,{name:"MuiInput",slot:"Input",overridesResolver:Na})({}),_a=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...x}=r,h=u1(r),b={root:{ownerState:{disableUnderline:a}}},v=d??s?wt(d??s,b):b,O=f.root??i.Root??d1,T=f.input??i.Input??p1;return m.jsx(Da,{slots:{root:O,input:T},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:y,...x,classes:h})});process.env.NODE_ENV!=="production"&&(_a.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Mt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});_a.muiName="Input";function f1(e){return ge("MuiInputAdornment",e)}const Pc=be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Rc;const m1=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${V(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},g1=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:s}=e,l={root:["root",n&&"disablePointerEvents",a&&`position${V(a)}`,s,r&&"hiddenLabel",i&&`size${V(i)}`]};return he(l,f1,t)},h1=D("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:m1})(pe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Pc.positionStart}&:not(.${Pc.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),tn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputAdornment"}),{children:a,className:i,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=r,y=ro()||{};let x=d;d&&y.variant&&process.env.NODE_ENV!=="production"&&d===y.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),y&&!x&&(x=y.variant);const h={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:x},p=g1(h);return m.jsx(Cr.Provider,{value:null,children:m.jsx(h1,{as:s,ownerState:h,className:Q(p.root,i),ref:n,...f,children:typeof a=="string"&&!c?m.jsx(at,{color:"textSecondary",children:a}):m.jsxs(w.Fragment,{children:[u==="start"?Rc||(Rc=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,a]})})})});process.env.NODE_ENV!=="production"&&(tn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disablePointerEvents:o.bool,disableTypography:o.bool,position:o.oneOf(["end","start"]).isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function b1(e){return ge("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const y1=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:i,variant:s,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",a&&"shrink",r&&r!=="medium"&&`size${V(r)}`,s],asterisk:[l&&"asterisk"]},u=he(c,b1,t);return{...t,...u}},v1=D(aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${er.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]]}})(pe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Fs=w.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:i,shrink:s,variant:l,className:c,...u}=r,d=ro();let f=s;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const y=Vo({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),x={...r,disableAnimation:a,formControl:d,shrink:f,size:y.size,variant:y.variant,required:y.required,focused:y.focused},h=y1(x);return m.jsx(v1,{"data-shrink":f,ref:n,className:Q(h.root,c),...u,ownerState:x,classes:h})});process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function x1(e){return ge("MuiLinearProgress",e)}be("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Hi=4,qi=Bt`
|
|
267
|
+
0% {
|
|
268
|
+
left: -35%;
|
|
269
|
+
right: 100%;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
60% {
|
|
273
|
+
left: 100%;
|
|
274
|
+
right: -90%;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
100% {
|
|
278
|
+
left: 100%;
|
|
279
|
+
right: -90%;
|
|
280
|
+
}
|
|
281
|
+
`,C1=typeof qi!="string"?Fo`
|
|
282
|
+
animation: ${qi} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
283
|
+
`:null,Gi=Bt`
|
|
284
|
+
0% {
|
|
285
|
+
left: -200%;
|
|
286
|
+
right: 100%;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
60% {
|
|
290
|
+
left: 107%;
|
|
291
|
+
right: -8%;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
100% {
|
|
295
|
+
left: 107%;
|
|
296
|
+
right: -8%;
|
|
297
|
+
}
|
|
298
|
+
`,w1=typeof Gi!="string"?Fo`
|
|
299
|
+
animation: ${Gi} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
300
|
+
`:null,Ki=Bt`
|
|
301
|
+
0% {
|
|
302
|
+
opacity: 1;
|
|
303
|
+
background-position: 0 -23px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
60% {
|
|
307
|
+
opacity: 0;
|
|
308
|
+
background-position: 0 -23px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
100% {
|
|
312
|
+
opacity: 1;
|
|
313
|
+
background-position: -200px -23px;
|
|
314
|
+
}
|
|
315
|
+
`,T1=typeof Ki!="string"?Fo`
|
|
316
|
+
animation: ${Ki} 3s infinite linear;
|
|
317
|
+
`:null,S1=e=>{const{classes:t,variant:n,color:r}=e,a={root:["root",`color${V(r)}`,n],dashed:["dashed",`dashedColor${V(r)}`],bar1:["bar","bar1",`barColor${V(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${V(r)}`,n==="buffer"&&`color${V(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return he(a,x1,t)},zs=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),O1=D("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${V(n.color)}`],t[n.variant]]}})(pe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{backgroundColor:zs(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),E1=D("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${V(n.color)}`]]}})(pe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(qe()).map(([t])=>{const n=zs(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),T1||{animation:`${Ki} 3s infinite linear`}),k1=D("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${V(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Hi}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Hi}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:C1||{animation:`${qi} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),P1=D("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${V(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:zs(e,t),transition:`transform .${Hi}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:w1||{animation:`${Gi} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Vs=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiLinearProgress"}),{className:a,color:i="primary",value:s,valueBuffer:l,variant:c="indeterminate",...u}=r,d={...r,color:i,variant:c},f=S1(d),y=Pn(),x={},h={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(s!==void 0){x["aria-valuenow"]=Math.round(s),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let p=s-100;y&&(p=-p),h.bar1.transform=`translateX(${p}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let p=(l||0)-100;y&&(p=-p),h.bar2.transform=`translateX(${p}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return m.jsxs(O1,{className:Q(f.root,a),ownerState:d,role:"progressbar",...x,ref:n,...u,children:[c==="buffer"?m.jsx(E1,{className:f.dashed,ownerState:d}):null,m.jsx(k1,{className:f.bar1,ownerState:d,style:h.bar1}),c==="determinate"?null:m.jsx(P1,{className:f.bar2,ownerState:d,style:h.bar2})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const Xt=w.createContext({});process.env.NODE_ENV!=="production"&&(Xt.displayName="ListContext");function R1(e){return ge("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const $1=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return he({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},R1,t)},I1=D("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),_s=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:a,className:i,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,f=w.useMemo(()=>({dense:l}),[l]),y={...r,component:s,dense:l,disablePadding:c},x=$1(y);return m.jsx(Xt.Provider,{value:f,children:m.jsxs(I1,{as:s,className:Q(x.root,i),ref:n,ownerState:y,...d,children:[u,a]})})});process.env.NODE_ENV!=="production"&&(_s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function j1(e){return ge("MuiListItem",e)}be("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function M1(e){return ge("MuiListItemButton",e)}const mn=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),N1=(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]},A1=e=>{const{alignItems:t,classes:n,dense:r,disabled:a,disableGutters:i,divider:s,selected:l}=e,u=he({root:["root",r&&"dense",!i&&"gutters",s&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},M1,n);return{...n,...u}},L1=D(To,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:N1})(pe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,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"}},[`&.${mn.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${mn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${mn.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),kd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:s="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:y=!1,className:x,...h}=r,p=w.useContext(Xt),b=w.useMemo(()=>({dense:c||p.dense||!1,alignItems:a,disableGutters:u}),[a,p.dense,c,u]),v=w.useRef(null);Jt(()=>{i&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const O={...r,alignItems:a,dense:b.dense,disableGutters:u,divider:d,selected:y},T=A1(O),C=nt(v,n);return m.jsx(Xt.Provider,{value:b,children:m.jsx(L1,{ref:C,href:h.href||h.to,component:(h.href||h.to)&&s==="div"?"button":s,focusVisibleClassName:Q(T.focusVisible,f),ownerState:O,className:Q(T.root,x),...h,classes:T,children:l})})});process.env.NODE_ENV!=="production"&&(kd.propTypes={alignItems:o.oneOf(["center","flex-start"]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,href:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function D1(e){return ge("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const B1=e=>{const{disableGutters:t,classes:n}=e;return he({root:["root",t&&"disableGutters"]},D1,n)},F1=D("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ws=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...i}=r,s=w.useContext(Xt),l={...r,disableGutters:s.disableGutters},c=B1(l);return m.jsx(F1,{className:Q(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ws.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});Ws.muiName="ListItemSecondaryAction";const z1=(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.hasSecondaryAction&&t.secondaryAction]},V1=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:a,disablePadding:i,divider:s,hasSecondaryAction:l}=e;return he({root:["root",r&&"dense",!a&&"gutters",!i&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},j1,n)},_1=D("div",{name:"MuiListItem",slot:"Root",overridesResolver:z1})(pe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${mn.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),W1=D("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Pd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItem"}),{alignItems:a="center",children:i,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...y}={},dense:x=!1,disableGutters:h=!1,disablePadding:p=!1,divider:b=!1,secondaryAction:v,slotProps:O={},slots:T={},...C}=r,S=w.useContext(Xt),E=w.useMemo(()=>({dense:x||S.dense||!1,alignItems:a,disableGutters:h}),[a,S.dense,x,h]),P=w.useRef(null),$=w.Children.toArray(i),I=$.length&&Xn($[$.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:a,dense:E.dense,disableGutters:h,disablePadding:p,divider:b,hasSecondaryAction:I},A=V1(N),g=nt(P,n),j={slots:T,slotProps:O},[R,M]=me("secondaryAction",{elementType:Ws,externalForwardedProps:j,ownerState:N,className:A.secondaryAction}),k=T.root||c.Root||_1,z=O.root||u.root||{},F={className:Q(A.root,z.className,s),...C};let _=l||"li";return I?(_=!F.component&&!l?"div":_,d==="li"&&(_==="li"?_="div":F.component==="li"&&(F.component="div")),m.jsx(Xt.Provider,{value:E,children:m.jsxs(W1,{as:d,className:Q(A.container,f),ref:g,ownerState:N,...y,children:[m.jsx(k,{...z,...!fo(k)&&{as:_,ownerState:{...N,...z.ownerState}},...F,children:$}),$.pop()]})})):m.jsx(Xt.Provider,{value:E,children:m.jsxs(k,{...z,as:_,ref:g,...!fo(k)&&{ownerState:{...N,...z.ownerState}},...F,children:[$,v&&m.jsx(R,{...M,children:v})]})})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:Tt(o.node,e=>{const t=w.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const a=t[r];if(Xn(a,["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:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),ContainerComponent:hr,ContainerProps:o.object,dense:o.bool,disableGutters:o.bool,disablePadding:o.bool,divider:o.bool,secondaryAction:o.node,slotProps:o.shape({root:o.object,secondaryAction:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,secondaryAction:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function U1(e){return ge("MuiListItemIcon",e)}const $c=be("MuiListItemIcon",["root","alignItemsFlexStart"]),H1=e=>{const{alignItems:t,classes:n}=e;return he({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},U1,n)},q1=D("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(pe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Rd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemIcon"}),{className:a,...i}=r,s=w.useContext(Xt),l={...r,alignItems:s.alignItems},c=H1(l);return m.jsx(q1,{className:Q(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Rd.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function G1(e){return ge("MuiListItemText",e)}const hn=be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),K1=e=>{const{classes:t,inset:n,primary:r,secondary:a,dense:i}=e;return he({root:["root",n&&"inset",i&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},G1,t)},Y1=D("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hn.primary}`]:t.primary},{[`& .${hn.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Xr.root}:where(& .${hn.primary})`]:{display:"block"},[`.${Xr.root}:where(& .${hn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),$d=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemText"}),{children:a,className:i,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:y={},slotProps:x={},...h}=r,{dense:p}=w.useContext(Xt);let b=c??a,v=d;const O={...r,disableTypography:s,inset:l,primary:!!b,secondary:!!v,dense:p},T=K1(O),C={slots:y,slotProps:{primary:u,secondary:f,...x}},[S,E]=me("root",{className:Q(T.root,i),elementType:Y1,externalForwardedProps:{...C,...h},ownerState:O,ref:n}),[P,$]=me("primary",{className:T.primary,elementType:at,externalForwardedProps:C,ownerState:O}),[I,N]=me("secondary",{className:T.secondary,elementType:at,externalForwardedProps:C,ownerState:O});return b!=null&&b.type!==at&&!s&&(b=m.jsx(P,{variant:p?"body2":"body1",component:$?.variant?void 0:"span",...$,children:b})),v!=null&&v.type!==at&&!s&&(v=m.jsx(I,{variant:"body2",color:"textSecondary",...N,children:v})),m.jsxs(S,{...E,children:[b,v]})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function yi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ic(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Id(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.startsWith(t.keys.join(""))}function Bn(e,t,n,r,a,i){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Id(l,i)||c)l=a(e,l,n);else return l.focus(),!0}return!1}const jd=w.forwardRef(function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...y}=t,x=w.useRef(null),h=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jt(()=>{a&&x.current.focus()},[a]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const S=!x.current.style.width;if(T.clientHeight<x.current.clientHeight&&S){const E=`${vd(no(T))}px`;x.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,x.current.style.width=`calc(100% + ${E})`}return x.current}}),[]);const p=T=>{const C=x.current,S=T.key;if(T.ctrlKey||T.metaKey||T.altKey){d&&d(T);return}const P=qn(ht(C));if(S==="ArrowDown")T.preventDefault(),Bn(C,P,u,c,yi);else if(S==="ArrowUp")T.preventDefault(),Bn(C,P,u,c,Ic);else if(S==="Home")T.preventDefault(),Bn(C,null,u,c,yi);else if(S==="End")T.preventDefault(),Bn(C,null,u,c,Ic);else if(S.length===1){const $=h.current,I=S.toLowerCase(),N=performance.now();$.keys.length>0&&(N-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&I!==$.keys[0]&&($.repeating=!1)),$.lastTime=N,$.keys.push(I);const A=P&&!$.repeating&&Id(P,$);$.previousKeyMatched&&(A||Bn(C,P,!1,c,yi,$))?T.preventDefault():$.previousKeyMatched=!1}d&&d(T)},b=nt(x,n);let v=-1;w.Children.forEach(s,(T,C)=>{if(!w.isValidElement(T)){v===C&&(v+=1,v>=s.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Ao.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
318
|
+
`)),T.props.disabled||(f==="selectedMenu"&&T.props.selected||v===-1)&&(v=C),v===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const O=w.Children.map(s,(T,C)=>{if(C===v){const S={};return i&&(S.autoFocus=!0),T.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),w.cloneElement(T,S)}return T});return m.jsx(_s,{role:"menu",ref:b,className:l,onKeyDown:p,tabIndex:a?0:-1,...y,children:O})});process.env.NODE_ENV!=="production"&&(jd.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function X1(e){return ge("MuiPopover",e)}be("MuiPopover",["root","paper"]);function jc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Mc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Nc(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Kn(e){return typeof e=="function"?e():e}const J1=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"]},X1,t)},Z1=D(As,{name:"MuiPopover",slot:"Root"})({}),Md=D(xo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:y=8,marginThreshold:x=16,open:h,PaperProps:p={},slots:b={},slotProps:v={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:C="auto",TransitionProps:S={},disableScrollLock:E=!1,...P}=r,$=w.useRef(),I={...r,anchorOrigin:s,anchorReference:c,elevation:y,marginThreshold:x,transformOrigin:O,TransitionComponent:T,transitionDuration:C,TransitionProps:S},N=J1(I),A=w.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const X=Kn(i),ce=X&&X.nodeType===1?X:ht($.current).body,W=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ae=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ae.top===0&&ae.left===0&&ae.right===0&&ae.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(`
|
|
319
|
+
`))}return{top:W.top+jc(W,s.vertical),left:W.left+Mc(W,s.horizontal)}},[i,s.horizontal,s.vertical,l,c]),g=w.useCallback(X=>({vertical:jc(X,O.vertical),horizontal:Mc(X,O.horizontal)}),[O.horizontal,O.vertical]),j=w.useCallback(X=>{const ce={width:X.offsetWidth,height:X.offsetHeight},W=g(ce);if(c==="none")return{top:null,left:null,transformOrigin:Nc(W)};const ae=A();let se=ae.top-W.vertical,ue=ae.left-W.horizontal;const ke=se+ce.height,Ee=ue+ce.width,oe=no(Kn(i)),Be=oe.innerHeight-x,Se=oe.innerWidth-x;if(x!==null&&se<x){const ye=se-x;se-=ye,W.vertical+=ye}else if(x!==null&&ke>Be){const ye=ke-Be;se-=ye,W.vertical+=ye}if(process.env.NODE_ENV!=="production"&&ce.height>Be&&ce.height&&Be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-Be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
320
|
+
`)),x!==null&&ue<x){const ye=ue-x;ue-=ye,W.horizontal+=ye}else if(Ee>Se){const ye=Ee-Se;ue-=ye,W.horizontal+=ye}return{top:`${Math.round(se)}px`,left:`${Math.round(ue)}px`,transformOrigin:Nc(W)}},[i,c,A,g,x]),[R,M]=w.useState(h),k=w.useCallback(()=>{const X=$.current;if(!X)return;const ce=j(X);ce.top!==null&&X.style.setProperty("top",ce.top),ce.left!==null&&(X.style.left=ce.left),X.style.transformOrigin=ce.transformOrigin,M(!0)},[j]);w.useEffect(()=>(E&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[i,E,k]);const z=()=>{k()},F=()=>{M(!1)};w.useEffect(()=>{h&&k()}),w.useImperativeHandle(a,()=>h?{updatePosition:()=>{k()}}:null,[h,k]),w.useEffect(()=>{if(!h)return;const X=ps(()=>{k()}),ce=no(Kn(i));return ce.addEventListener("resize",X),()=>{X.clear(),ce.removeEventListener("resize",X)}},[i,h,k]);let _=C;const B={slots:{transition:T,...b},slotProps:{transition:S,paper:p,...v}},[L,G]=me("transition",{elementType:Qo,externalForwardedProps:B,ownerState:I,getSlotProps:X=>({...X,onEntering:(ce,W)=>{X.onEntering?.(ce,W),z()},onExited:ce=>{X.onExited?.(ce),F()}}),additionalProps:{appear:!0,in:h}});C==="auto"&&!L.muiSupportAuto&&(_=void 0);const J=f||(i?ht(Kn(i)).body:void 0),[te,{slots:K,slotProps:U,...ne}]=me("root",{ref:n,elementType:Z1,externalForwardedProps:{...B,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Ru(typeof v.backdrop=="function"?v.backdrop(I):v.backdrop,{invisible:!0})},container:J,open:h},ownerState:I,className:Q(N.root,d)}),[le,Z]=me("paper",{ref:$,className:N.paper,elementType:Md,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:R?void 0:{opacity:0}},ownerState:I});return m.jsx(te,{...ne,...!fo(te)&&{slots:K,slotProps:U,disableScrollLock:E},children:m.jsx(L,{...G,timeout:_,children:m.jsx(le,{...Z,children:u})})})});process.env.NODE_ENV!=="production"&&(Nd.propTypes={action:Mt,anchorEl:Tt(o.oneOfType([bo,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Kn(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(`
|
|
321
|
+
`))}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(`
|
|
322
|
+
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([bo,o.func]),disableScrollLock:o.bool,elevation:Ts,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:hr}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Q1(e){return ge("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const eC={vertical:"top",horizontal:"right"},tC={vertical:"top",horizontal:"left"},oC=e=>{const{classes:t}=e;return he({root:["root"],paper:["paper"],list:["list"]},Q1,t)},nC=D(Nd,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),rC=D(Md,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aC=D(jd,{name:"MuiMenu",slot:"List"})({outline:0}),Ad=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:h,...p}={},variant:b="selectedMenu",slots:v={},slotProps:O={},...T}=r,C=Pn(),S={...r,autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:h,PaperProps:f,transitionDuration:x,TransitionProps:p,variant:b},E=oC(S),P=a&&!l&&d,$=w.useRef(null),I=(_,B)=>{$.current&&$.current.adjustStyleForScrollbar(_,{direction:C?"rtl":"ltr"}),h&&h(_,B)},N=_=>{_.key==="Tab"&&(_.preventDefault(),u&&u(_,"tabKeyDown"))};let A=-1;w.Children.map(i,(_,B)=>{w.isValidElement(_)&&(process.env.NODE_ENV!=="production"&&Ao.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
323
|
+
`)),_.props.disabled||(b==="selectedMenu"&&_.props.selected||A===-1)&&(A=B))});const g={slots:v,slotProps:{list:c,transition:p,paper:f,...O}},j=io({elementType:v.root,externalSlotProps:O.root,ownerState:S,className:[E.root,s]}),[R,M]=me("paper",{className:E.paper,elementType:rC,externalForwardedProps:g,shouldForwardComponentProp:!0,ownerState:S}),[k,z]=me("list",{className:Q(E.list,c.className),elementType:aC,shouldForwardComponentProp:!0,externalForwardedProps:g,getSlotProps:_=>({..._,onKeyDown:B=>{N(B),_.onKeyDown?.(B)}}),ownerState:S}),F=typeof g.slotProps.transition=="function"?g.slotProps.transition(S):g.slotProps.transition;return m.jsx(nC,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?eC:tC,slots:{root:v.root,paper:R,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:j,paper:M,backdrop:typeof O.backdrop=="function"?O.backdrop(S):O.backdrop,transition:{...F,onEntering:(..._)=>{I(..._),F?.onEntering?.(..._)}}},open:d,ref:n,transitionDuration:x,ownerState:S,...T,classes:y,children:m.jsx(k,{actions:$,autoFocus:a&&(A===-1||l),autoFocusItem:P,variant:b,...z,children:i})})});process.env.NODE_ENV!=="production"&&(Ad.propTypes={anchorEl:o.oneOfType([bo,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function iC(e){return ge("MuiMenuItem",e)}const Fn=be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},lC=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:s}=e,c=he({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},iC,s);return{...s,...c}},cC=D(To,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:sC})(pe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fn.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Fn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Fn.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Oc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Oc.inset}`]:{marginLeft:52},[`& .${hn.root}`]:{marginTop:0,marginBottom:0},[`& .${hn.inset}`]:{paddingLeft:36},[`& .${$c.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${$c.root} svg`]:{fontSize:"1.25rem"}}}]}))),vn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:y,...x}=r,h=w.useContext(Xt),p=w.useMemo(()=>({dense:s||h.dense||!1,disableGutters:c}),[h.dense,s,c]),b=w.useRef(null);Jt(()=>{a&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const v={...r,dense:p.dense,divider:l,disableGutters:c},O=lC(r),T=nt(b,n);let C;return r.disabled||(C=f!==void 0?f:-1),m.jsx(Xt.Provider,{value:p,children:m.jsx(cC,{ref:T,role:d,tabIndex:C,component:i,focusVisibleClassName:Q(O.focusVisible,u),className:Q(O.root,y),...x,ownerState:v,classes:O})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function uC(e){return ge("MuiNativeSelect",e)}const Us=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dC=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:i,error:s}=e,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${V(n)}`,i&&"iconOpen",r&&"disabled"]};return he(l,uC,t)},Ld=D("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Us.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),pC=D(Ld,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:St,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Us.multiple}`]:t.multiple}]}})({}),Dd=D("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Us.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),fC=D(Dd,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${V(n.variant)}`],n.open&&t.iconOpen]}})({}),Bd=w.forwardRef(function(t,n){const{className:r,disabled:a,error:i,IconComponent:s,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:a,variant:c,error:i},f=dC(d);return m.jsxs(w.Fragment,{children:[m.jsx(pC,{ownerState:d,className:Q(f.select,r),disabled:a,ref:l||n,...u}),t.multiple?null:m.jsx(fC,{as:s,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Bd.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Mt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Ac;const mC=D("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:St})({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%"}),gC=D("legend",{name:"MuiNotchedOutlined",shouldForwardProp:St})(pe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Fd(e){const{children:t,classes:n,className:r,label:a,notched:i,...s}=e,l=a!=null&&a!=="",c={...e,notched:i,withLabel:l};return m.jsx(mC,{"aria-hidden":!0,className:r,ownerState:c,...s,children:m.jsx(gC,{ownerState:c,children:l?m.jsx("span",{children:a}):Ac||(Ac=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const hC=e=>{const{classes:t}=e,r=he({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},p0,t);return{...t,...r}},bC=D(Aa,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ma})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ht.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ht.focused} .${Ht.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{color:n},style:{[`&.${Ht.focused} .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ht.error} .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ht.disabled} .${Ht.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),yC=D(Fd,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),vC=D(La,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Na})(pe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Wa=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:y="text",...x}=r,h=hC(r),p=ro(),b=Vo({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:p,fullWidth:i,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:y},O=d.root??a.Root??bC,T=d.input??a.Input??vC,[C,S]=me("notchedOutline",{elementType:yC,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?m.jsxs(w.Fragment,{children:[l," ","*"]}):l}});return m.jsx(Da,{slots:{root:O,input:T},slotProps:f,renderSuffix:E=>m.jsx(C,{...S,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:n,type:y,...x,classes:{...h,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Wa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Mt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Wa.muiName="Input";const xC=lt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),CC=lt(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),wC=D("span",{name:"MuiRadioButtonIcon",shouldForwardProp:St})({position:"relative",display:"flex"}),TC=D(xC,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),SC=D(CC,{name:"MuiRadioButtonIcon"})(pe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Hs(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a={...e,checked:t};return m.jsxs(wC,{className:n.root,ownerState:a,children:[m.jsx(TC,{fontSize:r,className:n.background,ownerState:a}),m.jsx(SC,{fontSize:r,className:n.dot,ownerState:a})]})}process.env.NODE_ENV!=="production"&&(Hs.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const qs=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(qs.displayName="RadioGroupContext");function OC(){return w.useContext(qs)}function EC(e){return ge("MuiRadio",e)}const Lc=be("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),kC=e=>{const{classes:t,color:n,size:r}=e,a={root:["root",`color${V(n)}`,r!=="medium"&&`size${V(r)}`]};return{...t,...he(a,EC,t)}},PC=D(Ba,{shouldForwardProp:e=>St(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${V(n.size)}`],t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Lc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Lc.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function RC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const $C=m.jsx(Hs,{checked:!0}),IC=m.jsx(Hs,{}),zd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:i=$C,color:s="primary",icon:l=IC,name:c,onChange:u,size:d="medium",className:f,disabled:y,disableRipple:x=!1,slots:h={},slotProps:p={},inputProps:b,...v}=r,O=ro();let T=y;O&&typeof T>"u"&&(T=O.disabled),T??=!1;const C={...r,disabled:T,disableRipple:x,color:s,size:d},S=kC(C),E=OC();let P=a;const $=Ci(u,E&&E.onChange);let I=c;E&&(typeof P>"u"&&(P=RC(E.value,r.value)),typeof I>"u"&&(I=E.name));const N=p.input??b,[A,g]=me("root",{ref:n,elementType:PC,className:Q(S.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:p,...v},getSlotProps:j=>({...j,onChange:(R,...M)=>{j.onChange?.(R,...M),$(R,...M)}}),ownerState:C,additionalProps:{type:"radio",icon:w.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:w.cloneElement(i,{fontSize:i.props.fontSize??d}),disabled:T,name:I,checked:P,slots:h,slotProps:{input:typeof N=="function"?N(C):N}}});return m.jsx(A,{...g,classes:S})});process.env.NODE_ENV!=="production"&&(zd.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Mt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function jC(e){return ge("MuiRadioGroup",e)}be("MuiRadioGroup",["root","row","error"]);const MC=e=>{const{classes:t,row:n,error:r}=e;return he({root:["root",n&&"row",r&&"error"]},jC,t)},Vd=w.forwardRef(function(t,n){const{actions:r,children:a,className:i,defaultValue:s,name:l,onChange:c,value:u,...d}=t,f=w.useRef(null),y=MC(t),[x,h]=po({controlled:u,default:s,name:"RadioGroup"});w.useImperativeHandle(r,()=>({focus:()=>{let O=f.current.querySelector("input:not(:disabled):checked");O||(O=f.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const p=nt(n,f),b=vo(l),v=w.useMemo(()=>({name:b,onChange(O){h(O.target.value),c&&c(O,O.target.value)},value:x}),[b,c,h,x]);return m.jsx(qs.Provider,{value:v,children:m.jsx(Ds,{role:"radiogroup",ref:p,className:Q(y.root,i),...d,children:a})})});process.env.NODE_ENV!=="production"&&(Vd.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const _d={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},NC=lt(m.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),AC=lt(m.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function LC(e){return ge("MuiRating",e)}const zn=be("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function DC(e){const t=e.toString().split(".")[1];return t?t.length:0}function vi(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(DC(t)))}const BC=e=>{const{classes:t,size:n,readOnly:r,disabled:a,emptyValueFocused:i,focusVisible:s}=e,l={root:["root",`size${V(n)}`,a&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return he(l,LC,t)},FC=D("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zn.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${V(n.size)}`],n.readOnly&&t.readOnly]}})(pe(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${zn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${zn.focusVisible} .${zn.iconActive}`]:{outline:"1px solid #999"},[`& .${zn.visuallyHidden}`]:_d,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:t})=>t.readOnly,style:{pointerEvents:"none"}}]}))),Wd=D("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),zC=D("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(pe(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:t})=>t.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:t})=>t.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),VC=D("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>gr(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function Ud(e){const{value:t,...n}=e;return m.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(Ud.propTypes={value:o.number.isRequired});function Yi(e){const{classes:t,disabled:n,emptyIcon:r,focus:a,getLabelText:i,highlightSelectedOnly:s,hover:l,icon:c,IconContainerComponent:u,isActive:d,itemValue:f,labelProps:y,name:x,onBlur:h,onChange:p,onClick:b,onFocus:v,readOnly:O,ownerState:T,ratingValue:C,ratingValueRounded:S,slots:E={},slotProps:P={}}=e,$=s?f===C:f<=C,I=f<=l,N=f<=a,A=f===S,g=`${x}-${vo()}`,j={slots:E,slotProps:P},[R,M]=me("icon",{elementType:zC,className:Q(t.icon,$?t.iconFilled:t.iconEmpty,I&&t.iconHover,N&&t.iconFocus,d&&t.iconActive),externalForwardedProps:j,ownerState:{...T,iconEmpty:!$,iconFilled:$,iconHover:I,iconFocus:N,iconActive:d},additionalProps:{value:f},internalForwardedProps:{as:u}}),[k,z]=me("label",{elementType:Wd,externalForwardedProps:j,ownerState:{...T,emptyValueFocused:void 0},additionalProps:{style:y?.style,htmlFor:g}}),F=m.jsx(R,{...M,children:r&&!$?r:c});return O?m.jsx("span",{...y,children:F}):m.jsxs(w.Fragment,{children:[m.jsxs(k,{...z,children:[F,m.jsx("span",{className:t.visuallyHidden,children:i(f)})]}),m.jsx("input",{className:t.visuallyHidden,onFocus:v,onBlur:h,onChange:p,onClick:b,disabled:n,value:f,id:g,type:"radio",name:x,checked:A})]})}process.env.NODE_ENV!=="production"&&(Yi.propTypes={classes:o.object.isRequired,disabled:o.bool.isRequired,emptyIcon:o.node,focus:o.number.isRequired,getLabelText:o.func.isRequired,highlightSelectedOnly:o.bool.isRequired,hover:o.number.isRequired,icon:o.node,IconContainerComponent:o.elementType.isRequired,isActive:o.bool.isRequired,itemValue:o.number.isRequired,labelProps:o.object,name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,ownerState:o.object.isRequired,ratingValue:o.number,ratingValueRounded:o.number,readOnly:o.bool.isRequired,slotProps:o.object,slots:o.object});const _C=m.jsx(NC,{fontSize:"inherit"}),WC=m.jsx(AC,{fontSize:"inherit"});function UC(e){return`${e||"0"} Star${e!==1?"s":""}`}const Hd=w.forwardRef(function(t,n){const r=we({name:"MuiRating",props:t}),{component:a="span",className:i,defaultValue:s=null,disabled:l=!1,emptyIcon:c=WC,emptyLabelText:u="Empty",getLabelText:d=UC,highlightSelectedOnly:f=!1,icon:y=_C,IconContainerComponent:x=Ud,max:h=5,name:p,onChange:b,onChangeActive:v,onMouseLeave:O,onMouseMove:T,precision:C=1,readOnly:S=!1,size:E="medium",value:P,slots:$={},slotProps:I={},...N}=r,A=vo(p),[g,j]=po({controlled:P,default:s,name:"Rating"}),R=vi(g,C),M=Pn(),[{hover:k,focus:z},F]=w.useState({hover:-1,focus:-1});let _=R;k!==-1&&(_=k),z!==-1&&(_=z);const[B,L]=w.useState(!1),G=w.useRef(),J=nt(G,n),te=ye=>{T&&T(ye);const ie=G.current,{right:Fe,left:Me,width:re}=ie.getBoundingClientRect();let ee;M?ee=(Fe-ye.clientX)/re:ee=(ye.clientX-Me)/re;let xe=vi(h*ee+C/2,C);xe=qo(xe,C,h),F(Oe=>Oe.hover===xe&&Oe.focus===xe?Oe:{hover:xe,focus:xe}),L(!1),v&&k!==xe&&v(ye,xe)},K=ye=>{O&&O(ye);const ie=-1;F({hover:ie,focus:ie}),v&&k!==ie&&v(ye,ie)},U=ye=>{let ie=ye.target.value===""?null:parseFloat(ye.target.value);k!==-1&&(ie=k),j(ie),b&&b(ye,ie)},ne=ye=>{ye.clientX===0&&ye.clientY===0||(F({hover:-1,focus:-1}),j(null),b&&parseFloat(ye.target.value)===R&&b(ye,null))},le=ye=>{Do(ye.target)&&L(!0);const ie=parseFloat(ye.target.value);F(Fe=>({hover:Fe.hover,focus:ie}))},Z=ye=>{if(k!==-1)return;Do(ye.target)||L(!1);const ie=-1;F(Fe=>({hover:Fe.hover,focus:ie}))},[X,ce]=w.useState(!1),W={...r,component:a,defaultValue:s,disabled:l,emptyIcon:c,emptyLabelText:u,emptyValueFocused:X,focusVisible:B,getLabelText:d,icon:y,IconContainerComponent:x,max:h,precision:C,readOnly:S,size:E},ae=BC(W),se={slots:$,slotProps:I},[ue,ke]=me("root",{ref:J,className:Q(ae.root,i),elementType:FC,externalForwardedProps:{...se,...N,component:a},getSlotProps:ye=>({...ye,onMouseMove:ie=>{te(ie),ye.onMouseMove?.(ie)},onMouseLeave:ie=>{K(ie),ye.onMouseLeave?.(ie)}}),ownerState:W,additionalProps:{role:S?"img":null,"aria-label":S?d(_):null}}),[Ee,oe]=me("label",{className:Q(ae.label,ae.labelEmptyValue),elementType:Wd,externalForwardedProps:se,ownerState:W}),[Be,Se]=me("decimal",{className:ae.decimal,elementType:VC,externalForwardedProps:se,ownerState:W});return m.jsxs(ue,{...ke,children:[Array.from(new Array(h)).map((ye,ie)=>{const Fe=ie+1,Me={classes:ae,disabled:l,emptyIcon:c,focus:z,getLabelText:d,highlightSelectedOnly:f,hover:k,icon:y,IconContainerComponent:x,name:A,onBlur:Z,onChange:U,onClick:ne,onFocus:le,ratingValue:_,ratingValueRounded:R,readOnly:S,ownerState:W,slots:$,slotProps:I},re=Fe===Math.ceil(_)&&(k!==-1||z!==-1);if(C<1){const ee=Array.from(new Array(1/C));return Re.createElement(Be,{...Se,key:Fe,className:Q(Se.className,re&&ae.iconActive),iconActive:re},ee.map((xe,Oe)=>{const Pe=vi(Fe-1+(Oe+1)*C,C);return m.jsx(Yi,{...Me,isActive:!1,itemValue:Pe,labelProps:{style:ee.length-1===Oe?{}:{width:Pe===_?`${(Oe+1)*C*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Pe)}))}return m.jsx(Yi,{...Me,isActive:re,itemValue:Fe},Fe)}),!S&&!l&&m.jsxs(Ee,{...oe,children:[m.jsx("input",{className:ae.visuallyHidden,value:"",id:`${A}-empty`,type:"radio",name:A,checked:R==null,onFocus:()=>ce(!0),onBlur:()=>ce(!1),onChange:U}),m.jsx("span",{className:ae.visuallyHidden,children:u})]})]})});process.env.NODE_ENV!=="production"&&(Hd.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,defaultValue:o.number,disabled:o.bool,emptyIcon:o.node,emptyLabelText:o.node,getLabelText:o.func,highlightSelectedOnly:o.bool,icon:o.node,IconContainerComponent:o.elementType,max:o.number,name:o.string,onChange:o.func,onChangeActive:o.func,onMouseLeave:o.func,onMouseMove:o.func,precision:Tt(o.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
|
|
324
|
+
`)):null),readOnly:o.bool,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),slotProps:o.shape({decimal:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({decimal:o.elementType,icon:o.elementType,label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number});function qd(e){return ge("MuiSelect",e)}const Vn=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dc;const HC=D(Ld,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Vn.select}`]:t.select},{[`&.${Vn.select}`]:t[n.variant]},{[`&.${Vn.error}`]:t.error},{[`&.${Vn.multiple}`]:t.multiple}]}})({[`&.${Vn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qC=D(Dd,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${V(n.variant)}`],n.open&&t.iconOpen]}})({}),GC=D("input",{shouldForwardProp:e=>gr(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Bc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function KC(e){return e==null||typeof e=="string"&&!e.trim()}const YC=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:i,error:s}=e,l={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${V(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return he(l,qd,t)},Gd=w.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:y,error:x=!1,IconComponent:h,inputRef:p,labelId:b,MenuProps:v={},multiple:O,name:T,onBlur:C,onChange:S,onClose:E,onFocus:P,onKeyDown:$,onMouseDown:I,onOpen:N,open:A,readOnly:g,renderValue:j,required:R,SelectDisplayProps:M={},tabIndex:k,type:z,value:F,variant:_="standard",...B}=t,[L,G]=po({controlled:F,default:d,name:"Select"}),[J,te]=po({controlled:A,default:u,name:"Select"}),K=w.useRef(null),U=w.useRef(null),[ne,le]=w.useState(null),{current:Z}=w.useRef(A!=null),[X,ce]=w.useState(),W=nt(n,p),ae=w.useCallback(Ce=>{U.current=Ce,Ce&&le(Ce)},[]),se=ne?.parentNode;w.useImperativeHandle(W,()=>({focus:()=>{U.current.focus()},node:K.current,value:L}),[L]),w.useEffect(()=>{u&&J&&ne&&!Z&&(ce(s?null:se.clientWidth),U.current.focus())},[ne,s]),w.useEffect(()=>{i&&U.current.focus()},[i]),w.useEffect(()=>{if(!b)return;const Ce=ht(U.current).getElementById(b);if(Ce){const Ae=()=>{getSelection().isCollapsed&&U.current.focus()};return Ce.addEventListener("click",Ae),()=>{Ce.removeEventListener("click",Ae)}}},[b]);const ue=(Ce,Ae)=>{Ce?N&&N(Ae):E&&E(Ae),Z||(ce(s?null:se.clientWidth),te(Ce))},ke=Ce=>{I?.(Ce),Ce.button===0&&(Ce.preventDefault(),U.current.focus(),ue(!0,Ce))},Ee=Ce=>{ue(!1,Ce)},oe=w.Children.toArray(l),Be=Ce=>{const Ae=oe.find(Ze=>Ze.props.value===Ce.target.value);Ae!==void 0&&(G(Ae.props.value),S&&S(Ce,Ae))},Se=Ce=>Ae=>{let Ze;if(Ae.currentTarget.hasAttribute("tabindex")){if(O){Ze=Array.isArray(L)?L.slice():[];const bt=L.indexOf(Ce.props.value);bt===-1?Ze.push(Ce.props.value):Ze.splice(bt,1)}else Ze=Ce.props.value;if(Ce.props.onClick&&Ce.props.onClick(Ae),L!==Ze&&(G(Ze),S)){const bt=Ae.nativeEvent||Ae,_e=new bt.constructor(bt.type,bt);Object.defineProperty(_e,"target",{writable:!0,value:{value:Ze,name:T}}),S(_e,Ce)}O||ue(!1,Ae)}},ye=Ce=>{g||([" ","ArrowUp","ArrowDown","Enter"].includes(Ce.key)&&(Ce.preventDefault(),ue(!0,Ce)),$?.(Ce))},ie=ne!==null&&J,Fe=Ce=>{!ie&&C&&(Object.defineProperty(Ce,"target",{writable:!0,value:{value:L,name:T}}),C(Ce))};delete B["aria-invalid"];let Me,re;const ee=[];let xe=!1,Oe=!1;(ea({value:L})||y)&&(j?Me=j(L):xe=!0);const Pe=oe.map(Ce=>{if(!w.isValidElement(Ce))return null;process.env.NODE_ENV!=="production"&&Ao.isFragment(Ce)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
325
|
+
`));let Ae;if(O){if(!Array.isArray(L))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":go(2));Ae=L.some(Ze=>Bc(Ze,Ce.props.value)),Ae&&xe&&ee.push(Ce.props.children)}else Ae=Bc(L,Ce.props.value),Ae&&xe&&(re=Ce.props.children);return Ae&&(Oe=!0),w.cloneElement(Ce,{"aria-selected":Ae?"true":"false",onClick:Se(Ce),onKeyUp:Ze=>{Ze.key===" "&&Ze.preventDefault(),Ce.props.onKeyUp&&Ce.props.onKeyUp(Ze)},role:"option",selected:Ae,value:void 0,"data-value":Ce.props.value})});process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(!Oe&&!O&&L!==""){const Ce=oe.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${L}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ce.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
|
|
326
|
+
`))}},[Oe,oe,O,T,L]),xe&&(O?ee.length===0?Me=null:Me=ee.reduce((Ce,Ae,Ze)=>(Ce.push(Ae),Ze<ee.length-1&&Ce.push(", "),Ce),[]):Me=re);let Te=X;!s&&Z&&ne&&(Te=se.clientWidth);let de;typeof k<"u"?de=k:de=f?null:0;const Ve=M.id||(T?`mui-component-select-${T}`:void 0),Ne={...t,variant:_,value:L,open:ie,error:x},We=YC(Ne),$t={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(Ne):v.slotProps?.paper},Ot={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(Ne):v.slotProps?.list},ft=vo();return m.jsxs(w.Fragment,{children:[m.jsx(HC,{as:"div",ref:ae,tabIndex:de,role:"combobox","aria-controls":ie?ft:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[b,Ve].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":R?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:ye,onMouseDown:f||g?null:ke,onBlur:Fe,onFocus:P,...M,ownerState:Ne,className:Q(M.className,We.select,c),id:Ve,children:KC(Me)?Dc||(Dc=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),m.jsx(GC,{"aria-invalid":x,value:Array.isArray(L)?L.join(","):L,name:T,ref:K,"aria-hidden":!0,onChange:Be,tabIndex:-1,disabled:f,className:We.nativeInput,autoFocus:i,required:R,...B,ownerState:Ne}),m.jsx(qC,{as:h,className:We.icon,ownerState:Ne}),m.jsx(Ad,{id:`menu-${T||""}`,anchorEl:se,open:ie,onClose:Ee,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:ft,...Ot},paper:{...$t,style:{minWidth:Te,...$t!=null?$t.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(Gd.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Mt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const XC=e=>{const{classes:t}=e,r=he({root:["root"]},qd,t);return{...t,...r}},Gs={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>St(e)&&e!=="variant"},JC=D(_a,Gs)(""),ZC=D(Wa,Gs)(""),QC=D(Fa,Gs)(""),Ua=w.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=gd,id:f,input:y,inputProps:x,label:h,labelId:p,MenuProps:b,multiple:v=!1,native:O=!1,onClose:T,onOpen:C,open:S,renderValue:E,SelectDisplayProps:P,variant:$="outlined",...I}=r,N=O?Bd:Gd,A=ro(),g=Vo({props:r,muiFormControl:A,states:["variant","error"]}),j=g.variant||$,R={...r,variant:j,classes:s},M=XC(R),{root:k,...z}=M,F=y||{standard:m.jsx(JC,{ownerState:R}),outlined:m.jsx(ZC,{label:h,ownerState:R}),filled:m.jsx(QC,{ownerState:R})}[j],_=nt(n,Eo(F));return m.jsx(w.Fragment,{children:w.cloneElement(F,{inputComponent:N,inputProps:{children:i,error:g.error,IconComponent:d,variant:j,type:void 0,multiple:v,...O?{id:f}:{autoWidth:a,defaultOpen:c,displayEmpty:u,labelId:p,MenuProps:b,onClose:T,onOpen:C,open:S,renderValue:E,SelectDisplayProps:{id:f,...P}},...x,classes:x?wt(z,x.classes):z,...y?y.props.inputProps:{}},...(v&&O||u)&&j==="outlined"?{notched:!0}:{},ref:_,className:Q(F.props.className,l,M.root),...!y&&{variant:j},...I})})});process.env.NODE_ENV!=="production"&&(Ua.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])});Ua.muiName="Select";function ew(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const tw=2;function pn(e,t,n,r,a){return n===1?Math.min(e+t,a):Math.max(e-t,r)}function Kd(e,t){return e-t}function Fc(e,t){const{index:n}=e.reduce((r,a,i)=>{const s=Math.abs(t-a);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function Ar(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const a=n.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function ia(e,t,n){return(e-t)*100/(n-t)}function ow(e,t,n){return(n-t)*e+t}function nw(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function rw(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(nw(t)))}function zc({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Kd)}function Lr({sliderRef:e,activeIndex:t,setActive:n}){const r=ht(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Dr(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?ew(e,t):!1}const aw={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},iw=e=>e;let Br;function Vc(){return Br===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Br=CSS.supports("touch-action","none"):Br=!0),Br}function sw(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:y="horizontal",rootRef:x,scale:h=iw,step:p=1,shiftStep:b=10,tabIndex:v,value:O}=e,T=w.useRef(void 0),[C,S]=w.useState(-1),[E,P]=w.useState(-1),[$,I]=w.useState(!1),N=w.useRef(0),A=w.useRef(null),[g,j]=po({controlled:O,default:n??c,name:"Slider"}),R=d&&((re,ee,xe)=>{const Oe=re.nativeEvent||re,Pe=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Pe,"target",{writable:!0,value:{value:ee,name:u}}),A.current=ee,d(Pe,ee,xe)}),M=Array.isArray(g);let k=M?g.slice().sort(Kd):[g];k=k.map(re=>re==null?c:qo(re,c,l));const z=s===!0&&p!==null?[...Array(Math.floor((l-c)/p)+1)].map((re,ee)=>({value:c+p*ee})):s||[],F=z.map(re=>re.value),[_,B]=w.useState(-1),L=w.useRef(null),G=nt(x,L),J=re=>ee=>{const xe=Number(ee.currentTarget.getAttribute("data-index"));Do(ee.target)&&B(xe),P(xe),re?.onFocus?.(ee)},te=re=>ee=>{Do(ee.target)||B(-1),P(-1),re?.onBlur?.(ee)},K=(re,ee)=>{const xe=Number(re.currentTarget.getAttribute("data-index")),Oe=k[xe],Pe=F.indexOf(Oe);let Te=ee;if(z&&p==null){const de=F[F.length-1];Te>=de?Te=de:Te<=F[0]?Te=F[0]:Te=Te<Oe?F[Pe-1]:F[Pe+1]}if(Te=qo(Te,c,l),M){a&&(Te=qo(Te,k[xe-1]||-1/0,k[xe+1]||1/0));const de=Te;Te=zc({values:k,newValue:Te,index:xe});let Ve=xe;a||(Ve=Te.indexOf(de)),Lr({sliderRef:L,activeIndex:Ve})}j(Te),B(xe),R&&!Dr(Te,g)&&R(re,Te,xe),f&&f(re,A.current??Te)},U=re=>ee=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ee.key)){ee.preventDefault();const xe=Number(ee.currentTarget.getAttribute("data-index")),Oe=k[xe];let Pe=null;if(p!=null){const Te=ee.shiftKey?b:p;switch(ee.key){case"ArrowUp":Pe=pn(Oe,Te,1,c,l);break;case"ArrowRight":Pe=pn(Oe,Te,i?-1:1,c,l);break;case"ArrowDown":Pe=pn(Oe,Te,-1,c,l);break;case"ArrowLeft":Pe=pn(Oe,Te,i?1:-1,c,l);break;case"PageUp":Pe=pn(Oe,b,1,c,l);break;case"PageDown":Pe=pn(Oe,b,-1,c,l);break;case"Home":Pe=c;break;case"End":Pe=l;break}}else if(z){const Te=F[F.length-1],de=F.indexOf(Oe),Ve=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ne=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ve.includes(ee.key)?de===0?Pe=F[0]:Pe=F[de-1]:Ne.includes(ee.key)&&(de===F.length-1?Pe=Te:Pe=F[de+1])}Pe!=null&&K(ee,Pe)}re?.onKeyDown?.(ee)};Jt(()=>{r&&L.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&C!==-1&&S(-1),r&&_!==-1&&B(-1);const ne=re=>ee=>{re.onChange?.(ee),K(ee,ee.target.valueAsNumber)},le=w.useRef(void 0);let Z=y;i&&y==="horizontal"&&(Z+="-reverse");const X=({finger:re,move:ee=!1})=>{const{current:xe}=L,{width:Oe,height:Pe,bottom:Te,left:de}=xe.getBoundingClientRect();let Ve;Z.startsWith("vertical")?Ve=(Te-re.y)/Pe:Ve=(re.x-de)/Oe,Z.includes("-reverse")&&(Ve=1-Ve);let Ne;if(Ne=ow(Ve,c,l),p)Ne=rw(Ne,p,c);else{const $t=Fc(F,Ne);Ne=F[$t]}Ne=qo(Ne,c,l);let We=0;if(M){ee?We=le.current:We=Fc(k,Ne),a&&(Ne=qo(Ne,k[We-1]||-1/0,k[We+1]||1/0));const $t=Ne;Ne=zc({values:k,newValue:Ne,index:We}),a&&ee||(We=Ne.indexOf($t),le.current=We)}return{newValue:Ne,activeIndex:We}},ce=vt(re=>{const ee=Ar(re,T);if(!ee)return;if(N.current+=1,re.type==="mousemove"&&re.buttons===0){W(re);return}const{newValue:xe,activeIndex:Oe}=X({finger:ee,move:!0});Lr({sliderRef:L,activeIndex:Oe,setActive:S}),j(xe),!$&&N.current>tw&&I(!0),R&&!Dr(xe,g)&&R(re,xe,Oe)}),W=vt(re=>{const ee=Ar(re,T);if(I(!1),!ee)return;const{newValue:xe}=X({finger:ee,move:!0});S(-1),re.type==="touchend"&&P(-1),f&&f(re,A.current??xe),T.current=void 0,se()}),ae=vt(re=>{if(r)return;Vc()||re.preventDefault();const ee=re.changedTouches[0];ee!=null&&(T.current=ee.identifier);const xe=Ar(re,T);if(xe!==!1){const{newValue:Pe,activeIndex:Te}=X({finger:xe});Lr({sliderRef:L,activeIndex:Te,setActive:S}),j(Pe),R&&!Dr(Pe,g)&&R(re,Pe,Te)}N.current=0;const Oe=ht(L.current);Oe.addEventListener("touchmove",ce,{passive:!0}),Oe.addEventListener("touchend",W,{passive:!0})}),se=w.useCallback(()=>{const re=ht(L.current);re.removeEventListener("mousemove",ce),re.removeEventListener("mouseup",W),re.removeEventListener("touchmove",ce),re.removeEventListener("touchend",W)},[W,ce]);w.useEffect(()=>{const{current:re}=L;return re.addEventListener("touchstart",ae,{passive:Vc()}),()=>{re.removeEventListener("touchstart",ae),se()}},[se,ae]),w.useEffect(()=>{r&&se()},[r,se]);const ue=re=>ee=>{if(re.onMouseDown?.(ee),r||ee.defaultPrevented||ee.button!==0)return;ee.preventDefault();const xe=Ar(ee,T);if(xe!==!1){const{newValue:Pe,activeIndex:Te}=X({finger:xe});Lr({sliderRef:L,activeIndex:Te,setActive:S}),j(Pe),R&&!Dr(Pe,g)&&R(ee,Pe,Te)}N.current=0;const Oe=ht(L.current);Oe.addEventListener("mousemove",ce,{passive:!0}),Oe.addEventListener("mouseup",W)},ke=ia(M?k[0]:c,c,l),Ee=ia(k[k.length-1],c,l)-ke,oe=(re={})=>{const ee=Yo(re),xe={onMouseDown:ue(ee||{})},Oe={...ee,...xe};return{...re,ref:G,...Oe}},Be=re=>ee=>{re.onMouseOver?.(ee);const xe=Number(ee.currentTarget.getAttribute("data-index"));P(xe)},Se=re=>ee=>{re.onMouseLeave?.(ee),P(-1)},ye=(re={})=>{const ee=Yo(re),xe={onMouseOver:Be(ee||{}),onMouseLeave:Se(ee||{})};return{...re,...ee,...xe}},ie=re=>({pointerEvents:C!==-1&&C!==re?"none":void 0});let Fe;return y==="vertical"&&(Fe=i?"vertical-rl":"vertical-lr"),{active:C,axis:Z,axisProps:aw,dragging:$,focusedThumbIndex:_,getHiddenInputProps:(re={})=>{const ee=Yo(re),xe={onChange:ne(ee||{}),onFocus:J(ee||{}),onBlur:te(ee||{}),onKeyDown:U(ee||{})},Oe={...ee,...xe};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":h(l),"aria-valuemin":h(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...re,...Oe,style:{..._d,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:Fe}}},getRootProps:oe,getThumbProps:ye,marks:z,open:E,range:M,rootRef:G,trackLeap:Ee,trackOffset:ke,values:k,getThumbStyle:ie}}const lw=e=>!e||!fo(e);function cw(e){return ge("MuiSlider",e)}const Kt=be("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),uw=e=>{const{open:t}=e;return{offset:Q(t&&Kt.valueLabelOpen),circle:Kt.valueLabelCircle,label:Kt.valueLabelLabel}};function Yd(e){const{children:t,className:n,value:r}=e,a=uw(e);return t?w.cloneElement(t,{className:t.props.className},m.jsxs(w.Fragment,{children:[t.props.children,m.jsx("span",{className:Q(a.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:a.circle,children:m.jsx("span",{className:a.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Yd.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function _c(e){return e}const dw=D("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${V(n.color)}`],n.size!=="medium"&&t[`size${V(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(pe(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Kt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Kt.dragging}`]:{[`& .${Kt.thumb}, & .${Kt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),pw=D("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),fw=D("span",{name:"MuiSlider",slot:"Track"})(pe(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),mw=D("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${V(n.color)}`],n.size!=="medium"&&t[`thumbSize${V(n.size)}`]]}})(pe(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Kt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(qe()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Kt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Kt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Xd=D(Yd,{name:"MuiSlider",slot:"ValueLabel"})(pe(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Kt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Kt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Xd.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const gw=D("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>gr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(pe(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),hw=D("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>gr(e)&&e!=="markLabelActive"})(pe(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),bw=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:s,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${V(l)}`,c&&`size${V(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${V(c)}`,l&&`thumbColor${V(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return he(u,cw,s)},yw=({children:e})=>e,Jd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSlider"}),a=Pn(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:u={},componentsProps:d={},color:f="primary",classes:y,className:x,disableSwap:h=!1,disabled:p=!1,getAriaLabel:b,getAriaValueText:v,marks:O=!1,max:T=100,min:C=0,name:S,onChange:E,onChangeCommitted:P,orientation:$="horizontal",shiftStep:I=10,size:N="medium",step:A=1,scale:g=_c,slotProps:j,slots:R,tabIndex:M,track:k="normal",value:z,valueLabelDisplay:F="off",valueLabelFormat:_=_c,...B}=r,L={...r,isRtl:a,max:T,min:C,classes:y,disabled:p,disableSwap:h,orientation:$,marks:O,color:f,size:N,step:A,shiftStep:I,scale:g,track:k,valueLabelDisplay:F,valueLabelFormat:_},{axisProps:G,getRootProps:J,getHiddenInputProps:te,getThumbProps:K,open:U,active:ne,axis:le,focusedThumbIndex:Z,range:X,dragging:ce,marks:W,values:ae,trackOffset:se,trackLeap:ue,getThumbStyle:ke}=sw({...L,rootRef:n});L.marked=W.length>0&&W.some(_e=>_e.label),L.dragging=ce,L.focusedThumbIndex=Z;const Ee=bw(L),oe=R?.root??u.Root??dw,Be=R?.rail??u.Rail??pw,Se=R?.track??u.Track??fw,ye=R?.thumb??u.Thumb??mw,ie=R?.valueLabel??u.ValueLabel??Xd,Fe=R?.mark??u.Mark??gw,Me=R?.markLabel??u.MarkLabel??hw,re=R?.input??u.Input??"input",ee=j?.root??d.root,xe=j?.rail??d.rail,Oe=j?.track??d.track,Pe=j?.thumb??d.thumb,Te=j?.valueLabel??d.valueLabel,de=j?.mark??d.mark,Ve=j?.markLabel??d.markLabel,Ne=j?.input??d.input,We=io({elementType:oe,getSlotProps:J,externalSlotProps:ee,externalForwardedProps:B,additionalProps:{...lw(oe)&&{as:c}},ownerState:{...L,...ee?.ownerState},className:[Ee.root,x]}),$t=io({elementType:Be,externalSlotProps:xe,ownerState:L,className:Ee.rail}),Ot=io({elementType:Se,externalSlotProps:Oe,additionalProps:{style:{...G[le].offset(se),...G[le].leap(ue)}},ownerState:{...L,...Oe?.ownerState},className:Ee.track}),ft=io({elementType:ye,getSlotProps:K,externalSlotProps:Pe,ownerState:{...L,...Pe?.ownerState},className:Ee.thumb}),Ce=io({elementType:ie,externalSlotProps:Te,ownerState:{...L,...Te?.ownerState},className:Ee.valueLabel}),Ae=io({elementType:Fe,externalSlotProps:de,ownerState:L,className:Ee.mark}),Ze=io({elementType:Me,externalSlotProps:Ve,ownerState:L,className:Ee.markLabel}),bt=io({elementType:re,getSlotProps:te,externalSlotProps:Ne,ownerState:L});return m.jsxs(oe,{...We,children:[m.jsx(Be,{...$t}),m.jsx(Se,{...Ot}),W.filter(_e=>_e.value>=C&&_e.value<=T).map((_e,rt)=>{const It=ia(_e.value,C,T),kt=G[le].offset(It);let mt;return k===!1?mt=ae.includes(_e.value):mt=k==="normal"&&(X?_e.value>=ae[0]&&_e.value<=ae[ae.length-1]:_e.value<=ae[0])||k==="inverted"&&(X?_e.value<=ae[0]||_e.value>=ae[ae.length-1]:_e.value>=ae[0]),m.jsxs(w.Fragment,{children:[m.jsx(Fe,{"data-index":rt,...Ae,...!fo(Fe)&&{markActive:mt},style:{...kt,...Ae.style},className:Q(Ae.className,mt&&Ee.markActive)}),_e.label!=null?m.jsx(Me,{"aria-hidden":!0,"data-index":rt,...Ze,...!fo(Me)&&{markLabelActive:mt},style:{...kt,...Ze.style},className:Q(Ee.markLabel,Ze.className,mt&&Ee.markLabelActive),children:_e.label}):null]},rt)}),ae.map((_e,rt)=>{const It=ia(_e,C,T),kt=G[le].offset(It),mt=F==="off"?yw:ie;return m.jsx(mt,{...!fo(mt)&&{valueLabelFormat:_,valueLabelDisplay:F,value:typeof _=="function"?_(g(_e),rt):_,index:rt,open:U===rt||ne===rt||F==="on",disabled:p},...Ce,children:m.jsx(ye,{"data-index":rt,...ft,className:Q(Ee.thumb,ft.className,ne===rt&&Ee.active,Z===rt&&Ee.focusVisible),style:{...kt,...ke(rt),...ft.style},children:m.jsx(re,{"data-index":rt,"aria-label":b?b(rt):i,"aria-valuenow":g(_e),"aria-labelledby":l,"aria-valuetext":v?v(g(_e),rt):s,value:ae[rt],...bt})})},rt)})]})});process.env.NODE_ENV!=="production"&&(Jd.propTypes={"aria-label":Tt(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":Tt(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function vw(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:i}=e,s=jo();w.useEffect(()=>{if(!a)return;function v(O){O.defaultPrevented||O.key==="Escape"&&r?.(O,"escapeKeyDown")}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[a,r]);const l=vt((v,O)=>{r?.(v,O)}),c=vt(v=>{!r||v==null||s.start(v,()=>{l(null,"timeout")})});w.useEffect(()=>(a&&c(t),s.clear),[a,t,c,s]);const u=v=>{r?.(v,"clickaway")},d=s.clear,f=w.useCallback(()=>{t!=null&&c(i??t*.5)},[t,i,c]),y=v=>O=>{const T=v.onBlur;T?.(O),f()},x=v=>O=>{const T=v.onFocus;T?.(O),d()},h=v=>O=>{const T=v.onMouseEnter;T?.(O),d()},p=v=>O=>{const T=v.onMouseLeave;T?.(O),f()};return w.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[n,a,f,d]),{getRootProps:(v={})=>{const O={...Yo(e),...Yo(v)};return{role:"presentation",...v,...O,onBlur:y(O),onFocus:x(O),onMouseEnter:h(O),onMouseLeave:p(O)}},onClickAway:u}}function xw(e){return ge("MuiSnackbarContent",e)}be("MuiSnackbarContent",["root","message","action"]);const Cw=e=>{const{classes:t}=e;return he({root:["root"],action:["action"],message:["message"]},xw,t)},ww=D(xo,{name:"MuiSnackbarContent",slot:"Root"})(pe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Pi(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Pi(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Tw=D("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Sw=D("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Zd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbarContent"}),{action:a,className:i,message:s,role:l="alert",...c}=r,u=r,d=Cw(u);return m.jsxs(ww,{role:l,elevation:6,className:Q(d.root,i),ownerState:u,ref:n,...c,children:[m.jsx(Tw,{className:d.message,ownerState:u,children:s}),a?m.jsx(Sw,{className:d.action,ownerState:u,children:a}):null]})});process.env.NODE_ENV!=="production"&&(Zd.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ow(e){return ge("MuiSnackbar",e)}be("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Ew=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${V(n.vertical)}${V(n.horizontal)}`]};return he(r,Ow,t)},kw=D("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${V(n.anchorOrigin.vertical)}${V(n.anchorOrigin.horizontal)}`]]}})(pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Qd=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbar"}),a=xt(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:f,ClickAwayListenerProps:y,ContentProps:x,disableWindowBlurListener:h=!1,message:p,onBlur:b,onClose:v,onFocus:O,onMouseEnter:T,onMouseLeave:C,open:S,resumeHideDuration:E,slots:P={},slotProps:$={},TransitionComponent:I,transitionDuration:N=i,TransitionProps:{onEnter:A,onExited:g,...j}={},...R}=r,M={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:u,disableWindowBlurListener:h,TransitionComponent:I,transitionDuration:N},k=Ew(M),{getRootProps:z,onClickAway:F}=vw(M),[_,B]=w.useState(!0),L=ae=>{B(!0),g&&g(ae)},G=(ae,se)=>{B(!1),A&&A(ae,se)},J={slots:{transition:I,...P},slotProps:{content:x,clickAwayListener:y,transition:j,...$}},[te,K]=me("root",{ref:n,className:[k.root,f],elementType:kw,getSlotProps:z,externalForwardedProps:{...J,...R},ownerState:M}),[U,{ownerState:ne,...le}]=me("clickAwayListener",{elementType:na,externalForwardedProps:J,getSlotProps:ae=>({onClickAway:(...se)=>{const ue=se[0];ae.onClickAway?.(...se),!ue?.defaultMuiPrevented&&F(...se)}}),ownerState:M}),[Z,X]=me("content",{elementType:Zd,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:p,action:s},ownerState:M}),[ce,W]=me("transition",{elementType:Qo,externalForwardedProps:J,getSlotProps:ae=>({onEnter:(...se)=>{ae.onEnter?.(...se),G(...se)},onExited:(...se)=>{ae.onExited?.(...se),L(...se)}}),additionalProps:{appear:!0,in:S,timeout:N,direction:l==="top"?"down":"up"},ownerState:M});return!S&&_?null:m.jsx(U,{...le,...P.clickAwayListener&&{ownerState:ne},children:m.jsx(te,{...K,children:m.jsx(ce,{...W,children:d||m.jsx(Z,{...X})})})})});process.env.NODE_ENV!=="production"&&(Qd.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});const Pw={entering:{transform:"none"},entered:{transform:"none"}},Ks=w.forwardRef(function(t,n){const r=xt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:y,onExit:x,onExited:h,onExiting:p,style:b,timeout:v=a,TransitionComponent:O=Ut,...T}=t,C=w.useRef(null),S=nt(C,Eo(l),n),E=R=>M=>{if(R){const k=C.current;M===void 0?R(k):R(k,M)}},P=E(y),$=E((R,M)=>{Ra(R);const k=ho({style:b,timeout:v,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("transform",k),R.style.transition=r.transitions.create("transform",k),d&&d(R,M)}),I=E(f),N=E(p),A=E(R=>{const M=ho({style:b,timeout:v,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("transform",M),R.style.transition=r.transitions.create("transform",M),x&&x(R)}),g=E(h),j=R=>{i&&i(C.current,R)};return m.jsx(O,{appear:s,in:u,nodeRef:C,onEnter:$,onEntered:I,onEntering:P,onExit:A,onExited:g,onExiting:N,addEndListener:j,timeout:v,...T,children:(R,{ownerState:M,...k})=>w.cloneElement(l,{style:{transform:"scale(0)",visibility:R==="exited"&&!u?"hidden":void 0,...Pw[R],...b,...l.props.style},ref:S,...k})})});process.env.NODE_ENV!=="production"&&(Ks.propTypes={addEndListener:o.func,appear:o.bool,children:Oo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const Xi=mg({createStyledComponent:D("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>we({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});function Rw(e){return ge("MuiSwitch",e)}const jt=be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),$w=e=>{const{classes:t,edge:n,size:r,color:a,checked:i,disabled:s}=e,l={root:["root",n&&`edge${V(n)}`,`size${V(r)}`],switchBase:["switchBase",`color${V(a)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=he(l,Rw,t);return{...t,...c}},Iw=D("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${V(n.edge)}`],t[`size${V(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${jt.thumb}`]:{width:16,height:16},[`& .${jt.switchBase}`]:{padding:4,[`&.${jt.checked}`]:{transform:"translateX(16px)"}}}}]}),jw=D(Ba,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${jt.input}`]:t.input},n.color!=="default"&&t[`color${V(n.color)}`]]}})(pe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${jt.checked}`]:{transform:"translateX(20px)"},[`&.${jt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${jt.checked} + .${jt.track}`]:{opacity:.5},[`&.${jt.disabled} + .${jt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${jt.input}`]:{left:"-100%",width:"300%"}})),pe(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(qe(["light"])).map(([t])=>({props:{color:t},style:{[`&.${jt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${jt.checked} + .${jt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Mw=D("span",{name:"MuiSwitch",slot:"Track"})(pe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Nw=D("span",{name:"MuiSwitch",slot:"Thumb"})(pe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),ep=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiSwitch"}),{className:a,color:i="primary",edge:s=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...f}=r,y={...r,color:i,edge:s,size:l},x=$w(y),h={slots:u,slotProps:d},[p,b]=me("root",{className:Q(x.root,a),elementType:Iw,externalForwardedProps:h,ownerState:y,additionalProps:{sx:c}}),[v,O]=me("thumb",{className:x.thumb,elementType:Nw,externalForwardedProps:h,ownerState:y}),T=m.jsx(v,{...O}),[C,S]=me("track",{className:x.track,elementType:Mw,externalForwardedProps:h,ownerState:y});return m.jsxs(p,{...b,children:[m.jsx(jw,{type:"checkbox",icon:T,checkedIcon:T,ref:n,ownerState:y,...f,classes:{...x,root:x.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(y):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(y):d.input}}}),m.jsx(C,{...S})]})});process.env.NODE_ENV!=="production"&&(ep.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Mt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Aw(e){return ge("MuiTextField",e)}be("MuiTextField",["root"]);const Lw={standard:_a,filled:Fa,outlined:Wa},Dw=e=>{const{classes:t}=e;return he({root:["root"]},Aw,t)},Bw=D(za,{name:"MuiTextField",slot:"Root"})({}),Rn=w.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:i=!1,children:s,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:y,fullWidth:x=!1,helperText:h,id:p,InputLabelProps:b,inputProps:v,InputProps:O,inputRef:T,label:C,maxRows:S,minRows:E,multiline:P=!1,name:$,onBlur:I,onChange:N,onFocus:A,placeholder:g,required:j=!1,rows:R,select:M=!1,SelectProps:k,slots:z={},slotProps:F={},type:_,value:B,variant:L="outlined",...G}=r,J={...r,autoFocus:i,color:c,disabled:d,error:f,fullWidth:x,multiline:P,required:j,select:M,variant:L},te=Dw(J);process.env.NODE_ENV!=="production"&&M&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const K=vo(p),U=h&&K?`${K}-helper-text`:void 0,ne=C&&K?`${K}-label`:void 0,le=Lw[L],Z={slots:z,slotProps:{input:O,inputLabel:b,htmlInput:v,formHelperText:y,select:k,...F}},X={},ce=Z.slotProps.inputLabel;L==="outlined"&&(ce&&typeof ce.shrink<"u"&&(X.notched=ce.shrink),X.label=C),M&&((!k||!k.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[W,ae]=me("root",{elementType:Bw,shouldForwardComponentProp:!0,externalForwardedProps:{...Z,...G},ownerState:J,className:Q(te.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:x,required:j,color:c,variant:L}}),[se,ue]=me("input",{elementType:le,externalForwardedProps:Z,additionalProps:X,ownerState:J}),[ke,Ee]=me("inputLabel",{elementType:Fs,externalForwardedProps:Z,ownerState:J}),[oe,Be]=me("htmlInput",{elementType:"input",externalForwardedProps:Z,ownerState:J}),[Se,ye]=me("formHelperText",{elementType:Bs,externalForwardedProps:Z,ownerState:J}),[ie,Fe]=me("select",{elementType:Ua,externalForwardedProps:Z,ownerState:J}),Me=m.jsx(se,{"aria-describedby":U,autoComplete:a,autoFocus:i,defaultValue:u,fullWidth:x,multiline:P,name:$,rows:R,maxRows:S,minRows:E,type:_,value:B,id:K,inputRef:T,onBlur:I,onChange:N,onFocus:A,placeholder:g,inputProps:Be,slots:{input:z.htmlInput?oe:void 0},...ue});return m.jsxs(W,{...ae,children:[C!=null&&C!==""&&m.jsx(ke,{htmlFor:K,id:ne,...Ee,children:C}),M?m.jsx(ie,{"aria-describedby":U,id:K,labelId:ne,value:B,input:Me,...Fe,children:s}):Me,h&&m.jsx(Se,{id:U,...ye,children:h})]})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Mt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const Ys={fontSize:"0.8125rem",padding:"8px 12px",maxWidth:250,lineHeight:1.4},tp={...Ys,boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},Fw=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:e.palette.grey[900]},[`& .${Je.tooltip}`]:{backgroundColor:e.palette.grey[900],...tp}})),zw=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:e.palette.common.white},[`& .${Je.tooltip}`]:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[4],border:"1px solid #e0e0e0",...Ys}})),Vw=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:e.palette.primary.main},[`& .${Je.tooltip}`]:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,...Ys,boxShadow:`0 4px 12px ${ve(e.palette.primary.main,.4)}`}})),_w=D(({className:e,...t})=>m.jsx(xr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Je.arrow}`]:{color:"#1e40af"},[`& .${Je.tooltip}`]:{backgroundColor:"#1e40af",color:"#ffffff",...tp}})),op=({contenido:e,children:t,lado:n="arriba",flecha:r=!0,color:a="oscuro",animacion:i="zoom",retraso:s=200,className:l,sx:c,...u})=>{const d=y=>{switch(y){case"arriba":return"top";case"abajo":return"bottom";case"izquierda":return"left";case"derecha":return"right";default:return"top"}},f=a==="claro"?zw:a==="primario"?Vw:a==="azul"?_w:Fw;return m.jsx(f,{title:e,placement:d(n),arrow:r,enterDelay:s,TransitionComponent:i==="fade"?cr:Ks,className:l,sx:c,...u,children:t})},Ww=op,Uw=D(Os,{shouldForwardProp:e=>e!=="estilo"&&e!=="varianteColor"})(({theme:e,estilo:t,varianteColor:n})=>{const r={width:"100%",boxShadow:e.shadows[6],alignItems:"center","& .MuiAlert-icon":{fontSize:"1.5rem"}};if(t==="cristal"){const a=e.palette.mode==="dark";return{...r,backgroundColor:a?ve(n,.2):ve(n,.15),backdropFilter:"blur(10px)",color:a?e.palette.getContrastText(e.palette.background.paper):e.palette.text.primary,border:`1px solid ${ve(n,.3)}`,"& .MuiAlert-icon":{color:n}}}return t==="suave"?{...r}:t==="contorno"?{...r,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,border:`2px solid ${n}`,"& .MuiAlert-icon":{color:n}}:{...r}}),Xs=({abierto:e,alCerrar:t,variante:n="info",estilo:r="solido",titulo:a,mensaje:i,posicion:s="abajo-derecha",animacion:l="slide",duracion:c=6e3,mostrarIcono:u=!0,mostrarProgreso:d=!1,cerrable:f=!0,accion:y,className:x,sx:h,...p})=>{const b=xt(),[v,O]=Re.useState(0);Re.useEffect(()=>{if(e&&c&&d){O(0);const $=100,N=100/(c/$),A=setInterval(()=>{O(g=>g>=100?(clearInterval(A),100):g+N)},$);return()=>clearInterval(A)}},[e,c,d]);const T=($,I)=>{I!=="clickaway"&&t&&t()},C=$=>{const[I,N]=$.split("-");return{vertical:I==="arriba"?"top":"bottom",horizontal:N==="izquierda"?"left":N==="derecha"?"right":"center"}},E={info:b.palette.info.main,exito:b.palette.success.main,advertencia:b.palette.warning.main,error:b.palette.error.main}[n],P=l==="grow"?Qo:l==="fade"?Ks:Ed;return m.jsx(Qd,{open:e,autoHideDuration:c,onClose:T,anchorOrigin:C(s),TransitionComponent:P,className:x,sx:h,...p,children:m.jsxs(Uw,{onClose:f?T:void 0,severity:n==="exito"?"success":n==="advertencia"?"warning":n,variant:r==="solido"?"filled":"standard",estilo:r,varianteColor:E,icon:u?void 0:!1,action:y,children:[a&&m.jsx(Es,{sx:{fontWeight:"bold"},children:a}),i,d&&c&&m.jsx(Vs,{variant:"determinate",value:v,sx:{position:"absolute",bottom:0,left:0,right:0,height:4,bgcolor:ve(b.palette.common.white,.3),"& .MuiLinearProgress-bar":{bgcolor:ve(b.palette.common.white,.8)}}})]})})},Hw=Xs,qw=Xs,np=({valor:e=0,maximo:t=100,etiqueta:n,mostrarPorcentaje:r=!1,etiquetaInterna:a=!1,indeterminado:i=!1,tamano:s="md",variante:l="primario",rayado:c=!1,animado:u=!1,colorPersonalizado:d,className:f="",sx:y,...x})=>{const h=xt(),b={xs:4,sm:8,md:12,lg:16,xl:24}[s]||12,O={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning"}[l]||"primary",T=Math.min(100,Math.max(0,e/t*100)),C=h.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",S=c||u?{backgroundImage:`linear-gradient(45deg,${C} 25%,transparent 25%,transparent 50%,${C} 50%,${C} 75%,transparent 75%,transparent)`,backgroundSize:"1rem 1rem",...u&&{animation:"progreso-rayas 1s linear infinite","@keyframes progreso-rayas":{"0%":{backgroundPosition:"1rem 0"},"100%":{backgroundPosition:"0 0"}}}}:{},E={color:h.palette.getContrastText(d||h.palette[O==="inherit"?"primary":O].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return m.jsxs(Ue,{width:"100%",className:f,children:[!a&&(n||r)&&m.jsxs(Ue,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),r&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:600,children:i?"":`${Math.round(T)}%`})]}),m.jsxs(Ue,{position:"relative",width:"100%",children:[m.jsx(Vs,{variant:i?"indeterminate":"determinate",value:T,color:O,sx:{height:b,borderRadius:b/2,backgroundColor:h.palette.mode==="dark"?ve(h.palette.common.white,.08):ve(h.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:b/2,...d&&{backgroundColor:d},...S},...y},...x}),a&&!i&&b>=12&&m.jsx(Ue,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:m.jsxs(at,{variant:"caption",sx:E,children:[n," ",r?`${Math.round(T)}%`:""]})})]})]})},Gw=np,Kw=Bt`
|
|
327
|
+
0% { transform: scale(1); }
|
|
328
|
+
50% { transform: scale(1.2); }
|
|
329
|
+
100% { transform: scale(1); }
|
|
330
|
+
`,Yw=D(Hd,{shouldForwardProp:e=>e!=="colorPersonalizado"&&e!=="animado"&&e!=="brillo"})(({theme:e,colorPersonalizado:t,animado:n,brillo:r})=>({"& .MuiRating-iconFilled":{color:t,filter:r?`drop-shadow(0 0 2px ${t})`:"none",transition:"transform 0.2s ease-in-out"},"& .MuiRating-iconHover":{color:t,filter:r?`drop-shadow(0 0 4px ${t})`:"none",transform:n?"scale(1.2)":"none"},"& .MuiRating-iconActive":{animation:n?`${Kw} 0.4s ease-out`:"none"}})),rp=({valor:e,maximo:t=5,precision:n=1,soloLectura:r=!1,deshabilitado:a=!1,tamano:i="m",color:s="advertencia",etiquetas:l,mostrarEtiqueta:c=!1,alCambiar:u,iconoPersonalizado:d,iconoVacioPersonalizado:f,animado:y=!0,brillo:x=!1,className:h,sx:p,...b})=>{const v=xt(),[O,T]=Re.useState(-1),S={p:"small",m:"medium",g:"large",xg:"large"}[i],E=i==="xg"?1.5:1,$={primario:v.palette.primary.main,secundario:v.palette.secondary.main,exito:v.palette.success.main,advertencia:v.palette.warning.main,error:v.palette.error.main,info:v.palette.info.main}[s]||v.palette.warning.main,I=N=>l?l[N]||N:`${N} Estrellas`;return m.jsxs(Ue,{className:h,sx:{display:"flex",alignItems:"center",gap:1,opacity:a?.5:1,pointerEvents:a?"none":"auto",...p},children:[m.jsx(Yw,{name:"codeplex-rating",value:e,max:t,precision:n,readOnly:r,disabled:a,size:S,colorPersonalizado:$,animado:y,brillo:x,onChange:(N,A)=>{u&&u(A)},onChangeActive:(N,A)=>{T(A)},icon:d,emptyIcon:f,sx:{transform:`scale(${E})`,transformOrigin:"left center"},...b}),c&&(e!==null||O!==-1)&&m.jsx(at,{variant:"body2",color:"text.secondary",sx:{minWidth:20,ml:i==="xg"?2:0,fontWeight:500},children:l?I(O!==-1?O:e||0):O!==-1?O:e})]})},Xw=rp,ap=({textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:r,mostrarContador:a})=>{const i=n?.toString().length||0,s=!!t,l=r?i>=r*.9:!1,c=r?i>=r:!1;return!e&&!t&&!a?null:m.jsxs("div",{className:"flex items-start justify-between mt-1.5 px-1 gap-4",children:[m.jsx("div",{className:"flex-1 min-w-0",children:s?m.jsxs("p",{className:"text-xs font-medium text-red-500 flex items-center gap-1 animate-in slide-in-from-left-1 duration-200",children:[m.jsx("svg",{className:"w-3 h-3 flex-shrink-0",viewBox:"0 0 20 20",fill:"currentColor",children:m.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),t]}):e?m.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 leading-tight",children:e}):null}),a&&r&&m.jsxs("div",{className:`
|
|
331
|
+
text-[10px] font-mono font-medium transition-colors duration-300
|
|
332
|
+
${s||c?"text-red-500":l?"text-amber-500":"text-gray-400 dark:text-gray-500"}
|
|
333
|
+
`,children:[i,"/",r]})]})},Jw=({helperText:e,error:t,value:n,maxLength:r,showCount:a,...i})=>m.jsx(ap,{textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:r,mostrarContador:a,...i});Bt`
|
|
334
|
+
0% { transform: translateX(-100%); }
|
|
335
|
+
100% { transform: translateX(100%); }
|
|
336
|
+
`;const Zw=D(Cs)(({theme:e,colorBase:t})=>({backgroundColor:t||(e.palette.mode==="dark"?ve(e.palette.common.white,.08):ve(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),ip=({variante:e="texto",ancho:t,alto:n,animacion:r="pulso",colorBase:a,className:i,...s})=>{const l=u=>u==="texto"?"text":u==="rectangular"?"rectangular":u==="redondeado"?"rounded":u==="circular"?"circular":"text",c=u=>u==="pulso"?"pulse":u==="ola"?"wave":u===!1?!1:"pulse";return m.jsx(Zw,{variant:l(e),width:t,height:n,animation:c(r),colorBase:a,className:i,...s})},Qw=ip,sp=lt(m.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),eT=D(Rn)(({theme:e,errorEstado:t})=>({"& .MuiOutlinedInput-root":{borderRadius:"12px",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.03):e.palette.common.white,paddingRight:"30px","& fieldset":{borderColor:t?e.palette.error.main:e.palette.mode==="dark"?ve(e.palette.common.white,.2):e.palette.grey[300],borderWidth:"1px",transition:"border-color 0.2s ease"},"&:hover fieldset":{borderColor:t?e.palette.error.dark:e.palette.mode==="dark"?ve(e.palette.common.white,.4):e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.05):e.palette.common.white,boxShadow:t?`0 0 0 4px ${ve(e.palette.error.main,.1)}`:e.palette.mode==="dark"?`0 4px 12px 0 ${ve(e.palette.common.black,.4)}`:`0 4px 12px 0 ${ve(e.palette.primary.main,.1)}`},"&.Mui-focused fieldset":{borderWidth:"2px",borderColor:t?e.palette.error.main:e.palette.primary.main}},"& .MuiInputLabel-root":{color:t?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:t?e.palette.error.main:e.palette.primary.main,fontWeight:600}}}));function lp({opciones:e,valor:t,alCambiar:n,etiqueta:r,textoAyuda:a,marcador:i,error:s,mensajeError:l,requerido:c,cargando:u,deshabilitado:d,soloLectura:f,limpiable:y=!0,multiple:x,propsEntrada:h,renderizarEntrada:p,...b}){const v=s&&l?l:a,O=T=>m.jsx(eT,{...T,label:r,placeholder:e.length===0&&!u?"No hay opciones":i,helperText:v,error:s,required:c,errorEstado:s,InputProps:{...T.InputProps,...h?.InputProps,endAdornment:m.jsxs(Re.Fragment,{children:[u?m.jsx(No,{color:"inherit",size:20,sx:{marginRight:1}}):null,T.InputProps.endAdornment]})},...h});return m.jsx(hd,{options:e,value:t,onChange:n,loading:u,disabled:d,readOnly:f,disableClearable:!y,multiple:x,popupIcon:m.jsx(sp,{}),renderInput:p||O,PaperComponent:T=>m.jsx(xo,{...T,elevation:8,sx:{borderRadius:"16px",marginTop:"8px",border:C=>`1px solid ${C.palette.mode==="dark"?ve(C.palette.common.white,.1):ve(C.palette.common.black,.05)}`,boxShadow:C=>C.palette.mode==="dark"?"0 10px 40px -10px rgba(0,0,0,0.6)":"0 12px 30px -10px rgba(0,0,0,0.15)",overflow:"hidden","& .MuiAutocomplete-listbox":{padding:"8px","& .MuiAutocomplete-option":{borderRadius:"10px",margin:"2px 0",padding:"10px 14px",transition:"all 0.15s ease",fontSize:"0.9rem",'&[aria-selected="true"]':{backgroundColor:C=>ve(C.palette.primary.main,C.palette.mode==="dark"?.2:.1),color:"primary.main",fontWeight:600,"&.Mui-focused":{backgroundColor:C=>ve(C.palette.primary.main,C.palette.mode==="dark"?.3:.2)}},"&:hover":{backgroundColor:C=>C.palette.mode==="dark"?ve(C.palette.common.white,.05):ve(C.palette.common.black,.04),transform:"translateX(4px)"}},"& .MuiAutocomplete-noOptions":{color:"text.secondary",padding:"16px",textAlign:"center",fontSize:"0.9rem"}}}}),renderTags:(T,C)=>T.map((S,E)=>m.jsx(ja,{label:typeof S=="string"?S:S.label||JSON.stringify(S),...C({index:E}),size:"small",sx:{borderRadius:"8px",backgroundColor:P=>ve(P.palette.primary.main,.1),color:"primary.main",fontWeight:500,border:"1px solid",borderColor:P=>ve(P.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:"primary.main","&:hover":{color:"primary.dark"}}}})),...b})}const tT=lp,oT=D(bd,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:t,radio:n,varianteCustom:r})=>({boxShadow:t?"none":e.shadows[2],borderRadius:n||(t?0:12),backgroundColor:r==="cristal"?e.palette.mode==="dark"?ve(e.palette.common.white,.05):ve(e.palette.common.white,.6):"transparent",backdropFilter:r==="cristal"?"blur(8px)":"none",border:r==="cristal"?`1px solid ${e.palette.mode==="dark"?ve(e.palette.common.white,.1):ve(e.palette.common.white,.4)}`:"none",...t&&{boxShadow:"none",backgroundColor:"transparent",border:"none",gap:e.spacing(1),"& .MuiButtonGroup-grouped":{borderRadius:n||8,border:"none !important",boxShadow:e.shadows[1],"&:not(:last-of-type)":{borderRight:"none !important"}}},"& .MuiButtonGroup-firstButton, & .MuiButtonGroup-lastButton":{borderRadius:t?n||8:void 0}})),nT=({children:e,tamano:t="m",variante:n="contenido",color:r="primario",orientacion:a="horizontal",separado:i=!1,radio:s,...l})=>{const c=f=>f==="contenido"?"contained":f==="texto"?"text":f==="contorno"?"outlined":f==="cristal"?"text":"contained",u=f=>f==="primario"?"primary":f==="secundario"?"secondary":f==="exito"?"success":f==="error"?"error":f==="info"?"info":f==="advertencia"?"warning":f==="oscuro"||f==="claro"?"inherit":"primary",d=f=>f==="p"?"small":f==="m"?"medium":f==="g"?"large":"medium";return m.jsx(oT,{size:d(t),variant:c(n),color:u(r),orientation:a,separado:i,radio:s,varianteCustom:n,...l,children:e})},cp=D("span")(({theme:e,tamanoPx:t,variante:n,error:r})=>({borderRadius:6,width:t,height:t,boxShadow:n==="borde"?`inset 0 0 0 2px ${e.palette.divider}`:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:n==="borde"?"transparent":e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:n==="borde"?"none":e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5",borderColor:r?e.palette.error.main:e.palette.primary.main},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)",cursor:"not-allowed"},...r&&{boxShadow:`inset 0 0 0 2px ${e.palette.error.main}`,backgroundColor:ve(e.palette.error.main,.1)}})),up=D(cp)(({theme:e,colorHex:t,variante:n})=>({backgroundColor:t,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))",boxShadow:`0 0 0 1px ${t}`,"&::before":{display:"block",width:"100%",height:"100%",backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E")`,content:'""',backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"80%"},"input:hover ~ &":{backgroundColor:t,filter:"brightness(95%)"}})),rT=D(up)({"&::before":{backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='2' rx='1' fill='%23fff'/%3E%3C/svg%3E")`}}),Js=Re.forwardRef(({etiqueta:e,posicionEtiqueta:t="derecha",seleccionado:n,indeterminado:r=!1,deshabilitado:a=!1,soloLectura:i=!1,requerido:s=!1,error:l=!1,tamano:c="m",color:u="primario",variante:d="estandar",alCambiar:f,sx:y,className:x,...h},p)=>{const b=xt(),O={p:16,m:20,g:24}[c],C={primario:b.palette.primary.main,secundario:b.palette.secondary.main,exito:b.palette.success.main,error:b.palette.error.main,info:b.palette.info.main,advertencia:b.palette.warning.main}[u]||b.palette.primary.main,S={derecha:"end",izquierda:"start",arriba:"top",abajo:"bottom"},E=m.jsx(oa,{ref:p,checked:n,indeterminate:r,disabled:a,readOnly:i,required:s,onChange:f,sx:{"&:hover":{bgcolor:"transparent"},p:1,...y},disableRipple:!0,icon:m.jsx(cp,{tamanoPx:O,variante:d,error:l}),checkedIcon:m.jsx(up,{tamanoPx:O,variante:d,colorHex:l?b.palette.error.main:C}),indeterminateIcon:m.jsx(rT,{tamanoPx:O,variante:d,colorHex:l?b.palette.error.main:C}),inputProps:{"aria-label":typeof e=="string"?e:"Casilla"},...h});return e?m.jsx(Va,{control:E,label:m.jsxs(at,{variant:"body2",sx:{fontSize:c==="g"?"1rem":c==="p"?"0.8125rem":"0.875rem",color:a?"text.disabled":l?"error.main":"text.primary",fontWeight:500},children:[e," ",s&&m.jsx("span",{style:{color:b.palette.error.main},children:"*"})]}),labelPlacement:S[t],disabled:a,className:x,sx:{mx:0,gap:1,"&.MuiFormControlLabel-labelPlacementStart":{marginLeft:0,marginRight:0}}}):m.jsx("span",{className:x,children:E})});Js.displayName="CodeplexCasilla";const aT=Js,iT=lt(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),sT=lt(m.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),lT=D(Rn)(({theme:e,errorEstado:t})=>({"& .MuiOutlinedInput-root":{borderRadius:12,backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.03):ve(e.palette.common.black,.01),transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& fieldset":{borderColor:t?e.palette.error.main:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)"},"&:hover":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.05):ve(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:t?e.palette.error.dark:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:t?e.palette.error.main:e.palette.primary.main,borderWidth:2,boxShadow:t?`0 0 0 4px ${ve(e.palette.error.main,.1)}`:`0 0 0 4px ${ve(e.palette.primary.main,.1)}`},"& input[type=number]":{"-moz-appearance":"textfield","&::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0}},"& .MuiInputAdornment-root .MuiIconButton-root":{opacity:.5,transition:"all 0.2s","&:hover":{opacity:1,backgroundColor:ve(e.palette.primary.main,.1)},"&.Mui-disabled":{opacity:.2}},"&:hover .MuiInputAdornment-root .MuiIconButton-root":{opacity:.7}},"& .MuiInputLabel-root":{color:t?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:t?e.palette.error.main:e.palette.primary.main,fontWeight:600}}})),dp=({etiqueta:e,textoAyuda:t,minimo:n,maximo:r,paso:a=1,valor:i,valorPorDefecto:s,alineacion:l="centro",mostrarControles:c=!0,error:u,mensajeError:d,deshabilitado:f,soloLectura:y,anchoCompleto:x=!1,alCambiar:h,InputProps:p,...b})=>{const v=i!==void 0,[O,T]=Re.useState(v?i?.toString()??"":s?.toString()??"");Re.useEffect(()=>{v&&T(i?.toString()??"")},[i,v]);const C=O,S=A=>{if(A===""||A==="-"){T(A),A===""&&!v&&h?.(null);return}const g=parseFloat(A);isNaN(g)||(v||T(A),h?.(g))},E=()=>{let A=parseFloat(O);if(isNaN(A))return void 0;let g=A;typeof n=="number"&&A<n&&(g=n),typeof r=="number"&&A>r&&(g=r),g!==A&&(v||T(g.toString()),h?.(g))},P=()=>{let g=parseFloat(C||"0")+a;g=Math.round(g*1e4)/1e4,!(r!==void 0&&g>r)&&(v||T(g.toString()),h?.(g))},$=()=>{let g=parseFloat(C||"0")-a;g=Math.round(g*1e4)/1e4,!(n!==void 0&&g<n)&&(v||T(g.toString()),h?.(g))},I={izquierda:"left",centro:"center",derecha:"right"},N=u&&d?d:t;return m.jsx(lT,{type:"number",label:e,value:C,onChange:A=>S(A.target.value),onBlur:E,disabled:f,error:u,helperText:N,fullWidth:x,errorEstado:u,InputProps:{readOnly:y,startAdornment:c?m.jsx(tn,{position:"start",children:m.jsx(Cn,{onClick:$,disabled:f||y||n!==void 0&&parseFloat(C||"0")<=n,edge:"start",size:"small",children:m.jsx(sT,{fontSize:"small"})})}):null,endAdornment:c?m.jsx(tn,{position:"end",children:m.jsx(Cn,{onClick:P,disabled:f||y||r!==void 0&&parseFloat(C||"0")>=r,edge:"end",size:"small",children:m.jsx(iT,{fontSize:"small"})})}):null,sx:{"& input":{textAlign:I[l]||"center"},paddingRight:c?void 0:"14px"},...p},...b})},cT=dp,pp=D("span")(({theme:e})=>({borderRadius:"50%",width:20,height:20,boxShadow:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5"},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)"}})),uT=D(pp)({backgroundColor:"#137cbd",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&::before":{display:"block",width:20,height:20,backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'},"input:hover ~ &":{backgroundColor:"#106ba3"}}),Zs=Re.forwardRef(({etiqueta:e,posicionEtiqueta:t,sx:n,...r},a)=>{const i=m.jsx(zd,{ref:a,sx:{"&:hover":{bgcolor:"transparent"},...n},disableRipple:!0,color:"default",checkedIcon:m.jsx(uT,{}),icon:m.jsx(pp,{}),...r});return e?m.jsx(Va,{control:i,label:e,labelPlacement:t,sx:{"& .MuiFormControlLabel-label":{fontSize:"0.95rem",fontWeight:500,userSelect:"none"}}}):i});Zs.displayName="CodeplexRadio";const fp=({etiqueta:e,opciones:t,orientacion:n="vertical",valor:r,alCambiar:a,color:i,error:s,mensajeError:l,children:c,...u})=>{const d=t?t.map(y=>({value:y.valor,label:y.etiqueta,disabled:y.deshabilitado})):null,f=m.jsx(Vd,{row:n==="horizontal",value:r,onChange:a,...u,children:d?d.map(y=>m.jsx(Zs,{value:y.value,etiqueta:y.label,disabled:y.disabled},y.value)):c});return e||s?m.jsxs(za,{component:"fieldset",error:s,children:[e&&m.jsx(aa,{component:"legend",className:"mb-2 font-semibold",sx:{"&.Mui-focused":{color:s?"error.main":"primary.main"}},children:e}),f,s&&l&&m.jsx(aa,{error:!0,sx:{fontSize:"0.75rem",marginTop:.5},children:l})]}):f},dT=fp,mp=lt(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),pT=D(Ua)(({theme:e})=>({borderRadius:12,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,0.05)":"#fff",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.15)",transition:"all 0.2s"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2,boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(96, 165, 250, 0.2)":"rgba(37, 99, 235, 0.1)"}`},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline":{boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(239, 68, 68, 0.2)":"rgba(220, 38, 38, 0.1)"}`}})),fT=D(vn)(({theme:e})=>({position:"sticky",bottom:0,backgroundColor:e.palette.background.paper,borderTop:`1px solid ${e.palette.divider}`,color:e.palette.primary.main,fontWeight:600,zIndex:1,"&:hover":{backgroundColor:e.palette.action.hover},display:"flex",justifyContent:"center",textAlign:"center"})),mT=D(En)(({theme:e})=>({position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.paper,padding:"8px 16px",borderBottom:`1px solid ${e.palette.divider}`,lineHeight:"initial"})),gp=({value:e,onChange:t,size:n,multiple:r=!1,error:a,disabled:i,required:s,variant:l="outlined",displayEmpty:c,etiqueta:u,opciones:d,textoAyuda:f,marcador:y,renderizarValor:x,alCambiar:h,tamano:p,alCrearNuevo:b,textoCrearNuevo:v="Agregar opción...",mensajeError:O,buscable:T,children:C,sx:S,...E})=>{const P=xt(),$=h||t,I=p||n,[N,A]=Re.useState(""),g=Re.useMemo(()=>j(d),[d]);function j(L){return L?L.map(G=>({value:G.valor,label:G.etiqueta,disabled:G.deshabilitado})):[]}const R=Re.useMemo(()=>{if(!T||!N.trim())return g;const L=N.toLowerCase();return g.filter(G=>String(G.label).toLowerCase().includes(L))},[g,N,T]),M=L=>{if($){const J={target:{value:Array.isArray(e)?e.filter(te=>te!==L):[],name:E.name}};$(J,null)}},k=e===""||e===null||Array.isArray(e)&&e.length===0,z=L=>{if(x)return x(L);if(r){const G=Array.isArray(L)?L:[L];return g.length>0?m.jsx(Ue,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:G.map(J=>{const te=g.find(K=>K.value===J);return m.jsx(ja,{label:te?.label||J,size:"small",onDelete:()=>M(J),onMouseDown:K=>K.stopPropagation(),sx:{borderRadius:"8px",backgroundColor:K=>ve(K.palette.primary.main,.1),color:P.palette.primary.main,fontWeight:500,border:"1px solid",borderColor:K=>ve(K.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:P.palette.primary.main,"&:hover":{color:P.palette.primary.dark}}}},J)})}):G.join(", ")}return g.length>0?(L===""||L===null)&&y?m.jsx("span",{style:{color:P.palette.text.disabled},children:y}):g.find(J=>J.value===L)?.label||L:L},F=x||r||g.length>0,_=!k||!!y,B=a&&O?O:f;return m.jsxs(za,{fullWidth:!0,error:a,disabled:i,required:s,variant:l,sx:{minWidth:120,my:1,...S},children:[u&&m.jsx(Fs,{id:`select-label-${u}`,shrink:_,children:u}),m.jsxs(pT,{labelId:u?`select-label-${u}`:void 0,label:u,value:e,onChange:$,size:I,multiple:r,displayEmpty:!!y||c,renderValue:F?z:void 0,IconComponent:sp,onClose:()=>A(""),MenuProps:{autoFocus:!1,PaperProps:{elevation:0,sx:{mt:1.5,borderRadius:3,boxShadow:"0 8px 32px rgba(0,0,0,0.12)",border:"1px solid",borderColor:P.palette.mode==="dark"?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.05)",maxHeight:320,paddingBottom:b?0:1,"& .MuiMenuItem-root":{borderRadius:1.5,mx:1,my:.5,py:1,fontSize:"0.95rem",transition:"all 0.2s","&:hover":{backgroundColor:P.palette.action.hover,pl:2.5},"&.Mui-selected":{backgroundColor:P.palette.primary.light,color:P.palette.primary.contrastText,fontWeight:600,"&:hover":{backgroundColor:P.palette.primary.main}}}}}},...E,children:[T&&m.jsx(mT,{children:m.jsx(Rn,{size:"small",fullWidth:!0,placeholder:"Buscar...",value:N,onChange:L=>A(L.target.value),onKeyDown:L=>L.stopPropagation(),InputProps:{startAdornment:m.jsx(tn,{position:"start",children:m.jsx(mp,{fontSize:"small",color:"action"})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:2,backgroundColor:P.palette.action.hover,"& fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}}}})}),y&&m.jsx(vn,{value:"",disabled:!0,sx:{display:"none"},children:m.jsx("span",{style:{color:P.palette.text.disabled},children:y})}),R.length>0?R.map(L=>m.jsx(vn,{value:L.value,disabled:L.disabled,children:L.label},L.value)):T&&R.length===0&&N?m.jsx(vn,{disabled:!0,children:m.jsx("span",{style:{opacity:.7},children:"No hay resultados"})}):C,b&&m.jsxs(fT,{onClick:L=>{L.stopPropagation(),b()},value:"",disableRipple:!0,children:["+ ",v]})]}),B&&m.jsx(Bs,{children:B})]})},gT=gp,hT=D(Jd)(({theme:e})=>({height:6,"& .MuiSlider-track":{border:"none",borderRadius:3},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:"#fff",border:"2px solid currentColor","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&::before":{display:"none"},boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:e.palette.primary.main,transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&::before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}},"& .MuiSlider-mark":{backgroundColor:"#bfbfbf",height:8,width:1,"&.MuiSlider-markActive":{opacity:1,backgroundColor:"currentColor"}}})),hp=({etiqueta:e,textoAyuda:t,valor:n,minimo:r=0,maximo:a=100,paso:i=1,marcas:s,mostrarEtiquetaValor:l="auto",orientacion:c="horizontal",color:u="primario",alCambiar:d,tamano:f,className:y,sx:x,...h})=>{const p=O=>O==="primario"?"primary":O==="secundario"?"secondary":O==="exito"?"success":O==="error"?"error":O==="info"?"info":O==="advertencia"?"warning":"primary",b=O=>O==="siempre"?"on":O==="nunca"?"off":"auto",v=c==="vertical"?{height:300}:{};return m.jsxs(Ue,{sx:{width:"100%",...v,...x},className:y,children:[e&&m.jsx(at,{gutterBottom:!0,variant:"subtitle2",sx:{fontWeight:600,mb:1},children:e}),m.jsx(hT,{value:n,min:r,max:a,step:i,marks:s,valueLabelDisplay:b(l),orientation:c,color:p(u),onChange:d,size:f,...h}),t&&m.jsx(at,{variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block"},children:t})]})},bT=hp,yT=D(ep)(({theme:e})=>({width:44,height:24,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:22}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(20px)",color:"#fff","& + .MuiSwitch-track":{opacity:1}}},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorPrimary + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSecondary + .MuiSwitch-track":{backgroundColor:e.palette.secondary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSuccess + .MuiSwitch-track":{backgroundColor:e.palette.success.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorError + .MuiSwitch-track":{backgroundColor:e.palette.error.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorWarning + .MuiSwitch-track":{backgroundColor:e.palette.warning.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorInfo + .MuiSwitch-track":{backgroundColor:e.palette.info.main},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgba(0,0,0,0.2)",width:20,height:20,borderRadius:10,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:24/2,opacity:1,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,.35)":"rgba(0,0,0,.25)",boxSizing:"border-box"}})),bp=({etiqueta:e,posicionEtiqueta:t="fin",tamano:n="mediano",seleccionado:r,porDefectoSeleccionado:a,alCambiar:i,color:s="primario",deshabilitado:l,error:c,mensajeError:u,sx:d,className:f,...y})=>{const x=v=>v==="primario"?"primary":v==="secundario"?"secondary":v==="exito"?"success":v==="error"?"error":v==="advertencia"?"warning":v==="info"?"info":"primary",h=v=>v==="pequeno"?"small":"medium",p=v=>v==="inicio"?"start":v==="fin"?"end":v==="arriba"?"top":v==="abajo"?"bottom":"end",b=m.jsx(yT,{checked:r,defaultChecked:a,onChange:i,disabled:l,size:h(n),color:x(s),disableRipple:!0,sx:{...c&&{"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:v=>v.palette.error.main}},...d},className:f,...y});return e?m.jsxs(Ue,{sx:{display:"inline-flex",flexDirection:"column"},children:[m.jsx(Va,{control:b,label:e,labelPlacement:p(t),sx:{margin:0,gap:1,"& .MuiTypography-root":{fontSize:n==="pequeno"?"0.875rem":"1rem",fontWeight:500,color:l?"text.disabled":c?"error.main":"text.primary"}}}),c&&u&&m.jsx(Ue,{sx:{color:"error.main",fontSize:"0.75rem",mt:.5,ml:t==="inicio"?0:1},children:u})]}):b},vT=bp,xT=D(Rn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:12,transition:"background-color 0.2s, border-color 0.2s, box-shadow 0.2s",backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.03):ve(e.palette.common.black,.01),"& fieldset":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)",transition:"border-color 0.2s, border-width 0.2s, box-shadow 0.2s"},"&:hover":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.common.white,.05):ve(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:e.palette.primary.main,borderWidth:1},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.primary.main,.05):ve(e.palette.primary.main,.02)},"&.Mui-focused fieldset":{borderWidth:2,borderColor:e.palette.primary.main,boxShadow:`0 0 0 4px ${ve(e.palette.primary.main,.1)}`},"&.Mui-error fieldset":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused":{backgroundColor:e.palette.mode==="dark"?ve(e.palette.error.main,.05):ve(e.palette.error.main,.02)},"&.Mui-error.Mui-focused fieldset":{borderColor:e.palette.error.main,boxShadow:`0 0 0 4px ${ve(e.palette.error.main,.1)}`}},"& .MuiInputBase-input":{padding:"12px 14px",fontWeight:500,"&::placeholder":{opacity:.6}},"& .MuiInputLabel-root":{fontSize:"0.95rem",color:e.palette.text.secondary,"&.Mui-focused":{color:e.palette.primary.main,fontWeight:600},"&.Mui-error":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{marginLeft:14,fontSize:"0.75rem",marginTop:4}})),yp=({etiqueta:e,textoAyuda:t,valor:n,alCambiar:r,deshabilitado:a,soloLectura:i,error:s,mensajeError:l,multilinea:c,filas:u,filasMinimas:d,filasMaximas:f,marcador:y,anchoCompleto:x,tipo:h,iconoInicio:p,iconoFin:b,alEnfocar:v,alDesenfocar:O,InputProps:T,sx:C,...S})=>{const E=s&&l?l:t;return m.jsx(xT,{variant:"outlined",label:e,helperText:E,value:n,onChange:r,disabled:a,error:s,multiline:c,rows:u,minRows:d,maxRows:f,placeholder:y,fullWidth:x,type:h,onFocus:v,onBlur:O,sx:{my:1,...C},InputProps:{readOnly:i,startAdornment:p?m.jsx(tn,{position:"start",children:p}):void 0,endAdornment:b?m.jsx(tn,{position:"end",children:b}):void 0,...T},...S})},CT=yp,wT=lt(m.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded"),TT=lt(m.jsx("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded"),ST=D(Ss)(({theme:e})=>({borderRadius:16,border:`1px solid ${e.palette.divider}`,boxShadow:e.shadows[1],overflow:"hidden",height:"100%",display:"flex",flexDirection:"column",flex:1,transition:"box-shadow 0.3s ease, border-color 0.3s ease","&:hover":{boxShadow:e.shadows[4],borderColor:e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[700]}})),OT=D(yd)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.mode==="light"?e.palette.grey[50]:ve(e.palette.common.white,.05),borderBottom:`1px solid ${e.palette.divider}`,"& .MuiCardHeader-title":{fontSize:"1rem",fontWeight:700,color:e.palette.text.primary},"& .MuiCardHeader-subheader":{fontSize:"0.875rem",marginTop:2}})),ET=D(Ue)(({theme:e})=>({width:"100%",height:"100%",backgroundColor:e.palette.background.paper,overflow:"auto","&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:e.palette.action.hover,borderRadius:3},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}})),Wc=D(bs)(({theme:e})=>({borderRadius:12,minWidth:44,height:44,border:`1px solid ${e.palette.divider}`,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:e.palette.primary.main,borderColor:"transparent",color:e.palette.common.white,boxShadow:e.shadows[4],transform:"translateY(-2px) scale(1.05)"},"&.Mui-disabled":{border:`1px solid ${e.palette.action.disabledBackground}`,backgroundColor:"transparent",transform:"none",boxShadow:"none"}})),kT=D(Rn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:0,border:"none",backgroundColor:"transparent","& fieldset":{border:"none"},"&.Mui-focused":{boxShadow:"none"}},"& .MuiInputBase-input":{padding:e.spacing(1.5,2),fontSize:"0.875rem"}}));function gn(e,t){return e.filter(n=>t.indexOf(n)===-1)}function xi(e,t){return e.filter(n=>t.indexOf(n)!==-1)}function PT(e,t){return[...e,...gn(t,e)]}const vp=({izquierda:e=[],derecha:t=[],alCambiar:n,tituloIzquierda:r="Opciones",tituloDerecha:a="Elegidos",alto:i=320,buscable:s=!1,deshabilitado:l=!1})=>{const[c,u]=Re.useState([]),[d,f]=Re.useState(""),[y,x]=Re.useState(""),h=xi(c,e),p=xi(c,t),b=Re.useMemo(()=>!s||!d?e:e.filter($=>$.etiqueta.toLowerCase().includes(d.toLowerCase())),[e,d,s]),v=Re.useMemo(()=>!s||!y?t:t.filter($=>$.etiqueta.toLowerCase().includes(y.toLowerCase())),[t,y,s]),O=$=>()=>{if(l||$.deshabilitado)return;const I=c.indexOf($),N=[...c];I===-1?N.push($):N.splice(I,1),u(N)},T=$=>xi(c,$).length,C=$=>()=>{if(l)return;const I=$.filter(N=>!N.deshabilitado);T(I)===I.length&&I.length!==0?u(gn(c,I)):u(PT(c,I))},S=()=>{n&&(n(gn(e,h),t.concat(h)),u(gn(c,h)))},E=()=>{n&&(n(e.concat(p),gn(t,p)),u(gn(c,p)))},P=($,I,N,A)=>{const g=I.filter(M=>!M.deshabilitado),j=T(g)===g.length&&g.length!==0,R=T(g)!==g.length&&T(g)!==0;return m.jsxs(ST,{children:[m.jsx(OT,{avatar:m.jsx(oa,{onClick:C(I),checked:j,indeterminate:R,disabled:g.length===0||l,inputProps:{"aria-label":"todos los elementos seleccionados"},size:"small",sx:{color:"text.secondary","&.Mui-checked":{color:"primary.main"}}}),title:$,subheader:m.jsxs(at,{variant:"caption",color:"text.secondary",sx:{fontWeight:500},children:[T(I)," seleccionados"]})}),s&&m.jsxs(m.Fragment,{children:[m.jsx(ur,{}),m.jsx(kT,{placeholder:"Buscar...",fullWidth:!0,disabled:l,value:N,onChange:M=>A(M.target.value),InputProps:{startAdornment:m.jsx(tn,{position:"start",children:m.jsx(mp,{color:"action",fontSize:"small"})})}}),m.jsx(ur,{})]}),m.jsx(ET,{sx:{height:i},children:m.jsxs(_s,{dense:!0,component:"div",role:"list",sx:{py:1},children:[I.length===0&&m.jsx(Ue,{sx:{p:4,textAlign:"center",opacity:.5},children:m.jsx(at,{variant:"caption",children:"No hay elementos"})}),I.map(M=>{const k=`transfer-list-all-item-${M.id}-label`,z=c.indexOf(M)!==-1,F=l||M.deshabilitado;return m.jsx(Pd,{disablePadding:!0,sx:{mb:.5,px:1},children:m.jsxs(kd,{role:"listitem",onClick:O(M),disabled:F,selected:z,sx:{borderRadius:2,transition:"all 0.2s","&:hover":{backgroundColor:_=>F?void 0:ve(_.palette.primary.main,.08)},"&.Mui-selected":{backgroundColor:_=>ve(_.palette.primary.main,.12),"&:hover":{backgroundColor:_=>ve(_.palette.primary.main,.16)}}},children:[m.jsx(Rd,{sx:{minWidth:40},children:m.jsx(oa,{checked:z,tabIndex:-1,disableRipple:!0,disabled:F,inputProps:{"aria-labelledby":k},size:"small",edge:"start"})}),m.jsx($d,{id:k,primary:M.etiqueta,primaryTypographyProps:{fontWeight:z?600:400,color:z&&!F?"primary.main":"text.primary"}})]})},M.id)})]})})]})};return m.jsxs(Xi,{direction:{xs:"column",md:"row"},spacing:3,justifyContent:"center",alignItems:"center",children:[m.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:P(r,b,d,f)}),m.jsx(Ue,{children:m.jsxs(Xi,{direction:"column",spacing:2,children:[m.jsx(Wc,{onClick:S,disabled:h.length===0||l,"aria-label":"mover seleccionados a la derecha",children:m.jsx(wT,{fontSize:"small"})}),m.jsx(Wc,{onClick:E,disabled:p.length===0||l,"aria-label":"mover seleccionados a la izquierda",children:m.jsx(TT,{fontSize:"small"})})]})}),m.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:P(a,v,y,x)})]})},RT=vp,$T=({children:e,PaperProps:t,...n})=>{const r=xt();return m.jsx(xd,{PaperProps:{elevation:24,sx:{borderRadius:3,backgroundImage:"none",backgroundColor:r.palette.background.paper,...t?.sx},...t},...n,children:e})},IT=({sx:e,children:t,...n})=>m.jsx(Sd,{sx:{fontWeight:700,fontSize:"1.25rem",pb:1,...e},...n,children:t}),jT=({sx:e,children:t,...n})=>m.jsx(wd,{sx:{py:2,...e},...n,children:t}),MT=({sx:e,children:t,...n})=>m.jsx(Td,{sx:{mb:2,color:"text.secondary",...e},...n,children:t}),NT=({sx:e,children:t,...n})=>m.jsx(Cd,{sx:{px:3,pb:3,gap:1,...e},...n,children:t});exports.CodeplexAlert=Sy;exports.CodeplexAlerta=od;exports.CodeplexAutocompletado=lp;exports.CodeplexAutocomplete=tT;exports.CodeplexAvatar=$b;exports.CodeplexAvatarGroup=Rb;exports.CodeplexAvatarUsuario=Wu;exports.CodeplexAviso=ed;exports.CodeplexAyudaEntrada=ap;exports.CodeplexBadge=Qh;exports.CodeplexBanner=ty;exports.CodeplexBoton=ys;exports.CodeplexButton=Hh;exports.CodeplexCampoNumero=dp;exports.CodeplexCampoTexto=yp;exports.CodeplexCard=Zb;exports.CodeplexCargando=zu;exports.CodeplexCasilla=Js;exports.CodeplexCheckbox=aT;exports.CodeplexDeslizador=hp;exports.CodeplexDialogo=$T;exports.CodeplexDialogoAcciones=NT;exports.CodeplexDialogoContenido=jT;exports.CodeplexDialogoTexto=MT;exports.CodeplexDialogoTitulo=IT;exports.CodeplexElementoMenu=vn;exports.CodeplexEncabezadoPrincipal=Qu;exports.CodeplexEsqueleto=ip;exports.CodeplexEtiquetaInteligente=qu;exports.CodeplexGrupoAvatares=Uu;exports.CodeplexGrupoBotones=nT;exports.CodeplexGrupoFormulario=Ds;exports.CodeplexGrupoRadio=fp;exports.CodeplexInputHelper=Jw;exports.CodeplexInsignia=Fu;exports.CodeplexInterruptor=bp;exports.CodeplexJumbotron=Qb;exports.CodeplexKbd=lb;exports.CodeplexListaTransferencia=vp;exports.CodeplexMensajeEmergente=op;exports.CodeplexNotificacion=Xs;exports.CodeplexNumberField=cT;exports.CodeplexPopupRequisitos=ws;exports.CodeplexProgreso=np;exports.CodeplexProgress=Gw;exports.CodeplexRadio=Zs;exports.CodeplexRadioGroup=dT;exports.CodeplexRating=Xw;exports.CodeplexRequirementsPopup=Ib;exports.CodeplexSelect=gT;exports.CodeplexSelector=gp;exports.CodeplexSkeleton=Qw;exports.CodeplexSlider=bT;exports.CodeplexSmartLabel=jb;exports.CodeplexSpinner=sb;exports.CodeplexSubcabeceraLista=En;exports.CodeplexSwitch=vT;exports.CodeplexTarjeta=Zu;exports.CodeplexTeclado=Vu;exports.CodeplexTextField=CT;exports.CodeplexToast=qw;exports.CodeplexTooltip=Ww;exports.CodeplexTostada=Hw;exports.CodeplexTransferList=RT;exports.CodeplexValoracion=rp;exports.EntradaOcultaVisualmente=Uh;exports.Ui=wp;exports.avatarCadena=Hu;exports.stringAvatar=Pb;
|