componentes-exagono 0.1.35 → 0.1.36

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/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(vt,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@mui/material"),require("date-fns"),require("react-dom"),require("notistack")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","date-fns","react-dom","notistack"],x):(vt=typeof globalThis<"u"?globalThis:vt||self,x(vt.exagono={},vt.React,vt.MaterialUI,vt.dateFns,vt.ReactDOM,vt.notistack))})(this,(function(vt,x,N,w,ln,ga){"use strict";function kc(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const $=kc(x),sh=kc(ln);function ch(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oo={exports:{}},Ln={};/**
1
+ (function(vt,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@mui/material"),require("date-fns"),require("react-dom"),require("notistack")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","date-fns","react-dom","notistack"],x):(vt=typeof globalThis<"u"?globalThis:vt||self,x(vt.exagono={},vt.React,vt.MaterialUI,vt.dateFns,vt.ReactDOM,vt.notistack))})(this,(function(vt,x,$,w,ln,ya){"use strict";function Tc(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const j=Tc(x),ch=Tc(ln);function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Po={exports:{}},zn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Dc;function lh(){if(Dc)return Ln;Dc=1;var e=x,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,l){var u,d={},f=null,m=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:r,type:s,key:f,ref:m,props:d,_owner:o.current}}return Ln.Fragment=t,Ln.jsx=a,Ln.jsxs=a,Ln}var zn={};/**
9
+ */var Oc;function uh(){if(Oc)return zn;Oc=1;var e=x,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,l){var u,d={},f=null,m=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:r,type:s,key:f,ref:m,props:d,_owner:o.current}}return zn.Fragment=t,zn.jsx=a,zn.jsxs=a,zn}var Bn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,39 +14,39 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Tc;function uh(){return Tc||(Tc=1,process.env.NODE_ENV!=="production"&&(function(){var e=x,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(D){if(D===null||typeof D!="object")return null;var X=g&&D[g]||D[p];return typeof X=="function"?X:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(D){{for(var X=arguments.length,ae=new Array(X>1?X-1:0),ve=1;ve<X;ve++)ae[ve-1]=arguments[ve];k("error",D,ae)}}function k(D,X,ae){{var ve=S.ReactDebugCurrentFrame,Re=ve.getStackAddendum();Re!==""&&(X+="%s",ae=ae.concat([Re]));var Fe=ae.map(function(Ce){return String(Ce)});Fe.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,Fe)}}var E=!1,_=!1,O=!1,R=!1,q=!1,Z;Z=Symbol.for("react.module.reference");function j(D){return!!(typeof D=="string"||typeof D=="function"||D===n||D===i||q||D===o||D===l||D===u||R||D===m||E||_||O||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===d||D.$$typeof===a||D.$$typeof===s||D.$$typeof===c||D.$$typeof===Z||D.getModuleId!==void 0))}function K(D,X,ae){var ve=D.displayName;if(ve)return ve;var Re=X.displayName||X.name||"";return Re!==""?ae+"("+Re+")":ae}function v(D){return D.displayName||"Context"}function A(D){if(D==null)return null;if(typeof D.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case s:var X=D;return v(X)+".Consumer";case a:var ae=D;return v(ae._context)+".Provider";case c:return K(D,D.render,"ForwardRef");case d:var ve=D.displayName||null;return ve!==null?ve:A(D.type)||"Memo";case f:{var Re=D,Fe=Re._payload,Ce=Re._init;try{return A(Ce(Fe))}catch{return null}}}return null}var P=Object.assign,H=0,W,J,V,Q,L,U,ce;function ge(){}ge.__reactDisabledLog=!0;function he(){{if(H===0){W=console.log,J=console.info,V=console.warn,Q=console.error,L=console.group,U=console.groupCollapsed,ce=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}H++}}function ee(){{if(H--,H===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},D,{value:W}),info:P({},D,{value:J}),warn:P({},D,{value:V}),error:P({},D,{value:Q}),group:P({},D,{value:L}),groupCollapsed:P({},D,{value:U}),groupEnd:P({},D,{value:ce})})}H<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=S.ReactCurrentDispatcher,se;function le(D,X,ae){{if(se===void 0)try{throw Error()}catch(Re){var ve=Re.stack.trim().match(/\n( *(at )?)/);se=ve&&ve[1]||""}return`
18
- `+se+D}}var me=!1,ue;{var Te=typeof WeakMap=="function"?WeakMap:Map;ue=new Te}function B(D,X){if(!D||me)return"";{var ae=ue.get(D);if(ae!==void 0)return ae}var ve;me=!0;var Re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=G.current,G.current=null,he();try{if(X){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Mt){ve=Mt}Reflect.construct(D,[],Ce)}else{try{Ce.call()}catch(Mt){ve=Mt}D.call(Ce.prototype)}}else{try{throw Error()}catch(Mt){ve=Mt}D()}}catch(Mt){if(Mt&&ve&&typeof Mt.stack=="string"){for(var Se=Mt.stack.split(`
19
- `),xt=ve.stack.split(`
20
- `),at=Se.length-1,lt=xt.length-1;at>=1&&lt>=0&&Se[at]!==xt[lt];)lt--;for(;at>=1&&lt>=0;at--,lt--)if(Se[at]!==xt[lt]){if(at!==1||lt!==1)do if(at--,lt--,lt<0||Se[at]!==xt[lt]){var Wt=`
21
- `+Se[at].replace(" at new "," at ");return D.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",D.displayName)),typeof D=="function"&&ue.set(D,Wt),Wt}while(at>=1&&lt>=0);break}}}finally{me=!1,G.current=Fe,ee(),Error.prepareStackTrace=Re}var jn=D?D.displayName||D.name:"",cn=jn?le(jn):"";return typeof D=="function"&&ue.set(D,cn),cn}function Ve(D,X,ae){return B(D,!1)}function Qe(D){var X=D.prototype;return!!(X&&X.isReactComponent)}function wt(D,X,ae){if(D==null)return"";if(typeof D=="function")return B(D,Qe(D));if(typeof D=="string")return le(D);switch(D){case l:return le("Suspense");case u:return le("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case c:return Ve(D.render);case d:return wt(D.type,X,ae);case f:{var ve=D,Re=ve._payload,Fe=ve._init;try{return wt(Fe(Re),X,ae)}catch{}}}return""}var kr=Object.prototype.hasOwnProperty,Dr={},Tr=S.ReactDebugCurrentFrame;function Or(D){if(D){var X=D._owner,ae=wt(D.type,D._source,X?X.type:null);Tr.setExtraStackFrame(ae)}else Tr.setExtraStackFrame(null)}function T(D,X,ae,ve,Re){{var Fe=Function.call.bind(kr);for(var Ce in D)if(Fe(D,Ce)){var Se=void 0;try{if(typeof D[Ce]!="function"){var xt=Error((ve||"React class")+": "+ae+" type `"+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[Ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xt.name="Invariant Violation",xt}Se=D[Ce](X,Ce,ve,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(at){Se=at}Se&&!(Se instanceof Error)&&(Or(Re),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",ae,Ce,typeof Se),Or(null)),Se instanceof Error&&!(Se.message in Dr)&&(Dr[Se.message]=!0,Or(Re),C("Failed %s type: %s",ae,Se.message),Or(null))}}}var I=Array.isArray;function M(D){return I(D)}function ie(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,ae=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ae}}function re(D){try{return te(D),!1}catch{return!0}}function te(D){return""+D}function fe(D){if(re(D))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(D)),te(D)}var Ee=S.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},_t,sn;function gr(D){if(kr.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function wc(D){if(kr.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Do(D,X){typeof D.ref=="string"&&Ee.current}function To(D,X){{var ae=function(){_t||(_t=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};ae.isReactWarning=!0,Object.defineProperty(D,"key",{get:ae,configurable:!0})}}function _c(D,X){{var ae=function(){sn||(sn=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};ae.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ae,configurable:!0})}}var ma=function(D,X,ae,ve,Re,Fe,Ce){var Se={$$typeof:r,type:D,key:X,ref:ae,props:Ce,_owner:Fe};return Se._store={},Object.defineProperty(Se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se};function xc(D,X,ae,ve,Re){{var Fe,Ce={},Se=null,xt=null;ae!==void 0&&(fe(ae),Se=""+ae),wc(X)&&(fe(X.key),Se=""+X.key),gr(X)&&(xt=X.ref,Do(X,Re));for(Fe in X)kr.call(X,Fe)&&!Be.hasOwnProperty(Fe)&&(Ce[Fe]=X[Fe]);if(D&&D.defaultProps){var at=D.defaultProps;for(Fe in at)Ce[Fe]===void 0&&(Ce[Fe]=at[Fe])}if(Se||xt){var lt=typeof D=="function"?D.displayName||D.name||"Unknown":D;Se&&To(Ce,lt),xt&&_c(Ce,lt)}return ma(D,Se,xt,Re,ve,Ee.current,Ce)}}var Nn=S.ReactCurrentOwner,Jp=S.ReactDebugCurrentFrame;function $n(D){if(D){var X=D._owner,ae=wt(D.type,D._source,X?X.type:null);Jp.setExtraStackFrame(ae)}else Jp.setExtraStackFrame(null)}var Sc;Sc=!1;function Cc(D){return typeof D=="object"&&D!==null&&D.$$typeof===r}function eh(){{if(Nn.current){var D=A(Nn.current.type);if(D)return`
17
+ */var Mc;function dh(){return Mc||(Mc=1,process.env.NODE_ENV!=="production"&&(function(){var e=x,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(D){if(D===null||typeof D!="object")return null;var X=g&&D[g]||D[p];return typeof X=="function"?X:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(D){{for(var X=arguments.length,le=new Array(X>1?X-1:0),ye=1;ye<X;ye++)le[ye-1]=arguments[ye];k("error",D,le)}}function k(D,X,le){{var ye=S.ReactDebugCurrentFrame,Ne=ye.getStackAddendum();Ne!==""&&(X+="%s",le=le.concat([Ne]));var Fe=le.map(function(ke){return String(ke)});Fe.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,Fe)}}var E=!1,_=!1,O=!1,N=!1,q=!1,Z;Z=Symbol.for("react.module.reference");function L(D){return!!(typeof D=="string"||typeof D=="function"||D===n||D===i||q||D===o||D===l||D===u||N||D===m||E||_||O||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===d||D.$$typeof===a||D.$$typeof===s||D.$$typeof===c||D.$$typeof===Z||D.getModuleId!==void 0))}function K(D,X,le){var ye=D.displayName;if(ye)return ye;var Ne=X.displayName||X.name||"";return Ne!==""?le+"("+Ne+")":le}function v(D){return D.displayName||"Context"}function I(D){if(D==null)return null;if(typeof D.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case s:var X=D;return v(X)+".Consumer";case a:var le=D;return v(le._context)+".Provider";case c:return K(D,D.render,"ForwardRef");case d:var ye=D.displayName||null;return ye!==null?ye:I(D.type)||"Memo";case f:{var Ne=D,Fe=Ne._payload,ke=Ne._init;try{return I(ke(Fe))}catch{return null}}}return null}var A=Object.assign,U=0,H,ee,re,se,V,G,ge;function ve(){}ve.__reactDisabledLog=!0;function he(){{if(U===0){H=console.log,ee=console.info,re=console.warn,se=console.error,V=console.group,G=console.groupCollapsed,ge=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}U++}}function J(){{if(U--,U===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},D,{value:H}),info:A({},D,{value:ee}),warn:A({},D,{value:re}),error:A({},D,{value:se}),group:A({},D,{value:V}),groupCollapsed:A({},D,{value:G}),groupEnd:A({},D,{value:ge})})}U<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=S.ReactCurrentDispatcher,ce;function ue(D,X,le){{if(ce===void 0)try{throw Error()}catch(Ne){var ye=Ne.stack.trim().match(/\n( *(at )?)/);ce=ye&&ye[1]||""}return`
18
+ `+ce+D}}var F=!1,W;{var de=typeof WeakMap=="function"?WeakMap:Map;W=new de}function P(D,X){if(!D||F)return"";{var le=W.get(D);if(le!==void 0)return le}var ye;F=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=Q.current,Q.current=null,he();try{if(X){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Mt){ye=Mt}Reflect.construct(D,[],ke)}else{try{ke.call()}catch(Mt){ye=Mt}D.call(ke.prototype)}}else{try{throw Error()}catch(Mt){ye=Mt}D()}}catch(Mt){if(Mt&&ye&&typeof Mt.stack=="string"){for(var Ee=Mt.stack.split(`
19
+ `),xt=ye.stack.split(`
20
+ `),at=Ee.length-1,lt=xt.length-1;at>=1&&lt>=0&&Ee[at]!==xt[lt];)lt--;for(;at>=1&&lt>=0;at--,lt--)if(Ee[at]!==xt[lt]){if(at!==1||lt!==1)do if(at--,lt--,lt<0||Ee[at]!==xt[lt]){var Wt=`
21
+ `+Ee[at].replace(" at new "," at ");return D.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",D.displayName)),typeof D=="function"&&W.set(D,Wt),Wt}while(at>=1&&lt>=0);break}}}finally{F=!1,Q.current=Fe,J(),Error.prepareStackTrace=Ne}var Ln=D?D.displayName||D.name:"",cn=Ln?ue(Ln):"";return typeof D=="function"&&W.set(D,cn),cn}function we(D,X,le){return P(D,!1)}function Qe(D){var X=D.prototype;return!!(X&&X.isReactComponent)}function wt(D,X,le){if(D==null)return"";if(typeof D=="function")return P(D,Qe(D));if(typeof D=="string")return ue(D);switch(D){case l:return ue("Suspense");case u:return ue("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case c:return we(D.render);case d:return wt(D.type,X,le);case f:{var ye=D,Ne=ye._payload,Fe=ye._init;try{return wt(Fe(Ne),X,le)}catch{}}}return""}var kr=Object.prototype.hasOwnProperty,Dr={},Tr=S.ReactDebugCurrentFrame;function Or(D){if(D){var X=D._owner,le=wt(D.type,D._source,X?X.type:null);Tr.setExtraStackFrame(le)}else Tr.setExtraStackFrame(null)}function T(D,X,le,ye,Ne){{var Fe=Function.call.bind(kr);for(var ke in D)if(Fe(D,ke)){var Ee=void 0;try{if(typeof D[ke]!="function"){var xt=Error((ye||"React class")+": "+le+" type `"+ke+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[ke]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xt.name="Invariant Violation",xt}Ee=D[ke](X,ke,ye,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(at){Ee=at}Ee&&!(Ee instanceof Error)&&(Or(Ne),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ye||"React class",le,ke,typeof Ee),Or(null)),Ee instanceof Error&&!(Ee.message in Dr)&&(Dr[Ee.message]=!0,Or(Ne),C("Failed %s type: %s",le,Ee.message),Or(null))}}}var R=Array.isArray;function M(D){return R(D)}function ae(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,le=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return le}}function ne(D){try{return te(D),!1}catch{return!0}}function te(D){return""+D}function pe(D){if(ne(D))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ae(D)),te(D)}var De=S.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},_t,sn;function gr(D){if(kr.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function xc(D){if(kr.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Oo(D,X){typeof D.ref=="string"&&De.current}function Mo(D,X){{var le=function(){_t||(_t=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};le.isReactWarning=!0,Object.defineProperty(D,"key",{get:le,configurable:!0})}}function Sc(D,X){{var le=function(){sn||(sn=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};le.isReactWarning=!0,Object.defineProperty(D,"ref",{get:le,configurable:!0})}}var va=function(D,X,le,ye,Ne,Fe,ke){var Ee={$$typeof:r,type:D,key:X,ref:le,props:ke,_owner:Fe};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function Cc(D,X,le,ye,Ne){{var Fe,ke={},Ee=null,xt=null;le!==void 0&&(pe(le),Ee=""+le),xc(X)&&(pe(X.key),Ee=""+X.key),gr(X)&&(xt=X.ref,Oo(X,Ne));for(Fe in X)kr.call(X,Fe)&&!Ve.hasOwnProperty(Fe)&&(ke[Fe]=X[Fe]);if(D&&D.defaultProps){var at=D.defaultProps;for(Fe in at)ke[Fe]===void 0&&(ke[Fe]=at[Fe])}if(Ee||xt){var lt=typeof D=="function"?D.displayName||D.name||"Unknown":D;Ee&&Mo(ke,lt),xt&&Sc(ke,lt)}return va(D,Ee,xt,Ne,ye,De.current,ke)}}var $n=S.ReactCurrentOwner,eh=S.ReactDebugCurrentFrame;function jn(D){if(D){var X=D._owner,le=wt(D.type,D._source,X?X.type:null);eh.setExtraStackFrame(le)}else eh.setExtraStackFrame(null)}var Ec;Ec=!1;function kc(D){return typeof D=="object"&&D!==null&&D.$$typeof===r}function th(){{if($n.current){var D=I($n.current.type);if(D)return`
22
22
 
23
- Check the render method of \``+D+"`."}return""}}function GE(D){return""}var th={};function QE(D){{var X=eh();if(!X){var ae=typeof D=="string"?D:D.displayName||D.name;ae&&(X=`
23
+ Check the render method of \``+D+"`."}return""}}function QE(D){return""}var rh={};function XE(D){{var X=th();if(!X){var le=typeof D=="string"?D:D.displayName||D.name;le&&(X=`
24
24
 
25
- Check the top-level render call using <`+ae+">.")}return X}}function rh(D,X){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var ae=QE(X);if(th[ae])return;th[ae]=!0;var ve="";D&&D._owner&&D._owner!==Nn.current&&(ve=" It was passed a child from "+A(D._owner.type)+"."),$n(D),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,ve),$n(null)}}function nh(D,X){{if(typeof D!="object")return;if(M(D))for(var ae=0;ae<D.length;ae++){var ve=D[ae];Cc(ve)&&rh(ve,X)}else if(Cc(D))D._store&&(D._store.validated=!0);else if(D){var Re=y(D);if(typeof Re=="function"&&Re!==D.entries)for(var Fe=Re.call(D),Ce;!(Ce=Fe.next()).done;)Cc(Ce.value)&&rh(Ce.value,X)}}}function XE(D){{var X=D.type;if(X==null||typeof X=="string")return;var ae;if(typeof X=="function")ae=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===c||X.$$typeof===d))ae=X.propTypes;else return;if(ae){var ve=A(X);T(ae,D.props,"prop",ve,D)}else if(X.PropTypes!==void 0&&!Sc){Sc=!0;var Re=A(X);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Re||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function JE(D){{for(var X=Object.keys(D.props),ae=0;ae<X.length;ae++){var ve=X[ae];if(ve!=="children"&&ve!=="key"){$n(D),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),$n(null);break}}D.ref!==null&&($n(D),C("Invalid attribute `ref` supplied to `React.Fragment`."),$n(null))}}var oh={};function ih(D,X,ae,ve,Re,Fe){{var Ce=j(D);if(!Ce){var Se="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xt=GE();xt?Se+=xt:Se+=eh();var at;D===null?at="null":M(D)?at="array":D!==void 0&&D.$$typeof===r?(at="<"+(A(D.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):at=typeof D,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",at,Se)}var lt=xc(D,X,ae,Re,Fe);if(lt==null)return lt;if(Ce){var Wt=X.children;if(Wt!==void 0)if(ve)if(M(Wt)){for(var jn=0;jn<Wt.length;jn++)nh(Wt[jn],D);Object.freeze&&Object.freeze(Wt)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else nh(Wt,D)}if(kr.call(X,"key")){var cn=A(D),Mt=Object.keys(X).filter(function(ik){return ik!=="key"}),Ec=Mt.length>0?"{key: someKey, "+Mt.join(": ..., ")+": ...}":"{key: someKey}";if(!oh[cn+Ec]){var ok=Mt.length>0?"{"+Mt.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+le+">.")}return X}}function nh(D,X){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var le=XE(X);if(rh[le])return;rh[le]=!0;var ye="";D&&D._owner&&D._owner!==$n.current&&(ye=" It was passed a child from "+I(D._owner.type)+"."),jn(D),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,ye),jn(null)}}function oh(D,X){{if(typeof D!="object")return;if(M(D))for(var le=0;le<D.length;le++){var ye=D[le];kc(ye)&&nh(ye,X)}else if(kc(D))D._store&&(D._store.validated=!0);else if(D){var Ne=y(D);if(typeof Ne=="function"&&Ne!==D.entries)for(var Fe=Ne.call(D),ke;!(ke=Fe.next()).done;)kc(ke.value)&&nh(ke.value,X)}}}function JE(D){{var X=D.type;if(X==null||typeof X=="string")return;var le;if(typeof X=="function")le=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===c||X.$$typeof===d))le=X.propTypes;else return;if(le){var ye=I(X);T(le,D.props,"prop",ye,D)}else if(X.PropTypes!==void 0&&!Ec){Ec=!0;var Ne=I(X);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ek(D){{for(var X=Object.keys(D.props),le=0;le<X.length;le++){var ye=X[le];if(ye!=="children"&&ye!=="key"){jn(D),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ye),jn(null);break}}D.ref!==null&&(jn(D),C("Invalid attribute `ref` supplied to `React.Fragment`."),jn(null))}}var ih={};function ah(D,X,le,ye,Ne,Fe){{var ke=L(D);if(!ke){var Ee="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xt=QE();xt?Ee+=xt:Ee+=th();var at;D===null?at="null":M(D)?at="array":D!==void 0&&D.$$typeof===r?(at="<"+(I(D.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):at=typeof D,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",at,Ee)}var lt=Cc(D,X,le,Ne,Fe);if(lt==null)return lt;if(ke){var Wt=X.children;if(Wt!==void 0)if(ye)if(M(Wt)){for(var Ln=0;Ln<Wt.length;Ln++)oh(Wt[Ln],D);Object.freeze&&Object.freeze(Wt)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else oh(Wt,D)}if(kr.call(X,"key")){var cn=I(D),Mt=Object.keys(X).filter(function(ak){return ak!=="key"}),Dc=Mt.length>0?"{key: someKey, "+Mt.join(": ..., ")+": ...}":"{key: someKey}";if(!ih[cn+Dc]){var ik=Mt.length>0?"{"+Mt.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Ec,cn,ok,cn),oh[cn+Ec]=!0}}return D===n?JE(lt):XE(lt),lt}}function ek(D,X,ae){return ih(D,X,ae,!0)}function tk(D,X,ae){return ih(D,X,ae,!1)}var rk=tk,nk=ek;zn.Fragment=n,zn.jsx=rk,zn.jsxs=nk})()),zn}var Oc;function dh(){return Oc||(Oc=1,process.env.NODE_ENV==="production"?Oo.exports=lh():Oo.exports=uh()),Oo.exports}var h=dh();const Zt={dashboardContainer:"_dashboardContainer_1aedh_1",sidebar:"_sidebar_1aedh_21",sidebarContent:"_sidebarContent_1aedh_41",header:"_header_1aedh_51",mainContent:"_mainContent_1aedh_75",sidebarCollapsed:"_sidebarCollapsed_1aedh_93",collapseButton:"_collapseButton_1aedh_111",menuButton:"_menuButton_1aedh_131",overlay:"_overlay_1aedh_133",headerContent:"_headerContent_1aedh_143",sidebarOpen:"_sidebarOpen_1aedh_195"},Mc=e=>e,Pc=(()=>{let e=Mc;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Mc}}})();function Mr(e,...r){const t=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${t} for the full message.`}function Ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Mo={exports:{}},Po={exports:{}},Oe={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,Dc,cn,ik,cn),ih[cn+Dc]=!0}}return D===n?ek(lt):JE(lt),lt}}function tk(D,X,le){return ah(D,X,le,!0)}function rk(D,X,le){return ah(D,X,le,!1)}var nk=rk,ok=tk;Bn.Fragment=n,Bn.jsx=nk,Bn.jsxs=ok})()),Bn}var Pc;function fh(){return Pc||(Pc=1,process.env.NODE_ENV==="production"?Po.exports=uh():Po.exports=dh()),Po.exports}var h=fh();const Zt={dashboardContainer:"_dashboardContainer_1aedh_1",sidebar:"_sidebar_1aedh_21",sidebarContent:"_sidebarContent_1aedh_41",header:"_header_1aedh_51",mainContent:"_mainContent_1aedh_75",sidebarCollapsed:"_sidebarCollapsed_1aedh_93",collapseButton:"_collapseButton_1aedh_111",menuButton:"_menuButton_1aedh_131",overlay:"_overlay_1aedh_133",headerContent:"_headerContent_1aedh_143",sidebarOpen:"_sidebarOpen_1aedh_195"},Ac=e=>e,Ic=(()=>{let e=Ac;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Ac}}})();function Mr(e,...r){const t=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${t} for the full message.`}function Ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ao={exports:{}},Io={exports:{}},Me={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Ac;function fh(){if(Ac)return Oe;Ac=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case r:switch(_=_.type,_){case c:case l:case n:case i:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case g:case m:case a:return _;default:return O}}case t:return O}}}function E(_){return k(_)===l}return Oe.AsyncMode=c,Oe.ConcurrentMode=l,Oe.ContextConsumer=s,Oe.ContextProvider=a,Oe.Element=r,Oe.ForwardRef=u,Oe.Fragment=n,Oe.Lazy=g,Oe.Memo=m,Oe.Portal=t,Oe.Profiler=i,Oe.StrictMode=o,Oe.Suspense=d,Oe.isAsyncMode=function(_){return E(_)||k(_)===c},Oe.isConcurrentMode=E,Oe.isContextConsumer=function(_){return k(_)===s},Oe.isContextProvider=function(_){return k(_)===a},Oe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},Oe.isForwardRef=function(_){return k(_)===u},Oe.isFragment=function(_){return k(_)===n},Oe.isLazy=function(_){return k(_)===g},Oe.isMemo=function(_){return k(_)===m},Oe.isPortal=function(_){return k(_)===t},Oe.isProfiler=function(_){return k(_)===i},Oe.isStrictMode=function(_){return k(_)===o},Oe.isSuspense=function(_){return k(_)===d},Oe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===l||_===i||_===o||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===y||_.$$typeof===S||_.$$typeof===C||_.$$typeof===p)},Oe.typeOf=k,Oe}var Me={};/** @license React v16.13.1
37
+ */var Rc;function ph(){if(Rc)return Me;Rc=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case r:switch(_=_.type,_){case c:case l:case n:case i:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case g:case m:case a:return _;default:return O}}case t:return O}}}function E(_){return k(_)===l}return Me.AsyncMode=c,Me.ConcurrentMode=l,Me.ContextConsumer=s,Me.ContextProvider=a,Me.Element=r,Me.ForwardRef=u,Me.Fragment=n,Me.Lazy=g,Me.Memo=m,Me.Portal=t,Me.Profiler=i,Me.StrictMode=o,Me.Suspense=d,Me.isAsyncMode=function(_){return E(_)||k(_)===c},Me.isConcurrentMode=E,Me.isContextConsumer=function(_){return k(_)===s},Me.isContextProvider=function(_){return k(_)===a},Me.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},Me.isForwardRef=function(_){return k(_)===u},Me.isFragment=function(_){return k(_)===n},Me.isLazy=function(_){return k(_)===g},Me.isMemo=function(_){return k(_)===m},Me.isPortal=function(_){return k(_)===t},Me.isProfiler=function(_){return k(_)===i},Me.isStrictMode=function(_){return k(_)===o},Me.isSuspense=function(_){return k(_)===d},Me.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===l||_===i||_===o||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===y||_.$$typeof===S||_.$$typeof===C||_.$$typeof===p)},Me.typeOf=k,Me}var Pe={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Ic;function ph(){return Ic||(Ic=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(B){return typeof B=="string"||typeof B=="function"||B===n||B===l||B===i||B===o||B===d||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===m||B.$$typeof===a||B.$$typeof===s||B.$$typeof===u||B.$$typeof===y||B.$$typeof===S||B.$$typeof===C||B.$$typeof===p)}function E(B){if(typeof B=="object"&&B!==null){var Ve=B.$$typeof;switch(Ve){case r:var Qe=B.type;switch(Qe){case c:case l:case n:case i:case o:case d:return Qe;default:var wt=Qe&&Qe.$$typeof;switch(wt){case s:case u:case g:case m:case a:return wt;default:return Ve}}case t:return Ve}}}var _=c,O=l,R=s,q=a,Z=r,j=u,K=n,v=g,A=m,P=t,H=i,W=o,J=d,V=!1;function Q(B){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(B)||E(B)===c}function L(B){return E(B)===l}function U(B){return E(B)===s}function ce(B){return E(B)===a}function ge(B){return typeof B=="object"&&B!==null&&B.$$typeof===r}function he(B){return E(B)===u}function ee(B){return E(B)===n}function G(B){return E(B)===g}function se(B){return E(B)===m}function le(B){return E(B)===t}function me(B){return E(B)===i}function ue(B){return E(B)===o}function Te(B){return E(B)===d}Me.AsyncMode=_,Me.ConcurrentMode=O,Me.ContextConsumer=R,Me.ContextProvider=q,Me.Element=Z,Me.ForwardRef=j,Me.Fragment=K,Me.Lazy=v,Me.Memo=A,Me.Portal=P,Me.Profiler=H,Me.StrictMode=W,Me.Suspense=J,Me.isAsyncMode=Q,Me.isConcurrentMode=L,Me.isContextConsumer=U,Me.isContextProvider=ce,Me.isElement=ge,Me.isForwardRef=he,Me.isFragment=ee,Me.isLazy=G,Me.isMemo=se,Me.isPortal=le,Me.isProfiler=me,Me.isStrictMode=ue,Me.isSuspense=Te,Me.isValidElementType=k,Me.typeOf=E})()),Me}var Rc;function Nc(){return Rc||(Rc=1,process.env.NODE_ENV==="production"?Po.exports=fh():Po.exports=ph()),Po.exports}/*
44
+ */var Nc;function hh(){return Nc||(Nc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===o||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===m||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===y||P.$$typeof===S||P.$$typeof===C||P.$$typeof===p)}function E(P){if(typeof P=="object"&&P!==null){var we=P.$$typeof;switch(we){case r:var Qe=P.type;switch(Qe){case c:case l:case n:case i:case o:case d:return Qe;default:var wt=Qe&&Qe.$$typeof;switch(wt){case s:case u:case g:case m:case a:return wt;default:return we}}case t:return we}}}var _=c,O=l,N=s,q=a,Z=r,L=u,K=n,v=g,I=m,A=t,U=i,H=o,ee=d,re=!1;function se(P){return re||(re=!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.")),V(P)||E(P)===c}function V(P){return E(P)===l}function G(P){return E(P)===s}function ge(P){return E(P)===a}function ve(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function he(P){return E(P)===u}function J(P){return E(P)===n}function Q(P){return E(P)===g}function ce(P){return E(P)===m}function ue(P){return E(P)===t}function F(P){return E(P)===i}function W(P){return E(P)===o}function de(P){return E(P)===d}Pe.AsyncMode=_,Pe.ConcurrentMode=O,Pe.ContextConsumer=N,Pe.ContextProvider=q,Pe.Element=Z,Pe.ForwardRef=L,Pe.Fragment=K,Pe.Lazy=v,Pe.Memo=I,Pe.Portal=A,Pe.Profiler=U,Pe.StrictMode=H,Pe.Suspense=ee,Pe.isAsyncMode=se,Pe.isConcurrentMode=V,Pe.isContextConsumer=G,Pe.isContextProvider=ge,Pe.isElement=ve,Pe.isForwardRef=he,Pe.isFragment=J,Pe.isLazy=Q,Pe.isMemo=ce,Pe.isPortal=ue,Pe.isProfiler=F,Pe.isStrictMode=W,Pe.isSuspense=de,Pe.isValidElementType=k,Pe.typeOf=E})()),Pe}var $c;function jc(){return $c||($c=1,process.env.NODE_ENV==="production"?Io.exports=ph():Io.exports=hh()),Io.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var va,$c;function hh(){if($c)return va;$c=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return va=o()?Object.assign:function(i,a){for(var s,c=n(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)r.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)t.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},va}var ya,jc;function ba(){if(jc)return ya;jc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ya=e,ya}var wa,Lc;function zc(){return Lc||(Lc=1,wa=Function.call.bind(Object.prototype.hasOwnProperty)),wa}var _a,Bc;function mh(){if(Bc)return _a;Bc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=ba(),t={},n=zc();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](a,u,c,s,null,r)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var m=l?l():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},_a=o,_a}var xa,Vc;function gh(){if(Vc)return xa;Vc=1;var e=Nc(),r=hh(),t=ba(),n=zc(),o=mh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return xa=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(L){var U=L&&(l&&L[l]||L[u]);if(typeof U=="function")return U}var f="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:k,element:E(),elementType:_(),instanceOf:O,node:j(),objectOf:q,oneOf:R,oneOfType:Z,shape:v,exact:A};function g(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function p(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}p.prototype=Error.prototype;function y(L){if(process.env.NODE_ENV!=="production")var U={},ce=0;function ge(ee,G,se,le,me,ue,Te){if(le=le||f,ue=ue||se,Te!==t){if(c){var B=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 B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ve=le+":"+se;!U[Ve]&&ce<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ue+"` 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."),U[Ve]=!0,ce++)}}return G[se]==null?ee?G[se]===null?new p("The "+me+" `"+ue+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new p("The "+me+" `"+ue+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:L(G,se,le,me,ue)}var he=ge.bind(null,!1);return he.isRequired=ge.bind(null,!0),he}function S(L){function U(ce,ge,he,ee,G,se){var le=ce[ge],me=W(le);if(me!==L){var ue=J(le);return new p("Invalid "+ee+" `"+G+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return y(U)}function C(){return y(a)}function k(L){function U(ce,ge,he,ee,G){if(typeof L!="function")return new p("Property `"+G+"` of component `"+he+"` has invalid PropType notation inside arrayOf.");var se=ce[ge];if(!Array.isArray(se)){var le=W(se);return new p("Invalid "+ee+" `"+G+"` of type "+("`"+le+"` supplied to `"+he+"`, expected an array."))}for(var me=0;me<se.length;me++){var ue=L(se,me,he,ee,G+"["+me+"]",t);if(ue instanceof Error)return ue}return null}return y(U)}function E(){function L(U,ce,ge,he,ee){var G=U[ce];if(!s(G)){var se=W(G);return new p("Invalid "+he+" `"+ee+"` of type "+("`"+se+"` supplied to `"+ge+"`, expected a single ReactElement."))}return null}return y(L)}function _(){function L(U,ce,ge,he,ee){var G=U[ce];if(!e.isValidElementType(G)){var se=W(G);return new p("Invalid "+he+" `"+ee+"` of type "+("`"+se+"` supplied to `"+ge+"`, expected a single ReactElement type."))}return null}return y(L)}function O(L){function U(ce,ge,he,ee,G){if(!(ce[ge]instanceof L)){var se=L.name||f,le=Q(ce[ge]);return new p("Invalid "+ee+" `"+G+"` of type "+("`"+le+"` supplied to `"+he+"`, expected ")+("instance of `"+se+"`."))}return null}return y(U)}function R(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function U(ce,ge,he,ee,G){for(var se=ce[ge],le=0;le<L.length;le++)if(g(se,L[le]))return null;var me=JSON.stringify(L,function(Te,B){var Ve=J(B);return Ve==="symbol"?String(B):B});return new p("Invalid "+ee+" `"+G+"` of value `"+String(se)+"` "+("supplied to `"+he+"`, expected one of "+me+"."))}return y(U)}function q(L){function U(ce,ge,he,ee,G){if(typeof L!="function")return new p("Property `"+G+"` of component `"+he+"` has invalid PropType notation inside objectOf.");var se=ce[ge],le=W(se);if(le!=="object")return new p("Invalid "+ee+" `"+G+"` of type "+("`"+le+"` supplied to `"+he+"`, expected an object."));for(var me in se)if(n(se,me)){var ue=L(se,me,he,ee,G+"."+me,t);if(ue instanceof Error)return ue}return null}return y(U)}function Z(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var U=0;U<L.length;U++){var ce=L[U];if(typeof ce!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(ce)+" at index "+U+"."),a}function ge(he,ee,G,se,le){for(var me=[],ue=0;ue<L.length;ue++){var Te=L[ue],B=Te(he,ee,G,se,le,t);if(B==null)return null;B.data&&n(B.data,"expectedType")&&me.push(B.data.expectedType)}var Ve=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new p("Invalid "+se+" `"+le+"` supplied to "+("`"+G+"`"+Ve+"."))}return y(ge)}function j(){function L(U,ce,ge,he,ee){return P(U[ce])?null:new p("Invalid "+he+" `"+ee+"` supplied to "+("`"+ge+"`, expected a ReactNode."))}return y(L)}function K(L,U,ce,ge,he){return new p((L||"React class")+": "+U+" type `"+ce+"."+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+he+"`.")}function v(L){function U(ce,ge,he,ee,G){var se=ce[ge],le=W(se);if(le!=="object")return new p("Invalid "+ee+" `"+G+"` of type `"+le+"` "+("supplied to `"+he+"`, expected `object`."));for(var me in L){var ue=L[me];if(typeof ue!="function")return K(he,ee,G,me,J(ue));var Te=ue(se,me,he,ee,G+"."+me,t);if(Te)return Te}return null}return y(U)}function A(L){function U(ce,ge,he,ee,G){var se=ce[ge],le=W(se);if(le!=="object")return new p("Invalid "+ee+" `"+G+"` of type `"+le+"` "+("supplied to `"+he+"`, expected `object`."));var me=r({},ce[ge],L);for(var ue in me){var Te=L[ue];if(n(L,ue)&&typeof Te!="function")return K(he,ee,G,ue,J(Te));if(!Te)return new p("Invalid "+ee+" `"+G+"` key `"+ue+"` supplied to `"+he+"`.\nBad object: "+JSON.stringify(ce[ge],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var B=Te(se,ue,he,ee,G+"."+ue,t);if(B)return B}return null}return y(U)}function P(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(P);if(L===null||s(L))return!0;var U=d(L);if(U){var ce=U.call(L),ge;if(U!==L.entries){for(;!(ge=ce.next()).done;)if(!P(ge.value))return!1}else for(;!(ge=ce.next()).done;){var he=ge.value;if(he&&!P(he[1]))return!1}}else return!1;return!0;default:return!1}}function H(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function W(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":H(U,L)?"symbol":U}function J(L){if(typeof L>"u"||L===null)return""+L;var U=W(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function V(L){var U=J(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Q(L){return!L.constructor||!L.constructor.name?f:L.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},xa}var Sa,Fc;function vh(){if(Fc)return Sa;Fc=1;var e=ba();function r(){}function t(){}return t.resetWarningCache=r,Sa=function(){function n(a,s,c,l,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Sa}var Yc;function yh(){if(Yc)return Mo.exports;if(Yc=1,process.env.NODE_ENV!=="production"){var e=Nc(),r=!0;Mo.exports=gh()(e.isElement,r)}else Mo.exports=vh()();return Mo.exports}var bh=yh();const b=ch(bh);function Uc(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(t=Uc(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function be(){for(var e,r,t=0,n="",o=arguments.length;t<o;t++)(e=arguments[t])&&(r=Uc(e))&&(n&&(n+=" "),n+=r);return n}function Lt(e,r,t=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+r(l),s=!1,t&&t[l]&&(a+=" "+t[l]))}n[o]=a}return n}var Ao={exports:{}},Le={};/**
48
+ */var ba,Lc;function mh(){if(Lc)return ba;Lc=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ba=o()?Object.assign:function(i,a){for(var s,c=n(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)r.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)t.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},ba}var wa,zc;function _a(){if(zc)return wa;zc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wa=e,wa}var xa,Bc;function Vc(){return Bc||(Bc=1,xa=Function.call.bind(Object.prototype.hasOwnProperty)),xa}var Sa,Fc;function gh(){if(Fc)return Sa;Fc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_a(),t={},n=Vc();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](a,u,c,s,null,r)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var m=l?l():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Sa=o,Sa}var Ca,Yc;function vh(){if(Yc)return Ca;Yc=1;var e=jc(),r=mh(),t=_a(),n=Vc(),o=gh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Ca=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(V){var G=V&&(l&&V[l]||V[u]);if(typeof G=="function")return G}var f="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:k,element:E(),elementType:_(),instanceOf:O,node:L(),objectOf:q,oneOf:N,oneOfType:Z,shape:v,exact:I};function g(V,G){return V===G?V!==0||1/V===1/G:V!==V&&G!==G}function p(V,G){this.message=V,this.data=G&&typeof G=="object"?G:{},this.stack=""}p.prototype=Error.prototype;function y(V){if(process.env.NODE_ENV!=="production")var G={},ge=0;function ve(J,Q,ce,ue,F,W,de){if(ue=ue||f,W=W||ce,de!==t){if(c){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=ue+":"+ce;!G[we]&&ge<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+ue+"`. 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."),G[we]=!0,ge++)}}return Q[ce]==null?J?Q[ce]===null?new p("The "+F+" `"+W+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new p("The "+F+" `"+W+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:V(Q,ce,ue,F,W)}var he=ve.bind(null,!1);return he.isRequired=ve.bind(null,!0),he}function S(V){function G(ge,ve,he,J,Q,ce){var ue=ge[ve],F=H(ue);if(F!==V){var W=ee(ue);return new p("Invalid "+J+" `"+Q+"` of type "+("`"+W+"` supplied to `"+he+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return y(G)}function C(){return y(a)}function k(V){function G(ge,ve,he,J,Q){if(typeof V!="function")return new p("Property `"+Q+"` of component `"+he+"` has invalid PropType notation inside arrayOf.");var ce=ge[ve];if(!Array.isArray(ce)){var ue=H(ce);return new p("Invalid "+J+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected an array."))}for(var F=0;F<ce.length;F++){var W=V(ce,F,he,J,Q+"["+F+"]",t);if(W instanceof Error)return W}return null}return y(G)}function E(){function V(G,ge,ve,he,J){var Q=G[ge];if(!s(Q)){var ce=H(Q);return new p("Invalid "+he+" `"+J+"` of type "+("`"+ce+"` supplied to `"+ve+"`, expected a single ReactElement."))}return null}return y(V)}function _(){function V(G,ge,ve,he,J){var Q=G[ge];if(!e.isValidElementType(Q)){var ce=H(Q);return new p("Invalid "+he+" `"+J+"` of type "+("`"+ce+"` supplied to `"+ve+"`, expected a single ReactElement type."))}return null}return y(V)}function O(V){function G(ge,ve,he,J,Q){if(!(ge[ve]instanceof V)){var ce=V.name||f,ue=se(ge[ve]);return new p("Invalid "+J+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected ")+("instance of `"+ce+"`."))}return null}return y(G)}function N(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function G(ge,ve,he,J,Q){for(var ce=ge[ve],ue=0;ue<V.length;ue++)if(g(ce,V[ue]))return null;var F=JSON.stringify(V,function(de,P){var we=ee(P);return we==="symbol"?String(P):P});return new p("Invalid "+J+" `"+Q+"` of value `"+String(ce)+"` "+("supplied to `"+he+"`, expected one of "+F+"."))}return y(G)}function q(V){function G(ge,ve,he,J,Q){if(typeof V!="function")return new p("Property `"+Q+"` of component `"+he+"` has invalid PropType notation inside objectOf.");var ce=ge[ve],ue=H(ce);if(ue!=="object")return new p("Invalid "+J+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected an object."));for(var F in ce)if(n(ce,F)){var W=V(ce,F,he,J,Q+"."+F,t);if(W instanceof Error)return W}return null}return y(G)}function Z(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var G=0;G<V.length;G++){var ge=V[G];if(typeof ge!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ge)+" at index "+G+"."),a}function ve(he,J,Q,ce,ue){for(var F=[],W=0;W<V.length;W++){var de=V[W],P=de(he,J,Q,ce,ue,t);if(P==null)return null;P.data&&n(P.data,"expectedType")&&F.push(P.data.expectedType)}var we=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new p("Invalid "+ce+" `"+ue+"` supplied to "+("`"+Q+"`"+we+"."))}return y(ve)}function L(){function V(G,ge,ve,he,J){return A(G[ge])?null:new p("Invalid "+he+" `"+J+"` supplied to "+("`"+ve+"`, expected a ReactNode."))}return y(V)}function K(V,G,ge,ve,he){return new p((V||"React class")+": "+G+" type `"+ge+"."+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+he+"`.")}function v(V){function G(ge,ve,he,J,Q){var ce=ge[ve],ue=H(ce);if(ue!=="object")return new p("Invalid "+J+" `"+Q+"` of type `"+ue+"` "+("supplied to `"+he+"`, expected `object`."));for(var F in V){var W=V[F];if(typeof W!="function")return K(he,J,Q,F,ee(W));var de=W(ce,F,he,J,Q+"."+F,t);if(de)return de}return null}return y(G)}function I(V){function G(ge,ve,he,J,Q){var ce=ge[ve],ue=H(ce);if(ue!=="object")return new p("Invalid "+J+" `"+Q+"` of type `"+ue+"` "+("supplied to `"+he+"`, expected `object`."));var F=r({},ge[ve],V);for(var W in F){var de=V[W];if(n(V,W)&&typeof de!="function")return K(he,J,Q,W,ee(de));if(!de)return new p("Invalid "+J+" `"+Q+"` key `"+W+"` supplied to `"+he+"`.\nBad object: "+JSON.stringify(ge[ve],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var P=de(ce,W,he,J,Q+"."+W,t);if(P)return P}return null}return y(G)}function A(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(A);if(V===null||s(V))return!0;var G=d(V);if(G){var ge=G.call(V),ve;if(G!==V.entries){for(;!(ve=ge.next()).done;)if(!A(ve.value))return!1}else for(;!(ve=ge.next()).done;){var he=ve.value;if(he&&!A(he[1]))return!1}}else return!1;return!0;default:return!1}}function U(V,G){return V==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function H(V){var G=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":U(G,V)?"symbol":G}function ee(V){if(typeof V>"u"||V===null)return""+V;var G=H(V);if(G==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return G}function re(V){var G=ee(V);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function se(V){return!V.constructor||!V.constructor.name?f:V.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Ca}var Ea,Uc;function yh(){if(Uc)return Ea;Uc=1;var e=_a();function r(){}function t(){}return t.resetWarningCache=r,Ea=function(){function n(a,s,c,l,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Ea}var Hc;function bh(){if(Hc)return Ao.exports;if(Hc=1,process.env.NODE_ENV!=="production"){var e=jc(),r=!0;Ao.exports=vh()(e.isElement,r)}else Ao.exports=yh()();return Ao.exports}var wh=bh();const b=lh(wh);function Wc(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(t=Wc(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function _e(){for(var e,r,t=0,n="",o=arguments.length;t<o;t++)(e=arguments[t])&&(r=Wc(e))&&(n&&(n+=" "),n+=r);return n}function Lt(e,r,t=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+r(l),s=!1,t&&t[l]&&(a+=" "+t[l]))}n[o]=a}return n}var Ro={exports:{}},ze={};/**
50
50
  * @license React
51
51
  * react-is.production.js
52
52
  *
@@ -54,7 +54,7 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var B=Te(se,ue,he,ee,G+"
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var Hc;function wh(){if(Hc)return Le;Hc=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case t:case o:case n:case c:case l:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case s:case d:case u:return p;case i:return p;default:return y}}case r:return y}}}return Le.ContextConsumer=i,Le.ContextProvider=a,Le.Element=e,Le.ForwardRef=s,Le.Fragment=t,Le.Lazy=d,Le.Memo=u,Le.Portal=r,Le.Profiler=o,Le.StrictMode=n,Le.Suspense=c,Le.SuspenseList=l,Le.isContextConsumer=function(p){return g(p)===i},Le.isContextProvider=function(p){return g(p)===a},Le.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Le.isForwardRef=function(p){return g(p)===s},Le.isFragment=function(p){return g(p)===t},Le.isLazy=function(p){return g(p)===d},Le.isMemo=function(p){return g(p)===u},Le.isPortal=function(p){return g(p)===r},Le.isProfiler=function(p){return g(p)===o},Le.isStrictMode=function(p){return g(p)===n},Le.isSuspense=function(p){return g(p)===c},Le.isSuspenseList=function(p){return g(p)===l},Le.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===o||p===n||p===c||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===a||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.getModuleId!==void 0)},Le.typeOf=g,Le}var ze={};/**
57
+ */var Zc;function _h(){if(Zc)return ze;Zc=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case t:case o:case n:case c:case l:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case s:case d:case u:return p;case i:return p;default:return y}}case r:return y}}}return ze.ContextConsumer=i,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=s,ze.Fragment=t,ze.Lazy=d,ze.Memo=u,ze.Portal=r,ze.Profiler=o,ze.StrictMode=n,ze.Suspense=c,ze.SuspenseList=l,ze.isContextConsumer=function(p){return g(p)===i},ze.isContextProvider=function(p){return g(p)===a},ze.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ze.isForwardRef=function(p){return g(p)===s},ze.isFragment=function(p){return g(p)===t},ze.isLazy=function(p){return g(p)===d},ze.isMemo=function(p){return g(p)===u},ze.isPortal=function(p){return g(p)===r},ze.isProfiler=function(p){return g(p)===o},ze.isStrictMode=function(p){return g(p)===n},ze.isSuspense=function(p){return g(p)===c},ze.isSuspenseList=function(p){return g(p)===l},ze.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===o||p===n||p===c||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===a||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.getModuleId!==void 0)},ze.typeOf=g,ze}var Be={};/**
58
58
  * @license React
59
59
  * react-is.development.js
60
60
  *
@@ -62,34 +62,34 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var B=Te(se,ue,he,ee,G+"
62
62
  *
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
- */var Wc;function _h(){return Wc||(Wc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case r:switch(p=p.type,p){case n:case i:case o:case l:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case f:case d:return p;case a:return p;default:return y}}case t:return y}}}var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ze.ContextConsumer=a,ze.ContextProvider=s,ze.Element=r,ze.ForwardRef=c,ze.Fragment=n,ze.Lazy=f,ze.Memo=d,ze.Portal=t,ze.Profiler=i,ze.StrictMode=o,ze.Suspense=l,ze.SuspenseList=u,ze.isContextConsumer=function(p){return e(p)===a},ze.isContextProvider=function(p){return e(p)===s},ze.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},ze.isForwardRef=function(p){return e(p)===c},ze.isFragment=function(p){return e(p)===n},ze.isLazy=function(p){return e(p)===f},ze.isMemo=function(p){return e(p)===d},ze.isPortal=function(p){return e(p)===t},ze.isProfiler=function(p){return e(p)===i},ze.isStrictMode=function(p){return e(p)===o},ze.isSuspense=function(p){return e(p)===l},ze.isSuspenseList=function(p){return e(p)===u},ze.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===i||p===o||p===l||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===s||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},ze.typeOf=e})()),ze}var Zc;function xh(){return Zc||(Zc=1,process.env.NODE_ENV==="production"?Ao.exports=wh():Ao.exports=_h()),Ao.exports}var Io=xh();function nr(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qc(e){if($.isValidElement(e)||Io.isValidElementType(e)||!nr(e))return e;const r={};return Object.keys(e).forEach(t=>{r[t]=qc(e[t])}),r}function Pt(e,r,t={clone:!0}){const n=t.clone?{...e}:e;return nr(e)&&nr(r)&&Object.keys(r).forEach(o=>{$.isValidElement(r[o])||Io.isValidElementType(r[o])?n[o]=r[o]:nr(r[o])&&Object.prototype.hasOwnProperty.call(e,o)&&nr(e[o])?n[o]=Pt(e[o],r[o],t):t.clone?n[o]=nr(r[o])?qc(r[o]):r[o]:n[o]=r[o]}),n}function Bn(e,r){return r?Pt(e,r,{clone:!1}):e}const Pr=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function Kc(e,r){if(!e.containerQueries)return r;const t=Object.keys(r).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return t.length?t.reduce((n,o)=>{const i=r[o];return delete n[o],n[o]=i,n},{...r}):r}function Sh(e,r){return r==="@"||r.startsWith("@")&&(e.some(t=>r.startsWith(`@${t}`))||!!r.match(/^@\d/))}function Ch(e,r){const t=r.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
66
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Mr(18,`(${r})`));return null}const[,n,o]=t,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function Eh(e){const r=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function t(i,a){i.up=(...s)=>r(e.breakpoints.up(...s),a),i.down=(...s)=>r(e.breakpoints.down(...s),a),i.between=(...s)=>r(e.breakpoints.between(...s),a),i.only=(...s)=>r(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=r(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(t(n,i),n);return t(o),{...e,containerQueries:o}}const Ro={xs:0,sm:600,md:900,lg:1200,xl:1536},Gc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ro[e]}px)`},kh={containerQueries:e=>({up:r=>{let t=typeof r=="number"?r:Ro[r]||r;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function vr(e,r,t){const n=e.theme||{};if(Array.isArray(r)){const i=n.breakpoints||Gc;return r.reduce((a,s,c)=>(a[i.up(i.keys[c])]=t(r[c]),a),{})}if(typeof r=="object"){const i=n.breakpoints||Gc;return Object.keys(r).reduce((a,s)=>{if(Sh(i.keys,s)){const c=Ch(n.containerQueries?n:kh,s);c&&(a[c]=t(r[s],s))}else if(Object.keys(i.values||Ro).includes(s)){const c=i.up(s);a[c]=t(r[s],s)}else{const c=s;a[c]=r[c]}return a},{})}return t(r)}function Dh(e={}){return e.keys?.reduce((t,n)=>{const o=e.up(n);return t[o]={},t},{})||{}}function Qc(e,r){return e.reduce((t,n)=>{const o=t[n];return(!o||Object.keys(o).length===0)&&delete t[n],t},r)}function No(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){const n=`vars.${r}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return r.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function $o(e,r,t,n=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||n:o=No(e,t)||n,r&&(o=r(o,n,e)),o}function tt(e){const{prop:r,cssProperty:t=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[r]==null)return null;const s=a[r],c=a.theme,l=No(c,n)||{};return vr(a,s,d=>{let f=$o(l,o,d);return d===f&&typeof d=="string"&&(f=$o(l,o,`${r}${d==="default"?"":Ke(d)}`,d)),t===!1?f:{[t]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[r]:Pr}:{},i.filterProps=[r],i}function Th(e){const r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}const Oh={m:"margin",p:"padding"},Mh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ph=Th(e=>{if(e.length>2)if(Xc[e])e=Xc[e];else return[e];const[r,t]=e.split(""),n=Oh[r],o=Mh[t]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),jo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Lo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ah=[...jo,...Lo];function Vn(e,r,t,n){const o=No(e,r,!0)??t;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
65
+ */var qc;function xh(){return qc||(qc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case r:switch(p=p.type,p){case n:case i:case o:case l:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case f:case d:return p;case a:return p;default:return y}}case t:return y}}}var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Be.ContextConsumer=a,Be.ContextProvider=s,Be.Element=r,Be.ForwardRef=c,Be.Fragment=n,Be.Lazy=f,Be.Memo=d,Be.Portal=t,Be.Profiler=i,Be.StrictMode=o,Be.Suspense=l,Be.SuspenseList=u,Be.isContextConsumer=function(p){return e(p)===a},Be.isContextProvider=function(p){return e(p)===s},Be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},Be.isForwardRef=function(p){return e(p)===c},Be.isFragment=function(p){return e(p)===n},Be.isLazy=function(p){return e(p)===f},Be.isMemo=function(p){return e(p)===d},Be.isPortal=function(p){return e(p)===t},Be.isProfiler=function(p){return e(p)===i},Be.isStrictMode=function(p){return e(p)===o},Be.isSuspense=function(p){return e(p)===l},Be.isSuspenseList=function(p){return e(p)===u},Be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===i||p===o||p===l||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===s||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},Be.typeOf=e})()),Be}var Kc;function Sh(){return Kc||(Kc=1,process.env.NODE_ENV==="production"?Ro.exports=_h():Ro.exports=xh()),Ro.exports}var No=Sh();function nr(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gc(e){if(j.isValidElement(e)||No.isValidElementType(e)||!nr(e))return e;const r={};return Object.keys(e).forEach(t=>{r[t]=Gc(e[t])}),r}function Pt(e,r,t={clone:!0}){const n=t.clone?{...e}:e;return nr(e)&&nr(r)&&Object.keys(r).forEach(o=>{j.isValidElement(r[o])||No.isValidElementType(r[o])?n[o]=r[o]:nr(r[o])&&Object.prototype.hasOwnProperty.call(e,o)&&nr(e[o])?n[o]=Pt(e[o],r[o],t):t.clone?n[o]=nr(r[o])?Gc(r[o]):r[o]:n[o]=r[o]}),n}function Vn(e,r){return r?Pt(e,r,{clone:!1}):e}const Pr=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function Qc(e,r){if(!e.containerQueries)return r;const t=Object.keys(r).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return t.length?t.reduce((n,o)=>{const i=r[o];return delete n[o],n[o]=i,n},{...r}):r}function Ch(e,r){return r==="@"||r.startsWith("@")&&(e.some(t=>r.startsWith(`@${t}`))||!!r.match(/^@\d/))}function Eh(e,r){const t=r.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
66
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Mr(18,`(${r})`));return null}const[,n,o]=t,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function kh(e){const r=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function t(i,a){i.up=(...s)=>r(e.breakpoints.up(...s),a),i.down=(...s)=>r(e.breakpoints.down(...s),a),i.between=(...s)=>r(e.breakpoints.between(...s),a),i.only=(...s)=>r(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=r(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(t(n,i),n);return t(o),{...e,containerQueries:o}}const $o={xs:0,sm:600,md:900,lg:1200,xl:1536},Xc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$o[e]}px)`},Dh={containerQueries:e=>({up:r=>{let t=typeof r=="number"?r:$o[r]||r;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function vr(e,r,t){const n=e.theme||{};if(Array.isArray(r)){const i=n.breakpoints||Xc;return r.reduce((a,s,c)=>(a[i.up(i.keys[c])]=t(r[c]),a),{})}if(typeof r=="object"){const i=n.breakpoints||Xc;return Object.keys(r).reduce((a,s)=>{if(Ch(i.keys,s)){const c=Eh(n.containerQueries?n:Dh,s);c&&(a[c]=t(r[s],s))}else if(Object.keys(i.values||$o).includes(s)){const c=i.up(s);a[c]=t(r[s],s)}else{const c=s;a[c]=r[c]}return a},{})}return t(r)}function Th(e={}){return e.keys?.reduce((t,n)=>{const o=e.up(n);return t[o]={},t},{})||{}}function Jc(e,r){return e.reduce((t,n)=>{const o=t[n];return(!o||Object.keys(o).length===0)&&delete t[n],t},r)}function jo(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){const n=`vars.${r}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return r.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Lo(e,r,t,n=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||n:o=jo(e,t)||n,r&&(o=r(o,n,e)),o}function tt(e){const{prop:r,cssProperty:t=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[r]==null)return null;const s=a[r],c=a.theme,l=jo(c,n)||{};return vr(a,s,d=>{let f=Lo(l,o,d);return d===f&&typeof d=="string"&&(f=Lo(l,o,`${r}${d==="default"?"":Ke(d)}`,d)),t===!1?f:{[t]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[r]:Pr}:{},i.filterProps=[r],i}function Oh(e){const r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}const Mh={m:"margin",p:"padding"},Ph={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},el={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ah=Oh(e=>{if(e.length>2)if(el[e])e=el[e];else return[e];const[r,t]=e.split(""),n=Mh[r],o=Ph[t]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),zo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ih=[...zo,...Bo];function Fn(e,r,t,n){const o=jo(e,r,!0)??t;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
67
67
  `)):console.error([`MUI: The \`theme.${r}\` 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.${r}\` as a number.`].join(`
68
68
  `)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
69
- `)),()=>{})}function Ca(e){return Vn(e,"spacing",8,"spacing")}function Fn(e,r){return typeof r=="string"||r==null?r:e(r)}function Ih(e,r){return t=>e.reduce((n,o)=>(n[o]=Fn(r,t),n),{})}function Rh(e,r,t,n){if(!r.includes(t))return null;const o=Ph(t),i=Ih(o,n),a=e[t];return vr(e,a,i)}function Jc(e,r){const t=Ca(e.theme);return Object.keys(e).map(n=>Rh(e,r,n,t)).reduce(Bn,{})}function Xe(e){return Jc(e,jo)}Xe.propTypes=process.env.NODE_ENV!=="production"?jo.reduce((e,r)=>(e[r]=Pr,e),{}):{},Xe.filterProps=jo;function Je(e){return Jc(e,Lo)}Je.propTypes=process.env.NODE_ENV!=="production"?Lo.reduce((e,r)=>(e[r]=Pr,e),{}):{},Je.filterProps=Lo,process.env.NODE_ENV!=="production"&&Ah.reduce((e,r)=>(e[r]=Pr,e),{});function zo(...e){const r=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),t=n=>Object.keys(n).reduce((o,i)=>r[i]?Bn(o,r[i](n)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},t.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),t}function zt(e){return typeof e!="number"?e:`${e}px solid`}function Bt(e,r){return tt({prop:e,themeKey:"borders",transform:r})}const Nh=Bt("border",zt),$h=Bt("borderTop",zt),jh=Bt("borderRight",zt),Lh=Bt("borderBottom",zt),zh=Bt("borderLeft",zt),Bh=Bt("borderColor"),Vh=Bt("borderTopColor"),Fh=Bt("borderRightColor"),Yh=Bt("borderBottomColor"),Uh=Bt("borderLeftColor"),Hh=Bt("outline",zt),Wh=Bt("outlineColor"),Bo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Vn(e.theme,"shape.borderRadius",4,"borderRadius"),t=n=>({borderRadius:Fn(r,n)});return vr(e,e.borderRadius,t)}return null};Bo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pr}:{},Bo.filterProps=["borderRadius"],zo(Nh,$h,jh,Lh,zh,Bh,Vh,Fh,Yh,Uh,Bo,Hh,Wh);const Vo=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Vn(e.theme,"spacing",8,"gap"),t=n=>({gap:Fn(r,n)});return vr(e,e.gap,t)}return null};Vo.propTypes=process.env.NODE_ENV!=="production"?{gap:Pr}:{},Vo.filterProps=["gap"];const Fo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Vn(e.theme,"spacing",8,"columnGap"),t=n=>({columnGap:Fn(r,n)});return vr(e,e.columnGap,t)}return null};Fo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pr}:{},Fo.filterProps=["columnGap"];const Yo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Vn(e.theme,"spacing",8,"rowGap"),t=n=>({rowGap:Fn(r,n)});return vr(e,e.rowGap,t)}return null};Yo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pr}:{},Yo.filterProps=["rowGap"];const Zh=tt({prop:"gridColumn"}),qh=tt({prop:"gridRow"}),Kh=tt({prop:"gridAutoFlow"}),Gh=tt({prop:"gridAutoColumns"}),Qh=tt({prop:"gridAutoRows"}),Xh=tt({prop:"gridTemplateColumns"}),Jh=tt({prop:"gridTemplateRows"}),em=tt({prop:"gridTemplateAreas"}),tm=tt({prop:"gridArea"});zo(Vo,Fo,Yo,Zh,qh,Kh,Gh,Qh,Xh,Jh,em,tm);function un(e,r){return r==="grey"?r:e}const rm=tt({prop:"color",themeKey:"palette",transform:un}),nm=tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:un}),om=tt({prop:"backgroundColor",themeKey:"palette",transform:un});zo(rm,nm,om);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const im=tt({prop:"width",transform:At}),Ea=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{const n=e.theme?.breakpoints?.values?.[t]||Ro[t];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:At(t)}};return vr(e,e.maxWidth,r)}return null};Ea.filterProps=["maxWidth"];const am=tt({prop:"minWidth",transform:At}),sm=tt({prop:"height",transform:At}),cm=tt({prop:"maxHeight",transform:At}),lm=tt({prop:"minHeight",transform:At});tt({prop:"size",cssProperty:"width",transform:At}),tt({prop:"size",cssProperty:"height",transform:At});const um=tt({prop:"boxSizing"});zo(im,Ea,am,sm,cm,lm,um);const Yn={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bo},color:{themeKey:"palette",transform:un},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:un},backgroundColor:{themeKey:"palette",transform:un},p:{style:Je},pt:{style:Je},pr:{style:Je},pb:{style:Je},pl:{style:Je},px:{style:Je},py:{style:Je},padding:{style:Je},paddingTop:{style:Je},paddingRight:{style:Je},paddingBottom:{style:Je},paddingLeft:{style:Je},paddingX:{style:Je},paddingY:{style:Je},paddingInline:{style:Je},paddingInlineStart:{style:Je},paddingInlineEnd:{style:Je},paddingBlock:{style:Je},paddingBlockStart:{style:Je},paddingBlockEnd:{style:Je},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},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:Vo},rowGap:{style:Yo},columnGap:{style:Fo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:Ea},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},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 dm(...e){const r=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),t=new Set(r);return e.every(n=>t.size===Object.keys(n).length)}function fm(e,r){return typeof e=="function"?e(r):e}function pm(){function e(t,n,o,i){const a={[t]:n,theme:o},s=i[t];if(!s)return{[t]:n};const{cssProperty:c=t,themeKey:l,transform:u,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[t]:n};const f=No(o,l)||{};return d?d(a):vr(a,n,g=>{let p=$o(f,u,g);return g===p&&typeof g=="string"&&(p=$o(f,u,`${t}${g==="default"?"":Ke(g)}`,g)),c===!1?p:{[c]:p}})}function r(t){const{sx:n,theme:o={},nested:i}=t||{};if(!n)return null;const a=o.unstable_sxConfig??Yn;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Dh(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(m=>{const g=fm(l[m],o);if(g!=null)if(typeof g=="object")if(a[m])f=Bn(f,e(m,g,o,a));else{const p=vr({theme:o},g,y=>({[m]:y}));dm(p,g)?f[m]=r({sx:g,theme:o,nested:!0}):f=Bn(f,p)}else f=Bn(f,e(m,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Kc(o,Qc(d,f))}:Kc(o,Qc(d,f))}return Array.isArray(n)?n.map(s):s(n)}return r}const zr=pm();zr.filterProps=["sx"];const hm=e=>{const r={systemProps:{},otherProps:{}},t=e?.theme?.unstable_sxConfig??Yn;return Object.keys(e).forEach(n=>{t[n]?r.systemProps[n]=e[n]:r.otherProps[n]=e[n]}),r};function mm(e){const{sx:r,...t}=e,{systemProps:n,otherProps:o}=hm(t);let i;return Array.isArray(r)?i=[n,...r]:typeof r=="function"?i=(...a)=>{const s=r(...a);return nr(s)?{...n,...s}:n}:i={...n,...r},{...o,sx:i}}function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Uo.apply(null,arguments)}function gm(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function vm(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var ym=(function(){function e(t){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(vm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=gm(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ht="-ms-",Ho="-moz-",ke="-webkit-",el="comm",ka="rule",Da="decl",bm="@import",tl="@keyframes",wm="@layer",_m=Math.abs,Wo=String.fromCharCode,xm=Object.assign;function Sm(e,r){return ft(e,0)^45?(((r<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function rl(e){return e.trim()}function Cm(e,r){return(e=r.exec(e))?e[0]:e}function De(e,r,t){return e.replace(r,t)}function Ta(e,r){return e.indexOf(r)}function ft(e,r){return e.charCodeAt(r)|0}function Un(e,r,t){return e.slice(r,t)}function or(e){return e.length}function Oa(e){return e.length}function Zo(e,r){return r.push(e),e}function Em(e,r){return e.map(r).join("")}var qo=1,dn=1,nl=0,St=0,st=0,fn="";function Ko(e,r,t,n,o,i,a){return{value:e,root:r,parent:t,type:n,props:o,children:i,line:qo,column:dn,length:a,return:""}}function Hn(e,r){return xm(Ko("",null,null,"",null,null,0),e,{length:-e.length},r)}function km(){return st}function Dm(){return st=St>0?ft(fn,--St):0,dn--,st===10&&(dn=1,qo--),st}function It(){return st=St<nl?ft(fn,St++):0,dn++,st===10&&(dn=1,qo++),st}function ir(){return ft(fn,St)}function Go(){return St}function Wn(e,r){return Un(fn,e,r)}function Zn(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 ol(e){return qo=dn=1,nl=or(fn=e),St=0,[]}function il(e){return fn="",e}function Qo(e){return rl(Wn(St-1,Ma(e===91?e+2:e===40?e+1:e)))}function Tm(e){for(;(st=ir())&&st<33;)It();return Zn(e)>2||Zn(st)>3?"":" "}function Om(e,r){for(;--r&&It()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return Wn(e,Go()+(r<6&&ir()==32&&It()==32))}function Ma(e){for(;It();)switch(st){case e:return St;case 34:case 39:e!==34&&e!==39&&Ma(st);break;case 40:e===41&&Ma(e);break;case 92:It();break}return St}function Mm(e,r){for(;It()&&e+st!==57;)if(e+st===84&&ir()===47)break;return"/*"+Wn(r,St-1)+"*"+Wo(e===47?e:It())}function Pm(e){for(;!Zn(ir());)It();return Wn(e,St)}function Am(e){return il(Xo("",null,null,null,[""],e=ol(e),0,[0],e))}function Xo(e,r,t,n,o,i,a,s,c){for(var l=0,u=0,d=a,f=0,m=0,g=0,p=1,y=1,S=1,C=0,k="",E=o,_=i,O=n,R=k;y;)switch(g=C,C=It()){case 40:if(g!=108&&ft(R,d-1)==58){Ta(R+=De(Qo(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Qo(C);break;case 9:case 10:case 13:case 32:R+=Tm(g);break;case 92:R+=Om(Go()-1,7);continue;case 47:switch(ir()){case 42:case 47:Zo(Im(Mm(It(),Go()),r,t),c);break;default:R+="/"}break;case 123*p:s[l++]=or(R)*S;case 125*p:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+u:S==-1&&(R=De(R,/\f/g,"")),m>0&&or(R)-d&&Zo(m>32?sl(R+";",n,t,d-1):sl(De(R," ","")+";",n,t,d-2),c);break;case 59:R+=";";default:if(Zo(O=al(R,r,t,l,u,o,s,k,E=[],_=[],d),i),C===123)if(u===0)Xo(R,r,O,O,E,i,d,s,_);else switch(f===99&&ft(R,3)===110?100:f){case 100:case 108:case 109:case 115:Xo(e,O,O,n&&Zo(al(e,O,O,0,0,o,s,k,o,E=[],d),_),o,_,d,s,n?E:_);break;default:Xo(R,O,O,O,[""],_,0,s,_)}}l=u=m=0,p=S=1,k=R="",d=a;break;case 58:d=1+or(R),m=g;default:if(p<1){if(C==123)--p;else if(C==125&&p++==0&&Dm()==125)continue}switch(R+=Wo(C),C*p){case 38:S=u>0?1:(R+="\f",-1);break;case 44:s[l++]=(or(R)-1)*S,S=1;break;case 64:ir()===45&&(R+=Qo(It())),f=ir(),u=d=or(k=R+=Pm(Go())),C++;break;case 45:g===45&&or(R)==2&&(p=0)}}return i}function al(e,r,t,n,o,i,a,s,c,l,u){for(var d=o-1,f=o===0?i:[""],m=Oa(f),g=0,p=0,y=0;g<n;++g)for(var S=0,C=Un(e,d+1,d=_m(p=a[g])),k=e;S<m;++S)(k=rl(p>0?f[S]+" "+C:De(C,/&\f/g,f[S])))&&(c[y++]=k);return Ko(e,r,t,o===0?ka:s,c,l,u)}function Im(e,r,t){return Ko(e,r,t,el,Wo(km()),Un(e,2,-2),0)}function sl(e,r,t,n){return Ko(e,r,t,Da,Un(e,0,n),Un(e,n+1,-1),n)}function pn(e,r){for(var t="",n=Oa(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function Rm(e,r,t,n){switch(e.type){case wm:if(e.children.length)break;case bm:case Da:return e.return=e.return||e.value;case el:return"";case tl:return e.return=e.value+"{"+pn(e.children,n)+"}";case ka:e.value=e.props.join(",")}return or(t=pn(e.children,n))?e.return=e.value+"{"+t+"}":""}function Nm(e){var r=Oa(e);return function(t,n,o,i){for(var a="",s=0;s<r;s++)a+=e[s](t,n,o,i)||"";return a}}function $m(e){return function(r){r.root||(r=r.return)&&e(r)}}function cl(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var jm=function(r,t,n){for(var o=0,i=0;o=i,i=ir(),o===38&&i===12&&(t[n]=1),!Zn(i);)It();return Wn(r,St)},Lm=function(r,t){var n=-1,o=44;do switch(Zn(o)){case 0:o===38&&ir()===12&&(t[n]=1),r[n]+=jm(St-1,t,n);break;case 2:r[n]+=Qo(o);break;case 4:if(o===44){r[++n]=ir()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=Wo(o)}while(o=It());return r},zm=function(r,t){return il(Lm(ol(r),t))},ll=new WeakMap,Bm=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,o=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!ll.get(n))&&!o){ll.set(r,!0);for(var i=[],a=zm(t,i),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)r.props[l]=i[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},Vm=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function ul(e,r){switch(Sm(e,r)){case 5103:return ke+"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 ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ke+e+Ho+e+ht+e+e;case 6828:case 4268:return ke+e+ht+e+e;case 6165:return ke+e+ht+"flex-"+e+e;case 5187:return ke+e+De(e,/(\w+).+(:[^]+)/,ke+"box-$1$2"+ht+"flex-$1$2")+e;case 5443:return ke+e+ht+"flex-item-"+De(e,/flex-|-self/,"")+e;case 4675:return ke+e+ht+"flex-line-pack"+De(e,/align-content|flex-|-self/,"")+e;case 5548:return ke+e+ht+De(e,"shrink","negative")+e;case 5292:return ke+e+ht+De(e,"basis","preferred-size")+e;case 6060:return ke+"box-"+De(e,"-grow","")+ke+e+ht+De(e,"grow","positive")+e;case 4554:return ke+De(e,/([^-])(transform)/g,"$1"+ke+"$2")+e;case 6187:return De(De(De(e,/(zoom-|grab)/,ke+"$1"),/(image-set)/,ke+"$1"),e,"")+e;case 5495:case 3959:return De(e,/(image-set\([^]*)/,ke+"$1$`$1");case 4968:return De(De(e,/(.+:)(flex-)?(.*)/,ke+"box-pack:$3"+ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ke+e+e;case 4095:case 3583:case 4068:case 2532:return De(e,/(.+)-inline(.+)/,ke+"$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(or(e)-1-r>6)switch(ft(e,r+1)){case 109:if(ft(e,r+4)!==45)break;case 102:return De(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+Ho+(ft(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ta(e,"stretch")?ul(De(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ft(e,r+1)!==115)break;case 6444:switch(ft(e,or(e)-3-(~Ta(e,"!important")&&10))){case 107:return De(e,":",":"+ke)+e;case 101:return De(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(ft(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+ht+"$2box$3")+e}break;case 5936:switch(ft(e,r+11)){case 114:return ke+e+ht+De(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+ht+De(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+ht+De(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+ht+e+e}return e}var Fm=function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case Da:r.return=ul(r.value,r.length);break;case tl:return pn([Hn(r,{value:De(r.value,"@","@"+ke)})],o);case ka:if(r.length)return Em(r.props,function(i){switch(Cm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([Hn(r,{props:[De(i,/:(read-\w+)/,":"+Ho+"$1")]})],o);case"::placeholder":return pn([Hn(r,{props:[De(i,/:(plac\w+)/,":"+ke+"input-$1")]}),Hn(r,{props:[De(i,/:(plac\w+)/,":"+Ho+"$1")]}),Hn(r,{props:[De(i,/:(plac\w+)/,ht+"input-$1")]})],o)}return""})}},Ym=[Fm],Um=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=r.stylisPlugins||Ym,i={},a,s=[];a=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)i[y[S]]=!0;s.push(p)});var c,l=[Bm,Vm];{var u,d=[Rm,$m(function(p){u.insert(p)})],f=Nm(l.concat(o,d)),m=function(y){return pn(Am(y),f)};c=function(y,S,C,k){u=C,m(y?y+"{"+S.styles+"}":S.styles),k&&(g.inserted[S.name]=!0)}}var g={key:t,sheet:new ym({key:t,container:a,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},Jo={exports:{}},Pe={};/** @license React v16.13.1
69
+ `)),()=>{})}function ka(e){return Fn(e,"spacing",8,"spacing")}function Yn(e,r){return typeof r=="string"||r==null?r:e(r)}function Rh(e,r){return t=>e.reduce((n,o)=>(n[o]=Yn(r,t),n),{})}function Nh(e,r,t,n){if(!r.includes(t))return null;const o=Ah(t),i=Rh(o,n),a=e[t];return vr(e,a,i)}function tl(e,r){const t=ka(e.theme);return Object.keys(e).map(n=>Nh(e,r,n,t)).reduce(Vn,{})}function Xe(e){return tl(e,zo)}Xe.propTypes=process.env.NODE_ENV!=="production"?zo.reduce((e,r)=>(e[r]=Pr,e),{}):{},Xe.filterProps=zo;function Je(e){return tl(e,Bo)}Je.propTypes=process.env.NODE_ENV!=="production"?Bo.reduce((e,r)=>(e[r]=Pr,e),{}):{},Je.filterProps=Bo,process.env.NODE_ENV!=="production"&&Ih.reduce((e,r)=>(e[r]=Pr,e),{});function Vo(...e){const r=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),t=n=>Object.keys(n).reduce((o,i)=>r[i]?Vn(o,r[i](n)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},t.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),t}function zt(e){return typeof e!="number"?e:`${e}px solid`}function Bt(e,r){return tt({prop:e,themeKey:"borders",transform:r})}const $h=Bt("border",zt),jh=Bt("borderTop",zt),Lh=Bt("borderRight",zt),zh=Bt("borderBottom",zt),Bh=Bt("borderLeft",zt),Vh=Bt("borderColor"),Fh=Bt("borderTopColor"),Yh=Bt("borderRightColor"),Uh=Bt("borderBottomColor"),Hh=Bt("borderLeftColor"),Wh=Bt("outline",zt),Zh=Bt("outlineColor"),Fo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Fn(e.theme,"shape.borderRadius",4,"borderRadius"),t=n=>({borderRadius:Yn(r,n)});return vr(e,e.borderRadius,t)}return null};Fo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pr}:{},Fo.filterProps=["borderRadius"],Vo($h,jh,Lh,zh,Bh,Vh,Fh,Yh,Uh,Hh,Fo,Wh,Zh);const Yo=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Fn(e.theme,"spacing",8,"gap"),t=n=>({gap:Yn(r,n)});return vr(e,e.gap,t)}return null};Yo.propTypes=process.env.NODE_ENV!=="production"?{gap:Pr}:{},Yo.filterProps=["gap"];const Uo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Fn(e.theme,"spacing",8,"columnGap"),t=n=>({columnGap:Yn(r,n)});return vr(e,e.columnGap,t)}return null};Uo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pr}:{},Uo.filterProps=["columnGap"];const Ho=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Fn(e.theme,"spacing",8,"rowGap"),t=n=>({rowGap:Yn(r,n)});return vr(e,e.rowGap,t)}return null};Ho.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pr}:{},Ho.filterProps=["rowGap"];const qh=tt({prop:"gridColumn"}),Kh=tt({prop:"gridRow"}),Gh=tt({prop:"gridAutoFlow"}),Qh=tt({prop:"gridAutoColumns"}),Xh=tt({prop:"gridAutoRows"}),Jh=tt({prop:"gridTemplateColumns"}),em=tt({prop:"gridTemplateRows"}),tm=tt({prop:"gridTemplateAreas"}),rm=tt({prop:"gridArea"});Vo(Yo,Uo,Ho,qh,Kh,Gh,Qh,Xh,Jh,em,tm,rm);function un(e,r){return r==="grey"?r:e}const nm=tt({prop:"color",themeKey:"palette",transform:un}),om=tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:un}),im=tt({prop:"backgroundColor",themeKey:"palette",transform:un});Vo(nm,om,im);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const am=tt({prop:"width",transform:At}),Da=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{const n=e.theme?.breakpoints?.values?.[t]||$o[t];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:At(t)}};return vr(e,e.maxWidth,r)}return null};Da.filterProps=["maxWidth"];const sm=tt({prop:"minWidth",transform:At}),cm=tt({prop:"height",transform:At}),lm=tt({prop:"maxHeight",transform:At}),um=tt({prop:"minHeight",transform:At});tt({prop:"size",cssProperty:"width",transform:At}),tt({prop:"size",cssProperty:"height",transform:At});const dm=tt({prop:"boxSizing"});Vo(am,Da,sm,cm,lm,um,dm);const Un={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fo},color:{themeKey:"palette",transform:un},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:un},backgroundColor:{themeKey:"palette",transform:un},p:{style:Je},pt:{style:Je},pr:{style:Je},pb:{style:Je},pl:{style:Je},px:{style:Je},py:{style:Je},padding:{style:Je},paddingTop:{style:Je},paddingRight:{style:Je},paddingBottom:{style:Je},paddingLeft:{style:Je},paddingX:{style:Je},paddingY:{style:Je},paddingInline:{style:Je},paddingInlineStart:{style:Je},paddingInlineEnd:{style:Je},paddingBlock:{style:Je},paddingBlockStart:{style:Je},paddingBlockEnd:{style:Je},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},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:Yo},rowGap:{style:Ho},columnGap:{style:Uo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:Da},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},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 fm(...e){const r=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),t=new Set(r);return e.every(n=>t.size===Object.keys(n).length)}function pm(e,r){return typeof e=="function"?e(r):e}function hm(){function e(t,n,o,i){const a={[t]:n,theme:o},s=i[t];if(!s)return{[t]:n};const{cssProperty:c=t,themeKey:l,transform:u,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[t]:n};const f=jo(o,l)||{};return d?d(a):vr(a,n,g=>{let p=Lo(f,u,g);return g===p&&typeof g=="string"&&(p=Lo(f,u,`${t}${g==="default"?"":Ke(g)}`,g)),c===!1?p:{[c]:p}})}function r(t){const{sx:n,theme:o={},nested:i}=t||{};if(!n)return null;const a=o.unstable_sxConfig??Un;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Th(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(m=>{const g=pm(l[m],o);if(g!=null)if(typeof g=="object")if(a[m])f=Vn(f,e(m,g,o,a));else{const p=vr({theme:o},g,y=>({[m]:y}));fm(p,g)?f[m]=r({sx:g,theme:o,nested:!0}):f=Vn(f,p)}else f=Vn(f,e(m,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Qc(o,Jc(d,f))}:Qc(o,Jc(d,f))}return Array.isArray(n)?n.map(s):s(n)}return r}const zr=hm();zr.filterProps=["sx"];const mm=e=>{const r={systemProps:{},otherProps:{}},t=e?.theme?.unstable_sxConfig??Un;return Object.keys(e).forEach(n=>{t[n]?r.systemProps[n]=e[n]:r.otherProps[n]=e[n]}),r};function gm(e){const{sx:r,...t}=e,{systemProps:n,otherProps:o}=mm(t);let i;return Array.isArray(r)?i=[n,...r]:typeof r=="function"?i=(...a)=>{const s=r(...a);return nr(s)?{...n,...s}:n}:i={...n,...r},{...o,sx:i}}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Wo.apply(null,arguments)}function vm(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function ym(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var bm=(function(){function e(t){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ym(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=vm(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ht="-ms-",Zo="-moz-",Te="-webkit-",rl="comm",Ta="rule",Oa="decl",wm="@import",nl="@keyframes",_m="@layer",xm=Math.abs,qo=String.fromCharCode,Sm=Object.assign;function Cm(e,r){return ft(e,0)^45?(((r<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function ol(e){return e.trim()}function Em(e,r){return(e=r.exec(e))?e[0]:e}function Oe(e,r,t){return e.replace(r,t)}function Ma(e,r){return e.indexOf(r)}function ft(e,r){return e.charCodeAt(r)|0}function Hn(e,r,t){return e.slice(r,t)}function or(e){return e.length}function Pa(e){return e.length}function Ko(e,r){return r.push(e),e}function km(e,r){return e.map(r).join("")}var Go=1,dn=1,il=0,St=0,st=0,fn="";function Qo(e,r,t,n,o,i,a){return{value:e,root:r,parent:t,type:n,props:o,children:i,line:Go,column:dn,length:a,return:""}}function Wn(e,r){return Sm(Qo("",null,null,"",null,null,0),e,{length:-e.length},r)}function Dm(){return st}function Tm(){return st=St>0?ft(fn,--St):0,dn--,st===10&&(dn=1,Go--),st}function It(){return st=St<il?ft(fn,St++):0,dn++,st===10&&(dn=1,Go++),st}function ir(){return ft(fn,St)}function Xo(){return St}function Zn(e,r){return Hn(fn,e,r)}function qn(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 al(e){return Go=dn=1,il=or(fn=e),St=0,[]}function sl(e){return fn="",e}function Jo(e){return ol(Zn(St-1,Aa(e===91?e+2:e===40?e+1:e)))}function Om(e){for(;(st=ir())&&st<33;)It();return qn(e)>2||qn(st)>3?"":" "}function Mm(e,r){for(;--r&&It()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return Zn(e,Xo()+(r<6&&ir()==32&&It()==32))}function Aa(e){for(;It();)switch(st){case e:return St;case 34:case 39:e!==34&&e!==39&&Aa(st);break;case 40:e===41&&Aa(e);break;case 92:It();break}return St}function Pm(e,r){for(;It()&&e+st!==57;)if(e+st===84&&ir()===47)break;return"/*"+Zn(r,St-1)+"*"+qo(e===47?e:It())}function Am(e){for(;!qn(ir());)It();return Zn(e,St)}function Im(e){return sl(ei("",null,null,null,[""],e=al(e),0,[0],e))}function ei(e,r,t,n,o,i,a,s,c){for(var l=0,u=0,d=a,f=0,m=0,g=0,p=1,y=1,S=1,C=0,k="",E=o,_=i,O=n,N=k;y;)switch(g=C,C=It()){case 40:if(g!=108&&ft(N,d-1)==58){Ma(N+=Oe(Jo(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:N+=Jo(C);break;case 9:case 10:case 13:case 32:N+=Om(g);break;case 92:N+=Mm(Xo()-1,7);continue;case 47:switch(ir()){case 42:case 47:Ko(Rm(Pm(It(),Xo()),r,t),c);break;default:N+="/"}break;case 123*p:s[l++]=or(N)*S;case 125*p:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+u:S==-1&&(N=Oe(N,/\f/g,"")),m>0&&or(N)-d&&Ko(m>32?ll(N+";",n,t,d-1):ll(Oe(N," ","")+";",n,t,d-2),c);break;case 59:N+=";";default:if(Ko(O=cl(N,r,t,l,u,o,s,k,E=[],_=[],d),i),C===123)if(u===0)ei(N,r,O,O,E,i,d,s,_);else switch(f===99&&ft(N,3)===110?100:f){case 100:case 108:case 109:case 115:ei(e,O,O,n&&Ko(cl(e,O,O,0,0,o,s,k,o,E=[],d),_),o,_,d,s,n?E:_);break;default:ei(N,O,O,O,[""],_,0,s,_)}}l=u=m=0,p=S=1,k=N="",d=a;break;case 58:d=1+or(N),m=g;default:if(p<1){if(C==123)--p;else if(C==125&&p++==0&&Tm()==125)continue}switch(N+=qo(C),C*p){case 38:S=u>0?1:(N+="\f",-1);break;case 44:s[l++]=(or(N)-1)*S,S=1;break;case 64:ir()===45&&(N+=Jo(It())),f=ir(),u=d=or(k=N+=Am(Xo())),C++;break;case 45:g===45&&or(N)==2&&(p=0)}}return i}function cl(e,r,t,n,o,i,a,s,c,l,u){for(var d=o-1,f=o===0?i:[""],m=Pa(f),g=0,p=0,y=0;g<n;++g)for(var S=0,C=Hn(e,d+1,d=xm(p=a[g])),k=e;S<m;++S)(k=ol(p>0?f[S]+" "+C:Oe(C,/&\f/g,f[S])))&&(c[y++]=k);return Qo(e,r,t,o===0?Ta:s,c,l,u)}function Rm(e,r,t){return Qo(e,r,t,rl,qo(Dm()),Hn(e,2,-2),0)}function ll(e,r,t,n){return Qo(e,r,t,Oa,Hn(e,0,n),Hn(e,n+1,-1),n)}function pn(e,r){for(var t="",n=Pa(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function Nm(e,r,t,n){switch(e.type){case _m:if(e.children.length)break;case wm:case Oa:return e.return=e.return||e.value;case rl:return"";case nl:return e.return=e.value+"{"+pn(e.children,n)+"}";case Ta:e.value=e.props.join(",")}return or(t=pn(e.children,n))?e.return=e.value+"{"+t+"}":""}function $m(e){var r=Pa(e);return function(t,n,o,i){for(var a="",s=0;s<r;s++)a+=e[s](t,n,o,i)||"";return a}}function jm(e){return function(r){r.root||(r=r.return)&&e(r)}}function ul(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Lm=function(r,t,n){for(var o=0,i=0;o=i,i=ir(),o===38&&i===12&&(t[n]=1),!qn(i);)It();return Zn(r,St)},zm=function(r,t){var n=-1,o=44;do switch(qn(o)){case 0:o===38&&ir()===12&&(t[n]=1),r[n]+=Lm(St-1,t,n);break;case 2:r[n]+=Jo(o);break;case 4:if(o===44){r[++n]=ir()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=qo(o)}while(o=It());return r},Bm=function(r,t){return sl(zm(al(r),t))},dl=new WeakMap,Vm=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,o=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!dl.get(n))&&!o){dl.set(r,!0);for(var i=[],a=Bm(t,i),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)r.props[l]=i[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},Fm=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function fl(e,r){switch(Cm(e,r)){case 5103:return Te+"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 Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+e+Zo+e+ht+e+e;case 6828:case 4268:return Te+e+ht+e+e;case 6165:return Te+e+ht+"flex-"+e+e;case 5187:return Te+e+Oe(e,/(\w+).+(:[^]+)/,Te+"box-$1$2"+ht+"flex-$1$2")+e;case 5443:return Te+e+ht+"flex-item-"+Oe(e,/flex-|-self/,"")+e;case 4675:return Te+e+ht+"flex-line-pack"+Oe(e,/align-content|flex-|-self/,"")+e;case 5548:return Te+e+ht+Oe(e,"shrink","negative")+e;case 5292:return Te+e+ht+Oe(e,"basis","preferred-size")+e;case 6060:return Te+"box-"+Oe(e,"-grow","")+Te+e+ht+Oe(e,"grow","positive")+e;case 4554:return Te+Oe(e,/([^-])(transform)/g,"$1"+Te+"$2")+e;case 6187:return Oe(Oe(Oe(e,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),e,"")+e;case 5495:case 3959:return Oe(e,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return Oe(Oe(e,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+e+e;case 4095:case 3583:case 4068:case 2532:return Oe(e,/(.+)-inline(.+)/,Te+"$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(or(e)-1-r>6)switch(ft(e,r+1)){case 109:if(ft(e,r+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+Zo+(ft(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ma(e,"stretch")?fl(Oe(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ft(e,r+1)!==115)break;case 6444:switch(ft(e,or(e)-3-(~Ma(e,"!important")&&10))){case 107:return Oe(e,":",":"+Te)+e;case 101:return Oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(ft(e,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+ht+"$2box$3")+e}break;case 5936:switch(ft(e,r+11)){case 114:return Te+e+ht+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+ht+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+ht+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+ht+e+e}return e}var Ym=function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case Oa:r.return=fl(r.value,r.length);break;case nl:return pn([Wn(r,{value:Oe(r.value,"@","@"+Te)})],o);case Ta:if(r.length)return km(r.props,function(i){switch(Em(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([Wn(r,{props:[Oe(i,/:(read-\w+)/,":"+Zo+"$1")]})],o);case"::placeholder":return pn([Wn(r,{props:[Oe(i,/:(plac\w+)/,":"+Te+"input-$1")]}),Wn(r,{props:[Oe(i,/:(plac\w+)/,":"+Zo+"$1")]}),Wn(r,{props:[Oe(i,/:(plac\w+)/,ht+"input-$1")]})],o)}return""})}},Um=[Ym],Hm=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=r.stylisPlugins||Um,i={},a,s=[];a=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)i[y[S]]=!0;s.push(p)});var c,l=[Vm,Fm];{var u,d=[Nm,jm(function(p){u.insert(p)})],f=$m(l.concat(o,d)),m=function(y){return pn(Im(y),f)};c=function(y,S,C,k){u=C,m(y?y+"{"+S.styles+"}":S.styles),k&&(g.inserted[S.name]=!0)}}var g={key:t,sheet:new bm({key:t,container:a,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},ti={exports:{}},Ae={};/** @license React v16.13.1
70
70
  * react-is.production.min.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var dl;function Hm(){if(dl)return Pe;dl=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case r:switch(_=_.type,_){case c:case l:case n:case i:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case g:case m:case a:return _;default:return O}}case t:return O}}}function E(_){return k(_)===l}return Pe.AsyncMode=c,Pe.ConcurrentMode=l,Pe.ContextConsumer=s,Pe.ContextProvider=a,Pe.Element=r,Pe.ForwardRef=u,Pe.Fragment=n,Pe.Lazy=g,Pe.Memo=m,Pe.Portal=t,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=d,Pe.isAsyncMode=function(_){return E(_)||k(_)===c},Pe.isConcurrentMode=E,Pe.isContextConsumer=function(_){return k(_)===s},Pe.isContextProvider=function(_){return k(_)===a},Pe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},Pe.isForwardRef=function(_){return k(_)===u},Pe.isFragment=function(_){return k(_)===n},Pe.isLazy=function(_){return k(_)===g},Pe.isMemo=function(_){return k(_)===m},Pe.isPortal=function(_){return k(_)===t},Pe.isProfiler=function(_){return k(_)===i},Pe.isStrictMode=function(_){return k(_)===o},Pe.isSuspense=function(_){return k(_)===d},Pe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===l||_===i||_===o||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===y||_.$$typeof===S||_.$$typeof===C||_.$$typeof===p)},Pe.typeOf=k,Pe}var Ae={};/** @license React v16.13.1
76
+ */var pl;function Wm(){if(pl)return Ae;pl=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case r:switch(_=_.type,_){case c:case l:case n:case i:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case g:case m:case a:return _;default:return O}}case t:return O}}}function E(_){return k(_)===l}return Ae.AsyncMode=c,Ae.ConcurrentMode=l,Ae.ContextConsumer=s,Ae.ContextProvider=a,Ae.Element=r,Ae.ForwardRef=u,Ae.Fragment=n,Ae.Lazy=g,Ae.Memo=m,Ae.Portal=t,Ae.Profiler=i,Ae.StrictMode=o,Ae.Suspense=d,Ae.isAsyncMode=function(_){return E(_)||k(_)===c},Ae.isConcurrentMode=E,Ae.isContextConsumer=function(_){return k(_)===s},Ae.isContextProvider=function(_){return k(_)===a},Ae.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},Ae.isForwardRef=function(_){return k(_)===u},Ae.isFragment=function(_){return k(_)===n},Ae.isLazy=function(_){return k(_)===g},Ae.isMemo=function(_){return k(_)===m},Ae.isPortal=function(_){return k(_)===t},Ae.isProfiler=function(_){return k(_)===i},Ae.isStrictMode=function(_){return k(_)===o},Ae.isSuspense=function(_){return k(_)===d},Ae.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===l||_===i||_===o||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===y||_.$$typeof===S||_.$$typeof===C||_.$$typeof===p)},Ae.typeOf=k,Ae}var Ie={};/** @license React v16.13.1
77
77
  * react-is.development.js
78
78
  *
79
79
  * Copyright (c) Facebook, Inc. and its affiliates.
80
80
  *
81
81
  * This source code is licensed under the MIT license found in the
82
82
  * LICENSE file in the root directory of this source tree.
83
- */var fl;function Wm(){return fl||(fl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(B){return typeof B=="string"||typeof B=="function"||B===n||B===l||B===i||B===o||B===d||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===m||B.$$typeof===a||B.$$typeof===s||B.$$typeof===u||B.$$typeof===y||B.$$typeof===S||B.$$typeof===C||B.$$typeof===p)}function E(B){if(typeof B=="object"&&B!==null){var Ve=B.$$typeof;switch(Ve){case r:var Qe=B.type;switch(Qe){case c:case l:case n:case i:case o:case d:return Qe;default:var wt=Qe&&Qe.$$typeof;switch(wt){case s:case u:case g:case m:case a:return wt;default:return Ve}}case t:return Ve}}}var _=c,O=l,R=s,q=a,Z=r,j=u,K=n,v=g,A=m,P=t,H=i,W=o,J=d,V=!1;function Q(B){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(B)||E(B)===c}function L(B){return E(B)===l}function U(B){return E(B)===s}function ce(B){return E(B)===a}function ge(B){return typeof B=="object"&&B!==null&&B.$$typeof===r}function he(B){return E(B)===u}function ee(B){return E(B)===n}function G(B){return E(B)===g}function se(B){return E(B)===m}function le(B){return E(B)===t}function me(B){return E(B)===i}function ue(B){return E(B)===o}function Te(B){return E(B)===d}Ae.AsyncMode=_,Ae.ConcurrentMode=O,Ae.ContextConsumer=R,Ae.ContextProvider=q,Ae.Element=Z,Ae.ForwardRef=j,Ae.Fragment=K,Ae.Lazy=v,Ae.Memo=A,Ae.Portal=P,Ae.Profiler=H,Ae.StrictMode=W,Ae.Suspense=J,Ae.isAsyncMode=Q,Ae.isConcurrentMode=L,Ae.isContextConsumer=U,Ae.isContextProvider=ce,Ae.isElement=ge,Ae.isForwardRef=he,Ae.isFragment=ee,Ae.isLazy=G,Ae.isMemo=se,Ae.isPortal=le,Ae.isProfiler=me,Ae.isStrictMode=ue,Ae.isSuspense=Te,Ae.isValidElementType=k,Ae.typeOf=E})()),Ae}var pl;function Zm(){return pl||(pl=1,process.env.NODE_ENV==="production"?Jo.exports=Hm():Jo.exports=Wm()),Jo.exports}var Pa,hl;function qm(){if(hl)return Pa;hl=1;var e=Zm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(g){return e.isMemo(g)?o:i[g.$$typeof]||r}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function m(g,p,y){if(typeof p!="string"){if(f){var S=d(p);S&&S!==f&&m(g,S,y)}var C=c(p);l&&(C=C.concat(l(p)));for(var k=a(g),E=a(p),_=0;_<C.length;++_){var O=C[_];if(!t[O]&&!(y&&y[O])&&!(E&&E[O])&&!(k&&k[O])){var R=u(p,O);try{s(g,O,R)}catch{}}}}return g}return Pa=m,Pa}qm();var Km=!0;function ml(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ")}),n}var Aa=function(r,t,n){var o=r.key+"-"+t.name;(n===!1||Km===!1)&&r.registered[o]===void 0&&(r.registered[o]=t.styles)},gl=function(r,t,n){Aa(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+o:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function Gm(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Qm={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},Xm=/[A-Z]|^ms/g,Jm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vl=function(r){return r.charCodeAt(1)===45},yl=function(r){return r!=null&&typeof r!="boolean"},Ia=cl(function(e){return vl(e)?e:e.replace(Xm,"-$&").toLowerCase()}),bl=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(Jm,function(n,o,i){return ar={name:o,styles:i,next:ar},o})}return Qm[r]!==1&&!vl(r)&&typeof t=="number"&&t!==0?t+"px":t};function qn(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return ar={name:o.name,styles:o.styles,next:ar},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ar={name:a.name,styles:a.styles,next:ar},a=a.next;var s=i.styles+";";return s}return eg(e,r,t)}case"function":{if(e!==void 0){var c=ar,l=t(e);return ar=c,qn(e,r,l)}break}}var u=t;if(r==null)return u;var d=r[u];return d!==void 0?d:u}function eg(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=qn(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var s=a;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":yl(s)&&(n+=Ia(i)+":"+bl(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var c=0;c<a.length;c++)yl(a[c])&&(n+=Ia(i)+":"+bl(i,a[c])+";");else{var l=qn(e,r,a);switch(i){case"animation":case"animationName":{n+=Ia(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var wl=/label:\s*([^\s;{]+)\s*(;|$)/g,ar;function ei(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ar=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=qn(t,r,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=qn(t,r,e[s]),n){var c=i;o+=c[s]}wl.lastIndex=0;for(var l="",u;(u=wl.exec(o))!==null;)l+="-"+u[1];var d=Gm(o)+l;return{name:d,styles:o,next:ar}}var tg=function(r){return r()},rg=$.useInsertionEffect?$.useInsertionEffect:!1,_l=rg||tg,xl=$.createContext(typeof HTMLElement<"u"?Um({key:"css"}):null);xl.Provider;var Sl=function(r){return x.forwardRef(function(t,n){var o=x.useContext(xl);return r(t,o,n)})},Ra=$.createContext({}),Na={}.hasOwnProperty,$a="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ng=function(r,t){var n={};for(var o in t)Na.call(t,o)&&(n[o]=t[o]);return n[$a]=r,n},og=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Aa(t,n,o),_l(function(){return gl(t,n,o)}),null},ig=Sl(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var o=e[$a],i=[n],a="";typeof e.className=="string"?a=ml(r.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ei(i,void 0,$.useContext(Ra));a+=r.key+"-"+s.name;var c={};for(var l in e)Na.call(e,l)&&l!=="css"&&l!==$a&&(c[l]=e[l]);return c.className=a,t&&(c.ref=t),$.createElement($.Fragment,null,$.createElement(og,{cache:r,serialized:s,isStringTag:typeof o=="string"}),$.createElement(o,c))}),ag=ig,Cl=function(r,t){var n=arguments;if(t==null||!Na.call(t,"css"))return $.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=ag,i[1]=ng(r,t);for(var a=2;a<o;a++)i[a]=n[a];return $.createElement.apply(null,i)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(Cl||(Cl={}));function ja(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return ei(r)}function Kn(){var e=ja.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var sg=/^((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|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)-.*))$/,cg=cl(function(e){return sg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),lg=cg,ug=function(r){return r!=="theme"},El=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?lg:ug},kl=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},dg=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Aa(t,n,o),_l(function(){return gl(t,n,o)}),null},fg=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var s=kl(r,t,n),c=s||El(o),l=!c("as");return function(){var u=arguments,d=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var m=u.length,g=1;g<m;g++)d.push(u[g],f[g])}var p=Sl(function(y,S,C){var k=l&&y.as||o,E="",_=[],O=y;if(y.theme==null){O={};for(var R in y)O[R]=y[R];O.theme=$.useContext(Ra)}typeof y.className=="string"?E=ml(S.registered,_,y.className):y.className!=null&&(E=y.className+" ");var q=ei(d.concat(_),S.registered,O);E+=S.key+"-"+q.name,a!==void 0&&(E+=" "+a);var Z=l&&s===void 0?El(k):c,j={};for(var K in y)l&&K==="as"||Z(K)&&(j[K]=y[K]);return j.className=E,C&&(j.ref=C),$.createElement($.Fragment,null,$.createElement(dg,{cache:S,serialized:q,isStringTag:typeof k=="string"}),$.createElement(k,j))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=r.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(y,S){var C=e(y,Uo({},t,S,{shouldForwardProp:kl(p,S,!0)}));return C.apply(void 0,d)},p}},pg=["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"],La=fg.bind(null);pg.forEach(function(e){La[e]=La(e)});/**
83
+ */var hl;function Zm(){return hl||(hl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===o||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===m||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===y||P.$$typeof===S||P.$$typeof===C||P.$$typeof===p)}function E(P){if(typeof P=="object"&&P!==null){var we=P.$$typeof;switch(we){case r:var Qe=P.type;switch(Qe){case c:case l:case n:case i:case o:case d:return Qe;default:var wt=Qe&&Qe.$$typeof;switch(wt){case s:case u:case g:case m:case a:return wt;default:return we}}case t:return we}}}var _=c,O=l,N=s,q=a,Z=r,L=u,K=n,v=g,I=m,A=t,U=i,H=o,ee=d,re=!1;function se(P){return re||(re=!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.")),V(P)||E(P)===c}function V(P){return E(P)===l}function G(P){return E(P)===s}function ge(P){return E(P)===a}function ve(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function he(P){return E(P)===u}function J(P){return E(P)===n}function Q(P){return E(P)===g}function ce(P){return E(P)===m}function ue(P){return E(P)===t}function F(P){return E(P)===i}function W(P){return E(P)===o}function de(P){return E(P)===d}Ie.AsyncMode=_,Ie.ConcurrentMode=O,Ie.ContextConsumer=N,Ie.ContextProvider=q,Ie.Element=Z,Ie.ForwardRef=L,Ie.Fragment=K,Ie.Lazy=v,Ie.Memo=I,Ie.Portal=A,Ie.Profiler=U,Ie.StrictMode=H,Ie.Suspense=ee,Ie.isAsyncMode=se,Ie.isConcurrentMode=V,Ie.isContextConsumer=G,Ie.isContextProvider=ge,Ie.isElement=ve,Ie.isForwardRef=he,Ie.isFragment=J,Ie.isLazy=Q,Ie.isMemo=ce,Ie.isPortal=ue,Ie.isProfiler=F,Ie.isStrictMode=W,Ie.isSuspense=de,Ie.isValidElementType=k,Ie.typeOf=E})()),Ie}var ml;function qm(){return ml||(ml=1,process.env.NODE_ENV==="production"?ti.exports=Wm():ti.exports=Zm()),ti.exports}var Ia,gl;function Km(){if(gl)return Ia;gl=1;var e=qm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(g){return e.isMemo(g)?o:i[g.$$typeof]||r}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function m(g,p,y){if(typeof p!="string"){if(f){var S=d(p);S&&S!==f&&m(g,S,y)}var C=c(p);l&&(C=C.concat(l(p)));for(var k=a(g),E=a(p),_=0;_<C.length;++_){var O=C[_];if(!t[O]&&!(y&&y[O])&&!(E&&E[O])&&!(k&&k[O])){var N=u(p,O);try{s(g,O,N)}catch{}}}}return g}return Ia=m,Ia}Km();var Gm=!0;function vl(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ")}),n}var Ra=function(r,t,n){var o=r.key+"-"+t.name;(n===!1||Gm===!1)&&r.registered[o]===void 0&&(r.registered[o]=t.styles)},yl=function(r,t,n){Ra(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+o:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function Qm(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Xm={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},Jm=/[A-Z]|^ms/g,eg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bl=function(r){return r.charCodeAt(1)===45},wl=function(r){return r!=null&&typeof r!="boolean"},Na=ul(function(e){return bl(e)?e:e.replace(Jm,"-$&").toLowerCase()}),_l=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(eg,function(n,o,i){return ar={name:o,styles:i,next:ar},o})}return Xm[r]!==1&&!bl(r)&&typeof t=="number"&&t!==0?t+"px":t};function Kn(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return ar={name:o.name,styles:o.styles,next:ar},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ar={name:a.name,styles:a.styles,next:ar},a=a.next;var s=i.styles+";";return s}return tg(e,r,t)}case"function":{if(e!==void 0){var c=ar,l=t(e);return ar=c,Kn(e,r,l)}break}}var u=t;if(r==null)return u;var d=r[u];return d!==void 0?d:u}function tg(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Kn(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var s=a;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":wl(s)&&(n+=Na(i)+":"+_l(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var c=0;c<a.length;c++)wl(a[c])&&(n+=Na(i)+":"+_l(i,a[c])+";");else{var l=Kn(e,r,a);switch(i){case"animation":case"animationName":{n+=Na(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var xl=/label:\s*([^\s;{]+)\s*(;|$)/g,ar;function ri(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ar=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Kn(t,r,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Kn(t,r,e[s]),n){var c=i;o+=c[s]}xl.lastIndex=0;for(var l="",u;(u=xl.exec(o))!==null;)l+="-"+u[1];var d=Qm(o)+l;return{name:d,styles:o,next:ar}}var rg=function(r){return r()},ng=j.useInsertionEffect?j.useInsertionEffect:!1,Sl=ng||rg,Cl=j.createContext(typeof HTMLElement<"u"?Hm({key:"css"}):null);Cl.Provider;var El=function(r){return x.forwardRef(function(t,n){var o=x.useContext(Cl);return r(t,o,n)})},$a=j.createContext({}),ja={}.hasOwnProperty,La="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",og=function(r,t){var n={};for(var o in t)ja.call(t,o)&&(n[o]=t[o]);return n[La]=r,n},ig=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Ra(t,n,o),Sl(function(){return yl(t,n,o)}),null},ag=El(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var o=e[La],i=[n],a="";typeof e.className=="string"?a=vl(r.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ri(i,void 0,j.useContext($a));a+=r.key+"-"+s.name;var c={};for(var l in e)ja.call(e,l)&&l!=="css"&&l!==La&&(c[l]=e[l]);return c.className=a,t&&(c.ref=t),j.createElement(j.Fragment,null,j.createElement(ig,{cache:r,serialized:s,isStringTag:typeof o=="string"}),j.createElement(o,c))}),sg=ag,kl=function(r,t){var n=arguments;if(t==null||!ja.call(t,"css"))return j.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=sg,i[1]=og(r,t);for(var a=2;a<o;a++)i[a]=n[a];return j.createElement.apply(null,i)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(kl||(kl={}));function za(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return ri(r)}function Gn(){var e=za.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var cg=/^((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|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)-.*))$/,lg=ul(function(e){return cg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ug=lg,dg=function(r){return r!=="theme"},Dl=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ug:dg},Tl=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},fg=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Ra(t,n,o),Sl(function(){return yl(t,n,o)}),null},pg=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var s=Tl(r,t,n),c=s||Dl(o),l=!c("as");return function(){var u=arguments,d=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var m=u.length,g=1;g<m;g++)d.push(u[g],f[g])}var p=El(function(y,S,C){var k=l&&y.as||o,E="",_=[],O=y;if(y.theme==null){O={};for(var N in y)O[N]=y[N];O.theme=j.useContext($a)}typeof y.className=="string"?E=vl(S.registered,_,y.className):y.className!=null&&(E=y.className+" ");var q=ri(d.concat(_),S.registered,O);E+=S.key+"-"+q.name,a!==void 0&&(E+=" "+a);var Z=l&&s===void 0?Dl(k):c,L={};for(var K in y)l&&K==="as"||Z(K)&&(L[K]=y[K]);return L.className=E,C&&(L.ref=C),j.createElement(j.Fragment,null,j.createElement(fg,{cache:S,serialized:q,isStringTag:typeof k=="string"}),j.createElement(k,L))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=r.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(y,S){var C=e(y,Wo({},t,S,{shouldForwardProp:Tl(p,S,!0)}));return C.apply(void 0,d)},p}},hg=["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"],Ba=pg.bind(null);hg.forEach(function(e){Ba[e]=Ba(e)});/**
84
84
  * @mui/styled-engine v7.3.2
85
85
  *
86
86
  * @license MIT
87
87
  * This source code is licensed under the MIT license found in the
88
88
  * LICENSE file in the root directory of this source tree.
89
- */function Dl(e,r){const t=La(e,r);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
90
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}function hg(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Tl=[];function Br(e){return Tl[0]=e,ei(Tl)}const mg=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function gg(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...o}=e,i=mg(r),a=Object.keys(i);function s(f){return`@media (min-width:${typeof r[f]=="number"?r[f]:f}${t})`}function c(f){return`@media (max-width:${(typeof r[f]=="number"?r[f]:f)-n/100}${t})`}function l(f,m){const g=a.indexOf(m);return`@media (min-width:${typeof r[f]=="number"?r[f]:f}${t}) and (max-width:${(g!==-1&&typeof r[a[g]]=="number"?r[a[g]]:m)-n/100}${t})`}function u(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function d(f){const m=a.indexOf(f);return m===0?s(a[1]):m===a.length-1?c(a[m]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:t,...o}}const vg={borderRadius:4};function Ol(e=8,r=Ca({spacing:e})){if(e.mui)return e;const t=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=r(i);return typeof a=="number"?`${a}px`:a}).join(" "));return t.mui=!0,t}function yg(e,r){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let n=t.getColorSchemeSelector(e);return n==="&"?r:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:r})}return t.palette.mode===e?r:{}}function za(e={},...r){const{breakpoints:t={},palette:n={},spacing:o,shape:i={},...a}=e,s=gg(t),c=Ol(o);let l=Pt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...vg,...i}},a);return l=Eh(l),l.applyStyles=yg,l=r.reduce((u,d)=>Pt(u,d),l),l.unstable_sxConfig={...Yn,...a?.unstable_sxConfig},l.unstable_sx=function(d){return zr({sx:d,theme:this})},l}function bg(e){return Object.keys(e).length===0}function wg(e=null){const r=$.useContext(Ra);return!r||bg(r)?e:r}const _g=za();function Ml(e=_g){return wg(e)}function xg(e={}){const{themeId:r,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Dl("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(zr);return $.forwardRef(function(c,l){const u=Ml(t),{className:d,component:f="div",...m}=mm(c);return h.jsx(i,{as:f,ref:l,className:be(d,o?o(n):n),theme:r&&u[r]||u,...m})})}const Sg={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 Ct(e,r,t="Mui"){const n=Sg[r];return n?`${t}-${n}`:`${Pc.generate(e)}-${r}`}function Et(e,r,t="Mui"){const n={};return r.forEach(o=>{n[o]=Ct(e,o,t)}),n}function Pl(e,r=""){return e.displayName||e.name||r}function Al(e,r,t){const n=Pl(r);return e.displayName||(n!==""?`${t}(${n})`:t)}function Cg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Pl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Io.ForwardRef:return Al(e,e.render,"ForwardRef");case Io.Memo:return Al(e,e.type,"memo");default:return}}}function Il(e){const{variants:r,...t}=e,n={variants:r,style:Br(t),isProcessed:!0};return n.style===t||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=Br(o.style))}),n}const Eg=za();function Ba(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Vr(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function kg(e){return e?(r,t)=>t[e]:null}function Dg(e,r,t){e.theme=Pg(e.theme)?t:e.theme[r]||e.theme}function ti(e,r,t){const n=typeof r=="function"?r(e):r;if(Array.isArray(n))return n.flatMap(o=>ti(e,o,t));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=t?Vr(n.style,t):n.style;else{const{variants:i,...a}=n;o=t?Vr(Br(a),t):a}return Rl(e,n.variants,[o],t)}return n?.isProcessed?t?Vr(Br(n.style),t):n.style:t?Vr(Br(n),t):n}function Rl(e,r,t=[],n=void 0){let o;e:for(let i=0;i<r.length;i+=1){const a=r[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},t.push(n?Vr(Br(a.style(o)),n):a.style(o))):t.push(n?Vr(Br(a.style),n):a.style)}return t}function Tg(e={}){const{themeId:r,defaultTheme:t=Eg,rootShouldForwardProp:n=Ba,slotShouldForwardProp:o=Ba}=e;function i(s){Dg(s,r,t)}return(s,c={})=>{hg(s,O=>O.filter(R=>R!==zr));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=kg(Nl(u)),...g}=c,p=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let C=Ba;u==="Root"||u==="root"?C=n:u?C=o:Ag(s)&&(C=void 0);const k=Dl(s,{shouldForwardProp:C,label:Mg(l,u),...g}),E=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(q){return ti(q,O,q.theme.modularCssLayers?p:void 0)};if(nr(O)){const R=Il(O);return function(Z){return R.variants?ti(Z,R,Z.theme.modularCssLayers?p:void 0):Z.theme.modularCssLayers?Vr(R.style,p):R.style}}return O},_=(...O)=>{const R=[],q=O.map(E),Z=[];if(R.push(i),l&&m&&Z.push(function(A){const H=A.theme.components?.[l]?.styleOverrides;if(!H)return null;const W={};for(const J in H)W[J]=ti(A,H[J],A.theme.modularCssLayers?"theme":void 0);return m(A,W)}),l&&!y&&Z.push(function(A){const H=A.theme?.components?.[l]?.variants;return H?Rl(A,H,[],A.theme.modularCssLayers?"theme":void 0):null}),S||Z.push(zr),Array.isArray(q[0])){const v=q.shift(),A=new Array(R.length).fill(""),P=new Array(Z.length).fill("");let H;H=[...A,...v,...P],H.raw=[...A,...v.raw,...P],R.unshift(H)}const j=[...R,...q,...Z],K=k(...j);return s.muiName&&(K.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(K.displayName=Og(l,u,s)),K};return k.withConfig&&(_.withConfig=k.withConfig),_}}function Og(e,r,t){return e?`${e}${Ke(r||"")}`:`Styled(${Cg(t)})`}function Mg(e,r){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${Nl(r||"Root")}`),t}function Pg(e){for(const r in e)return!1;return!0}function Ag(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Va(e,r,t=!1){const n={...r};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=r[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;n[i][l]=Va(a[l],s[l],t)}}}else i==="className"&&t&&r.className?n.className=be(e?.className,r?.className):i==="style"&&t&&r.style?n.style={...e?.style,...r?.style}:n[i]===void 0&&(n[i]=e[i])}return n}const Ig=typeof window<"u"?$.useLayoutEffect:$.useEffect;function Rg(e,r=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,t))}function Fa(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),Rg(e,r,t)}function Ng(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),t?`rgb${t.length===4?"a":""}(${t.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ar(e){if(e.type)return e;if(e.charAt(0)==="#")return Ar(Ng(e));const r=e.indexOf("("),t=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
89
+ */function Ol(e,r){const t=Ba(e,r);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
90
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}function mg(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Ml=[];function Br(e){return Ml[0]=e,ri(Ml)}const gg=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function vg(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...o}=e,i=gg(r),a=Object.keys(i);function s(f){return`@media (min-width:${typeof r[f]=="number"?r[f]:f}${t})`}function c(f){return`@media (max-width:${(typeof r[f]=="number"?r[f]:f)-n/100}${t})`}function l(f,m){const g=a.indexOf(m);return`@media (min-width:${typeof r[f]=="number"?r[f]:f}${t}) and (max-width:${(g!==-1&&typeof r[a[g]]=="number"?r[a[g]]:m)-n/100}${t})`}function u(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function d(f){const m=a.indexOf(f);return m===0?s(a[1]):m===a.length-1?c(a[m]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:t,...o}}const yg={borderRadius:4};function Pl(e=8,r=ka({spacing:e})){if(e.mui)return e;const t=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=r(i);return typeof a=="number"?`${a}px`:a}).join(" "));return t.mui=!0,t}function bg(e,r){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let n=t.getColorSchemeSelector(e);return n==="&"?r:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:r})}return t.palette.mode===e?r:{}}function Va(e={},...r){const{breakpoints:t={},palette:n={},spacing:o,shape:i={},...a}=e,s=vg(t),c=Pl(o);let l=Pt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...yg,...i}},a);return l=kh(l),l.applyStyles=bg,l=r.reduce((u,d)=>Pt(u,d),l),l.unstable_sxConfig={...Un,...a?.unstable_sxConfig},l.unstable_sx=function(d){return zr({sx:d,theme:this})},l}function wg(e){return Object.keys(e).length===0}function _g(e=null){const r=j.useContext($a);return!r||wg(r)?e:r}const xg=Va();function Al(e=xg){return _g(e)}function Sg(e={}){const{themeId:r,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Ol("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(zr);return j.forwardRef(function(c,l){const u=Al(t),{className:d,component:f="div",...m}=gm(c);return h.jsx(i,{as:f,ref:l,className:_e(d,o?o(n):n),theme:r&&u[r]||u,...m})})}const Cg={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 Ct(e,r,t="Mui"){const n=Cg[r];return n?`${t}-${n}`:`${Ic.generate(e)}-${r}`}function Et(e,r,t="Mui"){const n={};return r.forEach(o=>{n[o]=Ct(e,o,t)}),n}function Il(e,r=""){return e.displayName||e.name||r}function Rl(e,r,t){const n=Il(r);return e.displayName||(n!==""?`${t}(${n})`:t)}function Eg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Il(e,"Component");if(typeof e=="object")switch(e.$$typeof){case No.ForwardRef:return Rl(e,e.render,"ForwardRef");case No.Memo:return Rl(e,e.type,"memo");default:return}}}function Nl(e){const{variants:r,...t}=e,n={variants:r,style:Br(t),isProcessed:!0};return n.style===t||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=Br(o.style))}),n}const kg=Va();function Fa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Vr(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function Dg(e){return e?(r,t)=>t[e]:null}function Tg(e,r,t){e.theme=Ag(e.theme)?t:e.theme[r]||e.theme}function ni(e,r,t){const n=typeof r=="function"?r(e):r;if(Array.isArray(n))return n.flatMap(o=>ni(e,o,t));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=t?Vr(n.style,t):n.style;else{const{variants:i,...a}=n;o=t?Vr(Br(a),t):a}return $l(e,n.variants,[o],t)}return n?.isProcessed?t?Vr(Br(n.style),t):n.style:t?Vr(Br(n),t):n}function $l(e,r,t=[],n=void 0){let o;e:for(let i=0;i<r.length;i+=1){const a=r[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},t.push(n?Vr(Br(a.style(o)),n):a.style(o))):t.push(n?Vr(Br(a.style),n):a.style)}return t}function Og(e={}){const{themeId:r,defaultTheme:t=kg,rootShouldForwardProp:n=Fa,slotShouldForwardProp:o=Fa}=e;function i(s){Tg(s,r,t)}return(s,c={})=>{mg(s,O=>O.filter(N=>N!==zr));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=Dg(jl(u)),...g}=c,p=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let C=Fa;u==="Root"||u==="root"?C=n:u?C=o:Ig(s)&&(C=void 0);const k=Ol(s,{shouldForwardProp:C,label:Pg(l,u),...g}),E=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(q){return ni(q,O,q.theme.modularCssLayers?p:void 0)};if(nr(O)){const N=Nl(O);return function(Z){return N.variants?ni(Z,N,Z.theme.modularCssLayers?p:void 0):Z.theme.modularCssLayers?Vr(N.style,p):N.style}}return O},_=(...O)=>{const N=[],q=O.map(E),Z=[];if(N.push(i),l&&m&&Z.push(function(I){const U=I.theme.components?.[l]?.styleOverrides;if(!U)return null;const H={};for(const ee in U)H[ee]=ni(I,U[ee],I.theme.modularCssLayers?"theme":void 0);return m(I,H)}),l&&!y&&Z.push(function(I){const U=I.theme?.components?.[l]?.variants;return U?$l(I,U,[],I.theme.modularCssLayers?"theme":void 0):null}),S||Z.push(zr),Array.isArray(q[0])){const v=q.shift(),I=new Array(N.length).fill(""),A=new Array(Z.length).fill("");let U;U=[...I,...v,...A],U.raw=[...I,...v.raw,...A],N.unshift(U)}const L=[...N,...q,...Z],K=k(...L);return s.muiName&&(K.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(K.displayName=Mg(l,u,s)),K};return k.withConfig&&(_.withConfig=k.withConfig),_}}function Mg(e,r,t){return e?`${e}${Ke(r||"")}`:`Styled(${Eg(t)})`}function Pg(e,r){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${jl(r||"Root")}`),t}function Ag(e){for(const r in e)return!1;return!0}function Ig(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ya(e,r,t=!1){const n={...r};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=r[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;n[i][l]=Ya(a[l],s[l],t)}}}else i==="className"&&t&&r.className?n.className=_e(e?.className,r?.className):i==="style"&&t&&r.style?n.style={...e?.style,...r?.style}:n[i]===void 0&&(n[i]=e[i])}return n}const Rg=typeof window<"u"?j.useLayoutEffect:j.useEffect;function Ng(e,r=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,t))}function Ua(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),Ng(e,r,t)}function $g(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),t?`rgb${t.length===4?"a":""}(${t.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ar(e){if(e.type)return e;if(e.charAt(0)==="#")return Ar($g(e));const r=e.indexOf("("),t=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
91
91
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Mr(9,e));let n=e.substring(r+1,e.length-1),o;if(t==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
92
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Mr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:o}}const $g=e=>{const r=Ar(e);return r.values.slice(0,3).map((t,n)=>r.type.includes("hsl")&&n!==0?`${t}%`:t).join(" ")},Gn=(e,r)=>{try{return $g(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function ri(e){const{type:r,colorSpace:t}=e;let{values:n}=e;return r.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):r.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),r.includes("color")?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${r}(${n})`}function $l(e){e=Ar(e);const{values:r}=e,t=r[0],n=r[1]/100,o=r[2]/100,i=n*Math.min(o,1-o),a=(l,u=(l+t/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(r[3])),ri({type:s,values:c})}function Ya(e){e=Ar(e);let r=e.type==="hsl"||e.type==="hsla"?Ar($l(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function jl(e,r){const t=Ya(e),n=Ya(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function ni(e,r){return e=Ar(e),r=Fa(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,ri(e)}function Fr(e,r,t){try{return ni(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function oi(e,r){if(e=Ar(e),r=Fa(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-r;return ri(e)}function Ne(e,r,t){try{return oi(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function ii(e,r){if(e=Ar(e),r=Fa(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return ri(e)}function $e(e,r,t){try{return ii(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function jg(e,r=.15){return Ya(e)>.5?oi(e,r):ii(e,r)}function ai(e,r,t){try{return jg(e,r)}catch{return e}}const Lg=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function zg(e){const{theme:r,name:t,props:n}=e;if(!r||!r.components||!r.components[t])return n;const o=r.components[t];return o.defaultProps?Va(o.defaultProps,n,r.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Va(o,n,r.components.mergeClassNameAndStyle):n}function Bg({props:e,name:r}){const t=$.useContext(Lg);return zg({props:e,name:r,theme:{components:t}})}let Ll=0;function Vg(e){const[r,t]=$.useState(e),n=e||r;return $.useEffect(()=>{r==null&&(Ll+=1,t(`mui-${Ll}`))},[r]),n}const zl={...$}.useId;function Fg(e){if(zl!==void 0){const r=zl();return e??r}return Vg(e)}const Bl={theme:void 0};function Yg(e){let r,t;return function(o){let i=r;return(i===void 0||o.theme!==t)&&(Bl.theme=o.theme,i=Il(e(Bl)),r=i,t=o.theme),i}}function Ug(e=""){function r(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.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}-`:""}${o}${r(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${r(...o)})`}const Vl=(e,r,t,n=[])=>{let o=e;r.forEach((i,a)=>{a===r.length-1?Array.isArray(o)?o[Number(i)]=t:o&&typeof o=="object"&&(o[i]=t):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Hg=(e,r,t)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!t||t&&!t([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,s],Array.isArray(c)?[...a,s]:a):r([...i,s],c,a))})}n(e)},Wg=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Ua(e,r){const{prefix:t,shouldSkipGeneratingVar:n}=r||{},o={},i={},a={};return Hg(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const u=`--${t?`${t}-`:""}${s.join("-")}`,d=Wg(s,c);Object.assign(o,{[u]:d}),Vl(i,s,`var(${u})`,l),Vl(a,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Zg(e,r={}){const{getSelector:t=S,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=r,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=Ua(l,r);let m=f;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([E,_])=>{const{vars:O,css:R,varsWithDefaults:q}=Ua(_,r);m=Pt(m,q),g[E]={css:R,vars:O}}),p){const{css:E,vars:_,varsWithDefaults:O}=Ua(p,r);m=Pt(m,O),g[c]={css:E,vars:_}}function S(E,_){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),E){if(O==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":_}};if(O)return e.defaultColorScheme===E?`:root, ${O.replace("%s",String(E))}`:O.replace("%s",String(E))}return":root"}return{vars:m,generateThemeVars:()=>{let E={...u};return Object.entries(g).forEach(([,{vars:_}])=>{E=Pt(E,_)}),E},generateStyleSheets:()=>{const E=[],_=e.defaultColorScheme||"light";function O(Z,j){Object.keys(j).length&&E.push(typeof Z=="string"?{[Z]:{...j}}:Z)}O(t(void 0,{...d}),d);const{[_]:R,...q}=g;if(R){const{css:Z}=R,j=a[_]?.palette?.mode,K=!n&&j?{colorScheme:j,...Z}:{...Z};O(t(_,{...K}),K)}return Object.entries(q).forEach(([Z,{css:j}])=>{const K=a[Z]?.palette?.mode,v=!n&&K?{colorScheme:K,...j}:{...j};O(t(Z,{...v}),v)}),i&&E.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)"}}),E}}}function qg(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const Qn={black:"#000",white:"#fff"},Kg={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"},hn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},mn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Fl(){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:Qn.white,default:Qn.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 Yl=Fl();function Ul(){return{text:{primary:Qn.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:Qn.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 Ha=Ul();function Hl(e,r,t,n){const o=n.light||n,i=n.dark||n*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=ii(e.main,o):r==="dark"&&(e.dark=oi(e.main,i)))}function Wl(e,r,t,n,o){const i=o.light||o,a=o.dark||o*1.5;r[t]||(r.hasOwnProperty(n)?r[t]=r[n]:t==="light"?r.light=`color-mix(in ${e}, ${r.main}, #fff ${(i*100).toFixed(0)}%)`:t==="dark"&&(r.dark=`color-mix(in ${e}, ${r.main}, #000 ${(a*100).toFixed(0)}%)`))}function Gg(e="light"){return e==="dark"?{main:gn[200],light:gn[50],dark:gn[400]}:{main:gn[700],light:gn[400],dark:gn[800]}}function Qg(e="light"){return e==="dark"?{main:hn[200],light:hn[50],dark:hn[400]}:{main:hn[500],light:hn[300],dark:hn[700]}}function Xg(e="light"){return e==="dark"?{main:mn[500],light:mn[300],dark:mn[700]}:{main:mn[700],light:mn[400],dark:mn[800]}}function Jg(e="light"){return e==="dark"?{main:vn[400],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[500],dark:vn[900]}}function e0(e="light"){return e==="dark"?{main:yn[400],light:yn[300],dark:yn[700]}:{main:yn[800],light:yn[500],dark:yn[900]}}function t0(e="light"){return e==="dark"?{main:Xn[400],light:Xn[300],dark:Xn[700]}:{main:"#ed6c02",light:Xn[500],dark:Xn[900]}}function r0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Wa(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||Gg(r),s=e.secondary||Qg(r),c=e.error||Xg(r),l=e.info||Jg(r),u=e.success||e0(r),d=e.warning||t0(r);function f(y){if(o)return r0(y);const S=jl(y,Ha.text.primary)>=t?Ha.text.primary:Yl.text.primary;if(process.env.NODE_ENV!=="production"){const C=jl(y,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${y}`,"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(`
92
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Mr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:o}}const jg=e=>{const r=Ar(e);return r.values.slice(0,3).map((t,n)=>r.type.includes("hsl")&&n!==0?`${t}%`:t).join(" ")},Qn=(e,r)=>{try{return jg(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function oi(e){const{type:r,colorSpace:t}=e;let{values:n}=e;return r.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):r.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),r.includes("color")?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${r}(${n})`}function Ll(e){e=Ar(e);const{values:r}=e,t=r[0],n=r[1]/100,o=r[2]/100,i=n*Math.min(o,1-o),a=(l,u=(l+t/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(r[3])),oi({type:s,values:c})}function Ha(e){e=Ar(e);let r=e.type==="hsl"||e.type==="hsla"?Ar(Ll(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function zl(e,r){const t=Ha(e),n=Ha(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function ii(e,r){return e=Ar(e),r=Ua(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,oi(e)}function Fr(e,r,t){try{return ii(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function ai(e,r){if(e=Ar(e),r=Ua(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-r;return oi(e)}function $e(e,r,t){try{return ai(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function si(e,r){if(e=Ar(e),r=Ua(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return oi(e)}function je(e,r,t){try{return si(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Lg(e,r=.15){return Ha(e)>.5?ai(e,r):si(e,r)}function ci(e,r,t){try{return Lg(e,r)}catch{return e}}const zg=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function Bg(e){const{theme:r,name:t,props:n}=e;if(!r||!r.components||!r.components[t])return n;const o=r.components[t];return o.defaultProps?Ya(o.defaultProps,n,r.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ya(o,n,r.components.mergeClassNameAndStyle):n}function Vg({props:e,name:r}){const t=j.useContext(zg);return Bg({props:e,name:r,theme:{components:t}})}let Bl=0;function Fg(e){const[r,t]=j.useState(e),n=e||r;return j.useEffect(()=>{r==null&&(Bl+=1,t(`mui-${Bl}`))},[r]),n}const Vl={...j}.useId;function Yg(e){if(Vl!==void 0){const r=Vl();return e??r}return Fg(e)}const Fl={theme:void 0};function Ug(e){let r,t;return function(o){let i=r;return(i===void 0||o.theme!==t)&&(Fl.theme=o.theme,i=Nl(e(Fl)),r=i,t=o.theme),i}}function Hg(e=""){function r(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.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}-`:""}${o}${r(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${r(...o)})`}const Yl=(e,r,t,n=[])=>{let o=e;r.forEach((i,a)=>{a===r.length-1?Array.isArray(o)?o[Number(i)]=t:o&&typeof o=="object"&&(o[i]=t):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Wg=(e,r,t)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!t||t&&!t([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,s],Array.isArray(c)?[...a,s]:a):r([...i,s],c,a))})}n(e)},Zg=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Wa(e,r){const{prefix:t,shouldSkipGeneratingVar:n}=r||{},o={},i={},a={};return Wg(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const u=`--${t?`${t}-`:""}${s.join("-")}`,d=Zg(s,c);Object.assign(o,{[u]:d}),Yl(i,s,`var(${u})`,l),Yl(a,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function qg(e,r={}){const{getSelector:t=S,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=r,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=Wa(l,r);let m=f;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([E,_])=>{const{vars:O,css:N,varsWithDefaults:q}=Wa(_,r);m=Pt(m,q),g[E]={css:N,vars:O}}),p){const{css:E,vars:_,varsWithDefaults:O}=Wa(p,r);m=Pt(m,O),g[c]={css:E,vars:_}}function S(E,_){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),E){if(O==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":_}};if(O)return e.defaultColorScheme===E?`:root, ${O.replace("%s",String(E))}`:O.replace("%s",String(E))}return":root"}return{vars:m,generateThemeVars:()=>{let E={...u};return Object.entries(g).forEach(([,{vars:_}])=>{E=Pt(E,_)}),E},generateStyleSheets:()=>{const E=[],_=e.defaultColorScheme||"light";function O(Z,L){Object.keys(L).length&&E.push(typeof Z=="string"?{[Z]:{...L}}:Z)}O(t(void 0,{...d}),d);const{[_]:N,...q}=g;if(N){const{css:Z}=N,L=a[_]?.palette?.mode,K=!n&&L?{colorScheme:L,...Z}:{...Z};O(t(_,{...K}),K)}return Object.entries(q).forEach(([Z,{css:L}])=>{const K=a[Z]?.palette?.mode,v=!n&&K?{colorScheme:K,...L}:{...L};O(t(Z,{...v}),v)}),i&&E.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)"}}),E}}}function Kg(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const Xn={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"},hn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},mn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Jn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ul(){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:Xn.white,default:Xn.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 Hl=Ul();function Wl(){return{text:{primary:Xn.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:Xn.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 Za=Wl();function Zl(e,r,t,n){const o=n.light||n,i=n.dark||n*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=si(e.main,o):r==="dark"&&(e.dark=ai(e.main,i)))}function ql(e,r,t,n,o){const i=o.light||o,a=o.dark||o*1.5;r[t]||(r.hasOwnProperty(n)?r[t]=r[n]:t==="light"?r.light=`color-mix(in ${e}, ${r.main}, #fff ${(i*100).toFixed(0)}%)`:t==="dark"&&(r.dark=`color-mix(in ${e}, ${r.main}, #000 ${(a*100).toFixed(0)}%)`))}function Qg(e="light"){return e==="dark"?{main:gn[200],light:gn[50],dark:gn[400]}:{main:gn[700],light:gn[400],dark:gn[800]}}function Xg(e="light"){return e==="dark"?{main:hn[200],light:hn[50],dark:hn[400]}:{main:hn[500],light:hn[300],dark:hn[700]}}function Jg(e="light"){return e==="dark"?{main:mn[500],light:mn[300],dark:mn[700]}:{main:mn[700],light:mn[400],dark:mn[800]}}function e0(e="light"){return e==="dark"?{main:vn[400],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[500],dark:vn[900]}}function t0(e="light"){return e==="dark"?{main:yn[400],light:yn[300],dark:yn[700]}:{main:yn[800],light:yn[500],dark:yn[900]}}function r0(e="light"){return e==="dark"?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:"#ed6c02",light:Jn[500],dark:Jn[900]}}function n0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function qa(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||Qg(r),s=e.secondary||Xg(r),c=e.error||Jg(r),l=e.info||e0(r),u=e.success||t0(r),d=e.warning||r0(r);function f(y){if(o)return n0(y);const S=zl(y,Za.text.primary)>=t?Za.text.primary:Hl.text.primary;if(process.env.NODE_ENV!=="production"){const C=zl(y,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${y}`,"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(`
93
93
  `))}return S}const m=({color:y,name:S,mainShade:C=500,lightShade:k=300,darkShade:E=700})=>{if(y={...y},!y.main&&y[C]&&(y.main=y[C]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
94
94
  The color object needs to have a \`main\` property or a \`${C}\` property.`:Mr(11,S?` (${S})`:"",C));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
95
95
  \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
@@ -104,73 +104,73 @@ const theme1 = createTheme({ palette: {
104
104
 
105
105
  const theme2 = createTheme({ palette: {
106
106
  primary: { main: green[500] },
107
- } });`:Mr(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(Wl(o,y,"light",k,n),Wl(o,y,"dark",E,n)):(Hl(y,"light",k,n),Hl(y,"dark",E,n)),y.contrastText||(y.contrastText=f(y.main)),y};let g;return r==="light"?g=Fl():r==="dark"&&(g=Ul()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),Pt({common:{...Qn},mode:r,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:Kg,contrastThreshold:t,getContrastText:f,augmentColor:m,tonalOffset:n,...g},i)}function n0(e){const r={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(r[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),r}function o0(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function i0(e){return Math.round(e*1e5)/1e5}const Zl={textTransform:"uppercase"},ql='"Roboto", "Helvetica", "Arial", sans-serif';function a0(e,r){const{fontFamily:t=ql,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof r=="function"?r(e):r;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=n/14,m=u||(y=>`${y/c*f}rem`),g=(y,S,C,k,E)=>({fontFamily:t,fontWeight:y,fontSize:m(S),lineHeight:C,...t===ql?{letterSpacing:`${i0(k/S)}em`}:{},...E,...l}),p={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Zl),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Zl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pt({htmlFontSize:c,pxToRem:m,fontFamily:t,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...p},d,{clone:!1})}const s0=.2,c0=.14,l0=.12;function He(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${s0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${c0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${l0})`].join(",")}const u0=["none",He(0,2,1,-1,0,1,1,0,0,1,3,0),He(0,3,1,-2,0,2,2,0,0,1,5,0),He(0,3,3,-2,0,3,4,0,0,1,8,0),He(0,2,4,-1,0,4,5,0,0,1,10,0),He(0,3,5,-1,0,5,8,0,0,1,14,0),He(0,3,5,-1,0,6,10,0,0,1,18,0),He(0,4,5,-2,0,7,10,1,0,2,16,1),He(0,5,5,-3,0,8,10,1,0,3,14,2),He(0,5,6,-3,0,9,12,1,0,3,16,2),He(0,6,6,-3,0,10,14,1,0,4,18,3),He(0,6,7,-4,0,11,15,1,0,4,20,3),He(0,7,8,-4,0,12,17,2,0,5,22,4),He(0,7,8,-4,0,13,19,2,0,5,24,4),He(0,7,9,-4,0,14,21,2,0,5,26,4),He(0,8,9,-5,0,15,22,2,0,6,28,5),He(0,8,10,-5,0,16,24,2,0,6,30,5),He(0,8,11,-5,0,17,26,2,0,6,32,5),He(0,9,11,-5,0,18,28,2,0,7,34,6),He(0,9,12,-6,0,19,29,2,0,7,36,6),He(0,10,13,-6,0,20,31,3,0,8,38,7),He(0,10,13,-6,0,21,33,3,0,8,40,7),He(0,10,14,-6,0,22,35,3,0,8,42,7),He(0,11,14,-7,0,23,36,3,0,9,44,8),He(0,11,15,-7,0,24,38,3,0,9,46,8)],d0={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)"},Kl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gl(e){return`${Math.round(e)}ms`}function f0(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function p0(e){const r={...d0,...e.easing},t={...Kl,...e.duration};return{getAutoHeightDuration:f0,create:(o=["all"],i={})=>{const{duration:a=t.standard,easing:s=r.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(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(`
108
- `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Gl(a)} ${s} ${typeof c=="string"?c:Gl(c)}`).join(",")},...e,easing:r,duration:t}}const h0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function m0(e){return nr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ql(e={}){const r={...e};function t(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!m0(s)||a.startsWith("unstable_")?delete n[a]:nr(s)&&(n[a]={...s},t(n[a]))}}return t(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
107
+ } });`:Mr(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(ql(o,y,"light",k,n),ql(o,y,"dark",E,n)):(Zl(y,"light",k,n),Zl(y,"dark",E,n)),y.contrastText||(y.contrastText=f(y.main)),y};let g;return r==="light"?g=Ul():r==="dark"&&(g=Wl()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),Pt({common:{...Xn},mode:r,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:Gg,contrastThreshold:t,getContrastText:f,augmentColor:m,tonalOffset:n,...g},i)}function o0(e){const r={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(r[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),r}function i0(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function a0(e){return Math.round(e*1e5)/1e5}const Kl={textTransform:"uppercase"},Gl='"Roboto", "Helvetica", "Arial", sans-serif';function s0(e,r){const{fontFamily:t=Gl,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof r=="function"?r(e):r;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=n/14,m=u||(y=>`${y/c*f}rem`),g=(y,S,C,k,E)=>({fontFamily:t,fontWeight:y,fontSize:m(S),lineHeight:C,...t===Gl?{letterSpacing:`${a0(k/S)}em`}:{},...E,...l}),p={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Kl),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Kl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pt({htmlFontSize:c,pxToRem:m,fontFamily:t,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...p},d,{clone:!1})}const c0=.2,l0=.14,u0=.12;function He(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${c0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${l0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${u0})`].join(",")}const d0=["none",He(0,2,1,-1,0,1,1,0,0,1,3,0),He(0,3,1,-2,0,2,2,0,0,1,5,0),He(0,3,3,-2,0,3,4,0,0,1,8,0),He(0,2,4,-1,0,4,5,0,0,1,10,0),He(0,3,5,-1,0,5,8,0,0,1,14,0),He(0,3,5,-1,0,6,10,0,0,1,18,0),He(0,4,5,-2,0,7,10,1,0,2,16,1),He(0,5,5,-3,0,8,10,1,0,3,14,2),He(0,5,6,-3,0,9,12,1,0,3,16,2),He(0,6,6,-3,0,10,14,1,0,4,18,3),He(0,6,7,-4,0,11,15,1,0,4,20,3),He(0,7,8,-4,0,12,17,2,0,5,22,4),He(0,7,8,-4,0,13,19,2,0,5,24,4),He(0,7,9,-4,0,14,21,2,0,5,26,4),He(0,8,9,-5,0,15,22,2,0,6,28,5),He(0,8,10,-5,0,16,24,2,0,6,30,5),He(0,8,11,-5,0,17,26,2,0,6,32,5),He(0,9,11,-5,0,18,28,2,0,7,34,6),He(0,9,12,-6,0,19,29,2,0,7,36,6),He(0,10,13,-6,0,20,31,3,0,8,38,7),He(0,10,13,-6,0,21,33,3,0,8,40,7),He(0,10,14,-6,0,22,35,3,0,8,42,7),He(0,11,14,-7,0,23,36,3,0,9,44,8),He(0,11,15,-7,0,24,38,3,0,9,46,8)],f0={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)"},Ql={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xl(e){return`${Math.round(e)}ms`}function p0(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function h0(e){const r={...f0,...e.easing},t={...Ql,...e.duration};return{getAutoHeightDuration:p0,create:(o=["all"],i={})=>{const{duration:a=t.standard,easing:s=r.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(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(`
108
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Xl(a)} ${s} ${typeof c=="string"?c:Xl(c)}`).join(",")},...e,easing:r,duration:t}}const m0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function g0(e){return nr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Jl(e={}){const r={...e};function t(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!g0(s)||a.startsWith("unstable_")?delete n[a]:nr(s)&&(n[a]={...s},t(n[a]))}}return t(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
109
109
 
110
110
  const theme = ${JSON.stringify(r,null,2)};
111
111
 
112
112
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
113
113
  theme.transitions = createTransitions(theme.transitions || {});
114
114
 
115
- export default theme;`}function Xl(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const g0=e=>{if(!Number.isNaN(+e))return+e;const r=e.match(/\d*\.?\d+/g);if(!r)return 0;let t=0;for(let n=0;n<r.length;n+=1)t+=+r[n];return t};function v0(e){Object.assign(e,{alpha(r,t){const n=this||e;return n.colorSpace?`oklch(from ${r} l c h / ${typeof t=="string"?`calc(${t})`:t})`:n.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:ni(r,g0(t))},lighten(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #fff ${Xl(t)})`:ii(r,t)},darken(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #000 ${Xl(t)})`:oi(r,t)}})}function Za(e={},...r){const{breakpoints:t,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=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.":Mr(20));const d=Wa({...i,colorSpace:l}),f=za(e);let m=Pt(f,{mixins:o0(f.breakpoints,n),palette:d,shadows:u0.slice(),typography:a0(d,s),transitions:p0(a),zIndex:{...h0}});if(m=Pt(m,u),m=r.reduce((g,p)=>Pt(g,p),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,S)=>{let C;for(C in y){const k=y[C];if(g.includes(C)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const E=Ct("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
116
- `))}y[C]={}}}};Object.keys(m.components).forEach(y=>{const S=m.components[y].styleOverrides;S&&y.startsWith("Mui")&&p(S,y)})}return m.unstable_sxConfig={...Yn,...u?.unstable_sxConfig},m.unstable_sx=function(p){return zr({sx:p,theme:this})},m.toRuntimeSource=Ql,v0(m),m}function qa(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const y0=[...Array(25)].map((e,r)=>{if(r===0)return"none";const t=qa(r);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function Jl(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"?y0:[]}function b0(e){const{palette:r={mode:"light"},opacity:t,overlays:n,colorSpace:o,...i}=e,a=Wa({...r,colorSpace:o});return{palette:a,opacity:{...Jl(a.mode),...t},overlays:n||eu(a.mode),...i}}function w0(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 _0=e=>[...[...Array(25)].map((r,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],x0=e=>(r,t)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const a={};return _0(e.cssVarPrefix).forEach(s=>{a[s]=t[s],delete t[s]}),i==="media"?{[n]:t,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",r)]:a,[`${n}, ${i.replace("%s",r)}`]:t}:{[n]:{...t,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(r))}`}else if(r){if(i==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[n]:t}};if(i)return i.replace("%s",String(r))}return n};function S0(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function F(e,r,t){!e[r]&&t&&(e[r]=t)}function Jn(e){return typeof e!="string"||!e.startsWith("hsl")?e:$l(e)}function yr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Gn(Jn(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
117
- To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function C0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},E0=(e="mui")=>Ug(e);function Ka(e,r,t,n,o){if(!t)return;t=t===!0?{}:t;const i=o==="dark"?"dark":"light";if(!n){r[o]=b0({...t,palette:{mode:i,...t?.palette},colorSpace:e});return}const{palette:a,...s}=Za({...n,palette:{mode:i,...t?.palette},colorSpace:e});return r[o]={...t,palette:a,opacity:{...Jl(i),...t?.opacity},overlays:t?.overlays||eu(i)},s}function k0(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=w0,colorSchemeSelector:c=t.light&&t.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(t)[0],f=n||(t.light&&d!=="light"?"light":d),m=E0(i),{[f]:g,light:p,dark:y,...S}=t,C={...S};let k=g;if((f==="dark"&&!("dark"in t)||f==="light"&&!("light"in t))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Mr(21,f));let E;a&&(E="oklch");const _=Ka(E,C,k,u,f);p&&!C.light&&Ka(E,C,p,void 0,"light"),y&&!C.dark&&Ka(E,C,y,void 0,"dark");let O={defaultColorScheme:f,..._,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...n0(_.typography),..._.font},spacing:C0(u.spacing)};Object.keys(O.colorSchemes).forEach(K=>{const v=O.colorSchemes[K].palette,A=H=>{const W=H.split("-"),J=W[1],V=W[2];return m(H,v[J][V])};v.mode==="light"&&(F(v.common,"background","#fff"),F(v.common,"onBackground","#000")),v.mode==="dark"&&(F(v.common,"background","#000"),F(v.common,"onBackground","#fff"));function P(H,W,J){if(E){let V;return H===Fr&&(V=`transparent ${((1-J)*100).toFixed(0)}%`),H===Ne&&(V=`#000 ${(J*100).toFixed(0)}%`),H===$e&&(V=`#fff ${(J*100).toFixed(0)}%`),`color-mix(in ${E}, ${W}, ${V})`}return H(W,J)}if(S0(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){F(v.Alert,"errorColor",P(Ne,v.error.light,.6)),F(v.Alert,"infoColor",P(Ne,v.info.light,.6)),F(v.Alert,"successColor",P(Ne,v.success.light,.6)),F(v.Alert,"warningColor",P(Ne,v.warning.light,.6)),F(v.Alert,"errorFilledBg",A("palette-error-main")),F(v.Alert,"infoFilledBg",A("palette-info-main")),F(v.Alert,"successFilledBg",A("palette-success-main")),F(v.Alert,"warningFilledBg",A("palette-warning-main")),F(v.Alert,"errorFilledColor",sr(()=>v.getContrastText(v.error.main))),F(v.Alert,"infoFilledColor",sr(()=>v.getContrastText(v.info.main))),F(v.Alert,"successFilledColor",sr(()=>v.getContrastText(v.success.main))),F(v.Alert,"warningFilledColor",sr(()=>v.getContrastText(v.warning.main))),F(v.Alert,"errorStandardBg",P($e,v.error.light,.9)),F(v.Alert,"infoStandardBg",P($e,v.info.light,.9)),F(v.Alert,"successStandardBg",P($e,v.success.light,.9)),F(v.Alert,"warningStandardBg",P($e,v.warning.light,.9)),F(v.Alert,"errorIconColor",A("palette-error-main")),F(v.Alert,"infoIconColor",A("palette-info-main")),F(v.Alert,"successIconColor",A("palette-success-main")),F(v.Alert,"warningIconColor",A("palette-warning-main")),F(v.AppBar,"defaultBg",A("palette-grey-100")),F(v.Avatar,"defaultBg",A("palette-grey-400")),F(v.Button,"inheritContainedBg",A("palette-grey-300")),F(v.Button,"inheritContainedHoverBg",A("palette-grey-A100")),F(v.Chip,"defaultBorder",A("palette-grey-400")),F(v.Chip,"defaultAvatarColor",A("palette-grey-700")),F(v.Chip,"defaultIconColor",A("palette-grey-700")),F(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(v.LinearProgress,"primaryBg",P($e,v.primary.main,.62)),F(v.LinearProgress,"secondaryBg",P($e,v.secondary.main,.62)),F(v.LinearProgress,"errorBg",P($e,v.error.main,.62)),F(v.LinearProgress,"infoBg",P($e,v.info.main,.62)),F(v.LinearProgress,"successBg",P($e,v.success.main,.62)),F(v.LinearProgress,"warningBg",P($e,v.warning.main,.62)),F(v.Skeleton,"bg",E?P(Fr,v.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),F(v.Slider,"primaryTrack",P($e,v.primary.main,.62)),F(v.Slider,"secondaryTrack",P($e,v.secondary.main,.62)),F(v.Slider,"errorTrack",P($e,v.error.main,.62)),F(v.Slider,"infoTrack",P($e,v.info.main,.62)),F(v.Slider,"successTrack",P($e,v.success.main,.62)),F(v.Slider,"warningTrack",P($e,v.warning.main,.62));const H=E?P(Ne,v.background.default,.6825):ai(v.background.default,.8);F(v.SnackbarContent,"bg",H),F(v.SnackbarContent,"color",sr(()=>E?Ha.text.primary:v.getContrastText(H))),F(v.SpeedDialAction,"fabHoverBg",ai(v.background.paper,.15)),F(v.StepConnector,"border",A("palette-grey-400")),F(v.StepContent,"border",A("palette-grey-400")),F(v.Switch,"defaultColor",A("palette-common-white")),F(v.Switch,"defaultDisabledColor",A("palette-grey-100")),F(v.Switch,"primaryDisabledColor",P($e,v.primary.main,.62)),F(v.Switch,"secondaryDisabledColor",P($e,v.secondary.main,.62)),F(v.Switch,"errorDisabledColor",P($e,v.error.main,.62)),F(v.Switch,"infoDisabledColor",P($e,v.info.main,.62)),F(v.Switch,"successDisabledColor",P($e,v.success.main,.62)),F(v.Switch,"warningDisabledColor",P($e,v.warning.main,.62)),F(v.TableCell,"border",P($e,P(Fr,v.divider,1),.88)),F(v.Tooltip,"bg",P(Fr,v.grey[700],.92))}if(v.mode==="dark"){F(v.Alert,"errorColor",P($e,v.error.light,.6)),F(v.Alert,"infoColor",P($e,v.info.light,.6)),F(v.Alert,"successColor",P($e,v.success.light,.6)),F(v.Alert,"warningColor",P($e,v.warning.light,.6)),F(v.Alert,"errorFilledBg",A("palette-error-dark")),F(v.Alert,"infoFilledBg",A("palette-info-dark")),F(v.Alert,"successFilledBg",A("palette-success-dark")),F(v.Alert,"warningFilledBg",A("palette-warning-dark")),F(v.Alert,"errorFilledColor",sr(()=>v.getContrastText(v.error.dark))),F(v.Alert,"infoFilledColor",sr(()=>v.getContrastText(v.info.dark))),F(v.Alert,"successFilledColor",sr(()=>v.getContrastText(v.success.dark))),F(v.Alert,"warningFilledColor",sr(()=>v.getContrastText(v.warning.dark))),F(v.Alert,"errorStandardBg",P(Ne,v.error.light,.9)),F(v.Alert,"infoStandardBg",P(Ne,v.info.light,.9)),F(v.Alert,"successStandardBg",P(Ne,v.success.light,.9)),F(v.Alert,"warningStandardBg",P(Ne,v.warning.light,.9)),F(v.Alert,"errorIconColor",A("palette-error-main")),F(v.Alert,"infoIconColor",A("palette-info-main")),F(v.Alert,"successIconColor",A("palette-success-main")),F(v.Alert,"warningIconColor",A("palette-warning-main")),F(v.AppBar,"defaultBg",A("palette-grey-900")),F(v.AppBar,"darkBg",A("palette-background-paper")),F(v.AppBar,"darkColor",A("palette-text-primary")),F(v.Avatar,"defaultBg",A("palette-grey-600")),F(v.Button,"inheritContainedBg",A("palette-grey-800")),F(v.Button,"inheritContainedHoverBg",A("palette-grey-700")),F(v.Chip,"defaultBorder",A("palette-grey-700")),F(v.Chip,"defaultAvatarColor",A("palette-grey-300")),F(v.Chip,"defaultIconColor",A("palette-grey-300")),F(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(v.LinearProgress,"primaryBg",P(Ne,v.primary.main,.5)),F(v.LinearProgress,"secondaryBg",P(Ne,v.secondary.main,.5)),F(v.LinearProgress,"errorBg",P(Ne,v.error.main,.5)),F(v.LinearProgress,"infoBg",P(Ne,v.info.main,.5)),F(v.LinearProgress,"successBg",P(Ne,v.success.main,.5)),F(v.LinearProgress,"warningBg",P(Ne,v.warning.main,.5)),F(v.Skeleton,"bg",E?P(Fr,v.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),F(v.Slider,"primaryTrack",P(Ne,v.primary.main,.5)),F(v.Slider,"secondaryTrack",P(Ne,v.secondary.main,.5)),F(v.Slider,"errorTrack",P(Ne,v.error.main,.5)),F(v.Slider,"infoTrack",P(Ne,v.info.main,.5)),F(v.Slider,"successTrack",P(Ne,v.success.main,.5)),F(v.Slider,"warningTrack",P(Ne,v.warning.main,.5));const H=E?P($e,v.background.default,.985):ai(v.background.default,.98);F(v.SnackbarContent,"bg",H),F(v.SnackbarContent,"color",sr(()=>E?Yl.text.primary:v.getContrastText(H))),F(v.SpeedDialAction,"fabHoverBg",ai(v.background.paper,.15)),F(v.StepConnector,"border",A("palette-grey-600")),F(v.StepContent,"border",A("palette-grey-600")),F(v.Switch,"defaultColor",A("palette-grey-300")),F(v.Switch,"defaultDisabledColor",A("palette-grey-600")),F(v.Switch,"primaryDisabledColor",P(Ne,v.primary.main,.55)),F(v.Switch,"secondaryDisabledColor",P(Ne,v.secondary.main,.55)),F(v.Switch,"errorDisabledColor",P(Ne,v.error.main,.55)),F(v.Switch,"infoDisabledColor",P(Ne,v.info.main,.55)),F(v.Switch,"successDisabledColor",P(Ne,v.success.main,.55)),F(v.Switch,"warningDisabledColor",P(Ne,v.warning.main,.55)),F(v.TableCell,"border",P(Ne,P(Fr,v.divider,1),.68)),F(v.Tooltip,"bg",P(Fr,v.grey[700],.92))}yr(v.background,"default"),yr(v.background,"paper"),yr(v.common,"background"),yr(v.common,"onBackground"),yr(v,"divider"),Object.keys(v).forEach(H=>{const W=v[H];H!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&F(v[H],"mainChannel",Gn(Jn(W.main))),W.light&&F(v[H],"lightChannel",Gn(Jn(W.light))),W.dark&&F(v[H],"darkChannel",Gn(Jn(W.dark))),W.contrastText&&F(v[H],"contrastTextChannel",Gn(Jn(W.contrastText))),H==="text"&&(yr(v[H],"primary"),yr(v[H],"secondary")),H==="action"&&(W.active&&yr(v[H],"active"),W.selected&&yr(v[H],"selected")))})}),O=r.reduce((K,v)=>Pt(K,v),O);const R={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:x0(O),enableContrastVars:a},{vars:q,generateThemeVars:Z,generateStyleSheets:j}=Zg(O,R);return O.vars=q,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([K,v])=>{O[K]=v}),O.generateThemeVars=Z,O.generateStyleSheets=j,O.generateSpacing=function(){return Ol(u.spacing,Ca(this))},O.getColorSchemeSelector=qg(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...Yn,...u?.unstable_sxConfig},O.unstable_sx=function(v){return zr({sx:v,theme:this})},O.toRuntimeSource=Ql,O}function tu(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:Wa({...t===!0?{}:t.palette,mode:r})})}function ru(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:i=t?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...t?{[s]:{...typeof c!="boolean"&&c,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Za(e,...r);let u=t;"palette"in e||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Za({...e,palette:u},...r);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},tu(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},tu(d,"light",l.light)),d}return!t&&!("light"in l)&&s==="light"&&(l.light=!0),k0({...a,colorSchemes:l,defaultColorScheme:s,...typeof n!="boolean"&&n},...r)}const nu=ru(),Ga="$$material";function ou(){const e=Ml(nu);return process.env.NODE_ENV!=="production"&&$.useDebugValue(e),e[Ga]||e}function D0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ut=Tg({themeId:Ga,defaultTheme:nu,rootShouldForwardProp:e=>D0(e)&&e!=="classes"}),cr=Yg;process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function Rt(e){return Bg(e)}function T0(e){return Ct("MuiSvgIcon",e)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const O0=e=>{const{color:r,fontSize:t,classes:n}=e,o={root:["root",r!=="inherit"&&`color${Ke(r)}`,`fontSize${Ke(t)}`]};return Lt(o,T0,n)},M0=ut("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${Ke(t.color)}`],r[`fontSize${Ke(t.fontSize)}`]]}})(cr(({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:r=>!r.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(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(e.vars??e).palette?.[r]?.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}}]}))),si=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=n,g=$.isValidElement(o)&&o.type==="svg",p={...n,color:a,component:s,fontSize:c,instanceFontSize:r.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},y={};u||(y.viewBox=f);const S=O0(p);return h.jsxs(M0,{as:s,className:be(S.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...y,...m,...g&&o.props,ownerState:p,children:[g?o.props.children:o,d?h.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(si.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string}),si.muiName="SvgIcon";function qt(e,r){function t(n,o){return h.jsx(si,{"data-testid":process.env.NODE_ENV!=="production"?`${r}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=si.muiName,$.memo($.forwardRef(t))}function ci(e){const r=$.useRef(e);return Ig(()=>{r.current=e}),$.useRef((...t)=>(0,r.current)(...t)).current}function Qa(...e){const r=$.useRef(void 0),t=$.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return $.useMemo(()=>e.every(n=>n==null)?null:n=>{r.current&&(r.current(),r.current=void 0),n!=null&&(r.current=t(n))},e)}const P0=qt(h.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),A0=qt(h.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),I0=qt(h.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),R0=({header:e,sidebar:r,mainContent:t})=>{const[n,o]=x.useState(!1),[i,a]=x.useState(!1),s=()=>{o(!n)},c=()=>{a(!i)};return h.jsxs("div",{className:`${Zt.dashboardContainer} ${i?Zt.sidebarCollapsed:""}`,children:[h.jsxs("header",{className:Zt.header,children:[h.jsx(N.IconButton,{onClick:s,className:Zt.menuButton,children:h.jsx(P0,{})}),h.jsx("div",{className:Zt.headerContent,children:e})]}),h.jsxs("aside",{className:`${Zt.sidebar} ${n?Zt.sidebarOpen:""}`,children:[h.jsx("div",{className:Zt.sidebarContent,children:r}),h.jsx(N.IconButton,{onClick:c,className:Zt.collapseButton,style:{display:"none"},children:i?h.jsx(I0,{}):h.jsx(A0,{})})]}),h.jsx("main",{className:Zt.mainContent,children:t}),n&&h.jsx("div",{className:Zt.overlay,onClick:s})]})},Yr={headerContainer:"_headerContainer_9sslw_1",navAndDate:"_navAndDate_9sslw_17",navButton:"_navButton_9sslw_29",datePickerInput:"_datePickerInput_9sslw_61",datePickerButton:"_datePickerButton_9sslw_91",addEventButton:"_addEventButton_9sslw_135"};function li(){return typeof window<"u"}function bn(e){return iu(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function lr(e){var r;return(r=(iu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function iu(e){return li()?e instanceof Node||e instanceof Nt(e).Node:!1}function mt(e){return li()?e instanceof Element||e instanceof Nt(e).Element:!1}function ur(e){return li()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function au(e){return!li()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}const N0=new Set(["inline","contents"]);function eo(e){const{overflow:r,overflowX:t,overflowY:n,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!N0.has(o)}const $0=new Set(["table","td","th"]);function j0(e){return $0.has(bn(e))}const L0=[":popover-open",":modal"];function ui(e){return L0.some(r=>{try{return e.matches(r)}catch{return!1}})}const z0=["transform","translate","scale","rotate","perspective"],B0=["transform","translate","scale","rotate","perspective","filter"],V0=["paint","layout","strict","content"];function Xa(e){const r=Ja(),t=mt(e)?Vt(e):e;return z0.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||B0.some(n=>(t.willChange||"").includes(n))||V0.some(n=>(t.contain||"").includes(n))}function F0(e){let r=Ir(e);for(;ur(r)&&!wn(r);){if(Xa(r))return r;if(ui(r))return null;r=Ir(r)}return null}function Ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Y0=new Set(["html","body","#document"]);function wn(e){return Y0.has(bn(e))}function Vt(e){return Nt(e).getComputedStyle(e)}function di(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(bn(e)==="html")return e;const r=e.assignedSlot||e.parentNode||au(e)&&e.host||lr(e);return au(r)?r.host:r}function su(e){const r=Ir(e);return wn(r)?e.ownerDocument?e.ownerDocument.body:e.body:ur(r)&&eo(r)?r:su(r)}function to(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const o=su(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Nt(o);if(i){const s=es(a);return r.concat(a,a.visualViewport||[],eo(o)?o:[],s&&t?to(s):[])}return r.concat(o,to(o,[],t))}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const _n=Math.min,Ur=Math.max,fi=Math.round,pi=Math.floor,dr=e=>({x:e,y:e}),U0={left:"right",right:"left",bottom:"top",top:"bottom"},H0={start:"end",end:"start"};function W0(e,r,t){return Ur(e,_n(r,t))}function hi(e,r){return typeof e=="function"?e(r):e}function xn(e){return e.split("-")[0]}function ro(e){return e.split("-")[1]}function Z0(e){return e==="x"?"y":"x"}function ts(e){return e==="y"?"height":"width"}const q0=new Set(["top","bottom"]);function Hr(e){return q0.has(xn(e))?"y":"x"}function rs(e){return Z0(Hr(e))}function K0(e,r,t){t===void 0&&(t=!1);const n=ro(e),o=rs(e),i=ts(o);let a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(a=mi(a)),[a,mi(a)]}function G0(e){const r=mi(e);return[ns(e),r,ns(r)]}function ns(e){return e.replace(/start|end/g,r=>H0[r])}const cu=["left","right"],lu=["right","left"],Q0=["top","bottom"],X0=["bottom","top"];function J0(e,r,t){switch(e){case"top":case"bottom":return t?r?lu:cu:r?cu:lu;case"left":case"right":return r?Q0:X0;default:return[]}}function ev(e,r,t,n){const o=ro(e);let i=J0(xn(e),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),r&&(i=i.concat(i.map(ns)))),i}function mi(e){return e.replace(/left|right|bottom|top/g,r=>U0[r])}function tv(e){return{top:0,right:0,bottom:0,left:0,...e}}function uu(e){return typeof e!="number"?tv(e):{top:e,right:e,bottom:e,left:e}}function gi(e){const{x:r,y:t,width:n,height:o}=e;return{width:n,height:o,top:t,left:r,right:r+n,bottom:t+o,x:r,y:t}}var rv=typeof document<"u",nv=function(){},vi=rv?x.useLayoutEffect:nv;const ov={...$}.useInsertionEffect||(e=>e());function iv(e){const r=$.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return ov(()=>{r.current=e}),$.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.current==null?void 0:r.current(...n)},[])}function du(e,r,t){let{reference:n,floating:o}=e;const i=Hr(r),a=rs(r),s=ts(a),c=xn(r),l=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let m;switch(c){case"top":m={x:u,y:n.y-o.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(ro(r)){case"start":m[a]-=f*(t&&l?-1:1);break;case"end":m[a]+=f*(t&&l?-1:1);break}return m}const av=async(e,r,t)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(r));let l=await a.getElementRects({reference:e,floating:r,strategy:o}),{x:u,y:d}=du(l,n,c),f=n,m={},g=0;for(let p=0;p<s.length;p++){const{name:y,fn:S}=s[p],{x:C,y:k,data:E,reset:_}=await S({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:l,platform:a,elements:{reference:e,floating:r}});u=C??u,d=k??d,m={...m,[y]:{...m[y],...E}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:r,strategy:o}):_.rects),{x:u,y:d}=du(l,f,c)),p=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};async function sv(e,r){var t;r===void 0&&(r={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=hi(r,e),g=uu(m),y=s[f?d==="floating"?"reference":"floating":d],S=gi(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(y)))==null||t?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),C=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},_=gi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:k,strategy:c}):C);return{top:(S.top-_.top+g.top)/E.y,bottom:(_.bottom-S.bottom+g.bottom)/E.y,left:(S.left-_.left+g.left)/E.x,right:(_.right-S.right+g.right)/E.x}}const cv=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=r,{element:l,padding:u=0}=hi(e,r)||{};if(l==null)return{};const d=uu(u),f={x:t,y:n},m=rs(o),g=ts(m),p=await a.getDimensions(l),y=m==="y",S=y?"top":"left",C=y?"bottom":"right",k=y?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[m]-f[m]-i.floating[g],_=f[m]-i.reference[m],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=O?O[k]:0;(!R||!await(a.isElement==null?void 0:a.isElement(O)))&&(R=s.floating[k]||i.floating[g]);const q=E/2-_/2,Z=R/2-p[g]/2-1,j=_n(d[S],Z),K=_n(d[C],Z),v=j,A=R-p[g]-K,P=R/2-p[g]/2+q,H=W0(v,P,A),W=!c.arrow&&ro(o)!=null&&P!==H&&i.reference[g]/2-(P<v?j:K)-p[g]/2<0,J=W?P<v?P-v:P-A:0;return{[m]:f[m]+J,data:{[m]:H,centerOffset:P-H-J,...W&&{alignmentOffset:J}},reset:W}}}),lv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=r,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...y}=hi(e,r);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const S=xn(o),C=Hr(s),k=xn(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=f||(k||!p?[mi(s)]:G0(s)),O=g!=="none";!f&&O&&_.push(...ev(s,p,g,E));const R=[s,..._],q=await sv(r,y),Z=[];let j=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&Z.push(q[S]),d){const P=K0(o,a,E);Z.push(q[P[0]],q[P[1]])}if(j=[...j,{placement:o,overflows:Z}],!Z.every(P=>P<=0)){var K,v;const P=(((K=i.flip)==null?void 0:K.index)||0)+1,H=R[P];if(H&&(!(d==="alignment"?C!==Hr(H):!1)||j.every(V=>Hr(V.placement)===C?V.overflows[0]>0:!0)))return{data:{index:P,overflows:j},reset:{placement:H}};let W=(v=j.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:v.placement;if(!W)switch(m){case"bestFit":{var A;const J=(A=j.filter(V=>{if(O){const Q=Hr(V.placement);return Q===C||Q==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Q=>Q>0).reduce((Q,L)=>Q+L,0)]).sort((V,Q)=>V[1]-Q[1])[0])==null?void 0:A[0];J&&(W=J);break}case"initialPlacement":W=s;break}if(o!==W)return{reset:{placement:W}}}return{}}}},uv=new Set(["left","top"]);async function dv(e,r){const{placement:t,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=xn(t),s=ro(t),c=Hr(t)==="y",l=uv.has(a)?-1:1,u=i&&c?-1:1,d=hi(r,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),c?{x:m*u,y:f*l}:{x:f*l,y:m*u}}const fv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:o,y:i,placement:a,middlewareData:s}=r,c=await dv(r,e);return a===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}};function fu(e){const r=Vt(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const o=ur(e),i=o?e.offsetWidth:t,a=o?e.offsetHeight:n,s=fi(t)!==i||fi(n)!==a;return s&&(t=i,n=a),{width:t,height:n,$:s}}function os(e){return mt(e)?e:e.contextElement}function Sn(e){const r=os(e);if(!ur(r))return dr(1);const t=r.getBoundingClientRect(),{width:n,height:o,$:i}=fu(r);let a=(i?fi(t.width):t.width)/n,s=(i?fi(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const pv=dr(0);function pu(e){const r=Nt(e);return!Ja()||!r.visualViewport?pv:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function hv(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==Nt(e)?!1:r}function Wr(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=os(e);let a=dr(1);r&&(n?mt(n)&&(a=Sn(n)):a=Sn(e));const s=hv(i,t,n)?pu(i):dr(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=Nt(i),m=n&&mt(n)?Nt(n):n;let g=f,p=es(g);for(;p&&n&&m!==g;){const y=Sn(p),S=p.getBoundingClientRect(),C=Vt(p),k=S.left+(p.clientLeft+parseFloat(C.paddingLeft))*y.x,E=S.top+(p.clientTop+parseFloat(C.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=k,l+=E,g=Nt(p),p=es(g)}}return gi({width:u,height:d,x:c,y:l})}function yi(e,r){const t=di(e).scrollLeft;return r?r.left+t:Wr(lr(e)).left+t}function hu(e,r){const t=e.getBoundingClientRect(),n=t.left+r.scrollLeft-yi(e,t),o=t.top+r.scrollTop;return{x:n,y:o}}function mv(e){let{elements:r,rect:t,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=lr(n),s=r?ui(r.floating):!1;if(n===a||s&&i)return t;let c={scrollLeft:0,scrollTop:0},l=dr(1);const u=dr(0),d=ur(n);if((d||!d&&!i)&&((bn(n)!=="body"||eo(a))&&(c=di(n)),ur(n))){const m=Wr(n);l=Sn(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const f=a&&!d&&!i?hu(a,c):dr(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:t.y*l.y-c.scrollTop*l.y+u.y+f.y}}function gv(e){return Array.from(e.getClientRects())}function vv(e){const r=lr(e),t=di(e),n=e.ownerDocument.body,o=Ur(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=Ur(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+yi(e);const s=-t.scrollTop;return Vt(n).direction==="rtl"&&(a+=Ur(r.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const mu=25;function yv(e,r){const t=Nt(e),n=lr(e),o=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Ja();(!u||u&&r==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=yi(n);if(l<=0){const u=n.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-m);g<=mu&&(i-=g)}else l<=mu&&(i+=l);return{width:i,height:a,x:s,y:c}}const bv=new Set(["absolute","fixed"]);function wv(e,r){const t=Wr(e,!0,r==="fixed"),n=t.top+e.clientTop,o=t.left+e.clientLeft,i=ur(e)?Sn(e):dr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,l=n*i.y;return{width:a,height:s,x:c,y:l}}function gu(e,r,t){let n;if(r==="viewport")n=yv(e,t);else if(r==="document")n=vv(lr(e));else if(mt(r))n=wv(r,t);else{const o=pu(e);n={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return gi(n)}function vu(e,r){const t=Ir(e);return t===r||!mt(t)||wn(t)?!1:Vt(t).position==="fixed"||vu(t,r)}function _v(e,r){const t=r.get(e);if(t)return t;let n=to(e,[],!1).filter(s=>mt(s)&&bn(s)!=="body"),o=null;const i=Vt(e).position==="fixed";let a=i?Ir(e):e;for(;mt(a)&&!wn(a);){const s=Vt(a),c=Xa(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&bv.has(o.position)||eo(a)&&!c&&vu(e,a))?n=n.filter(u=>u!==a):o=s,a=Ir(a)}return r.set(e,n),n}function xv(e){let{element:r,boundary:t,rootBoundary:n,strategy:o}=e;const a=[...t==="clippingAncestors"?ui(r)?[]:_v(r,this._c):[].concat(t),n],s=a[0],c=a.reduce((l,u)=>{const d=gu(r,u,o);return l.top=Ur(d.top,l.top),l.right=_n(d.right,l.right),l.bottom=_n(d.bottom,l.bottom),l.left=Ur(d.left,l.left),l},gu(r,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sv(e){const{width:r,height:t}=fu(e);return{width:r,height:t}}function Cv(e,r,t){const n=ur(r),o=lr(r),i=t==="fixed",a=Wr(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=dr(0);function l(){c.x=yi(o)}if(n||!n&&!i)if((bn(r)!=="body"||eo(o))&&(s=di(r)),n){const m=Wr(r,!0,i,r);c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}else o&&l();i&&!n&&o&&l();const u=o&&!n&&!i?hu(o,s):dr(0),d=a.left+s.scrollLeft-c.x-u.x,f=a.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function is(e){return Vt(e).position==="static"}function yu(e,r){if(!ur(e)||Vt(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return lr(e)===t&&(t=t.ownerDocument.body),t}function bu(e,r){const t=Nt(e);if(ui(e))return t;if(!ur(e)){let o=Ir(e);for(;o&&!wn(o);){if(mt(o)&&!is(o))return o;o=Ir(o)}return t}let n=yu(e,r);for(;n&&j0(n)&&is(n);)n=yu(n,r);return n&&wn(n)&&is(n)&&!Xa(n)?t:n||F0(e)||t}const Ev=async function(e){const r=this.getOffsetParent||bu,t=this.getDimensions,n=await t(e.floating);return{reference:Cv(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function kv(e){return Vt(e).direction==="rtl"}const Dv={convertOffsetParentRelativeRectToViewportRelativeRect:mv,getDocumentElement:lr,getClippingRect:xv,getOffsetParent:bu,getElementRects:Ev,getClientRects:gv,getDimensions:Sv,getScale:Sn,isElement:mt,isRTL:kv};function wu(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Tv(e,r){let t=null,n;const o=lr(e);function i(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=l;if(s||r(),!f||!m)return;const g=pi(d),p=pi(o.clientWidth-(u+f)),y=pi(o.clientHeight-(d+m)),S=pi(u),k={rootMargin:-g+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ur(0,_n(1,c))||1};let E=!0;function _(O){const R=O[0].intersectionRatio;if(R!==c){if(!E)return a();R?a(!1,R):n=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!wu(l,e.getBoundingClientRect())&&a(),E=!1}try{t=new IntersectionObserver(_,{...k,root:o.ownerDocument})}catch{t=new IntersectionObserver(_,k)}t.observe(e)}return a(!0),i}function Ov(e,r,t,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=os(e),u=o||i?[...l?to(l):[],...to(r)]:[];u.forEach(S=>{o&&S.addEventListener("scroll",t,{passive:!0}),i&&S.addEventListener("resize",t)});const d=l&&s?Tv(l,t):null;let f=-1,m=null;a&&(m=new ResizeObserver(S=>{let[C]=S;C&&C.target===l&&m&&(m.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(r)})),t()}),l&&!c&&m.observe(l),m.observe(r));let g,p=c?Wr(e):null;c&&y();function y(){const S=Wr(e);p&&!wu(p,S)&&t(),p=S,g=requestAnimationFrame(y)}return t(),()=>{var S;u.forEach(C=>{o&&C.removeEventListener("scroll",t),i&&C.removeEventListener("resize",t)}),d?.(),(S=m)==null||S.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const Mv=fv,Pv=lv,_u=cv,Av=(e,r,t)=>{const n=new Map,o={platform:Dv,...t},i={...o.platform,_c:n};return av(e,r,{...o,platform:i})};var Iv=typeof document<"u",Rv=function(){},bi=Iv?x.useLayoutEffect:Rv;function wi(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,n,o;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(n=t;n--!==0;)if(!wi(e[n],r[n]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(r,o[n]))return!1;for(n=t;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!wi(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function xu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Su(e,r){const t=xu(e);return Math.round(r*t)/t}function as(e){const r=$.useRef(e);return bi(()=>{r.current=e}),r}function Nv(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=$.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[f,m]=$.useState(n);wi(f,n)||m(n);const[g,p]=$.useState(null),[y,S]=$.useState(null),C=$.useCallback(V=>{V!==O.current&&(O.current=V,p(V))},[]),k=$.useCallback(V=>{V!==R.current&&(R.current=V,S(V))},[]),E=i||g,_=a||y,O=$.useRef(null),R=$.useRef(null),q=$.useRef(u),Z=c!=null,j=as(c),K=as(o),v=as(l),A=$.useCallback(()=>{if(!O.current||!R.current)return;const V={placement:r,strategy:t,middleware:f};K.current&&(V.platform=K.current),Av(O.current,R.current,V).then(Q=>{const L={...Q,isPositioned:v.current!==!1};P.current&&!wi(q.current,L)&&(q.current=L,sh.flushSync(()=>{d(L)}))})},[f,r,t,K,v]);bi(()=>{l===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,d(V=>({...V,isPositioned:!1})))},[l]);const P=$.useRef(!1);bi(()=>(P.current=!0,()=>{P.current=!1}),[]),bi(()=>{if(E&&(O.current=E),_&&(R.current=_),E&&_){if(j.current)return j.current(E,_,A);A()}},[E,_,A,j,Z]);const H=$.useMemo(()=>({reference:O,floating:R,setReference:C,setFloating:k}),[C,k]),W=$.useMemo(()=>({reference:E,floating:_}),[E,_]),J=$.useMemo(()=>{const V={position:t,left:0,top:0};if(!W.floating)return V;const Q=Su(W.floating,u.x),L=Su(W.floating,u.y);return s?{...V,transform:"translate("+Q+"px, "+L+"px)",...xu(W.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:Q,top:L}},[t,s,W.floating,u.x,u.y]);return $.useMemo(()=>({...u,update:A,refs:H,elements:W,floatingStyles:J}),[u,A,H,W,J])}const $v=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:n,padding:o}=typeof e=="function"?e(t):e;return n&&r(n)?n.current!=null?_u({element:n.current,padding:o}).fn(t):{}:n?_u({element:n,padding:o}).fn(t):{}}}},jv=(e,r)=>({...Mv(e),options:[e,r]}),Lv=(e,r)=>({...Pv(e),options:[e,r]}),zv=(e,r)=>({...$v(e),options:[e,r]}),Bv={...$};let Cu=!1,Vv=0;const Eu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Vv++;function Fv(){const[e,r]=$.useState(()=>Cu?Eu():void 0);return vi(()=>{e==null&&r(Eu())},[]),$.useEffect(()=>{Cu=!0},[]),e}const ku=Bv.useId||Fv;let no;process.env.NODE_ENV!=="production"&&(no=new Set);function Yv(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];const o="Floating UI: "+t.join(" ");if(!((e=no)!=null&&e.has(o))){var i;(i=no)==null||i.add(o),console.warn(o)}}function Uv(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];const o="Floating UI: "+t.join(" ");if(!((e=no)!=null&&e.has(o))){var i;(i=no)==null||i.add(o),console.error(o)}}const Hv=$.forwardRef(function(r,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:m,style:{transform:g,...p}={},...y}=r;process.env.NODE_ENV!=="production"&&(t||Yv("The `ref` prop is required for `FloatingArrow`."));const S=ku(),[C,k]=$.useState(!1);if(vi(()=>{if(!o)return;Vt(o).direction==="rtl"&&k(!0)},[o]),!o)return null;const[E,_]=n.split("-"),O=E==="top"||E==="bottom";let R=d;(O&&a!=null&&a.x||!O&&a!=null&&a.y)&&(R=null);const q=u*2,Z=q/2,j=s/2*(l/-8+1),K=c/2*l/4,v=!!m,A=R&&_==="end"?"bottom":"top";let P=R&&_==="end"?"right":"left";R&&C&&(P=_==="end"?"left":"right");const H=i?.x!=null?R||i.x:"",W=i?.y!=null?R||i.y:"",J=m||"M0,0"+(" H"+s)+(" L"+(s-j)+","+(c-K))+(" Q"+s/2+","+c+" "+j+","+(c-K))+" Z",V={top:v?"rotate(180deg)":"",left:v?"rotate(90deg)":"rotate(-90deg)",bottom:v?"":"rotate(180deg)",right:v?"rotate(-90deg)":"rotate(90deg)"}[E];return h.jsxs("svg",{...y,"aria-hidden":!0,ref:t,width:v?s:s+q,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[P]:H,[A]:W,[E]:O||v?"100%":"calc(100% - "+q/2+"px)",transform:[V,g].filter(Q=>!!Q).join(" "),...p},children:[q>0&&h.jsx("path",{clipPath:"url(#"+S+")",fill:"none",stroke:f,strokeWidth:q+(m?0:1),d:J}),h.jsx("path",{stroke:q&&!m?y.fill:"none",d:J}),h.jsx("clipPath",{id:S,children:h.jsx("rect",{x:-Z,y:Z*(v?-1:1),width:s+q,height:s})})]})});function Wv(){const e=new Map;return{emit(r,t){var n;(n=e.get(r))==null||n.forEach(o=>o(t))},on(r,t){e.has(r)||e.set(r,new Set),e.get(r).add(t)},off(r,t){var n;(n=e.get(r))==null||n.delete(t)}}}const Zv=$.createContext(null),qv=$.createContext(null),Kv=()=>{var e;return((e=$.useContext(Zv))==null?void 0:e.id)||null},Gv=()=>$.useContext(qv);function Qv(e){const{open:r=!1,onOpenChange:t,elements:n}=e,o=ku(),i=$.useRef({}),[a]=$.useState(()=>Wv()),s=Kv()!=null;if(process.env.NODE_ENV!=="production"){const m=n.reference;m&&!mt(m)&&Uv("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=$.useState(n.reference),u=iv((m,g,p)=>{i.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:p,nested:s}),t?.(m,g,p)}),d=$.useMemo(()=>({setPositionReference:l}),[]),f=$.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return $.useMemo(()=>({dataRef:i,open:r,onOpenChange:u,elements:f,events:a,floatingId:o,refs:d}),[r,u,f,a,o,d])}function Xv(e){e===void 0&&(e={});const{nodeId:r}=e,t=Qv({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||t,o=n.elements,[i,a]=$.useState(null),[s,c]=$.useState(null),u=o?.domReference||i,d=$.useRef(null),f=Gv();vi(()=>{u&&(d.current=u)},[u]);const m=Nv({...e,elements:{...o,...s&&{reference:s}}}),g=$.useCallback(k=>{const E=mt(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),getClientRects:()=>k.getClientRects(),contextElement:k}:k;c(E),m.refs.setReference(E)},[m.refs]),p=$.useCallback(k=>{(mt(k)||k===null)&&(d.current=k,a(k)),(mt(m.refs.reference.current)||m.refs.reference.current===null||k!==null&&!mt(k))&&m.refs.setReference(k)},[m.refs]),y=$.useMemo(()=>({...m.refs,setReference:p,setPositionReference:g,domReference:d}),[m.refs,p,g]),S=$.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),C=$.useMemo(()=>({...m,...n,refs:y,elements:S,nodeId:r}),[m,y,S,r,n]);return vi(()=>{n.dataRef.current.floatingContext=C;const k=f?.nodesRef.current.find(E=>E.id===r);k&&(k.context=C)}),$.useMemo(()=>({...m,context:C,refs:y,elements:S}),[m,y,S,C])}/*!
115
+ export default theme;`}function eu(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const v0=e=>{if(!Number.isNaN(+e))return+e;const r=e.match(/\d*\.?\d+/g);if(!r)return 0;let t=0;for(let n=0;n<r.length;n+=1)t+=+r[n];return t};function y0(e){Object.assign(e,{alpha(r,t){const n=this||e;return n.colorSpace?`oklch(from ${r} l c h / ${typeof t=="string"?`calc(${t})`:t})`:n.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:ii(r,v0(t))},lighten(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #fff ${eu(t)})`:si(r,t)},darken(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #000 ${eu(t)})`:ai(r,t)}})}function Ka(e={},...r){const{breakpoints:t,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=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.":Mr(20));const d=qa({...i,colorSpace:l}),f=Va(e);let m=Pt(f,{mixins:i0(f.breakpoints,n),palette:d,shadows:d0.slice(),typography:s0(d,s),transitions:h0(a),zIndex:{...m0}});if(m=Pt(m,u),m=r.reduce((g,p)=>Pt(g,p),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,S)=>{let C;for(C in y){const k=y[C];if(g.includes(C)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const E=Ct("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
116
+ `))}y[C]={}}}};Object.keys(m.components).forEach(y=>{const S=m.components[y].styleOverrides;S&&y.startsWith("Mui")&&p(S,y)})}return m.unstable_sxConfig={...Un,...u?.unstable_sxConfig},m.unstable_sx=function(p){return zr({sx:p,theme:this})},m.toRuntimeSource=Jl,y0(m),m}function Ga(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const b0=[...Array(25)].map((e,r)=>{if(r===0)return"none";const t=Ga(r);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function tu(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ru(e){return e==="dark"?b0:[]}function w0(e){const{palette:r={mode:"light"},opacity:t,overlays:n,colorSpace:o,...i}=e,a=qa({...r,colorSpace:o});return{palette:a,opacity:{...tu(a.mode),...t},overlays:n||ru(a.mode),...i}}function _0(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 x0=e=>[...[...Array(25)].map((r,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],S0=e=>(r,t)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const a={};return x0(e.cssVarPrefix).forEach(s=>{a[s]=t[s],delete t[s]}),i==="media"?{[n]:t,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",r)]:a,[`${n}, ${i.replace("%s",r)}`]:t}:{[n]:{...t,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(r))}`}else if(r){if(i==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[n]:t}};if(i)return i.replace("%s",String(r))}return n};function C0(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function B(e,r,t){!e[r]&&t&&(e[r]=t)}function eo(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ll(e)}function yr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Qn(eo(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
117
+ To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function E0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},k0=(e="mui")=>Hg(e);function Qa(e,r,t,n,o){if(!t)return;t=t===!0?{}:t;const i=o==="dark"?"dark":"light";if(!n){r[o]=w0({...t,palette:{mode:i,...t?.palette},colorSpace:e});return}const{palette:a,...s}=Ka({...n,palette:{mode:i,...t?.palette},colorSpace:e});return r[o]={...t,palette:a,opacity:{...tu(i),...t?.opacity},overlays:t?.overlays||ru(i)},s}function D0(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=_0,colorSchemeSelector:c=t.light&&t.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(t)[0],f=n||(t.light&&d!=="light"?"light":d),m=k0(i),{[f]:g,light:p,dark:y,...S}=t,C={...S};let k=g;if((f==="dark"&&!("dark"in t)||f==="light"&&!("light"in t))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Mr(21,f));let E;a&&(E="oklch");const _=Qa(E,C,k,u,f);p&&!C.light&&Qa(E,C,p,void 0,"light"),y&&!C.dark&&Qa(E,C,y,void 0,"dark");let O={defaultColorScheme:f,..._,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...o0(_.typography),..._.font},spacing:E0(u.spacing)};Object.keys(O.colorSchemes).forEach(K=>{const v=O.colorSchemes[K].palette,I=U=>{const H=U.split("-"),ee=H[1],re=H[2];return m(U,v[ee][re])};v.mode==="light"&&(B(v.common,"background","#fff"),B(v.common,"onBackground","#000")),v.mode==="dark"&&(B(v.common,"background","#000"),B(v.common,"onBackground","#fff"));function A(U,H,ee){if(E){let re;return U===Fr&&(re=`transparent ${((1-ee)*100).toFixed(0)}%`),U===$e&&(re=`#000 ${(ee*100).toFixed(0)}%`),U===je&&(re=`#fff ${(ee*100).toFixed(0)}%`),`color-mix(in ${E}, ${H}, ${re})`}return U(H,ee)}if(C0(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){B(v.Alert,"errorColor",A($e,v.error.light,.6)),B(v.Alert,"infoColor",A($e,v.info.light,.6)),B(v.Alert,"successColor",A($e,v.success.light,.6)),B(v.Alert,"warningColor",A($e,v.warning.light,.6)),B(v.Alert,"errorFilledBg",I("palette-error-main")),B(v.Alert,"infoFilledBg",I("palette-info-main")),B(v.Alert,"successFilledBg",I("palette-success-main")),B(v.Alert,"warningFilledBg",I("palette-warning-main")),B(v.Alert,"errorFilledColor",sr(()=>v.getContrastText(v.error.main))),B(v.Alert,"infoFilledColor",sr(()=>v.getContrastText(v.info.main))),B(v.Alert,"successFilledColor",sr(()=>v.getContrastText(v.success.main))),B(v.Alert,"warningFilledColor",sr(()=>v.getContrastText(v.warning.main))),B(v.Alert,"errorStandardBg",A(je,v.error.light,.9)),B(v.Alert,"infoStandardBg",A(je,v.info.light,.9)),B(v.Alert,"successStandardBg",A(je,v.success.light,.9)),B(v.Alert,"warningStandardBg",A(je,v.warning.light,.9)),B(v.Alert,"errorIconColor",I("palette-error-main")),B(v.Alert,"infoIconColor",I("palette-info-main")),B(v.Alert,"successIconColor",I("palette-success-main")),B(v.Alert,"warningIconColor",I("palette-warning-main")),B(v.AppBar,"defaultBg",I("palette-grey-100")),B(v.Avatar,"defaultBg",I("palette-grey-400")),B(v.Button,"inheritContainedBg",I("palette-grey-300")),B(v.Button,"inheritContainedHoverBg",I("palette-grey-A100")),B(v.Chip,"defaultBorder",I("palette-grey-400")),B(v.Chip,"defaultAvatarColor",I("palette-grey-700")),B(v.Chip,"defaultIconColor",I("palette-grey-700")),B(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),B(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),B(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),B(v.LinearProgress,"primaryBg",A(je,v.primary.main,.62)),B(v.LinearProgress,"secondaryBg",A(je,v.secondary.main,.62)),B(v.LinearProgress,"errorBg",A(je,v.error.main,.62)),B(v.LinearProgress,"infoBg",A(je,v.info.main,.62)),B(v.LinearProgress,"successBg",A(je,v.success.main,.62)),B(v.LinearProgress,"warningBg",A(je,v.warning.main,.62)),B(v.Skeleton,"bg",E?A(Fr,v.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),B(v.Slider,"primaryTrack",A(je,v.primary.main,.62)),B(v.Slider,"secondaryTrack",A(je,v.secondary.main,.62)),B(v.Slider,"errorTrack",A(je,v.error.main,.62)),B(v.Slider,"infoTrack",A(je,v.info.main,.62)),B(v.Slider,"successTrack",A(je,v.success.main,.62)),B(v.Slider,"warningTrack",A(je,v.warning.main,.62));const U=E?A($e,v.background.default,.6825):ci(v.background.default,.8);B(v.SnackbarContent,"bg",U),B(v.SnackbarContent,"color",sr(()=>E?Za.text.primary:v.getContrastText(U))),B(v.SpeedDialAction,"fabHoverBg",ci(v.background.paper,.15)),B(v.StepConnector,"border",I("palette-grey-400")),B(v.StepContent,"border",I("palette-grey-400")),B(v.Switch,"defaultColor",I("palette-common-white")),B(v.Switch,"defaultDisabledColor",I("palette-grey-100")),B(v.Switch,"primaryDisabledColor",A(je,v.primary.main,.62)),B(v.Switch,"secondaryDisabledColor",A(je,v.secondary.main,.62)),B(v.Switch,"errorDisabledColor",A(je,v.error.main,.62)),B(v.Switch,"infoDisabledColor",A(je,v.info.main,.62)),B(v.Switch,"successDisabledColor",A(je,v.success.main,.62)),B(v.Switch,"warningDisabledColor",A(je,v.warning.main,.62)),B(v.TableCell,"border",A(je,A(Fr,v.divider,1),.88)),B(v.Tooltip,"bg",A(Fr,v.grey[700],.92))}if(v.mode==="dark"){B(v.Alert,"errorColor",A(je,v.error.light,.6)),B(v.Alert,"infoColor",A(je,v.info.light,.6)),B(v.Alert,"successColor",A(je,v.success.light,.6)),B(v.Alert,"warningColor",A(je,v.warning.light,.6)),B(v.Alert,"errorFilledBg",I("palette-error-dark")),B(v.Alert,"infoFilledBg",I("palette-info-dark")),B(v.Alert,"successFilledBg",I("palette-success-dark")),B(v.Alert,"warningFilledBg",I("palette-warning-dark")),B(v.Alert,"errorFilledColor",sr(()=>v.getContrastText(v.error.dark))),B(v.Alert,"infoFilledColor",sr(()=>v.getContrastText(v.info.dark))),B(v.Alert,"successFilledColor",sr(()=>v.getContrastText(v.success.dark))),B(v.Alert,"warningFilledColor",sr(()=>v.getContrastText(v.warning.dark))),B(v.Alert,"errorStandardBg",A($e,v.error.light,.9)),B(v.Alert,"infoStandardBg",A($e,v.info.light,.9)),B(v.Alert,"successStandardBg",A($e,v.success.light,.9)),B(v.Alert,"warningStandardBg",A($e,v.warning.light,.9)),B(v.Alert,"errorIconColor",I("palette-error-main")),B(v.Alert,"infoIconColor",I("palette-info-main")),B(v.Alert,"successIconColor",I("palette-success-main")),B(v.Alert,"warningIconColor",I("palette-warning-main")),B(v.AppBar,"defaultBg",I("palette-grey-900")),B(v.AppBar,"darkBg",I("palette-background-paper")),B(v.AppBar,"darkColor",I("palette-text-primary")),B(v.Avatar,"defaultBg",I("palette-grey-600")),B(v.Button,"inheritContainedBg",I("palette-grey-800")),B(v.Button,"inheritContainedHoverBg",I("palette-grey-700")),B(v.Chip,"defaultBorder",I("palette-grey-700")),B(v.Chip,"defaultAvatarColor",I("palette-grey-300")),B(v.Chip,"defaultIconColor",I("palette-grey-300")),B(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),B(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),B(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),B(v.LinearProgress,"primaryBg",A($e,v.primary.main,.5)),B(v.LinearProgress,"secondaryBg",A($e,v.secondary.main,.5)),B(v.LinearProgress,"errorBg",A($e,v.error.main,.5)),B(v.LinearProgress,"infoBg",A($e,v.info.main,.5)),B(v.LinearProgress,"successBg",A($e,v.success.main,.5)),B(v.LinearProgress,"warningBg",A($e,v.warning.main,.5)),B(v.Skeleton,"bg",E?A(Fr,v.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),B(v.Slider,"primaryTrack",A($e,v.primary.main,.5)),B(v.Slider,"secondaryTrack",A($e,v.secondary.main,.5)),B(v.Slider,"errorTrack",A($e,v.error.main,.5)),B(v.Slider,"infoTrack",A($e,v.info.main,.5)),B(v.Slider,"successTrack",A($e,v.success.main,.5)),B(v.Slider,"warningTrack",A($e,v.warning.main,.5));const U=E?A(je,v.background.default,.985):ci(v.background.default,.98);B(v.SnackbarContent,"bg",U),B(v.SnackbarContent,"color",sr(()=>E?Hl.text.primary:v.getContrastText(U))),B(v.SpeedDialAction,"fabHoverBg",ci(v.background.paper,.15)),B(v.StepConnector,"border",I("palette-grey-600")),B(v.StepContent,"border",I("palette-grey-600")),B(v.Switch,"defaultColor",I("palette-grey-300")),B(v.Switch,"defaultDisabledColor",I("palette-grey-600")),B(v.Switch,"primaryDisabledColor",A($e,v.primary.main,.55)),B(v.Switch,"secondaryDisabledColor",A($e,v.secondary.main,.55)),B(v.Switch,"errorDisabledColor",A($e,v.error.main,.55)),B(v.Switch,"infoDisabledColor",A($e,v.info.main,.55)),B(v.Switch,"successDisabledColor",A($e,v.success.main,.55)),B(v.Switch,"warningDisabledColor",A($e,v.warning.main,.55)),B(v.TableCell,"border",A($e,A(Fr,v.divider,1),.68)),B(v.Tooltip,"bg",A(Fr,v.grey[700],.92))}yr(v.background,"default"),yr(v.background,"paper"),yr(v.common,"background"),yr(v.common,"onBackground"),yr(v,"divider"),Object.keys(v).forEach(U=>{const H=v[U];U!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&B(v[U],"mainChannel",Qn(eo(H.main))),H.light&&B(v[U],"lightChannel",Qn(eo(H.light))),H.dark&&B(v[U],"darkChannel",Qn(eo(H.dark))),H.contrastText&&B(v[U],"contrastTextChannel",Qn(eo(H.contrastText))),U==="text"&&(yr(v[U],"primary"),yr(v[U],"secondary")),U==="action"&&(H.active&&yr(v[U],"active"),H.selected&&yr(v[U],"selected")))})}),O=r.reduce((K,v)=>Pt(K,v),O);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:S0(O),enableContrastVars:a},{vars:q,generateThemeVars:Z,generateStyleSheets:L}=qg(O,N);return O.vars=q,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([K,v])=>{O[K]=v}),O.generateThemeVars=Z,O.generateStyleSheets=L,O.generateSpacing=function(){return Pl(u.spacing,ka(this))},O.getColorSchemeSelector=Kg(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...Un,...u?.unstable_sxConfig},O.unstable_sx=function(v){return zr({sx:v,theme:this})},O.toRuntimeSource=Jl,O}function nu(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:qa({...t===!0?{}:t.palette,mode:r})})}function ou(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:i=t?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...t?{[s]:{...typeof c!="boolean"&&c,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ka(e,...r);let u=t;"palette"in e||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Ka({...e,palette:u},...r);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},nu(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},nu(d,"light",l.light)),d}return!t&&!("light"in l)&&s==="light"&&(l.light=!0),D0({...a,colorSchemes:l,defaultColorScheme:s,...typeof n!="boolean"&&n},...r)}const iu=ou(),Xa="$$material";function au(){const e=Al(iu);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Xa]||e}function T0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ut=Og({themeId:Xa,defaultTheme:iu,rootShouldForwardProp:e=>T0(e)&&e!=="classes"}),cr=Ug;process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function Rt(e){return Vg(e)}function O0(e){return Ct("MuiSvgIcon",e)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const M0=e=>{const{color:r,fontSize:t,classes:n}=e,o={root:["root",r!=="inherit"&&`color${Ke(r)}`,`fontSize${Ke(t)}`]};return Lt(o,O0,n)},P0=ut("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${Ke(t.color)}`],r[`fontSize${Ke(t.fontSize)}`]]}})(cr(({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:r=>!r.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(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(e.vars??e).palette?.[r]?.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}}]}))),li=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=n,g=j.isValidElement(o)&&o.type==="svg",p={...n,color:a,component:s,fontSize:c,instanceFontSize:r.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},y={};u||(y.viewBox=f);const S=M0(p);return h.jsxs(P0,{as:s,className:_e(S.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...y,...m,...g&&o.props,ownerState:p,children:[g?o.props.children:o,d?h.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(li.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string}),li.muiName="SvgIcon";function qt(e,r){function t(n,o){return h.jsx(li,{"data-testid":process.env.NODE_ENV!=="production"?`${r}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=li.muiName,j.memo(j.forwardRef(t))}function ui(e){const r=j.useRef(e);return Rg(()=>{r.current=e}),j.useRef((...t)=>(0,r.current)(...t)).current}function Ja(...e){const r=j.useRef(void 0),t=j.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return j.useMemo(()=>e.every(n=>n==null)?null:n=>{r.current&&(r.current(),r.current=void 0),n!=null&&(r.current=t(n))},e)}const A0=qt(h.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),I0=qt(h.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),R0=qt(h.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),N0=({header:e,sidebar:r,mainContent:t})=>{const[n,o]=x.useState(!1),[i,a]=x.useState(!1),s=()=>{o(!n)},c=()=>{a(!i)};return h.jsxs("div",{className:`${Zt.dashboardContainer} ${i?Zt.sidebarCollapsed:""}`,children:[h.jsxs("header",{className:Zt.header,children:[h.jsx($.IconButton,{onClick:s,className:Zt.menuButton,children:h.jsx(A0,{})}),h.jsx("div",{className:Zt.headerContent,children:e})]}),h.jsxs("aside",{className:`${Zt.sidebar} ${n?Zt.sidebarOpen:""}`,children:[h.jsx("div",{className:Zt.sidebarContent,children:r}),h.jsx($.IconButton,{onClick:c,className:Zt.collapseButton,style:{display:"none"},children:i?h.jsx(R0,{}):h.jsx(I0,{})})]}),h.jsx("main",{className:Zt.mainContent,children:t}),n&&h.jsx("div",{className:Zt.overlay,onClick:s})]})},Yr={headerContainer:"_headerContainer_9sslw_1",navAndDate:"_navAndDate_9sslw_17",navButton:"_navButton_9sslw_29",datePickerInput:"_datePickerInput_9sslw_61",datePickerButton:"_datePickerButton_9sslw_91",addEventButton:"_addEventButton_9sslw_135"};function di(){return typeof window<"u"}function bn(e){return su(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function lr(e){var r;return(r=(su(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function su(e){return di()?e instanceof Node||e instanceof Nt(e).Node:!1}function mt(e){return di()?e instanceof Element||e instanceof Nt(e).Element:!1}function ur(e){return di()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function cu(e){return!di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}const $0=new Set(["inline","contents"]);function to(e){const{overflow:r,overflowX:t,overflowY:n,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!$0.has(o)}const j0=new Set(["table","td","th"]);function L0(e){return j0.has(bn(e))}const z0=[":popover-open",":modal"];function fi(e){return z0.some(r=>{try{return e.matches(r)}catch{return!1}})}const B0=["transform","translate","scale","rotate","perspective"],V0=["transform","translate","scale","rotate","perspective","filter"],F0=["paint","layout","strict","content"];function es(e){const r=ts(),t=mt(e)?Vt(e):e;return B0.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||V0.some(n=>(t.willChange||"").includes(n))||F0.some(n=>(t.contain||"").includes(n))}function Y0(e){let r=Ir(e);for(;ur(r)&&!wn(r);){if(es(r))return r;if(fi(r))return null;r=Ir(r)}return null}function ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const U0=new Set(["html","body","#document"]);function wn(e){return U0.has(bn(e))}function Vt(e){return Nt(e).getComputedStyle(e)}function pi(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(bn(e)==="html")return e;const r=e.assignedSlot||e.parentNode||cu(e)&&e.host||lr(e);return cu(r)?r.host:r}function lu(e){const r=Ir(e);return wn(r)?e.ownerDocument?e.ownerDocument.body:e.body:ur(r)&&to(r)?r:lu(r)}function ro(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const o=lu(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Nt(o);if(i){const s=rs(a);return r.concat(a,a.visualViewport||[],to(o)?o:[],s&&t?ro(s):[])}return r.concat(o,ro(o,[],t))}function rs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const _n=Math.min,Ur=Math.max,hi=Math.round,mi=Math.floor,dr=e=>({x:e,y:e}),H0={left:"right",right:"left",bottom:"top",top:"bottom"},W0={start:"end",end:"start"};function Z0(e,r,t){return Ur(e,_n(r,t))}function gi(e,r){return typeof e=="function"?e(r):e}function xn(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function q0(e){return e==="x"?"y":"x"}function ns(e){return e==="y"?"height":"width"}const K0=new Set(["top","bottom"]);function Hr(e){return K0.has(xn(e))?"y":"x"}function os(e){return q0(Hr(e))}function G0(e,r,t){t===void 0&&(t=!1);const n=no(e),o=os(e),i=ns(o);let a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(a=vi(a)),[a,vi(a)]}function Q0(e){const r=vi(e);return[is(e),r,is(r)]}function is(e){return e.replace(/start|end/g,r=>W0[r])}const uu=["left","right"],du=["right","left"],X0=["top","bottom"],J0=["bottom","top"];function ev(e,r,t){switch(e){case"top":case"bottom":return t?r?du:uu:r?uu:du;case"left":case"right":return r?X0:J0;default:return[]}}function tv(e,r,t,n){const o=no(e);let i=ev(xn(e),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),r&&(i=i.concat(i.map(is)))),i}function vi(e){return e.replace(/left|right|bottom|top/g,r=>H0[r])}function rv(e){return{top:0,right:0,bottom:0,left:0,...e}}function fu(e){return typeof e!="number"?rv(e):{top:e,right:e,bottom:e,left:e}}function yi(e){const{x:r,y:t,width:n,height:o}=e;return{width:n,height:o,top:t,left:r,right:r+n,bottom:t+o,x:r,y:t}}var nv=typeof document<"u",ov=function(){},bi=nv?x.useLayoutEffect:ov;const iv={...j}.useInsertionEffect||(e=>e());function av(e){const r=j.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return iv(()=>{r.current=e}),j.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.current==null?void 0:r.current(...n)},[])}function pu(e,r,t){let{reference:n,floating:o}=e;const i=Hr(r),a=os(r),s=ns(a),c=xn(r),l=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let m;switch(c){case"top":m={x:u,y:n.y-o.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(no(r)){case"start":m[a]-=f*(t&&l?-1:1);break;case"end":m[a]+=f*(t&&l?-1:1);break}return m}const sv=async(e,r,t)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(r));let l=await a.getElementRects({reference:e,floating:r,strategy:o}),{x:u,y:d}=pu(l,n,c),f=n,m={},g=0;for(let p=0;p<s.length;p++){const{name:y,fn:S}=s[p],{x:C,y:k,data:E,reset:_}=await S({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:l,platform:a,elements:{reference:e,floating:r}});u=C??u,d=k??d,m={...m,[y]:{...m[y],...E}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:r,strategy:o}):_.rects),{x:u,y:d}=pu(l,f,c)),p=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};async function cv(e,r){var t;r===void 0&&(r={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=gi(r,e),g=fu(m),y=s[f?d==="floating"?"reference":"floating":d],S=yi(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(y)))==null||t?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),C=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},_=yi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:k,strategy:c}):C);return{top:(S.top-_.top+g.top)/E.y,bottom:(_.bottom-S.bottom+g.bottom)/E.y,left:(S.left-_.left+g.left)/E.x,right:(_.right-S.right+g.right)/E.x}}const lv=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=r,{element:l,padding:u=0}=gi(e,r)||{};if(l==null)return{};const d=fu(u),f={x:t,y:n},m=os(o),g=ns(m),p=await a.getDimensions(l),y=m==="y",S=y?"top":"left",C=y?"bottom":"right",k=y?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[m]-f[m]-i.floating[g],_=f[m]-i.reference[m],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let N=O?O[k]:0;(!N||!await(a.isElement==null?void 0:a.isElement(O)))&&(N=s.floating[k]||i.floating[g]);const q=E/2-_/2,Z=N/2-p[g]/2-1,L=_n(d[S],Z),K=_n(d[C],Z),v=L,I=N-p[g]-K,A=N/2-p[g]/2+q,U=Z0(v,A,I),H=!c.arrow&&no(o)!=null&&A!==U&&i.reference[g]/2-(A<v?L:K)-p[g]/2<0,ee=H?A<v?A-v:A-I:0;return{[m]:f[m]+ee,data:{[m]:U,centerOffset:A-U-ee,...H&&{alignmentOffset:ee}},reset:H}}}),uv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=r,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...y}=gi(e,r);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const S=xn(o),C=Hr(s),k=xn(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=f||(k||!p?[vi(s)]:Q0(s)),O=g!=="none";!f&&O&&_.push(...tv(s,p,g,E));const N=[s,..._],q=await cv(r,y),Z=[];let L=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&Z.push(q[S]),d){const A=G0(o,a,E);Z.push(q[A[0]],q[A[1]])}if(L=[...L,{placement:o,overflows:Z}],!Z.every(A=>A<=0)){var K,v;const A=(((K=i.flip)==null?void 0:K.index)||0)+1,U=N[A];if(U&&(!(d==="alignment"?C!==Hr(U):!1)||L.every(re=>Hr(re.placement)===C?re.overflows[0]>0:!0)))return{data:{index:A,overflows:L},reset:{placement:U}};let H=(v=L.filter(ee=>ee.overflows[0]<=0).sort((ee,re)=>ee.overflows[1]-re.overflows[1])[0])==null?void 0:v.placement;if(!H)switch(m){case"bestFit":{var I;const ee=(I=L.filter(re=>{if(O){const se=Hr(re.placement);return se===C||se==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(se=>se>0).reduce((se,V)=>se+V,0)]).sort((re,se)=>re[1]-se[1])[0])==null?void 0:I[0];ee&&(H=ee);break}case"initialPlacement":H=s;break}if(o!==H)return{reset:{placement:H}}}return{}}}},dv=new Set(["left","top"]);async function fv(e,r){const{placement:t,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=xn(t),s=no(t),c=Hr(t)==="y",l=dv.has(a)?-1:1,u=i&&c?-1:1,d=gi(r,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),c?{x:m*u,y:f*l}:{x:f*l,y:m*u}}const pv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:o,y:i,placement:a,middlewareData:s}=r,c=await fv(r,e);return a===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}};function hu(e){const r=Vt(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const o=ur(e),i=o?e.offsetWidth:t,a=o?e.offsetHeight:n,s=hi(t)!==i||hi(n)!==a;return s&&(t=i,n=a),{width:t,height:n,$:s}}function as(e){return mt(e)?e:e.contextElement}function Sn(e){const r=as(e);if(!ur(r))return dr(1);const t=r.getBoundingClientRect(),{width:n,height:o,$:i}=hu(r);let a=(i?hi(t.width):t.width)/n,s=(i?hi(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const hv=dr(0);function mu(e){const r=Nt(e);return!ts()||!r.visualViewport?hv:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function mv(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==Nt(e)?!1:r}function Wr(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=as(e);let a=dr(1);r&&(n?mt(n)&&(a=Sn(n)):a=Sn(e));const s=mv(i,t,n)?mu(i):dr(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=Nt(i),m=n&&mt(n)?Nt(n):n;let g=f,p=rs(g);for(;p&&n&&m!==g;){const y=Sn(p),S=p.getBoundingClientRect(),C=Vt(p),k=S.left+(p.clientLeft+parseFloat(C.paddingLeft))*y.x,E=S.top+(p.clientTop+parseFloat(C.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=k,l+=E,g=Nt(p),p=rs(g)}}return yi({width:u,height:d,x:c,y:l})}function wi(e,r){const t=pi(e).scrollLeft;return r?r.left+t:Wr(lr(e)).left+t}function gu(e,r){const t=e.getBoundingClientRect(),n=t.left+r.scrollLeft-wi(e,t),o=t.top+r.scrollTop;return{x:n,y:o}}function gv(e){let{elements:r,rect:t,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=lr(n),s=r?fi(r.floating):!1;if(n===a||s&&i)return t;let c={scrollLeft:0,scrollTop:0},l=dr(1);const u=dr(0),d=ur(n);if((d||!d&&!i)&&((bn(n)!=="body"||to(a))&&(c=pi(n)),ur(n))){const m=Wr(n);l=Sn(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const f=a&&!d&&!i?gu(a,c):dr(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:t.y*l.y-c.scrollTop*l.y+u.y+f.y}}function vv(e){return Array.from(e.getClientRects())}function yv(e){const r=lr(e),t=pi(e),n=e.ownerDocument.body,o=Ur(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=Ur(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+wi(e);const s=-t.scrollTop;return Vt(n).direction==="rtl"&&(a+=Ur(r.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const vu=25;function bv(e,r){const t=Nt(e),n=lr(e),o=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=ts();(!u||u&&r==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=wi(n);if(l<=0){const u=n.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-m);g<=vu&&(i-=g)}else l<=vu&&(i+=l);return{width:i,height:a,x:s,y:c}}const wv=new Set(["absolute","fixed"]);function _v(e,r){const t=Wr(e,!0,r==="fixed"),n=t.top+e.clientTop,o=t.left+e.clientLeft,i=ur(e)?Sn(e):dr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,l=n*i.y;return{width:a,height:s,x:c,y:l}}function yu(e,r,t){let n;if(r==="viewport")n=bv(e,t);else if(r==="document")n=yv(lr(e));else if(mt(r))n=_v(r,t);else{const o=mu(e);n={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return yi(n)}function bu(e,r){const t=Ir(e);return t===r||!mt(t)||wn(t)?!1:Vt(t).position==="fixed"||bu(t,r)}function xv(e,r){const t=r.get(e);if(t)return t;let n=ro(e,[],!1).filter(s=>mt(s)&&bn(s)!=="body"),o=null;const i=Vt(e).position==="fixed";let a=i?Ir(e):e;for(;mt(a)&&!wn(a);){const s=Vt(a),c=es(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&wv.has(o.position)||to(a)&&!c&&bu(e,a))?n=n.filter(u=>u!==a):o=s,a=Ir(a)}return r.set(e,n),n}function Sv(e){let{element:r,boundary:t,rootBoundary:n,strategy:o}=e;const a=[...t==="clippingAncestors"?fi(r)?[]:xv(r,this._c):[].concat(t),n],s=a[0],c=a.reduce((l,u)=>{const d=yu(r,u,o);return l.top=Ur(d.top,l.top),l.right=_n(d.right,l.right),l.bottom=_n(d.bottom,l.bottom),l.left=Ur(d.left,l.left),l},yu(r,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cv(e){const{width:r,height:t}=hu(e);return{width:r,height:t}}function Ev(e,r,t){const n=ur(r),o=lr(r),i=t==="fixed",a=Wr(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=dr(0);function l(){c.x=wi(o)}if(n||!n&&!i)if((bn(r)!=="body"||to(o))&&(s=pi(r)),n){const m=Wr(r,!0,i,r);c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}else o&&l();i&&!n&&o&&l();const u=o&&!n&&!i?gu(o,s):dr(0),d=a.left+s.scrollLeft-c.x-u.x,f=a.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function ss(e){return Vt(e).position==="static"}function wu(e,r){if(!ur(e)||Vt(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return lr(e)===t&&(t=t.ownerDocument.body),t}function _u(e,r){const t=Nt(e);if(fi(e))return t;if(!ur(e)){let o=Ir(e);for(;o&&!wn(o);){if(mt(o)&&!ss(o))return o;o=Ir(o)}return t}let n=wu(e,r);for(;n&&L0(n)&&ss(n);)n=wu(n,r);return n&&wn(n)&&ss(n)&&!es(n)?t:n||Y0(e)||t}const kv=async function(e){const r=this.getOffsetParent||_u,t=this.getDimensions,n=await t(e.floating);return{reference:Ev(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Dv(e){return Vt(e).direction==="rtl"}const Tv={convertOffsetParentRelativeRectToViewportRelativeRect:gv,getDocumentElement:lr,getClippingRect:Sv,getOffsetParent:_u,getElementRects:kv,getClientRects:vv,getDimensions:Cv,getScale:Sn,isElement:mt,isRTL:Dv};function xu(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Ov(e,r){let t=null,n;const o=lr(e);function i(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=l;if(s||r(),!f||!m)return;const g=mi(d),p=mi(o.clientWidth-(u+f)),y=mi(o.clientHeight-(d+m)),S=mi(u),k={rootMargin:-g+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ur(0,_n(1,c))||1};let E=!0;function _(O){const N=O[0].intersectionRatio;if(N!==c){if(!E)return a();N?a(!1,N):n=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!xu(l,e.getBoundingClientRect())&&a(),E=!1}try{t=new IntersectionObserver(_,{...k,root:o.ownerDocument})}catch{t=new IntersectionObserver(_,k)}t.observe(e)}return a(!0),i}function Mv(e,r,t,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=as(e),u=o||i?[...l?ro(l):[],...ro(r)]:[];u.forEach(S=>{o&&S.addEventListener("scroll",t,{passive:!0}),i&&S.addEventListener("resize",t)});const d=l&&s?Ov(l,t):null;let f=-1,m=null;a&&(m=new ResizeObserver(S=>{let[C]=S;C&&C.target===l&&m&&(m.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(r)})),t()}),l&&!c&&m.observe(l),m.observe(r));let g,p=c?Wr(e):null;c&&y();function y(){const S=Wr(e);p&&!xu(p,S)&&t(),p=S,g=requestAnimationFrame(y)}return t(),()=>{var S;u.forEach(C=>{o&&C.removeEventListener("scroll",t),i&&C.removeEventListener("resize",t)}),d?.(),(S=m)==null||S.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const Pv=pv,Av=uv,Su=lv,Iv=(e,r,t)=>{const n=new Map,o={platform:Tv,...t},i={...o.platform,_c:n};return sv(e,r,{...o,platform:i})};var Rv=typeof document<"u",Nv=function(){},_i=Rv?x.useLayoutEffect:Nv;function xi(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,n,o;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(n=t;n--!==0;)if(!xi(e[n],r[n]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(r,o[n]))return!1;for(n=t;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!xi(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Cu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eu(e,r){const t=Cu(e);return Math.round(r*t)/t}function cs(e){const r=j.useRef(e);return _i(()=>{r.current=e}),r}function $v(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=j.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[f,m]=j.useState(n);xi(f,n)||m(n);const[g,p]=j.useState(null),[y,S]=j.useState(null),C=j.useCallback(re=>{re!==O.current&&(O.current=re,p(re))},[]),k=j.useCallback(re=>{re!==N.current&&(N.current=re,S(re))},[]),E=i||g,_=a||y,O=j.useRef(null),N=j.useRef(null),q=j.useRef(u),Z=c!=null,L=cs(c),K=cs(o),v=cs(l),I=j.useCallback(()=>{if(!O.current||!N.current)return;const re={placement:r,strategy:t,middleware:f};K.current&&(re.platform=K.current),Iv(O.current,N.current,re).then(se=>{const V={...se,isPositioned:v.current!==!1};A.current&&!xi(q.current,V)&&(q.current=V,ch.flushSync(()=>{d(V)}))})},[f,r,t,K,v]);_i(()=>{l===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,d(re=>({...re,isPositioned:!1})))},[l]);const A=j.useRef(!1);_i(()=>(A.current=!0,()=>{A.current=!1}),[]),_i(()=>{if(E&&(O.current=E),_&&(N.current=_),E&&_){if(L.current)return L.current(E,_,I);I()}},[E,_,I,L,Z]);const U=j.useMemo(()=>({reference:O,floating:N,setReference:C,setFloating:k}),[C,k]),H=j.useMemo(()=>({reference:E,floating:_}),[E,_]),ee=j.useMemo(()=>{const re={position:t,left:0,top:0};if(!H.floating)return re;const se=Eu(H.floating,u.x),V=Eu(H.floating,u.y);return s?{...re,transform:"translate("+se+"px, "+V+"px)",...Cu(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:se,top:V}},[t,s,H.floating,u.x,u.y]);return j.useMemo(()=>({...u,update:I,refs:U,elements:H,floatingStyles:ee}),[u,I,U,H,ee])}const jv=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:n,padding:o}=typeof e=="function"?e(t):e;return n&&r(n)?n.current!=null?Su({element:n.current,padding:o}).fn(t):{}:n?Su({element:n,padding:o}).fn(t):{}}}},Lv=(e,r)=>({...Pv(e),options:[e,r]}),zv=(e,r)=>({...Av(e),options:[e,r]}),Bv=(e,r)=>({...jv(e),options:[e,r]}),Vv={...j};let ku=!1,Fv=0;const Du=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Fv++;function Yv(){const[e,r]=j.useState(()=>ku?Du():void 0);return bi(()=>{e==null&&r(Du())},[]),j.useEffect(()=>{ku=!0},[]),e}const Tu=Vv.useId||Yv;let oo;process.env.NODE_ENV!=="production"&&(oo=new Set);function Uv(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];const o="Floating UI: "+t.join(" ");if(!((e=oo)!=null&&e.has(o))){var i;(i=oo)==null||i.add(o),console.warn(o)}}function Hv(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];const o="Floating UI: "+t.join(" ");if(!((e=oo)!=null&&e.has(o))){var i;(i=oo)==null||i.add(o),console.error(o)}}const Wv=j.forwardRef(function(r,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:m,style:{transform:g,...p}={},...y}=r;process.env.NODE_ENV!=="production"&&(t||Uv("The `ref` prop is required for `FloatingArrow`."));const S=Tu(),[C,k]=j.useState(!1);if(bi(()=>{if(!o)return;Vt(o).direction==="rtl"&&k(!0)},[o]),!o)return null;const[E,_]=n.split("-"),O=E==="top"||E==="bottom";let N=d;(O&&a!=null&&a.x||!O&&a!=null&&a.y)&&(N=null);const q=u*2,Z=q/2,L=s/2*(l/-8+1),K=c/2*l/4,v=!!m,I=N&&_==="end"?"bottom":"top";let A=N&&_==="end"?"right":"left";N&&C&&(A=_==="end"?"left":"right");const U=i?.x!=null?N||i.x:"",H=i?.y!=null?N||i.y:"",ee=m||"M0,0"+(" H"+s)+(" L"+(s-L)+","+(c-K))+(" Q"+s/2+","+c+" "+L+","+(c-K))+" Z",re={top:v?"rotate(180deg)":"",left:v?"rotate(90deg)":"rotate(-90deg)",bottom:v?"":"rotate(180deg)",right:v?"rotate(-90deg)":"rotate(90deg)"}[E];return h.jsxs("svg",{...y,"aria-hidden":!0,ref:t,width:v?s:s+q,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[A]:U,[I]:H,[E]:O||v?"100%":"calc(100% - "+q/2+"px)",transform:[re,g].filter(se=>!!se).join(" "),...p},children:[q>0&&h.jsx("path",{clipPath:"url(#"+S+")",fill:"none",stroke:f,strokeWidth:q+(m?0:1),d:ee}),h.jsx("path",{stroke:q&&!m?y.fill:"none",d:ee}),h.jsx("clipPath",{id:S,children:h.jsx("rect",{x:-Z,y:Z*(v?-1:1),width:s+q,height:s})})]})});function Zv(){const e=new Map;return{emit(r,t){var n;(n=e.get(r))==null||n.forEach(o=>o(t))},on(r,t){e.has(r)||e.set(r,new Set),e.get(r).add(t)},off(r,t){var n;(n=e.get(r))==null||n.delete(t)}}}const qv=j.createContext(null),Kv=j.createContext(null),Gv=()=>{var e;return((e=j.useContext(qv))==null?void 0:e.id)||null},Qv=()=>j.useContext(Kv);function Xv(e){const{open:r=!1,onOpenChange:t,elements:n}=e,o=Tu(),i=j.useRef({}),[a]=j.useState(()=>Zv()),s=Gv()!=null;if(process.env.NODE_ENV!=="production"){const m=n.reference;m&&!mt(m)&&Hv("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=j.useState(n.reference),u=av((m,g,p)=>{i.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:p,nested:s}),t?.(m,g,p)}),d=j.useMemo(()=>({setPositionReference:l}),[]),f=j.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return j.useMemo(()=>({dataRef:i,open:r,onOpenChange:u,elements:f,events:a,floatingId:o,refs:d}),[r,u,f,a,o,d])}function Jv(e){e===void 0&&(e={});const{nodeId:r}=e,t=Xv({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||t,o=n.elements,[i,a]=j.useState(null),[s,c]=j.useState(null),u=o?.domReference||i,d=j.useRef(null),f=Qv();bi(()=>{u&&(d.current=u)},[u]);const m=$v({...e,elements:{...o,...s&&{reference:s}}}),g=j.useCallback(k=>{const E=mt(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),getClientRects:()=>k.getClientRects(),contextElement:k}:k;c(E),m.refs.setReference(E)},[m.refs]),p=j.useCallback(k=>{(mt(k)||k===null)&&(d.current=k,a(k)),(mt(m.refs.reference.current)||m.refs.reference.current===null||k!==null&&!mt(k))&&m.refs.setReference(k)},[m.refs]),y=j.useMemo(()=>({...m.refs,setReference:p,setPositionReference:g,domReference:d}),[m.refs,p,g]),S=j.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),C=j.useMemo(()=>({...m,...n,refs:y,elements:S,nodeId:r}),[m,y,S,r,n]);return bi(()=>{n.dataRef.current.floatingContext=C;const k=f?.nodesRef.current.find(E=>E.id===r);k&&(k.context=C)}),j.useMemo(()=>({...m,context:C,refs:y,elements:S}),[m,y,S,C])}/*!
118
118
  react-datepicker v8.7.0
119
119
  https://github.com/Hacker0x01/react-datepicker
120
120
  Released under the MIT License.
121
- */var ss=function(r,t){return ss=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},ss(r,t)};function pt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ss(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var _e=function(){return _e=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},_e.apply(this,arguments)};function fr(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var Jv=function(e){var r=e.showTimeSelectOnly,t=r===void 0?!1:r,n=e.showTime,o=n===void 0?!1:n,i=e.className,a=e.children,s=t?"Choose Time":"Choose Date".concat(o?" and Time":"");return x.createElement("div",{className:i,role:"dialog","aria-label":s,"aria-modal":"true"},a)},ey=function(e,r){var t=x.useRef(null),n=x.useRef(e);n.current=e;var o=x.useCallback(function(i){var a,s=i.composed&&i.composedPath&&i.composedPath().find(function(c){return c instanceof Node})||i.target;t.current&&!t.current.contains(s)&&(r&&s instanceof HTMLElement&&s.classList.contains(r)||(a=n.current)===null||a===void 0||a.call(n,i))},[r]);return x.useEffect(function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}},[o]),t},_i=function(e){var r=e.children,t=e.onClickOutside,n=e.className,o=e.containerRef,i=e.style,a=e.ignoreClass,s=ey(t,a);return x.createElement("div",{className:n,style:i,ref:function(c){s.current=c,o&&(o.current=c)}},r)},oe;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(oe||(oe={}));function Du(){var e=typeof window<"u"?window:globalThis;return e}var oo=12;function Ie(e){if(e==null)return new Date;var r=typeof e=="string"?w.parseISO(e):w.toDate(e);return xi(r)?r:new Date}function cs(e,r,t,n,o){o===void 0&&(o=Ie());for(var i=Cn(t)||Cn(us()),a=Array.isArray(r)?r:[r],s=0,c=a;s<c.length;s++){var l=c[s],u=w.parse(e,l,o,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(xi(u)&&(!n||e===Ue(u,l,t)))return u}return null}function xi(e,r){return w.isValid(e)&&!w.isBefore(e,new Date("1/1/1800"))}function Ue(e,r,t){if(t==="en")return w.format(e,r,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var n=t?Cn(t):void 0;return t&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),n=n||Cn(us()),w.format(e,r,{locale:n,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ft(e,r){var t=r.dateFormat,n=r.locale,o=Array.isArray(t)&&t.length>0?t[0]:t;return e&&Ue(e,o,n)||""}var Tu=" - ";function ty(e,r,t){if(!e&&!r)return"";var n=e?Ft(e,t):"",o=r?Ft(r,t):"",i=t.rangeSeparator||Tu;return"".concat(n).concat(i).concat(o)}function ry(e,r){if(!e?.length)return"";var t=e[0]?Ft(e[0],r):"";if(e.length===1)return t;if(e.length===2&&e[1]){var n=Ft(e[1],r);return"".concat(t,", ").concat(n)}var o=e.length-1;return"".concat(t," (+").concat(o,")")}function ls(e,r){var t=r.hour,n=t===void 0?0:t,o=r.minute,i=o===void 0?0:o,a=r.second,s=a===void 0?0:a;return w.setHours(w.setMinutes(w.setSeconds(e,s),i),n)}function ny(e){return w.getISOWeek(e)}function oy(e,r){return Ue(e,"ddd",r)}function Si(e){return w.startOfDay(e)}function Rr(e,r,t){var n=Cn(r||us());return w.startOfWeek(e,{locale:n,weekStartsOn:t})}function br(e){return w.startOfMonth(e)}function io(e){return w.startOfYear(e)}function Ou(e){return w.startOfQuarter(e)}function Mu(){return w.startOfDay(Ie())}function Pu(e){return w.endOfDay(e)}function iy(e){return w.endOfWeek(e)}function ay(e){return w.endOfMonth(e)}function pr(e,r){return e&&r?w.isSameYear(e,r):!e&&!r}function yt(e,r){return e&&r?w.isSameMonth(e,r):!e&&!r}function Ci(e,r){return e&&r?w.isSameQuarter(e,r):!e&&!r}function xe(e,r){return e&&r?w.isSameDay(e,r):!e&&!r}function Zr(e,r){return e&&r?w.isEqual(e,r):!e&&!r}function qr(e,r,t){var n,o=w.startOfDay(r),i=w.endOfDay(t);try{n=w.isWithinInterval(e,{start:o,end:i})}catch{n=!1}return n}function us(){var e=Du();return e.__localeId__}function Cn(e){if(typeof e=="string"){var r=Du();return r.__localeData__?r.__localeData__[e]:void 0}else return e}function sy(e,r,t){return r(Ue(e,"EEEE",t))}function cy(e,r){return Ue(e,"EEEEEE",r)}function ly(e,r){return Ue(e,"EEE",r)}function ds(e,r){return Ue(w.setMonth(Ie(),e),"LLLL",r)}function Au(e,r){return Ue(w.setMonth(Ie(),e),"LLL",r)}function uy(e,r){return Ue(w.setQuarter(Ie(),e),"QQQ",r)}function Yt(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.excludeDateIntervals,s=t.includeDates,c=t.includeDateIntervals,l=t.filterDate;return ao(e,{minDate:n,maxDate:o})||i&&i.some(function(u){return u instanceof Date?xe(e,u):xe(e,u.date)})||a&&a.some(function(u){var d=u.start,f=u.end;return w.isWithinInterval(e,{start:d,end:f})})||s&&!s.some(function(u){return xe(e,u)})||c&&!c.some(function(u){var d=u.start,f=u.end;return w.isWithinInterval(e,{start:d,end:f})})||l&&!l(Ie(e))||!1}function fs(e,r){var t=r===void 0?{}:r,n=t.excludeDates,o=t.excludeDateIntervals;return o&&o.length>0?o.some(function(i){var a=i.start,s=i.end;return w.isWithinInterval(e,{start:a,end:s})}):n&&n.some(function(i){var a;return i instanceof Date?xe(e,i):xe(e,(a=i.date)!==null&&a!==void 0?a:new Date)})||!1}function Iu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return ao(e,{minDate:n?w.startOfMonth(n):void 0,maxDate:o?w.endOfMonth(o):void 0})||i?.some(function(c){return yt(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return yt(e,c)})||s&&!s(Ie(e))||!1}function Ei(e,r,t,n){var o=w.getYear(e),i=w.getMonth(e),a=w.getYear(r),s=w.getMonth(r),c=w.getYear(n);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function dy(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates;return ao(e,{minDate:n,maxDate:o})||i&&i.some(function(s){return yt(s instanceof Date?s:s.date,e)})||a&&!a.some(function(s){return yt(s,e)})||!1}function ki(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return ao(e,{minDate:n,maxDate:o})||i?.some(function(c){return Ci(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return Ci(e,c)})||s&&!s(Ie(e))||!1}function Di(e,r,t){if(!r||!t||!w.isValid(r)||!w.isValid(t))return!1;var n=w.getYear(r),o=w.getYear(t);return n<=e&&o>=e}function Ti(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate,c=new Date(e,0,1);return ao(c,{minDate:n?w.startOfYear(n):void 0,maxDate:o?w.endOfYear(o):void 0})||i?.some(function(l){return pr(c,l instanceof Date?l:l.date)})||a&&!a.some(function(l){return pr(c,l)})||s&&!s(Ie(c))||!1}function Oi(e,r,t,n){var o=w.getYear(e),i=w.getQuarter(e),a=w.getYear(r),s=w.getQuarter(r),c=w.getYear(n);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function ao(e,r){var t,n=r===void 0?{}:r,o=n.minDate,i=n.maxDate;return(t=o&&w.differenceInCalendarDays(e,o)<0||i&&w.differenceInCalendarDays(e,i)>0)!==null&&t!==void 0?t:!1}function Ru(e,r){return r.some(function(t){return w.getHours(t)===w.getHours(e)&&w.getMinutes(t)===w.getMinutes(e)&&w.getSeconds(t)===w.getSeconds(e)})}function Nu(e,r){var t=r===void 0?{}:r,n=t.excludeTimes,o=t.includeTimes,i=t.filterTime;return n&&Ru(e,n)||o&&!Ru(e,o)||i&&!i(e)||!1}function $u(e,r){var t=r.minTime,n=r.maxTime;if(!t||!n)throw new Error("Both minTime and maxTime props required");var o=Ie();o=w.setHours(o,w.getHours(e)),o=w.setMinutes(o,w.getMinutes(e)),o=w.setSeconds(o,w.getSeconds(e));var i=Ie();i=w.setHours(i,w.getHours(t)),i=w.setMinutes(i,w.getMinutes(t)),i=w.setSeconds(i,w.getSeconds(t));var a=Ie();a=w.setHours(a,w.getHours(n)),a=w.setMinutes(a,w.getMinutes(n)),a=w.setSeconds(a,w.getSeconds(n));var s;try{s=!w.isWithinInterval(o,{start:i,end:a})}catch{s=!1}return s}function ju(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.subMonths(e,1);return n&&w.differenceInCalendarMonths(n,i)>0||o&&o.every(function(a){return w.differenceInCalendarMonths(a,i)>0})||!1}function Lu(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.addMonths(e,1);return n&&w.differenceInCalendarMonths(i,n)>0||o&&o.every(function(a){return w.differenceInCalendarMonths(i,a)>0})||!1}function fy(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.startOfYear(e),a=w.subQuarters(i,1);return n&&w.differenceInCalendarQuarters(n,a)>0||o&&o.every(function(s){return w.differenceInCalendarQuarters(s,a)>0})||!1}function py(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.endOfYear(e),a=w.addQuarters(i,1);return n&&w.differenceInCalendarQuarters(a,n)>0||o&&o.every(function(s){return w.differenceInCalendarQuarters(a,s)>0})||!1}function zu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.subYears(e,1);return n&&w.differenceInCalendarYears(n,i)>0||o&&o.every(function(a){return w.differenceInCalendarYears(a,i)>0})||!1}function hy(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.yearItemNumber,i=o===void 0?oo:o,a=io(w.subYears(e,i)),s=wr(a,i).endPeriod,c=n&&w.getYear(n);return c&&c>s||!1}function Bu(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.addYears(e,1);return n&&w.differenceInCalendarYears(i,n)>0||o&&o.every(function(a){return w.differenceInCalendarYears(i,a)>0})||!1}function my(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.yearItemNumber,i=o===void 0?oo:o,a=w.addYears(e,i),s=wr(a,i).startPeriod,c=n&&w.getYear(n);return c&&c<s||!1}function Vu(e){var r=e.minDate,t=e.includeDates;if(t&&r){var n=t.filter(function(o){return w.differenceInCalendarDays(o,r)>=0});return w.min(n)}else return t?w.min(t):r}function Fu(e){var r=e.maxDate,t=e.includeDates;if(t&&r){var n=t.filter(function(o){return w.differenceInCalendarDays(o,r)<=0});return w.max(n)}else return t?w.max(t):r}function Yu(e,r){var t;e===void 0&&(e=[]),r===void 0&&(r="react-datepicker__day--highlighted");for(var n=new Map,o=0,i=e.length;o<i;o++){var a=e[o];if(w.isDate(a)){var s=Ue(a,"MM.dd.yyyy"),c=n.get(s)||[];c.includes(r)||(c.push(r),n.set(s,c))}else if(typeof a=="object"){var l=Object.keys(a),u=(t=l[0])!==null&&t!==void 0?t:"",d=a[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,m=d.length;f<m;f++){var g=d[f];if(g){var s=Ue(g,"MM.dd.yyyy"),c=n.get(s)||[];c.includes(u)||(c.push(u),n.set(s,c))}}}}return n}function gy(e,r){return e.length!==r.length?!1:e.every(function(t,n){return t===r[n]})}function vy(e,r){e===void 0&&(e=[]),r===void 0&&(r="react-datepicker__day--holidays");var t=new Map;return e.forEach(function(n){var o=n.date,i=n.holidayName;if(w.isDate(o)){var a=Ue(o,"MM.dd.yyyy"),s=t.get(a)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===r&&gy(s.holidayNames,[i]))){s.className=r;var c=s.holidayNames;s.holidayNames=c?fr(fr([],c,!0),[i],!1):[i],t.set(a,s)}}}),t}function yy(e,r,t,n,o){for(var i=o.length,a=[],s=0;s<i;s++){var c=e,l=o[s];l&&(c=w.addHours(c,w.getHours(l)),c=w.addMinutes(c,w.getMinutes(l)),c=w.addSeconds(c,w.getSeconds(l)));var u=w.addMinutes(e,(t+1)*n);w.isAfter(c,r)&&w.isBefore(c,u)&&l!=null&&a.push(l)}return a}function Uu(e){return e<10?"0".concat(e):"".concat(e)}function wr(e,r){r===void 0&&(r=oo);var t=Math.ceil(w.getYear(e)/r)*r,n=t-(r-1);return{startPeriod:n,endPeriod:t}}function by(e){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+t-+r)/36e5)}function Hu(e){var r=e.getSeconds(),t=e.getMilliseconds();return w.toDate(e.getTime()-r*1e3-t)}function wy(e,r){return Hu(e).getTime()===Hu(r).getTime()}function Wu(e){if(!w.isDate(e))throw new Error("Invalid date");var r=new Date(e);return r.setHours(0,0,0,0),r}function ps(e,r){if(!w.isDate(e)||!w.isDate(r))throw new Error("Invalid date received");var t=Wu(e),n=Wu(r);return w.isBefore(t,n)}function Zu(e){return e.key===oe.Space}var _y=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.inputRef=x.createRef(),n.onTimeChange=function(o){var i,a;n.setState({time:o});var s=n.props.date,c=s instanceof Date&&!isNaN(+s),l=c?s:new Date;if(o?.includes(":")){var u=o.split(":"),d=u[0],f=u[1];l.setHours(Number(d)),l.setMinutes(Number(f))}(a=(i=n.props).onChange)===null||a===void 0||a.call(i,l)},n.renderTimeInput=function(){var o=n.state.time,i=n.props,a=i.date,s=i.timeString,c=i.customTimeInput;return c?x.cloneElement(c,{date:a,value:o,onChange:n.onTimeChange}):x.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:n.inputRef,onClick:function(){var l;(l=n.inputRef.current)===null||l===void 0||l.focus()},required:!0,value:o,onChange:function(l){n.onTimeChange(l.target.value||s)}})},n.state={time:n.props.timeString},n}return r.getDerivedStateFromProps=function(t,n){return t.timeString!==n.time?{time:t.timeString}:null},r.prototype.render=function(){return x.createElement("div",{className:"react-datepicker__input-time-container"},x.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),x.createElement("div",{className:"react-datepicker-time__input-container"},x.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},r})(x.Component),xy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dayEl=x.createRef(),t.handleClick=function(n){!t.isDisabled()&&t.props.onClick&&t.props.onClick(n)},t.handleMouseEnter=function(n){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(n)},t.handleOnKeyDown=function(n){var o,i,a=n.key;a===oe.Space&&(n.preventDefault(),n.key=oe.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,n)},t.isSameDay=function(n){return xe(t.props.day,n)},t.isKeyboardSelected=function(){var n;if(t.props.disabledKeyboardNavigation)return!1;var o=t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(a){return t.isSameDayOrWeek(a)}):t.isSameDayOrWeek(t.props.selected),i=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!o&&t.isSameDayOrWeek(t.props.preSelection)&&!i},t.isDisabled=function(n){return n===void 0&&(n=t.props.day),Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return fs(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return xe(t.props.day,Rr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(n){return t.props.showWeekPicker&&xe(n,Rr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(n){return t.isSameDay(n)||t.isSameWeek(n)},t.getHighLightedClass=function(){var n=t.props,o=n.day,i=n.highlightDates;if(!i)return!1;var a=Ue(o,"MM.dd.yyyy");return i.get(a)},t.getHolidaysClass=function(){var n,o=t.props,i=o.day,a=o.holidays;if(!a)return[void 0];var s=Ue(i,"MM.dd.yyyy");return a.has(s)?[(n=a.get(s))===null||n===void 0?void 0:n.className]:[void 0]},t.isInRange=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:qr(o,i,a)},t.isInSelectingRange=function(){var n,o=t.props,i=o.day,a=o.selectsStart,s=o.selectsEnd,c=o.selectsRange,l=o.selectsDisabledDaysInRange,u=o.startDate,d=o.swapRange,f=o.endDate,m=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;if(!(a||s||c)||!m||!l&&t.isDisabled())return!1;if(a&&f&&(w.isBefore(m,f)||Zr(m,f)))return qr(i,m,f);if(s&&u&&(w.isAfter(m,u)||Zr(m,u)))return qr(i,u,m);if(c&&u&&!f){if(Zr(m,u)||w.isAfter(m,u))return qr(i,u,m);if(d&&w.isBefore(m,u))return qr(i,m,u)}return!1},t.isSelectingRangeStart=function(){var n;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.startDate,s=o.selectsStart,c=o.swapRange,l=o.selectsRange,u=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return s?xe(i,u):l&&c&&a&&u?xe(i,w.isBefore(u,a)?u:a):xe(i,a)},t.isSelectingRangeEnd=function(){var n;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.endDate,s=o.selectsEnd,c=o.selectsRange,l=o.swapRange,u=o.startDate,d=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return s?xe(i,d):c&&l&&u&&d?xe(i,w.isBefore(d,u)?u:d):c?xe(i,d):xe(i,a)},t.isRangeStart=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:xe(i,o)},t.isRangeEnd=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:xe(a,o)},t.isWeekend=function(){var n=w.getDay(t.props.day);return n===0||n===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===w.getMonth(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(w.getMonth(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Ie())},t.isSelected=function(){var n;return t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(o){return t.isSameDayOrWeek(o)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(n){var o=t.props.dayClassName?t.props.dayClassName(n):void 0;return be("react-datepicker__day",o,"react-datepicker__day--"+oy(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var n=t.props,o=n.day,i=n.ariaLabelPrefixWhenEnabled,a=i===void 0?"Choose":i,s=n.ariaLabelPrefixWhenDisabled,c=s===void 0?"Not available":s,l=t.isDisabled()||t.isExcluded()?c:a;return"".concat(l," ").concat(Ue(o,"PPPP",t.props.locale))},t.getTitle=function(){var n=t.props,o=n.day,i=n.holidays,a=i===void 0?new Map:i,s=n.excludeDates,c=Ue(o,"MM.dd.yyyy"),l=[];return a.has(c)&&l.push.apply(l,a.get(c).holidayNames),t.isExcluded()&&l.push(s?.filter(function(u){return u instanceof Date?xe(u,o):xe(u?.date,o)}).map(function(u){if(!(u instanceof Date))return u?.message})),l.join(", ")},t.getTabIndex=function(){var n=t.props.selected,o=t.props.preSelection,i=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(n)&&xe(o,n))?0:-1;return i},t.handleFocusDay=function(){var n;t.shouldFocusDay()&&((n=t.dayEl.current)===null||n===void 0||n.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(w.getDate(t.props.day),t.props.day):w.getDate(t.props.day)},t.render=function(){return x.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&x.createElement("span",{className:"overlay"},t.getTitle()))},t}return r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},r.prototype.isDayActiveElement=function(){var t,n,o;return((n=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r})(x.Component),Sy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.weekNumberEl=x.createRef(),t.handleClick=function(n){t.props.onClick&&t.props.onClick(n)},t.handleOnKeyDown=function(n){var o,i,a=n.key;a===oe.Space&&(n.preventDefault(),n.key=oe.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,n)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!xe(t.props.date,t.props.selected)&&xe(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||xe(t.props.date,t.props.selected)&&xe(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(n){var o=!1;t.getTabIndex()===0&&!n?.isInputFocused&&xe(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(o=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},r.prototype.render=function(){var t=this.props,n=t.weekNumber,o=t.isWeekDisabled,i=t.ariaLabelPrefix,a=i===void 0?r.defaultProps.ariaLabelPrefix:i,s=t.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!o,"react-datepicker__week-number--selected":!!s&&xe(this.props.date,this.props.selected)};return x.createElement("div",{ref:this.weekNumberEl,className:be(c),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},n)},r})(x.Component),Cy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isDisabled=function(n){return Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(n,o){t.props.onDayClick&&t.props.onDayClick(n,o)},t.handleDayMouseEnter=function(n){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(n)},t.handleWeekClick=function(n,o,i){for(var a,s,c,l=new Date(n),u=0;u<7;u++){var d=new Date(n);d.setDate(d.getDate()+u);var f=!t.isDisabled(d);if(f){l=d;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(l,o,i),t.props.showWeekPicker&&t.handleDayClick(l,i),((a=t.props.shouldCloseOnSelect)!==null&&a!==void 0?a:r.defaultProps.shouldCloseOnSelect)&&((c=(s=t.props).setOpen)===null||c===void 0||c.call(s,!1))},t.formatWeekNumber=function(n){return t.props.formatWeekNumber?t.props.formatWeekNumber(n):ny(n)},t.isWeekDisabled=function(){for(var n=t.startOfWeek(),o=w.addDays(n,6),i=new Date(n);i<=o;){if(!t.isDisabled(i))return!1;i=w.addDays(i,1)}return!0},t.renderDays=function(){var n=t.startOfWeek(),o=[],i=t.formatWeekNumber(n);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,n,i):void 0;o.push(x.createElement(Sy,_e({key:"W"},r.defaultProps,t.props,{weekNumber:i,isWeekDisabled:t.isWeekDisabled(),date:n,onClick:a})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var c=w.addDays(n,s);return x.createElement(xy,_e({},r.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:t.handleDayClick.bind(t,c),onMouseEnter:t.handleDayMouseEnter.bind(t,c)}))}))},t.startOfWeek=function(){return Rr(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!xe(t.startOfWeek(),t.props.selected)&&xe(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":xe(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},n=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return x.createElement("div",{className:be(t,n),role:"row"},this.renderDays())},r})(x.Component),so,Ey=6,En={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},hs=(so={},so[En.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},so[En.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},so[En.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},so),Mi=1;function qu(e,r){return e?En.FOUR_COLUMNS:r?En.TWO_COLUMNS:En.THREE_COLUMNS}var ky=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.MONTH_REFS=fr([],Array(12),!0).map(function(){return x.createRef()}),t.QUARTER_REFS=fr([],Array(4),!0).map(function(){return x.createRef()}),t.isDisabled=function(n){return Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(n){return fs(n,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(n,o){var i,a;(a=(i=t.props).onDayClick)===null||a===void 0||a.call(i,n,o,t.props.orderInDisplay)},t.handleDayMouseEnter=function(n){var o,i;(i=(o=t.props).onDayMouseEnter)===null||i===void 0||i.call(o,n)},t.handleMouseLeave=function(){var n,o;(o=(n=t.props).onMouseLeave)===null||o===void 0||o.call(n)},t.isRangeStartMonth=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:yt(w.setMonth(i,n),a)},t.isRangeStartQuarter=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:Ci(w.setQuarter(i,n),a)},t.isRangeEndMonth=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:yt(w.setMonth(i,n),s)},t.isRangeEndQuarter=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:Ci(w.setQuarter(i,n),s)},t.isInSelectingRangeMonth=function(n){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Ei(f,d,n,a):c&&u||l&&u&&!d?Ei(u,f,n,a):!1},t.isSelectingMonthRangeStart=function(n){var o;if(!t.isInSelectingRangeMonth(n))return!1;var i=t.props,a=i.day,s=i.startDate,c=i.selectsStart,l=w.setMonth(a,n),u=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c?yt(l,u):yt(l,s)},t.isSelectingMonthRangeEnd=function(n){var o;if(!t.isInSelectingRangeMonth(n))return!1;var i=t.props,a=i.day,s=i.endDate,c=i.selectsEnd,l=i.selectsRange,u=w.setMonth(a,n),d=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c||l?yt(u,d):yt(u,s)},t.isInSelectingRangeQuarter=function(n){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Oi(f,d,n,a):c&&u||l&&u&&!d?Oi(u,f,n,a):!1},t.isWeekInMonth=function(n){var o=t.props.day,i=w.addDays(n,6);return yt(n,o)||yt(i,o)},t.isCurrentMonth=function(n,o){return w.getYear(n)===w.getYear(Ie())&&o===w.getMonth(Ie())},t.isCurrentQuarter=function(n,o){return w.getYear(n)===w.getYear(Ie())&&o===w.getQuarter(Ie())},t.isSelectedMonth=function(n,o,i){return w.getMonth(i)===o&&w.getYear(n)===w.getYear(i)},t.isSelectMonthInList=function(n,o,i){return i.some(function(a){return t.isSelectedMonth(n,o,a)})},t.isSelectedQuarter=function(n,o,i){return w.getQuarter(n)===o&&w.getYear(n)===w.getYear(i)},t.isMonthSelected=function(){var n=t.props,o=n.day,i=n.selected,a=n.selectedDates,s=n.selectsMultiple,c=w.getMonth(o);return s?a?.some(function(l){return t.isSelectedMonth(o,c,l)}):!!i&&t.isSelectedMonth(o,c,i)},t.renderWeeks=function(){for(var n=[],o=t.props.fixedHeight,i=0,a=!1,s=Rr(br(t.props.day),t.props.locale,t.props.calendarStartDay),c=function(g){return t.props.showWeekPicker?Rr(g,t.props.locale,t.props.calendarStartDay):t.props.preSelection},l=function(g){return t.props.showWeekPicker?Rr(g,t.props.locale,t.props.calendarStartDay):t.props.selected},u=t.props.selected?l(t.props.selected):void 0,d=t.props.preSelection?c(t.props.preSelection):void 0;n.push(x.createElement(Cy,_e({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:i,day:s,month:w.getMonth(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:t.props.showWeekNumbers}))),!a;){i++,s=w.addWeeks(s,1);var f=o&&i>=Ey,m=!o&&!t.isWeekInMonth(s);if(f||m)if(t.props.peekNextMonth)a=!0;else break}return n},t.onMonthClick=function(n,o){var i=t.isMonthDisabledForLabelDate(o),a=i.isDisabled,s=i.labelDate;a||t.handleDayClick(br(s),n)},t.onMonthMouseEnter=function(n){var o=t.isMonthDisabledForLabelDate(n),i=o.isDisabled,a=o.labelDate;i||t.handleDayMouseEnter(br(a))},t.handleMonthNavigation=function(n,o){var i,a,s,c;(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.MONTH_REFS[n])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()},t.handleKeyboardNavigation=function(n,o,i){var a,s=t.props,c=s.selected,l=s.preSelection,u=s.setPreSelection,d=s.minDate,f=s.maxDate,m=s.showFourColumnMonthYearPicker,g=s.showTwoColumnMonthYearPicker;if(l){var p=qu(m,g),y=t.getVerticalOffset(p),S=(a=hs[p])===null||a===void 0?void 0:a.grid,C=function(R,q,Z){var j,K,v=q,A=Z;switch(R){case oe.ArrowRight:v=w.addMonths(q,Mi),A=Z===11?0:Z+Mi;break;case oe.ArrowLeft:v=w.subMonths(q,Mi),A=Z===0?11:Z-Mi;break;case oe.ArrowUp:v=w.subMonths(q,y),A=!((j=S?.[0])===null||j===void 0)&&j.includes(Z)?Z+12-y:Z-y;break;case oe.ArrowDown:v=w.addMonths(q,y),A=!((K=S?.[S.length-1])===null||K===void 0)&&K.includes(Z)?Z-12+y:Z+y;break}return{newCalculatedDate:v,newCalculatedMonth:A}},k=function(R,q,Z){for(var j=40,K=R,v=!1,A=0,P=C(K,q,Z),H=P.newCalculatedDate,W=P.newCalculatedMonth;!v;){if(A>=j){H=q,W=Z;break}if(d&&H<d){K=oe.ArrowRight;var J=C(K,H,W);H=J.newCalculatedDate,W=J.newCalculatedMonth}if(f&&H>f){K=oe.ArrowLeft;var J=C(K,H,W);H=J.newCalculatedDate,W=J.newCalculatedMonth}if(dy(H,t.props)){var J=C(K,H,W);H=J.newCalculatedDate,W=J.newCalculatedMonth}else v=!0;A++}return{newCalculatedDate:H,newCalculatedMonth:W}};if(o===oe.Enter){t.isMonthDisabled(i)||(t.onMonthClick(n,i),u?.(c));return}var E=k(o,l,i),_=E.newCalculatedDate,O=E.newCalculatedMonth;switch(o){case oe.ArrowRight:case oe.ArrowLeft:case oe.ArrowUp:case oe.ArrowDown:t.handleMonthNavigation(O,_);break}}},t.getVerticalOffset=function(n){var o,i;return(i=(o=hs[n])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&i!==void 0?i:0},t.onMonthKeyDown=function(n,o){var i=t.props,a=i.disabledKeyboardNavigation,s=i.handleOnMonthKeyDown,c=n.key;c!==oe.Tab&&n.preventDefault(),a||t.handleKeyboardNavigation(n,c,o),s&&s(n)},t.onQuarterClick=function(n,o){var i=w.setQuarter(t.props.day,o);ki(i,t.props)||t.handleDayClick(Ou(i),n)},t.onQuarterMouseEnter=function(n){var o=w.setQuarter(t.props.day,n);ki(o,t.props)||t.handleDayMouseEnter(Ou(o))},t.handleQuarterNavigation=function(n,o){var i,a,s,c;t.isDisabled(o)||t.isExcluded(o)||((a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.QUARTER_REFS[n-1])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus())},t.onQuarterKeyDown=function(n,o){var i,a,s=n.key;if(!t.props.disabledKeyboardNavigation)switch(s){case oe.Enter:t.onQuarterClick(n,o),(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,t.props.selected);break;case oe.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===4?1:o+1,w.addQuarters(t.props.preSelection,1));break;case oe.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===1?4:o-1,w.subQuarters(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(n){var o,i=t.props,a=i.day,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=w.setMonth(a,n);return{isDisabled:(o=(s||c||l||u)&&Iu(d,t.props))!==null&&o!==void 0?o:!1,labelDate:d}},t.isMonthDisabled=function(n){var o=t.isMonthDisabledForLabelDate(n).isDisabled;return o},t.getMonthClassNames=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.preSelection,l=o.monthClassName,u=l?l(w.setMonth(i,n)):void 0,d=t.getSelection();return be("react-datepicker__month-text","react-datepicker__month-".concat(n),u,{"react-datepicker__month-text--disabled":t.isMonthDisabled(n),"react-datepicker__month-text--selected":d?t.isSelectMonthInList(i,n,d):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&c&&t.isSelectedMonth(i,n,c)&&!t.isMonthSelected()&&!t.isMonthDisabled(n),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(n),"react-datepicker__month-text--in-range":a&&s?Ei(a,s,n,i):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(n),"react-datepicker__month-text--range-end":t.isRangeEndMonth(n),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(n),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(n),"react-datepicker__month-text--today":t.isCurrentMonth(i,n)})},t.getTabIndex=function(n){if(t.props.preSelection==null)return"-1";var o=w.getMonth(t.props.preSelection),i=t.isMonthDisabledForLabelDate(o).isDisabled,a=n===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getQuarterTabIndex=function(n){if(t.props.preSelection==null)return"-1";var o=w.getQuarter(t.props.preSelection),i=ki(t.props.day,t.props),a=n===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getAriaLabel=function(n){var o=t.props,i=o.chooseDayAriaLabelPrefix,a=i===void 0?"Choose":i,s=o.disabledDayAriaLabelPrefix,c=s===void 0?"Not available":s,l=o.day,u=o.locale,d=w.setMonth(l,n),f=t.isDisabled(d)||t.isExcluded(d)?c:a;return"".concat(f," ").concat(Ue(d,"MMMM yyyy",u))},t.getQuarterClassNames=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.selected,l=o.minDate,u=o.maxDate,d=o.excludeDates,f=o.includeDates,m=o.filterDate,g=o.preSelection,p=o.disabledKeyboardNavigation,y=(l||u||d||f||m)&&ki(w.setQuarter(i,n),t.props);return be("react-datepicker__quarter-text","react-datepicker__quarter-".concat(n),{"react-datepicker__quarter-text--disabled":y,"react-datepicker__quarter-text--selected":c?t.isSelectedQuarter(i,n,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!p&&g&&t.isSelectedQuarter(i,n,g)&&!y,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(n),"react-datepicker__quarter-text--in-range":a&&s?Oi(a,s,n,i):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(n),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(n),"react-datepicker__quarter-text--today":t.isCurrentQuarter(i,n)})},t.getMonthContent=function(n){var o=t.props,i=o.showFullMonthYearPicker,a=o.renderMonthContent,s=o.locale,c=o.day,l=Au(n,s),u=ds(n,s);return a?a(n,l,u,c):i?u:l},t.getQuarterContent=function(n){var o,i=t.props,a=i.renderQuarterContent,s=i.locale,c=uy(n,s);return(o=a?.(n,c))!==null&&o!==void 0?o:c},t.renderMonths=function(){var n,o=t.props,i=o.showTwoColumnMonthYearPicker,a=o.showFourColumnMonthYearPicker,s=o.day,c=o.selected,l=(n=hs[qu(a,i)])===null||n===void 0?void 0:n.grid;return l?.map(function(u,d){return x.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,m){return x.createElement("div",{ref:t.MONTH_REFS[f],key:m,onClick:function(g){t.onMonthClick(g,f)},onKeyDown:function(g){Zu(g)&&(g.preventDefault(),g.key=oe.Enter),t.onMonthKeyDown(g,f)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(f)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(f)}:void 0,tabIndex:Number(t.getTabIndex(f)),className:t.getMonthClassNames(f),"aria-disabled":t.isMonthDisabled(f),role:"option","aria-label":t.getAriaLabel(f),"aria-current":t.isCurrentMonth(s,f)?"date":void 0,"aria-selected":c?t.isSelectedMonth(s,f,c):void 0},t.getMonthContent(f))}))})},t.renderQuarters=function(){var n=t.props,o=n.day,i=n.selected,a=[1,2,3,4];return x.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(s,c){return x.createElement("div",{key:c,ref:t.QUARTER_REFS[c],role:"option",onClick:function(l){t.onQuarterClick(l,s)},onKeyDown:function(l){t.onQuarterKeyDown(l,s)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(s)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(s)}:void 0,className:t.getQuarterClassNames(s),"aria-selected":i?t.isSelectedQuarter(o,s,i):void 0,tabIndex:Number(t.getQuarterTabIndex(s)),"aria-current":t.isCurrentQuarter(o,s)?"date":void 0},t.getQuarterContent(s))}))},t.getClassNames=function(){var n=t.props,o=n.selectingDate,i=n.selectsStart,a=n.selectsEnd,s=n.showMonthYearPicker,c=n.showQuarterYearPicker,l=n.showWeekPicker;return be("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(i||a)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},t}return r.prototype.getSelection=function(){var t=this.props,n=t.selected,o=t.selectedDates,i=t.selectsMultiple;if(i)return o;if(n)return[n]},r.prototype.render=function(){var t=this.props,n=t.showMonthYearPicker,o=t.showQuarterYearPicker,i=t.day,a=t.ariaLabelPrefix,s=a===void 0?"Month ":a,c=s?s.trim()+" ":"",l=n||o;return l?x.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ue(i,"MMMM, yyyy",this.props.locale)),role:"listbox"},n?this.renderMonths():this.renderQuarters()):x.createElement("div",{role:"table"},this.props.dayNamesHeader&&x.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),x.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ue(i,"MMMM, yyyy",this.props.locale)),role:"rowgroup"},this.renderWeeks()))},r})(x.Component),Dy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(n){return t.props.month===n},t.handleOptionKeyDown=function(n,o){var i;switch(o.key){case"Enter":o.preventDefault(),t.onChange(n);break;case"Escape":o.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":{o.preventDefault();var a=(n+(o.key==="ArrowUp"?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;(i=t.monthOptionButtonsRef[a])===null||i===void 0||i.focus();break}}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map(function(n,o){return x.createElement("div",{ref:function(i){t.monthOptionButtonsRef[o]=i,t.isSelectedMonth(o)&&i?.focus()},role:"button",tabIndex:0,className:t.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:n,onClick:t.onChange.bind(t,o),onKeyDown:t.handleOptionKeyDown.bind(t,o),"aria-selected":t.isSelectedMonth(o)?"true":void 0},t.isSelectedMonth(o)?x.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",n)})},t.onChange=function(n){return t.props.onChange(n)},t.handleClickOutside=function(){return t.props.onCancel()},t}return r.prototype.render=function(){return x.createElement(_i,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),Ty=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(n){return n.map(function(o,i){return x.createElement("option",{key:o,value:i},o)})},t.renderSelectMode=function(n){return x.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(o){return t.onChange(parseInt(o.target.value))}},t.renderSelectOptions(n))},t.renderReadView=function(n,o){return x.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[t.props.month]))},t.renderDropdown=function(n){return x.createElement(Dy,_e({key:"dropdown"},t.props,{monthNames:n,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(n){var o=t.state.dropdownVisible,i=[t.renderReadView(!o,n)];return o&&i.unshift(t.renderDropdown(n)),i},t.onChange=function(n){t.toggleDropdown(),n!==t.props.month&&t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return r.prototype.render=function(){var t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(i){return Au(i,t.props.locale)}:function(i){return ds(i,t.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(n);break;case"select":o=this.renderSelectMode(n);break}return x.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},r})(x.Component);function Oy(e,r){for(var t=[],n=br(e),o=br(r);!w.isAfter(n,o);)t.push(Ie(n)),n=w.addMonths(n,1);return t}var My=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(o){var i=w.getTime(o),a=pr(n.props.date,o)&&yt(n.props.date,o);return x.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:i,onClick:n.onChange.bind(n,i),"aria-selected":a?"true":void 0},a?x.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Ue(o,n.props.dateFormat,n.props.locale))})},n.onChange=function(o){return n.props.onChange(o)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:Oy(n.props.minDate,n.props.maxDate)},n}return r.prototype.render=function(){var t=be({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return x.createElement(_i,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),Py=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=br(t.props.minDate),o=br(t.props.maxDate),i=[];!w.isAfter(n,o);){var a=w.getTime(n);i.push(x.createElement("option",{key:a,value:a},Ue(n,t.props.dateFormat,t.props.locale))),n=w.addMonths(n,1)}return i},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return x.createElement("select",{value:w.getTime(br(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){var o=Ue(t.props.date,t.props.dateFormat,t.props.locale);return x.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},t.renderDropdown=function(){return x.createElement(My,_e({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,o=[t.renderReadView(!n)];return n&&o.unshift(t.renderDropdown()),o},t.onChange=function(n){t.toggleDropdown();var o=Ie(n);pr(t.props.date,o)&&yt(t.props.date,o)||t.props.onChange(o)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return r.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return x.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},r})(x.Component),Ay=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var n,o,i;t.list&&(t.list.scrollTop=(i=t.centerLi&&r.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((o=(n=t.header)===null||n===void 0?void 0:n.clientHeight)!==null&&o!==void 0?o:0):t.list.clientHeight,t.centerLi))!==null&&i!==void 0?i:0)})},t.handleClick=function(n){var o,i;(t.props.minTime||t.props.maxTime)&&$u(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&Nu(n,t.props)||(i=(o=t.props).onChange)===null||i===void 0||i.call(o,n)},t.isSelectedTime=function(n){return t.props.selected&&wy(t.props.selected,n)},t.isDisabledTime=function(n){return(t.props.minTime||t.props.maxTime)&&$u(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&Nu(n,t.props)},t.liClasses=function(n){var o,i=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(n):void 0];return t.isSelectedTime(n)&&i.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(n)&&i.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(w.getHours(n)*3600+w.getMinutes(n)*60+w.getSeconds(n))%(((o=t.props.intervals)!==null&&o!==void 0?o:r.defaultProps.intervals)*60)!==0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},t.handleOnKeyDown=function(n,o){var i,a;n.key===oe.Space&&(n.preventDefault(),n.key=oe.Enter),(n.key===oe.ArrowUp||n.key===oe.ArrowLeft)&&n.target instanceof HTMLElement&&n.target.previousSibling&&(n.preventDefault(),n.target.previousSibling instanceof HTMLElement&&n.target.previousSibling.focus()),(n.key===oe.ArrowDown||n.key===oe.ArrowRight)&&n.target instanceof HTMLElement&&n.target.nextSibling&&(n.preventDefault(),n.target.nextSibling instanceof HTMLElement&&n.target.nextSibling.focus()),n.key===oe.Enter&&t.handleClick(o),(a=(i=t.props).handleOnKeyDown)===null||a===void 0||a.call(i,n)},t.renderTimes=function(){for(var n,o=[],i=typeof t.props.format=="string"?t.props.format:"p",a=(n=t.props.intervals)!==null&&n!==void 0?n:r.defaultProps.intervals,s=t.props.selected||t.props.openToDate||Ie(),c=Si(s),l=t.props.injectTimes&&t.props.injectTimes.sort(function(y,S){return y.getTime()-S.getTime()}),u=60*by(s),d=u/a,f=0;f<d;f++){var m=w.addMinutes(c,f*a);if(o.push(m),l){var g=yy(c,m,f,a,l);o=o.concat(g)}}var p=o.reduce(function(y,S){return S.getTime()<=s.getTime()?S:y},o[0]);return o.map(function(y){return x.createElement("li",{key:y.valueOf(),onClick:t.handleClick.bind(t,y),className:t.liClasses(y),ref:function(S){y===p&&(t.centerLi=S)},onKeyDown:function(S){t.handleOnKeyDown(S,y)},tabIndex:y===p?0:-1,role:"option","aria-selected":t.isSelectedTime(y)?"true":void 0,"aria-disabled":t.isDisabledTime(y)?"true":void 0},Ue(y,i,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?x.createElement(x.Fragment,null):x.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(n){t.header=n}},x.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},r.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},r.prototype.observeDatePickerHeightChanges=function(){var t=this,n=this.props.monthRef;this.updateContainerHeight(),n&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(n))},r.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},r.prototype.render=function(){var t=this,n,o=this.state.height;return x.createElement("div",{className:"react-datepicker__time-container ".concat(((n=this.props.todayButton)!==null&&n!==void 0?n:r.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),x.createElement("div",{className:"react-datepicker__time"},x.createElement("div",{className:"react-datepicker__time-box"},x.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){t.list=i},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},r.calcCenterPosition=function(t,n){return n.offsetTop-(t/2-n.clientHeight/2)},r})(x.Component),Ku=3,Iy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.YEAR_REFS=fr([],Array(n.props.yearItemNumber),!0).map(function(){return x.createRef()}),n.isDisabled=function(o){return Yt(o,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(o){return fs(o,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var o;return(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection},n.updateFocusOnPaginate=function(o){var i=function(){var a,s;(s=(a=n.YEAR_REFS[o])===null||a===void 0?void 0:a.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(i)},n.handleYearClick=function(o,i){n.props.onDayClick&&n.props.onDayClick(o,i)},n.handleYearNavigation=function(o,i){var a,s,c,l,u=n.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var m=wr(d,f).startPeriod;n.isDisabled(i)||n.isExcluded(i)||((s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,i),o-m<0?n.updateFocusOnPaginate(f-(m-o)):o-m>=f?n.updateFocusOnPaginate(Math.abs(f-(o-m))):(l=(c=n.YEAR_REFS[o-m])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},n.isSameDay=function(o,i){return xe(o,i)},n.isCurrentYear=function(o){return o===w.getYear(Ie())},n.isRangeStart=function(o){return n.props.startDate&&n.props.endDate&&pr(w.setYear(Ie(),o),n.props.startDate)},n.isRangeEnd=function(o){return n.props.startDate&&n.props.endDate&&pr(w.setYear(Ie(),o),n.props.endDate)},n.isInRange=function(o){return Di(o,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(o){var i=n.props,a=i.selectsStart,s=i.selectsEnd,c=i.selectsRange,l=i.startDate,u=i.endDate;return!(a||s||c)||!n.selectingDate()?!1:a&&u?Di(o,n.selectingDate(),u):s&&l||c&&l&&!u?Di(o,l,n.selectingDate()):!1},n.isSelectingRangeStart=function(o){var i;if(!n.isInSelectingRange(o))return!1;var a=n.props,s=a.startDate,c=a.selectsStart,l=w.setYear(Ie(),o);return c?pr(l,(i=n.selectingDate())!==null&&i!==void 0?i:null):pr(l,s??null)},n.isSelectingRangeEnd=function(o){var i;if(!n.isInSelectingRange(o))return!1;var a=n.props,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=w.setYear(Ie(),o);return c||l?pr(u,(i=n.selectingDate())!==null&&i!==void 0?i:null):pr(u,s??null)},n.isKeyboardSelected=function(o){if(!(n.props.disabledKeyboardNavigation||n.props.date===void 0||n.props.preSelection==null)){var i=n.props,a=i.minDate,s=i.maxDate,c=i.excludeDates,l=i.includeDates,u=i.filterDate,d=i.selected,f=io(w.setYear(n.props.date,o)),m=(a||s||c||l||u)&&Ti(o,n.props),g=!!d&&xe(f,io(d)),p=xe(f,io(n.props.preSelection));return!n.props.inline&&!g&&p&&!m}},n.isSelectedYear=function(o){var i=n.props,a=i.selectsMultiple,s=i.selected,c=i.selectedDates;return a?c?.some(function(l){return o===w.getYear(l)}):!!s&&o===w.getYear(s)},n.onYearClick=function(o,i){var a=n.props.date;a!==void 0&&n.handleYearClick(io(w.setYear(a,i)),o)},n.onYearKeyDown=function(o,i){var a,s,c=o.key,l=n.props,u=l.date,d=l.yearItemNumber,f=l.handleOnKeyDown;if(c!==oe.Tab&&o.preventDefault(),!n.props.disabledKeyboardNavigation)switch(c){case oe.Enter:if(n.props.selected==null)break;n.onYearClick(o,i),(s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,n.props.selected);break;case oe.ArrowRight:if(n.props.preSelection==null)break;n.handleYearNavigation(i+1,w.addYears(n.props.preSelection,1));break;case oe.ArrowLeft:if(n.props.preSelection==null)break;n.handleYearNavigation(i-1,w.subYears(n.props.preSelection,1));break;case oe.ArrowUp:{if(u===void 0||d===void 0||n.props.preSelection==null)break;var m=wr(u,d).startPeriod,g=Ku,p=i-g;if(p<m){var y=d%g;i>=m&&i<m+y?g=y:g+=y,p=i-g}n.handleYearNavigation(p,w.subYears(n.props.preSelection,g));break}case oe.ArrowDown:{if(u===void 0||d===void 0||n.props.preSelection==null)break;var S=wr(u,d).endPeriod,g=Ku,p=i+g;if(p>S){var y=d%g;i<=S&&i>S-y?g=y:g+=y,p=i+g}n.handleYearNavigation(p,w.addYears(n.props.preSelection,g));break}}f&&f(o)},n.getYearClassNames=function(o){var i=n.props,a=i.date,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=i.filterDate,f=i.yearClassName;return be("react-datepicker__year-text","react-datepicker__year-".concat(o),a?f?.(w.setYear(a,o)):void 0,{"react-datepicker__year-text--selected":n.isSelectedYear(o),"react-datepicker__year-text--disabled":(s||c||l||u||d)&&Ti(o,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(o),"react-datepicker__year-text--range-start":n.isRangeStart(o),"react-datepicker__year-text--range-end":n.isRangeEnd(o),"react-datepicker__year-text--in-range":n.isInRange(o),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(o),"react-datepicker__year-text--today":n.isCurrentYear(o)})},n.getYearTabIndex=function(o){if(n.props.disabledKeyboardNavigation||n.props.preSelection==null)return"-1";var i=w.getYear(n.props.preSelection),a=Ti(o,n.props);return o===i&&!a?"0":"-1"},n.getYearContent=function(o){return n.props.renderYearContent?n.props.renderYearContent(o):o},n}return r.prototype.render=function(){var t=this,n=[],o=this.props,i=o.date,a=o.yearItemNumber,s=o.onYearMouseEnter,c=o.onYearMouseLeave;if(i===void 0)return null;for(var l=wr(i,a),u=l.startPeriod,d=l.endPeriod,f=function(p){n.push(x.createElement("div",{ref:m.YEAR_REFS[p-u],onClick:function(y){t.onYearClick(y,p)},onKeyDown:function(y){Zu(y)&&(y.preventDefault(),y.key=oe.Enter),t.onYearKeyDown(y,p)},tabIndex:Number(m.getYearTabIndex(p)),className:m.getYearClassNames(p),onMouseEnter:m.props.usePointerEvent?void 0:function(y){return s(y,p)},onPointerEnter:m.props.usePointerEvent?function(y){return s(y,p)}:void 0,onMouseLeave:m.props.usePointerEvent?void 0:function(y){return c(y,p)},onPointerLeave:m.props.usePointerEvent?function(y){return c(y,p)}:void 0,key:p,"aria-current":m.isCurrentYear(p)?"date":void 0},m.getYearContent(p)))},m=this,g=u;g<=d;g++)f(g);return x.createElement("div",{className:"react-datepicker__year"},x.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},n))},r})(x.Component);function Ry(e,r,t,n){for(var o=[],i=0;i<2*r+1;i++){var a=e+r-i,s=!0;t&&(s=w.getYear(t)<=a),n&&s&&(s=w.getYear(n)>=a),s&&o.push(a)}return o}var Ny=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;n.yearOptionButtonsRef={},n.handleOptionKeyDown=function(s,c){var l;switch(c.key){case"Enter":c.preventDefault(),n.onChange(s);break;case"Escape":c.preventDefault(),n.props.onCancel();break;case"ArrowUp":case"ArrowDown":{c.preventDefault();var u=s+(c.key==="ArrowUp"?1:-1);n.yearOptionButtonsRef[u]&&((l=n.yearOptionButtonsRef[u])===null||l===void 0||l.focus());break}}},n.renderOptions=function(){n.yearOptionButtonsRef={};var s=n.props.year,c=n.state.yearsList.map(function(d){return x.createElement("div",{ref:function(f){n.yearOptionButtonsRef[d]=f,d===s&&f?.focus()},role:"button",tabIndex:0,className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:n.onChange.bind(n,d),onKeyDown:n.handleOptionKeyDown.bind(n,d),"aria-selected":s===d?"true":void 0},s===d?x.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=n.props.minDate?w.getYear(n.props.minDate):null,u=n.props.maxDate?w.getYear(n.props.maxDate):null;return(!u||!n.state.yearsList.find(function(d){return d===u}))&&c.unshift(x.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},x.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!n.state.yearsList.find(function(d){return d===l}))&&c.push(x.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},x.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},n.onChange=function(s){n.props.onChange(s)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(s){var c=n.state.yearsList.map(function(l){return l+s});n.setState({yearsList:c})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var o=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,a=o||(i?10:5);return n.state={yearsList:Ry(n.props.year,a,n.props.minDate,n.props.maxDate)},n.dropdownRef=x.createRef(),n}return r.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var n=t.children?Array.from(t.children):null,o=n?n.find(function(i){return i.ariaSelected}):null;t.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},r.prototype.render=function(){var t=be({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return x.createElement(_i,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),$y=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=t.props.minDate?w.getYear(t.props.minDate):1900,o=t.props.maxDate?w.getYear(t.props.maxDate):2100,i=[],a=n;a<=o;a++)i.push(x.createElement("option",{key:a,value:a},a));return i},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return x.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){return x.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return x.createElement(Ny,_e({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,o=[t.renderReadView(!n)];return n&&o.unshift(t.renderDropdown()),o},t.onChange=function(n){t.toggleDropdown(),n!==t.props.year&&t.props.onChange(n)},t.toggleDropdown=function(n){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,n)})},t.handleYearChange=function(n,o){var i;(i=t.onSelect)===null||i===void 0||i.call(t,n,o),t.setOpen()},t.onSelect=function(n,o){var i,a;(a=(i=t.props).onSelect)===null||a===void 0||a.call(i,n,o)},t.setOpen=function(){var n,o;(o=(n=t.props).setOpen)===null||o===void 0||o.call(n,!0)},t}return r.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return x.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},r})(x.Component),jy=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Gu="react-datepicker-ignore-onclickoutside",Ly=function(e){var r=(e.className||"").split(/\s+/);return jy.some(function(t){return r.indexOf(t)>=0})},zy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.monthContainer=void 0,n.handleClickOutside=function(o){n.props.onClickOutside(o)},n.setClickOutsideRef=function(){return n.containerRef.current},n.handleDropdownFocus=function(o){var i,a;Ly(o.target)&&((a=(i=n.props).onDropdownFocus)===null||a===void 0||a.call(i,o))},n.getDateInView=function(){var o=n.props,i=o.preSelection,a=o.selected,s=o.openToDate,c=Vu(n.props),l=Fu(n.props),u=Ie(),d=s||a||i;return d||(c&&w.isBefore(u,c)?c:l&&w.isAfter(u,l)?l:u)},n.increaseMonth=function(){n.setState(function(o){var i=o.date;return{date:w.addMonths(i,1)}},function(){return n.handleMonthChange(n.state.date)})},n.decreaseMonth=function(){n.setState(function(o){var i=o.date;return{date:w.subMonths(i,1)}},function(){return n.handleMonthChange(n.state.date)})},n.handleDayClick=function(o,i,a){n.props.onSelect(o,i,a),n.props.setPreSelection&&n.props.setPreSelection(o)},n.handleDayMouseEnter=function(o){n.setState({selectingDate:o}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(o)},n.handleMonthMouseLeave=function(){n.setState({selectingDate:void 0}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()},n.handleYearMouseEnter=function(o,i){n.setState({selectingDate:w.setYear(Ie(),i)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(o,i)},n.handleYearMouseLeave=function(o,i){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(o,i)},n.handleYearChange=function(o){var i,a,s,c;(a=(i=n.props).onYearChange)===null||a===void 0||a.call(i,o),n.setState({isRenderAriaLiveMessage:!0}),n.props.adjustDateOnChange&&(n.props.onSelect(o),(c=(s=n.props).setOpen)===null||c===void 0||c.call(s,!0)),n.props.setPreSelection&&n.props.setPreSelection(o)},n.getEnabledPreSelectionDateForMonth=function(o){if(!Yt(o,n.props))return o;for(var i=br(o),a=ay(o),s=w.differenceInDays(a,i),c=null,l=0;l<=s;l++){var u=w.addDays(i,l);if(!Yt(u,n.props)){c=u;break}}return c},n.handleMonthChange=function(o){var i,a,s,c=(i=n.getEnabledPreSelectionDateForMonth(o))!==null&&i!==void 0?i:o;n.handleCustomMonthChange(c),n.props.adjustDateOnChange&&(n.props.onSelect(c),(s=(a=n.props).setOpen)===null||s===void 0||s.call(a,!0)),n.props.setPreSelection&&n.props.setPreSelection(c)},n.handleCustomMonthChange=function(o){var i,a;(a=(i=n.props).onMonthChange)===null||a===void 0||a.call(i,o),n.setState({isRenderAriaLiveMessage:!0})},n.handleMonthYearChange=function(o){n.handleYearChange(o),n.handleMonthChange(o)},n.changeYear=function(o){n.setState(function(i){var a=i.date;return{date:w.setYear(a,Number(o))}},function(){return n.handleYearChange(n.state.date)})},n.changeMonth=function(o){n.setState(function(i){var a=i.date;return{date:w.setMonth(a,Number(o))}},function(){return n.handleMonthChange(n.state.date)})},n.changeMonthYear=function(o){n.setState(function(i){var a=i.date;return{date:w.setYear(w.setMonth(a,w.getMonth(o)),w.getYear(o))}},function(){return n.handleMonthYearChange(n.state.date)})},n.header=function(o){o===void 0&&(o=n.state.date);var i=Rr(o,n.props.locale,n.props.calendarStartDay),a=[];return n.props.showWeekNumbers&&a.push(x.createElement("div",{key:"W",className:"react-datepicker__day-name",role:"columnheader"},x.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),x.createElement("span",{"aria-hidden":"true"},n.props.weekLabel||"#"))),a.concat([0,1,2,3,4,5,6].map(function(s){var c=w.addDays(i,s),l=n.formatWeekday(c,n.props.locale),u=n.props.weekDayClassName?n.props.weekDayClassName(c):void 0;return x.createElement("div",{key:s,role:"columnheader",className:be("react-datepicker__day-name",u)},x.createElement("span",{className:"react-datepicker__sr-only"},Ue(c,"EEEE",n.props.locale)),x.createElement("span",{"aria-hidden":"true"},l))}))},n.formatWeekday=function(o,i){return n.props.formatWeekDay?sy(o,n.props.formatWeekDay,i):n.props.useWeekdaysShort?ly(o,i):cy(o,i)},n.decreaseYear=function(){n.setState(function(o){var i,a=o.date;return{date:w.subYears(a,n.props.showYearPicker?(i=n.props.yearItemNumber)!==null&&i!==void 0?i:r.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.clearSelectingDate=function(){n.setState({selectingDate:void 0})},n.renderPreviousButton=function(){var o,i,a;if(!n.props.renderCustomHeader){var s=(o=n.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=n.props.showPreviousMonths?s-1:0,l=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:c,u=w.subMonths(n.state.date,l),d;switch(!0){case n.props.showMonthYearPicker:d=zu(n.state.date,n.props);break;case n.props.showYearPicker:d=hy(n.state.date,n.props);break;case n.props.showQuarterYearPicker:d=fy(n.state.date,n.props);break;default:d=ju(u,n.props);break}if(!(!((a=n.props.forceShowMonthNavigation)!==null&&a!==void 0?a:r.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&d||n.props.showTimeSelectOnly)){var f=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],m=["react-datepicker__navigation","react-datepicker__navigation--previous"],g=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(g=n.decreaseYear),d&&n.props.showDisabledMonthNavigation&&(m.push("react-datepicker__navigation--previous--disabled"),g=void 0);var p=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,y=n.props,S=y.previousMonthButtonLabel,C=S===void 0?r.defaultProps.previousMonthButtonLabel:S,k=y.previousYearButtonLabel,E=k===void 0?r.defaultProps.previousYearButtonLabel:k,_=n.props,O=_.previousMonthAriaLabel,R=O===void 0?typeof C=="string"?C:"Previous Month":O,q=_.previousYearAriaLabel,Z=q===void 0?typeof E=="string"?E:"Previous Year":q;return x.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:n.props.handleOnKeyDown,"aria-label":p?Z:R},x.createElement("span",{className:f.join(" ")},p?E:C))}}},n.increaseYear=function(){n.setState(function(o){var i,a=o.date;return{date:w.addYears(a,n.props.showYearPicker?(i=n.props.yearItemNumber)!==null&&i!==void 0?i:r.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.renderNextButton=function(){var o;if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=Bu(n.state.date,n.props);break;case n.props.showYearPicker:i=my(n.state.date,n.props);break;case n.props.showQuarterYearPicker:i=py(n.state.date,n.props);break;default:i=Lu(n.state.date,n.props);break}if(!(!((o=n.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&i||n.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];n.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var c=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(c=n.increaseYear),i&&n.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,u=n.props,d=u.nextMonthButtonLabel,f=d===void 0?r.defaultProps.nextMonthButtonLabel:d,m=u.nextYearButtonLabel,g=m===void 0?r.defaultProps.nextYearButtonLabel:m,p=n.props,y=p.nextMonthAriaLabel,S=y===void 0?typeof f=="string"?f:"Next Month":y,C=p.nextYearAriaLabel,k=C===void 0?typeof g=="string"?g:"Next Year":C;return x.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:n.props.handleOnKeyDown,"aria-label":l?k:S},x.createElement("span",{className:s.join(" ")},l?g:f))}}},n.renderCurrentMonth=function(o){o===void 0&&(o=n.state.date);var i=["react-datepicker__current-month"];return n.props.showYearDropdown&&i.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&i.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&i.push("react-datepicker__current-month--hasMonthYearDropdown"),x.createElement("h2",{className:i.join(" ")},Ue(o,n.props.dateFormat,n.props.locale))},n.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showYearDropdown||o))return x.createElement($y,_e({},r.defaultProps,n.props,{date:n.state.date,onChange:n.changeYear,year:w.getYear(n.state.date)}))},n.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showMonthDropdown||o))return x.createElement(Ty,_e({},r.defaultProps,n.props,{month:w.getMonth(n.state.date),onChange:n.changeMonth}))},n.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showMonthYearDropdown||o))return x.createElement(Py,_e({},r.defaultProps,n.props,{date:n.state.date,onChange:n.changeMonthYear}))},n.handleTodayButtonClick=function(o){n.props.onSelect(Mu(),o),n.props.setPreSelection&&n.props.setPreSelection(Mu())},n.renderTodayButton=function(){if(!(!n.props.todayButton||n.props.showTimeSelectOnly))return x.createElement("div",{className:"react-datepicker__today-button",onClick:n.handleTodayButtonClick},n.props.todayButton)},n.renderDayNamesHeader=function(o){return x.createElement("div",{className:"react-datepicker__day-names",role:"row"},n.header(o))},n.renderDefaultHeader=function(o){var i=o.monthDate,a=o.i;return x.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(i),x.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(a!==0),n.renderMonthYearDropdown(a!==0),n.renderYearDropdown(a!==0)))},n.renderCustomHeader=function(o){var i,a,s=o.monthDate,c=o.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var l=n.props,u=l.showYearPicker,d=l.yearItemNumber,f;if(u){var m=wr(s,d),g=m.startPeriod,p=m.endPeriod;f={startYear:g,endYear:p}}var y=ju(n.state.date,n.props),S=Lu(n.state.date,n.props),C=zu(n.state.date,n.props),k=Bu(n.state.date,n.props);return x.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},(a=(i=n.props).renderCustomHeader)===null||a===void 0?void 0:a.call(i,_e(_e(_e({},n.state),u&&{visibleYearsRange:f}),{customHeaderCount:c,monthDate:s,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:y,nextMonthButtonDisabled:S,prevYearButtonDisabled:C,nextYearButtonDisabled:k})))},n.renderYearHeader=function(o){var i=o.monthDate,a=n.props,s=a.showYearPicker,c=a.yearItemNumber,l=c===void 0?r.defaultProps.yearItemNumber:c,u=wr(i,l),d=u.startPeriod,f=u.endPeriod;return x.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(f):w.getYear(i))},n.renderHeader=function(o){var i=o.monthDate,a=o.i,s=a===void 0?0:a,c={monthDate:i,i:s};switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(c);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(c);default:return n.renderDefaultHeader(c)}},n.renderMonths=function(){var o,i;if(!(n.props.showTimeSelectOnly||n.props.showYearPicker)){for(var a=[],s=(o=n.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=n.props.showPreviousMonths?s-1:0,l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?w.addYears(n.state.date,c):w.subMonths(n.state.date,c),u=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:c,d=0;d<s;++d){var f=d-u+c,m=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?w.addYears(l,f):w.addMonths(l,f),g="month-".concat(d),p=d<s-1,y=d>0;a.push(x.createElement("div",{key:g,ref:function(S){n.monthContainer=S??void 0},className:"react-datepicker__month-container"},n.renderHeader({monthDate:m,i:d}),x.createElement(ky,_e({},r.defaultProps,n.props,{containerRef:n.containerRef,ariaLabelPrefix:n.props.monthAriaLabelPrefix,day:m,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,handleOnMonthKeyDown:n.props.handleOnKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,orderInDisplay:d,selectingDate:n.state.selectingDate,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:y,dayNamesHeader:n.renderDayNamesHeader(m)}))))}return a}},n.renderYears=function(){if(!n.props.showTimeSelectOnly&&n.props.showYearPicker)return x.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader({monthDate:n.state.date}),x.createElement(Iy,_e({},r.defaultProps,n.props,{selectingDate:n.state.selectingDate,date:n.state.date,onDayClick:n.handleDayClick,clearSelectingDate:n.clearSelectingDate,onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave})))},n.renderTimeSection=function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return x.createElement(Ay,_e({},r.defaultProps,n.props,{onChange:n.props.onTimeChange,format:n.props.timeFormat,intervals:n.props.timeIntervals,monthRef:n.state.monthContainer}))},n.renderInputTimeSection=function(){var o=n.props.selected?new Date(n.props.selected):void 0,i=o&&xi(o)&&!!n.props.selected,a=i?"".concat(Uu(o.getHours()),":").concat(Uu(o.getMinutes())):"";if(n.props.showTimeInput)return x.createElement(_y,_e({},r.defaultProps,n.props,{date:o,timeString:a,onChange:n.props.onTimeChange}))},n.renderAriaLiveRegion=function(){var o,i=wr(n.state.date,(o=n.props.yearItemNumber)!==null&&o!==void 0?o:r.defaultProps.yearItemNumber),a=i.startPeriod,s=i.endPeriod,c;return n.props.showYearPicker?c="".concat(a," - ").concat(s):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?c=w.getYear(n.state.date):c="".concat(ds(w.getMonth(n.state.date),n.props.locale)," ").concat(w.getYear(n.state.date)),x.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&c)},n.renderChildren=function(){if(n.props.children)return x.createElement("div",{className:"react-datepicker__children-container"},n.props.children)},n.containerRef=x.createRef(),n.state={date:n.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},n}return Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:Gu,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:oo}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){t.setState({monthContainer:t.monthContainer})})())},r.prototype.componentDidUpdate=function(t){var n=this;if(this.props.preSelection&&(!xe(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var o=!yt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&n.handleCustomMonthChange(n.state.date)})}else this.props.openToDate&&!xe(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},r.prototype.render=function(){var t=this.props.container||Jv;return x.createElement(_i,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},x.createElement("div",{style:{display:"contents"},ref:this.containerRef},x.createElement(t,{className:be("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},r})(x.Component),By=function(e){var r=e.icon,t=e.className,n=t===void 0?"":t,o=e.onClick,i="react-datepicker__calendar-icon";if(typeof r=="string")return x.createElement("i",{className:"".concat(i," ").concat(r," ").concat(n),"aria-hidden":"true",onClick:o});if(x.isValidElement(r)){var a=r;return x.cloneElement(a,{className:"".concat(a.props.className||""," ").concat(i," ").concat(n),onClick:function(s){typeof a.props.onClick=="function"&&a.props.onClick(s),typeof o=="function"&&o(s)}})}return x.createElement("svg",{className:"".concat(i," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},x.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Qu=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return r.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},r.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},r.prototype.render=function(){return ln.createPortal(this.props.children,this.el)},r})(x.Component),Vy="[tabindex], a, button, input, select, textarea",Fy=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},Xu=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.getTabChildren=function(){var o;return Array.prototype.slice.call((o=n.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(Vy),1,-1).filter(Fy)},n.handleFocusStart=function(){var o=n.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},n.handleFocusEnd=function(){var o=n.getTabChildren();o&&o.length>1&&o[0].focus()},n.tabLoopRef=x.createRef(),n}return r.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:r.defaultProps.enableTabLoop)?x.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},x.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,x.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},r.defaultProps={enableTabLoop:!0},r})(x.Component);function Yy(e){function r(t){var n,o=typeof t.hidePopper=="boolean"?t.hidePopper:!0,i=x.useRef(null),a=Xv(_e({open:!o,whileElementsMounted:Ov,placement:t.popperPlacement,middleware:fr([Lv({padding:15}),jv(10),zv({element:i})],(n=t.popperModifiers)!==null&&n!==void 0?n:[],!0)},t.popperProps)),s=_e(_e({},t),{hidePopper:o,popperProps:_e(_e({},a),{arrowRef:i})});return x.createElement(e,_e({},s))}return r.displayName="withFloating(".concat(e.displayName||e.name||"Component",")"),r}var Uy=function(e){var r=e.className,t=e.wrapperClassName,n=e.hidePopper,o=n===void 0?!0:n,i=e.popperComponent,a=e.targetComponent,s=e.enableTabLoop,c=e.popperOnKeyDown,l=e.portalId,u=e.portalHost,d=e.popperProps,f=e.showArrow,m=void 0;if(!o){var g=be("react-datepicker-popper",r);m=x.createElement(Xu,{enableTabLoop:s},x.createElement("div",{ref:d.refs.setFloating,style:d.floatingStyles,className:g,"data-placement":d.placement,onKeyDown:c},i,f&&x.createElement(Hv,{ref:d.arrowRef,context:d.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}e.popperContainer&&(m=x.createElement(e.popperContainer,{},m)),l&&!o&&(m=x.createElement(Qu,{portalId:l,portalHost:u},m));var p=be("react-datepicker-wrapper",t);return x.createElement(x.Fragment,null,x.createElement("div",{ref:d.refs.setReference,className:p},a),m)},Hy=Yy(Uy);function Wy(e,r){return e&&r?w.getMonth(e)!==w.getMonth(r)||w.getYear(e)!==w.getYear(r):e!==r}var ms="Date input not valid.",Zy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.calendar=null,n.input=null,n.getPreSelection=function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Ie()},n.modifyHolidays=function(){var o;return(o=n.props.holidays)===null||o===void 0?void 0:o.reduce(function(i,a){var s=new Date(a.date);return xi(s)?fr(fr([],i,!0),[_e(_e({},a),{date:s})],!1):i},[])},n.calcInitialState=function(){var o,i=n.getPreSelection(),a=Vu(n.props),s=Fu(n.props),c=a&&w.isBefore(i,Si(a))?a:s&&w.isAfter(i,Pu(s))?s:i;return{open:n.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=n.props.selectsRange?n.props.startDate:n.props.selected)!==null&&o!==void 0?o:c,highlightDates:Yu(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},n.getInputValue=function(){var o,i=n.props,a=i.locale,s=i.startDate,c=i.endDate,l=i.rangeSeparator,u=i.selected,d=i.selectedDates,f=i.selectsMultiple,m=i.selectsRange,g=i.value,p=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,y=n.state.inputValue;return typeof g=="string"?g:typeof y=="string"?y:m?ty(s,c,{dateFormat:p,locale:a,rangeSeparator:l}):f?ry(d??[],{dateFormat:p,locale:a}):Ft(u,{dateFormat:p,locale:a})},n.resetHiddenStatus=function(){n.setState(_e(_e({},n.state),{wasHidden:!1}))},n.setHiddenStatus=function(){n.setState(_e(_e({},n.state),{wasHidden:!0}))},n.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&n.setHiddenStatus()},n.clearPreventFocusTimeout=function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)},n.setFocus=function(){var o,i;(i=(o=n.input)===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o,{preventScroll:!0})},n.setBlur=function(){var o,i;(i=(o=n.input)===null||o===void 0?void 0:o.blur)===null||i===void 0||i.call(o),n.cancelFocusInput()},n.deferBlur=function(){requestAnimationFrame(function(){n.setBlur()})},n.setOpen=function(o,i){i===void 0&&(i=!1),n.setState({open:o,preSelection:o&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:gs},function(){o||n.setState(function(a){return{focused:i?a.focused:!1}},function(){!i&&n.deferBlur(),n.setState({inputValue:null})})})},n.inputOk=function(){return w.isDate(n.state.preSelection)},n.isCalendarOpen=function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open},n.handleFocus=function(o){var i,a,s=n.state.wasHidden,c=s?n.state.open:!0;s&&n.resetHiddenStatus(),n.state.preventFocus||((a=(i=n.props).onFocus)===null||a===void 0||a.call(i,o),c&&!n.props.preventOpenOnFocus&&!n.props.readOnly&&n.setOpen(!0)),n.setState({focused:!0})},n.sendFocusBackToInput=function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})},n.cancelFocusInput=function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=void 0},n.deferFocusInput=function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)},n.handleDropdownFocus=function(){n.cancelFocusInput()},n.resetInputValue=function(){n.setState(_e(_e({},n.state),{inputValue:null}))},n.handleBlur=function(o){var i,a;(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&((a=(i=n.props).onBlur)===null||a===void 0||a.call(i,o)),n.resetInputValue(),n.state.open&&n.props.open===!1&&n.setOpen(!1),n.setState({focused:!1})},n.handleCalendarClickOutside=function(o){var i,a;n.props.inline||n.setOpen(!1),(a=(i=n.props).onClickOutside)===null||a===void 0||a.call(i,o),n.props.withPortal&&o.preventDefault()},n.handleChange=function(){for(var o,i,a,s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var d=l[0];if(!(n.props.onChangeRaw&&(n.props.onChangeRaw.apply(n,l),!d||typeof d.isDefaultPrevented!="function"||d.isDefaultPrevented()))){n.setState({inputValue:d?.target instanceof HTMLInputElement?d.target.value:null,lastPreSelectChange:qy});var f=n.props,m=f.selectsRange,g=f.startDate,p=f.endDate,y=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,S=(i=n.props.strictParsing)!==null&&i!==void 0?i:r.defaultProps.strictParsing,C=d?.target instanceof HTMLInputElement?d.target.value:"";if(m){var k=n.props.rangeSeparator,E=k.trim(),_=C.split(y.includes(E)?k:E,2).map(function(A){return A.trim()}),O=_[0],R=_[1],q=cs(O??"",y,n.props.locale,S),Z=q?cs(R??"",y,n.props.locale,S):null,j=g?.getTime()!==q?.getTime(),K=p?.getTime()!==Z?.getTime();if(!j&&!K||q&&Yt(q,n.props)||Z&&Yt(Z,n.props))return;(s=(a=n.props).onChange)===null||s===void 0||s.call(a,[q,Z],d)}else{var v=cs(C,y,n.props.locale,S,(c=n.props.selected)!==null&&c!==void 0?c:void 0);(v||!C)&&n.setSelected(v,d,!0)}}},n.handleSelect=function(o,i,a){if(!n.props.readOnly){var s=n.props,c=s.selectsRange,l=s.startDate,u=s.endDate,d=s.swapRange,f=!c||l&&!u&&(d||!ps(o,l));n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&f&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(i),n.setSelected(o,i,!1,a),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect?n.setPreSelection(o):f&&n.setOpen(!1)}},n.setSelected=function(o,i,a,s){var c,l,u=o;if(n.props.showYearPicker){if(u!==null&&Ti(w.getYear(u),n.props))return}else if(n.props.showMonthYearPicker){if(u!==null&&Iu(u,n.props))return}else if(u!==null&&Yt(u,n.props))return;var d=n.props,f=d.onChange,m=d.selectsRange,g=d.startDate,p=d.endDate,y=d.selectsMultiple,S=d.selectedDates,C=d.minTime,k=d.swapRange;if(!Zr(n.props.selected,u)||n.props.allowSameDay||m||y)if(u!==null&&(n.props.selected&&(!a||!n.props.showTimeSelect&&!n.props.showTimeSelectOnly&&!n.props.showTimeInput)&&(u=ls(u,{hour:w.getHours(n.props.selected),minute:w.getMinutes(n.props.selected),second:w.getSeconds(n.props.selected)})),!a&&(n.props.showTimeSelect||n.props.showTimeSelectOnly)&&C&&(u=ls(u,{hour:C.getHours(),minute:C.getMinutes(),second:C.getSeconds()})),n.props.inline||n.setState({preSelection:u}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:s})),m){var E=!g&&!p,_=g&&!p,O=!g&&!!p,R=g&&p;E?f?.([u,null],i):_?u===null?f?.([null,null],i):ps(u,g)?f?.(k?[u,g]:[u,null],i):f?.([g,u],i):O&&(u&&ps(u,p)?f?.([u,p],i):f?.([u,null],i)),R&&f?.([u,null],i)}else if(y){if(u!==null)if(!S?.length)f?.([u],i);else{var q=S.some(function(j){return xe(j,u)});if(q){var Z=S.filter(function(j){return!xe(j,u)});f?.(Z,i)}else f?.(fr(fr([],S,!0),[u],!1),i)}}else f?.(u,i);a||((l=(c=n.props).onSelect)===null||l===void 0||l.call(c,u,i),n.setState({inputValue:null}))},n.setPreSelection=function(o){if(!n.props.readOnly){var i=w.isDate(n.props.minDate),a=w.isDate(n.props.maxDate),s=!0;if(o){var c=Si(o);if(i&&a)s=qr(o,n.props.minDate,n.props.maxDate);else if(i){var l=Si(n.props.minDate);s=w.isAfter(o,l)||Zr(c,l)}else if(a){var u=Pu(n.props.maxDate);s=w.isBefore(o,u)||Zr(c,u)}}s&&n.setState({preSelection:o})}},n.toggleCalendar=function(){n.setOpen(!n.state.open)},n.handleTimeChange=function(o){var i,a;if(!(n.props.selectsRange||n.props.selectsMultiple)){var s=n.props.selected?n.props.selected:n.getPreSelection(),c=n.props.selected?o:ls(s,{hour:w.getHours(o),minute:w.getMinutes(o)});n.setState({preSelection:c}),(a=(i=n.props).onChange)===null||a===void 0||a.call(i,c),n.props.shouldCloseOnSelect&&!n.props.showTimeInput&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}},n.onInputClick=function(){var o,i;!n.props.disabled&&!n.props.readOnly&&n.setOpen(!0),(i=(o=n.props).onInputClick)===null||i===void 0||i.call(o)},n.onInputKeyDown=function(o){var i,a,s,c,l,u;(a=(i=n.props).onKeyDown)===null||a===void 0||a.call(i,o);var d=o.key;if(!n.state.open&&!n.props.inline&&!n.props.preventOpenOnFocus){(d===oe.ArrowDown||d===oe.ArrowUp||d===oe.Enter)&&((s=n.onInputClick)===null||s===void 0||s.call(n));return}if(n.state.open){if(d===oe.ArrowDown||d===oe.ArrowUp){o.preventDefault();var f=n.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':n.props.showFullMonthYearPicker||n.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((c=n.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&n.calendar.containerRef.current.querySelector(f);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var g=Ie(n.state.preSelection);d===oe.Enter?(o.preventDefault(),o.target.blur(),n.inputOk()&&n.state.lastPreSelectChange===gs?(n.handleSelect(g,o),!n.props.shouldCloseOnSelect&&n.setPreSelection(g)):n.setOpen(!1)):d===oe.Escape?(o.preventDefault(),o.target.blur(),n.sendFocusBackToInput(),n.setOpen(!1)):d===oe.Tab&&n.setOpen(!1),n.inputOk()||(u=(l=n.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:ms})}},n.onPortalKeyDown=function(o){var i=o.key;i===oe.Escape&&(o.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))},n.onDayKeyDown=function(o){var i,a,s,c,l,u,d=n.props,f=d.minDate,m=d.maxDate,g=d.disabledKeyboardNavigation,p=d.showWeekPicker,y=d.shouldCloseOnSelect,S=d.locale,C=d.calendarStartDay,k=d.adjustDateOnChange,E=d.inline;if((a=(i=n.props).onKeyDown)===null||a===void 0||a.call(i,o),!g){var _=o.key,O=o.shiftKey,R=Ie(n.state.preSelection),q=function(H,W){var J=W;switch(H){case oe.ArrowRight:J=p?w.addWeeks(W,1):w.addDays(W,1);break;case oe.ArrowLeft:J=p?w.subWeeks(W,1):w.subDays(W,1);break;case oe.ArrowUp:J=w.subWeeks(W,1);break;case oe.ArrowDown:J=w.addWeeks(W,1);break;case oe.PageUp:J=O?w.subYears(W,1):w.subMonths(W,1);break;case oe.PageDown:J=O?w.addYears(W,1):w.addMonths(W,1);break;case oe.Home:J=Rr(W,S,C);break;case oe.End:J=iy(W);break}return J},Z=function(H,W){for(var J=40,V=H,Q=!1,L=0,U=q(H,W);!Q;){if(L>=J){U=W;break}f&&U<f&&(V=oe.ArrowRight,U=Yt(f,n.props)?q(V,U):f),m&&U>m&&(V=oe.ArrowLeft,U=Yt(m,n.props)?q(V,U):m),Yt(U,n.props)?((V===oe.PageUp||V===oe.Home)&&(V=oe.ArrowRight),(V===oe.PageDown||V===oe.End)&&(V=oe.ArrowLeft),U=q(V,U)):Q=!0,L++}return U};if(_===oe.Enter){o.preventDefault(),n.handleSelect(R,o),!y&&n.setPreSelection(R);return}else if(_===oe.Escape){o.preventDefault(),n.setOpen(!1),n.inputOk()||(c=(s=n.props).onInputError)===null||c===void 0||c.call(s,{code:1,msg:ms});return}var j=null;switch(_){case oe.ArrowLeft:case oe.ArrowRight:case oe.ArrowUp:case oe.ArrowDown:case oe.PageUp:case oe.PageDown:case oe.Home:case oe.End:j=Z(_,R);break}if(!j){(u=(l=n.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:ms});return}if(o.preventDefault(),n.setState({lastPreSelectChange:gs}),k&&n.setSelected(j),n.setPreSelection(j),E){var K=w.getMonth(R),v=w.getMonth(j),A=w.getYear(R),P=w.getYear(j);K!==v||A!==P?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}},n.onPopperKeyDown=function(o){var i=o.key;i===oe.Escape&&(o.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1))},n.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),n.sendFocusBackToInput();var i=n.props,a=i.selectsRange,s=i.onChange;s?.(a?[null,null]:null,o),n.setState({inputValue:null})},n.clear=function(){n.onClearClick()},n.onScroll=function(o){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(o)&&n.setOpen(!1)},n.renderCalendar=function(){var o,i;return!n.props.inline&&!n.isCalendarOpen()?null:x.createElement(zy,_e({showMonthYearDropdown:void 0,ref:function(a){n.calendar=a}},n.props,n.state,{setOpen:n.setOpen,dateFormat:(o=n.props.dateFormatCalendar)!==null&&o!==void 0?o:r.defaultProps.dateFormatCalendar,onSelect:n.handleSelect,onClickOutside:n.handleCalendarClickOutside,holidays:vy(n.modifyHolidays()),outsideClickIgnoreClass:n.props.outsideClickIgnoreClass,onDropdownFocus:n.handleDropdownFocus,onTimeChange:n.handleTimeChange,className:n.props.calendarClassName,container:n.props.calendarContainer,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,setPreSelection:n.setPreSelection,dropdownMode:(i=n.props.dropdownMode)!==null&&i!==void 0?i:r.defaultProps.dropdownMode}),n.props.children)},n.renderAriaLiveRegion=function(){var o,i=n.props.locale,a=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,s=n.props.showTimeInput||n.props.showTimeSelect,c=s?"PPPPp":"PPPP",l;return n.props.selectsRange?l="Selected start date: ".concat(Ft(n.props.startDate,{dateFormat:c,locale:i}),". ").concat(n.props.endDate?"End date: "+Ft(n.props.endDate,{dateFormat:c,locale:i}):""):n.props.showTimeSelectOnly?l="Selected time: ".concat(Ft(n.props.selected,{dateFormat:a,locale:i})):n.props.showYearPicker?l="Selected year: ".concat(Ft(n.props.selected,{dateFormat:"yyyy",locale:i})):n.props.showMonthYearPicker?l="Selected month: ".concat(Ft(n.props.selected,{dateFormat:"MMMM yyyy",locale:i})):n.props.showQuarterYearPicker?l="Selected quarter: ".concat(Ft(n.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):l="Selected date: ".concat(Ft(n.props.selected,{dateFormat:c,locale:i})),x.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},l)},n.renderDateInput=function(){var o,i,a=be(n.props.className,(o={},o[n.props.outsideClickIgnoreClass||r.defaultProps.outsideClickIgnoreClass]=n.state.open,o)),s=n.props.customInput||x.createElement("input",{type:"text"}),c=n.props.customInputRef||"ref";return x.cloneElement(s,(i={},i[c]=function(l){n.input=l},i.value=n.getInputValue(),i.onBlur=n.handleBlur,i.onChange=n.handleChange,i.onClick=n.onInputClick,i.onFocus=n.handleFocus,i.onKeyDown=n.onInputKeyDown,i.id=n.props.id,i.name=n.props.name,i.form=n.props.form,i.autoFocus=n.props.autoFocus,i.placeholder=n.props.placeholderText,i.disabled=n.props.disabled,i.autoComplete=n.props.autoComplete,i.className=be(s.props.className,a),i.title=n.props.title,i.readOnly=n.props.readOnly,i.required=n.props.required,i.tabIndex=n.props.tabIndex,i["aria-describedby"]=n.props.ariaDescribedBy,i["aria-invalid"]=n.props.ariaInvalid,i["aria-labelledby"]=n.props.ariaLabelledBy,i["aria-required"]=n.props.ariaRequired,i))},n.renderClearButton=function(){var o=n.props,i=o.isClearable,a=o.disabled,s=o.selected,c=o.startDate,l=o.endDate,u=o.clearButtonTitle,d=o.clearButtonClassName,f=d===void 0?"":d,m=o.ariaLabelClose,g=m===void 0?"Close":m,p=o.selectedDates,y=o.readOnly;return i&&!y&&(s!=null||c!=null||l!=null||p?.length)?x.createElement("button",{type:"button",className:be("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":g,onClick:n.onClearClick,title:u,tabIndex:-1}):null},n.state=n.calcInitialState(),n.preventFocusTimeout=void 0,n}return Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:Gu,readOnly:!1,rangeSeparator:Tu,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:oo,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(t,n){var o,i,a,s;t.inline&&Wy(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Yu(this.props.highlightDates)}),!n.focused&&!Zr(t.selected,this.props.selected)&&this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&((i=(o=this.props).onCalendarOpen)===null||i===void 0||i.call(o)),n.open===!0&&this.state.open===!1&&((s=(a=this.props).onCalendarClose)===null||s===void 0||s.call(a)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var t=this.props,n=t.showIcon,o=t.icon,i=t.calendarIconClassname,a=t.calendarIconClassName,s=t.toggleCalendarOnIconClick,c=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),x.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&x.createElement(By,_e({icon:o,className:be(a,!a&&i,c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var n=this.state.open?x.createElement(Xu,{enableTabLoop:this.props.enableTabLoop},x.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(n=x.createElement(Qu,_e({portalId:this.props.portalId},this.props),n)),x.createElement("div",null,this.renderInputContainer(),n)}return x.createElement(Hy,_e({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r})(x.Component),qy="input",gs="navigate";const Ky="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M2.999%208.611a1.1%201.1%200%200%201%20.33-.786%201.135%201.135%200%200%201%201.591%200l7.079%206.993%207.079-6.993a1.135%201.135%200%200%201%201.837.36%201.1%201.1%200%200%201-.246%201.215l-7.87%207.775a1.135%201.135%200%200%201-1.591%200L3.328%209.4a1.1%201.1%200%200%201-.329-.789'/%3e%3c/svg%3e",Gy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M15.39%2021a1.1%201.1%200%200%200%20.785-.33%201.135%201.135%200%200%200%200-1.591L9.182%2012l6.993-7.08a1.135%201.135%200%200%200-.36-1.835%201.1%201.1%200%200%200-1.21.244L6.824%2011.2a1.135%201.135%200%200%200%200%201.591L14.6%2020.67a1.1%201.1%200%200%200%20.79.33'/%3e%3c/svg%3e",Qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M8.61%203a1.1%201.1%200%200%200-.785.33%201.135%201.135%200%200%200%200%201.591L14.818%2012l-6.993%207.08a1.135%201.135%200%200%200%20.36%201.835%201.1%201.1%200%200%200%201.21-.244l7.78-7.871a1.135%201.135%200%200%200%200-1.591L9.4%203.33A1.1%201.1%200%200%200%208.61%203'/%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23fff'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.085%207.331a1.096%201.096%200%201%200-2.192%200v9.316a1.096%201.096%200%200%200%202.192%200z'/%3e%3cpath%20d='M16.647%2010.893H7.33a1.096%201.096%200%201%200%200%202.192h9.316a1.096%201.096%200%200%200%200-2.192'/%3e%3cpath%20d='M12%2024C5.38%2024%200%2018.608%200%2012S5.38%200%2012%200s12%205.38%2012%2012-5.38%2012-12%2012m0-21.808c-5.414%200-9.808%204.394-9.808%209.808S6.586%2021.808%2012%2021.808s9.808-4.394%209.808-9.808S17.403%202.192%2012%202.192'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Jy=x.forwardRef(({value:e,onClick:r},t)=>h.jsxs("button",{className:Yr.datePickerButton,onClick:r,ref:t,children:[e,h.jsx("img",{src:Ky,style:{marginLeft:10}})]})),eb=({currentDate:e,onPrevMonth:r,onNextMonth:t,onAddEvent:n,onDateChange:o})=>h.jsxs("div",{className:Yr.headerContainer,children:[h.jsxs("div",{className:Yr.navAndDate,children:[h.jsx("button",{className:Yr.navButton,onClick:r,children:h.jsx("img",{src:Gy,width:15})}),h.jsx("button",{className:Yr.navButton,onClick:t,children:h.jsx("img",{src:Qy,width:15})}),h.jsx(Zy,{selected:e,onChange:i=>o(i),dateFormat:"MMMM yyyy",showMonthYearPicker:!0,className:Yr.datePickerInput,locale:"es",customInput:h.jsx(Jy,{})})]}),h.jsxs("button",{className:Yr.addEventButton,onClick:n,children:[h.jsx("img",{src:Xy}),"Agregar evento"]})]}),we={sidebarContainer:"_sidebarContainer_1pgug_1",leadsSection:"_leadsSection_1pgug_17",leadCard:"_leadCard_1pgug_33",leadIcon:"_leadIcon_1pgug_71",leadDays:"_leadDays_1pgug_81",leadCount:"_leadCount_1pgug_91",eventsSection:"_eventsSection_1pgug_105",sidebarTitle:"_sidebarTitle_1pgug_129",eventGroup:"_eventGroup_1pgug_147",eventGroupDate:"_eventGroupDate_1pgug_155",eventItem:"_eventItem_1pgug_167",eventDetails:"_eventDetails_1pgug_201",eventTitle:"_eventTitle_1pgug_215",eventTime:"_eventTime_1pgug_241",calendarsSection:"_calendarsSection_1pgug_263",collapsibleHeader:"_collapsibleHeader_1pgug_271",headerTitle:"_headerTitle_1pgug_299",calendarCount:"_calendarCount_1pgug_313",chevronIcon:"_chevronIcon_1pgug_331",collapsed:"_collapsed_1pgug_339",collapsibleContent:"_collapsibleContent_1pgug_347",hidden:"_hidden_1pgug_363",calendarItem:"_calendarItem_1pgug_373",circularCheckbox:"_circularCheckbox_1pgug_407",checkedIcon:"_checkedIcon_1pgug_425",uncheckedIcon:"_uncheckedIcon_1pgug_433",calendarIcon:"_calendarIcon_1pgug_441",googleIcon:"_googleIcon_1pgug_449",syncButton:"_syncButton_1pgug_457",eventsContainer:"_eventsContainer_1pgug_509"};/**
121
+ */var ls=function(r,t){return ls=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},ls(r,t)};function pt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ls(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var Se=function(){return Se=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function fr(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var ey=function(e){var r=e.showTimeSelectOnly,t=r===void 0?!1:r,n=e.showTime,o=n===void 0?!1:n,i=e.className,a=e.children,s=t?"Choose Time":"Choose Date".concat(o?" and Time":"");return x.createElement("div",{className:i,role:"dialog","aria-label":s,"aria-modal":"true"},a)},ty=function(e,r){var t=x.useRef(null),n=x.useRef(e);n.current=e;var o=x.useCallback(function(i){var a,s=i.composed&&i.composedPath&&i.composedPath().find(function(c){return c instanceof Node})||i.target;t.current&&!t.current.contains(s)&&(r&&s instanceof HTMLElement&&s.classList.contains(r)||(a=n.current)===null||a===void 0||a.call(n,i))},[r]);return x.useEffect(function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}},[o]),t},Si=function(e){var r=e.children,t=e.onClickOutside,n=e.className,o=e.containerRef,i=e.style,a=e.ignoreClass,s=ty(t,a);return x.createElement("div",{className:n,style:i,ref:function(c){s.current=c,o&&(o.current=c)}},r)},ie;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(ie||(ie={}));function Ou(){var e=typeof window<"u"?window:globalThis;return e}var io=12;function Re(e){if(e==null)return new Date;var r=typeof e=="string"?w.parseISO(e):w.toDate(e);return Ci(r)?r:new Date}function us(e,r,t,n,o){o===void 0&&(o=Re());for(var i=Cn(t)||Cn(fs()),a=Array.isArray(r)?r:[r],s=0,c=a;s<c.length;s++){var l=c[s],u=w.parse(e,l,o,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(Ci(u)&&(!n||e===Ue(u,l,t)))return u}return null}function Ci(e,r){return w.isValid(e)&&!w.isBefore(e,new Date("1/1/1800"))}function Ue(e,r,t){if(t==="en")return w.format(e,r,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var n=t?Cn(t):void 0;return t&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),n=n||Cn(fs()),w.format(e,r,{locale:n,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ft(e,r){var t=r.dateFormat,n=r.locale,o=Array.isArray(t)&&t.length>0?t[0]:t;return e&&Ue(e,o,n)||""}var Mu=" - ";function ry(e,r,t){if(!e&&!r)return"";var n=e?Ft(e,t):"",o=r?Ft(r,t):"",i=t.rangeSeparator||Mu;return"".concat(n).concat(i).concat(o)}function ny(e,r){if(!e?.length)return"";var t=e[0]?Ft(e[0],r):"";if(e.length===1)return t;if(e.length===2&&e[1]){var n=Ft(e[1],r);return"".concat(t,", ").concat(n)}var o=e.length-1;return"".concat(t," (+").concat(o,")")}function ds(e,r){var t=r.hour,n=t===void 0?0:t,o=r.minute,i=o===void 0?0:o,a=r.second,s=a===void 0?0:a;return w.setHours(w.setMinutes(w.setSeconds(e,s),i),n)}function oy(e){return w.getISOWeek(e)}function iy(e,r){return Ue(e,"ddd",r)}function Ei(e){return w.startOfDay(e)}function Rr(e,r,t){var n=Cn(r||fs());return w.startOfWeek(e,{locale:n,weekStartsOn:t})}function br(e){return w.startOfMonth(e)}function ao(e){return w.startOfYear(e)}function Pu(e){return w.startOfQuarter(e)}function Au(){return w.startOfDay(Re())}function Iu(e){return w.endOfDay(e)}function ay(e){return w.endOfWeek(e)}function sy(e){return w.endOfMonth(e)}function pr(e,r){return e&&r?w.isSameYear(e,r):!e&&!r}function yt(e,r){return e&&r?w.isSameMonth(e,r):!e&&!r}function ki(e,r){return e&&r?w.isSameQuarter(e,r):!e&&!r}function Ce(e,r){return e&&r?w.isSameDay(e,r):!e&&!r}function Zr(e,r){return e&&r?w.isEqual(e,r):!e&&!r}function qr(e,r,t){var n,o=w.startOfDay(r),i=w.endOfDay(t);try{n=w.isWithinInterval(e,{start:o,end:i})}catch{n=!1}return n}function fs(){var e=Ou();return e.__localeId__}function Cn(e){if(typeof e=="string"){var r=Ou();return r.__localeData__?r.__localeData__[e]:void 0}else return e}function cy(e,r,t){return r(Ue(e,"EEEE",t))}function ly(e,r){return Ue(e,"EEEEEE",r)}function uy(e,r){return Ue(e,"EEE",r)}function ps(e,r){return Ue(w.setMonth(Re(),e),"LLLL",r)}function Ru(e,r){return Ue(w.setMonth(Re(),e),"LLL",r)}function dy(e,r){return Ue(w.setQuarter(Re(),e),"QQQ",r)}function Yt(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.excludeDateIntervals,s=t.includeDates,c=t.includeDateIntervals,l=t.filterDate;return so(e,{minDate:n,maxDate:o})||i&&i.some(function(u){return u instanceof Date?Ce(e,u):Ce(e,u.date)})||a&&a.some(function(u){var d=u.start,f=u.end;return w.isWithinInterval(e,{start:d,end:f})})||s&&!s.some(function(u){return Ce(e,u)})||c&&!c.some(function(u){var d=u.start,f=u.end;return w.isWithinInterval(e,{start:d,end:f})})||l&&!l(Re(e))||!1}function hs(e,r){var t=r===void 0?{}:r,n=t.excludeDates,o=t.excludeDateIntervals;return o&&o.length>0?o.some(function(i){var a=i.start,s=i.end;return w.isWithinInterval(e,{start:a,end:s})}):n&&n.some(function(i){var a;return i instanceof Date?Ce(e,i):Ce(e,(a=i.date)!==null&&a!==void 0?a:new Date)})||!1}function Nu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return so(e,{minDate:n?w.startOfMonth(n):void 0,maxDate:o?w.endOfMonth(o):void 0})||i?.some(function(c){return yt(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return yt(e,c)})||s&&!s(Re(e))||!1}function Di(e,r,t,n){var o=w.getYear(e),i=w.getMonth(e),a=w.getYear(r),s=w.getMonth(r),c=w.getYear(n);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function fy(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates;return so(e,{minDate:n,maxDate:o})||i&&i.some(function(s){return yt(s instanceof Date?s:s.date,e)})||a&&!a.some(function(s){return yt(s,e)})||!1}function Ti(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return so(e,{minDate:n,maxDate:o})||i?.some(function(c){return ki(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return ki(e,c)})||s&&!s(Re(e))||!1}function Oi(e,r,t){if(!r||!t||!w.isValid(r)||!w.isValid(t))return!1;var n=w.getYear(r),o=w.getYear(t);return n<=e&&o>=e}function Mi(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate,c=new Date(e,0,1);return so(c,{minDate:n?w.startOfYear(n):void 0,maxDate:o?w.endOfYear(o):void 0})||i?.some(function(l){return pr(c,l instanceof Date?l:l.date)})||a&&!a.some(function(l){return pr(c,l)})||s&&!s(Re(c))||!1}function Pi(e,r,t,n){var o=w.getYear(e),i=w.getQuarter(e),a=w.getYear(r),s=w.getQuarter(r),c=w.getYear(n);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function so(e,r){var t,n=r===void 0?{}:r,o=n.minDate,i=n.maxDate;return(t=o&&w.differenceInCalendarDays(e,o)<0||i&&w.differenceInCalendarDays(e,i)>0)!==null&&t!==void 0?t:!1}function $u(e,r){return r.some(function(t){return w.getHours(t)===w.getHours(e)&&w.getMinutes(t)===w.getMinutes(e)&&w.getSeconds(t)===w.getSeconds(e)})}function ju(e,r){var t=r===void 0?{}:r,n=t.excludeTimes,o=t.includeTimes,i=t.filterTime;return n&&$u(e,n)||o&&!$u(e,o)||i&&!i(e)||!1}function Lu(e,r){var t=r.minTime,n=r.maxTime;if(!t||!n)throw new Error("Both minTime and maxTime props required");var o=Re();o=w.setHours(o,w.getHours(e)),o=w.setMinutes(o,w.getMinutes(e)),o=w.setSeconds(o,w.getSeconds(e));var i=Re();i=w.setHours(i,w.getHours(t)),i=w.setMinutes(i,w.getMinutes(t)),i=w.setSeconds(i,w.getSeconds(t));var a=Re();a=w.setHours(a,w.getHours(n)),a=w.setMinutes(a,w.getMinutes(n)),a=w.setSeconds(a,w.getSeconds(n));var s;try{s=!w.isWithinInterval(o,{start:i,end:a})}catch{s=!1}return s}function zu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.subMonths(e,1);return n&&w.differenceInCalendarMonths(n,i)>0||o&&o.every(function(a){return w.differenceInCalendarMonths(a,i)>0})||!1}function Bu(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.addMonths(e,1);return n&&w.differenceInCalendarMonths(i,n)>0||o&&o.every(function(a){return w.differenceInCalendarMonths(i,a)>0})||!1}function py(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.startOfYear(e),a=w.subQuarters(i,1);return n&&w.differenceInCalendarQuarters(n,a)>0||o&&o.every(function(s){return w.differenceInCalendarQuarters(s,a)>0})||!1}function hy(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.endOfYear(e),a=w.addQuarters(i,1);return n&&w.differenceInCalendarQuarters(a,n)>0||o&&o.every(function(s){return w.differenceInCalendarQuarters(a,s)>0})||!1}function Vu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.subYears(e,1);return n&&w.differenceInCalendarYears(n,i)>0||o&&o.every(function(a){return w.differenceInCalendarYears(a,i)>0})||!1}function my(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.yearItemNumber,i=o===void 0?io:o,a=ao(w.subYears(e,i)),s=wr(a,i).endPeriod,c=n&&w.getYear(n);return c&&c>s||!1}function Fu(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.addYears(e,1);return n&&w.differenceInCalendarYears(i,n)>0||o&&o.every(function(a){return w.differenceInCalendarYears(i,a)>0})||!1}function gy(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.yearItemNumber,i=o===void 0?io:o,a=w.addYears(e,i),s=wr(a,i).startPeriod,c=n&&w.getYear(n);return c&&c<s||!1}function Yu(e){var r=e.minDate,t=e.includeDates;if(t&&r){var n=t.filter(function(o){return w.differenceInCalendarDays(o,r)>=0});return w.min(n)}else return t?w.min(t):r}function Uu(e){var r=e.maxDate,t=e.includeDates;if(t&&r){var n=t.filter(function(o){return w.differenceInCalendarDays(o,r)<=0});return w.max(n)}else return t?w.max(t):r}function Hu(e,r){var t;e===void 0&&(e=[]),r===void 0&&(r="react-datepicker__day--highlighted");for(var n=new Map,o=0,i=e.length;o<i;o++){var a=e[o];if(w.isDate(a)){var s=Ue(a,"MM.dd.yyyy"),c=n.get(s)||[];c.includes(r)||(c.push(r),n.set(s,c))}else if(typeof a=="object"){var l=Object.keys(a),u=(t=l[0])!==null&&t!==void 0?t:"",d=a[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,m=d.length;f<m;f++){var g=d[f];if(g){var s=Ue(g,"MM.dd.yyyy"),c=n.get(s)||[];c.includes(u)||(c.push(u),n.set(s,c))}}}}return n}function vy(e,r){return e.length!==r.length?!1:e.every(function(t,n){return t===r[n]})}function yy(e,r){e===void 0&&(e=[]),r===void 0&&(r="react-datepicker__day--holidays");var t=new Map;return e.forEach(function(n){var o=n.date,i=n.holidayName;if(w.isDate(o)){var a=Ue(o,"MM.dd.yyyy"),s=t.get(a)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===r&&vy(s.holidayNames,[i]))){s.className=r;var c=s.holidayNames;s.holidayNames=c?fr(fr([],c,!0),[i],!1):[i],t.set(a,s)}}}),t}function by(e,r,t,n,o){for(var i=o.length,a=[],s=0;s<i;s++){var c=e,l=o[s];l&&(c=w.addHours(c,w.getHours(l)),c=w.addMinutes(c,w.getMinutes(l)),c=w.addSeconds(c,w.getSeconds(l)));var u=w.addMinutes(e,(t+1)*n);w.isAfter(c,r)&&w.isBefore(c,u)&&l!=null&&a.push(l)}return a}function Wu(e){return e<10?"0".concat(e):"".concat(e)}function wr(e,r){r===void 0&&(r=io);var t=Math.ceil(w.getYear(e)/r)*r,n=t-(r-1);return{startPeriod:n,endPeriod:t}}function wy(e){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+t-+r)/36e5)}function Zu(e){var r=e.getSeconds(),t=e.getMilliseconds();return w.toDate(e.getTime()-r*1e3-t)}function _y(e,r){return Zu(e).getTime()===Zu(r).getTime()}function qu(e){if(!w.isDate(e))throw new Error("Invalid date");var r=new Date(e);return r.setHours(0,0,0,0),r}function ms(e,r){if(!w.isDate(e)||!w.isDate(r))throw new Error("Invalid date received");var t=qu(e),n=qu(r);return w.isBefore(t,n)}function Ku(e){return e.key===ie.Space}var xy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.inputRef=x.createRef(),n.onTimeChange=function(o){var i,a;n.setState({time:o});var s=n.props.date,c=s instanceof Date&&!isNaN(+s),l=c?s:new Date;if(o?.includes(":")){var u=o.split(":"),d=u[0],f=u[1];l.setHours(Number(d)),l.setMinutes(Number(f))}(a=(i=n.props).onChange)===null||a===void 0||a.call(i,l)},n.renderTimeInput=function(){var o=n.state.time,i=n.props,a=i.date,s=i.timeString,c=i.customTimeInput;return c?x.cloneElement(c,{date:a,value:o,onChange:n.onTimeChange}):x.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:n.inputRef,onClick:function(){var l;(l=n.inputRef.current)===null||l===void 0||l.focus()},required:!0,value:o,onChange:function(l){n.onTimeChange(l.target.value||s)}})},n.state={time:n.props.timeString},n}return r.getDerivedStateFromProps=function(t,n){return t.timeString!==n.time?{time:t.timeString}:null},r.prototype.render=function(){return x.createElement("div",{className:"react-datepicker__input-time-container"},x.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),x.createElement("div",{className:"react-datepicker-time__input-container"},x.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},r})(x.Component),Sy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dayEl=x.createRef(),t.handleClick=function(n){!t.isDisabled()&&t.props.onClick&&t.props.onClick(n)},t.handleMouseEnter=function(n){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(n)},t.handleOnKeyDown=function(n){var o,i,a=n.key;a===ie.Space&&(n.preventDefault(),n.key=ie.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,n)},t.isSameDay=function(n){return Ce(t.props.day,n)},t.isKeyboardSelected=function(){var n;if(t.props.disabledKeyboardNavigation)return!1;var o=t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(a){return t.isSameDayOrWeek(a)}):t.isSameDayOrWeek(t.props.selected),i=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!o&&t.isSameDayOrWeek(t.props.preSelection)&&!i},t.isDisabled=function(n){return n===void 0&&(n=t.props.day),Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return hs(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return Ce(t.props.day,Rr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(n){return t.props.showWeekPicker&&Ce(n,Rr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(n){return t.isSameDay(n)||t.isSameWeek(n)},t.getHighLightedClass=function(){var n=t.props,o=n.day,i=n.highlightDates;if(!i)return!1;var a=Ue(o,"MM.dd.yyyy");return i.get(a)},t.getHolidaysClass=function(){var n,o=t.props,i=o.day,a=o.holidays;if(!a)return[void 0];var s=Ue(i,"MM.dd.yyyy");return a.has(s)?[(n=a.get(s))===null||n===void 0?void 0:n.className]:[void 0]},t.isInRange=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:qr(o,i,a)},t.isInSelectingRange=function(){var n,o=t.props,i=o.day,a=o.selectsStart,s=o.selectsEnd,c=o.selectsRange,l=o.selectsDisabledDaysInRange,u=o.startDate,d=o.swapRange,f=o.endDate,m=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;if(!(a||s||c)||!m||!l&&t.isDisabled())return!1;if(a&&f&&(w.isBefore(m,f)||Zr(m,f)))return qr(i,m,f);if(s&&u&&(w.isAfter(m,u)||Zr(m,u)))return qr(i,u,m);if(c&&u&&!f){if(Zr(m,u)||w.isAfter(m,u))return qr(i,u,m);if(d&&w.isBefore(m,u))return qr(i,m,u)}return!1},t.isSelectingRangeStart=function(){var n;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.startDate,s=o.selectsStart,c=o.swapRange,l=o.selectsRange,u=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return s?Ce(i,u):l&&c&&a&&u?Ce(i,w.isBefore(u,a)?u:a):Ce(i,a)},t.isSelectingRangeEnd=function(){var n;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.endDate,s=o.selectsEnd,c=o.selectsRange,l=o.swapRange,u=o.startDate,d=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return s?Ce(i,d):c&&l&&u&&d?Ce(i,w.isBefore(d,u)?u:d):c?Ce(i,d):Ce(i,a)},t.isRangeStart=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:Ce(i,o)},t.isRangeEnd=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:Ce(a,o)},t.isWeekend=function(){var n=w.getDay(t.props.day);return n===0||n===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===w.getMonth(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(w.getMonth(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Re())},t.isSelected=function(){var n;return t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(o){return t.isSameDayOrWeek(o)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(n){var o=t.props.dayClassName?t.props.dayClassName(n):void 0;return _e("react-datepicker__day",o,"react-datepicker__day--"+iy(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var n=t.props,o=n.day,i=n.ariaLabelPrefixWhenEnabled,a=i===void 0?"Choose":i,s=n.ariaLabelPrefixWhenDisabled,c=s===void 0?"Not available":s,l=t.isDisabled()||t.isExcluded()?c:a;return"".concat(l," ").concat(Ue(o,"PPPP",t.props.locale))},t.getTitle=function(){var n=t.props,o=n.day,i=n.holidays,a=i===void 0?new Map:i,s=n.excludeDates,c=Ue(o,"MM.dd.yyyy"),l=[];return a.has(c)&&l.push.apply(l,a.get(c).holidayNames),t.isExcluded()&&l.push(s?.filter(function(u){return u instanceof Date?Ce(u,o):Ce(u?.date,o)}).map(function(u){if(!(u instanceof Date))return u?.message})),l.join(", ")},t.getTabIndex=function(){var n=t.props.selected,o=t.props.preSelection,i=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(n)&&Ce(o,n))?0:-1;return i},t.handleFocusDay=function(){var n;t.shouldFocusDay()&&((n=t.dayEl.current)===null||n===void 0||n.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(w.getDate(t.props.day),t.props.day):w.getDate(t.props.day)},t.render=function(){return x.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&x.createElement("span",{className:"overlay"},t.getTitle()))},t}return r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},r.prototype.isDayActiveElement=function(){var t,n,o;return((n=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r})(x.Component),Cy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.weekNumberEl=x.createRef(),t.handleClick=function(n){t.props.onClick&&t.props.onClick(n)},t.handleOnKeyDown=function(n){var o,i,a=n.key;a===ie.Space&&(n.preventDefault(),n.key=ie.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,n)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ce(t.props.date,t.props.selected)&&Ce(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Ce(t.props.date,t.props.selected)&&Ce(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(n){var o=!1;t.getTabIndex()===0&&!n?.isInputFocused&&Ce(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(o=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},r.prototype.render=function(){var t=this.props,n=t.weekNumber,o=t.isWeekDisabled,i=t.ariaLabelPrefix,a=i===void 0?r.defaultProps.ariaLabelPrefix:i,s=t.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!o,"react-datepicker__week-number--selected":!!s&&Ce(this.props.date,this.props.selected)};return x.createElement("div",{ref:this.weekNumberEl,className:_e(c),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},n)},r})(x.Component),Ey=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isDisabled=function(n){return Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(n,o){t.props.onDayClick&&t.props.onDayClick(n,o)},t.handleDayMouseEnter=function(n){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(n)},t.handleWeekClick=function(n,o,i){for(var a,s,c,l=new Date(n),u=0;u<7;u++){var d=new Date(n);d.setDate(d.getDate()+u);var f=!t.isDisabled(d);if(f){l=d;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(l,o,i),t.props.showWeekPicker&&t.handleDayClick(l,i),((a=t.props.shouldCloseOnSelect)!==null&&a!==void 0?a:r.defaultProps.shouldCloseOnSelect)&&((c=(s=t.props).setOpen)===null||c===void 0||c.call(s,!1))},t.formatWeekNumber=function(n){return t.props.formatWeekNumber?t.props.formatWeekNumber(n):oy(n)},t.isWeekDisabled=function(){for(var n=t.startOfWeek(),o=w.addDays(n,6),i=new Date(n);i<=o;){if(!t.isDisabled(i))return!1;i=w.addDays(i,1)}return!0},t.renderDays=function(){var n=t.startOfWeek(),o=[],i=t.formatWeekNumber(n);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,n,i):void 0;o.push(x.createElement(Cy,Se({key:"W"},r.defaultProps,t.props,{weekNumber:i,isWeekDisabled:t.isWeekDisabled(),date:n,onClick:a})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var c=w.addDays(n,s);return x.createElement(Sy,Se({},r.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:t.handleDayClick.bind(t,c),onMouseEnter:t.handleDayMouseEnter.bind(t,c)}))}))},t.startOfWeek=function(){return Rr(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ce(t.startOfWeek(),t.props.selected)&&Ce(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":Ce(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},n=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return x.createElement("div",{className:_e(t,n),role:"row"},this.renderDays())},r})(x.Component),co,ky=6,En={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},gs=(co={},co[En.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},co[En.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},co[En.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},co),Ai=1;function Gu(e,r){return e?En.FOUR_COLUMNS:r?En.TWO_COLUMNS:En.THREE_COLUMNS}var Dy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.MONTH_REFS=fr([],Array(12),!0).map(function(){return x.createRef()}),t.QUARTER_REFS=fr([],Array(4),!0).map(function(){return x.createRef()}),t.isDisabled=function(n){return Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(n){return hs(n,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(n,o){var i,a;(a=(i=t.props).onDayClick)===null||a===void 0||a.call(i,n,o,t.props.orderInDisplay)},t.handleDayMouseEnter=function(n){var o,i;(i=(o=t.props).onDayMouseEnter)===null||i===void 0||i.call(o,n)},t.handleMouseLeave=function(){var n,o;(o=(n=t.props).onMouseLeave)===null||o===void 0||o.call(n)},t.isRangeStartMonth=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:yt(w.setMonth(i,n),a)},t.isRangeStartQuarter=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:ki(w.setQuarter(i,n),a)},t.isRangeEndMonth=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:yt(w.setMonth(i,n),s)},t.isRangeEndQuarter=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:ki(w.setQuarter(i,n),s)},t.isInSelectingRangeMonth=function(n){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Di(f,d,n,a):c&&u||l&&u&&!d?Di(u,f,n,a):!1},t.isSelectingMonthRangeStart=function(n){var o;if(!t.isInSelectingRangeMonth(n))return!1;var i=t.props,a=i.day,s=i.startDate,c=i.selectsStart,l=w.setMonth(a,n),u=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c?yt(l,u):yt(l,s)},t.isSelectingMonthRangeEnd=function(n){var o;if(!t.isInSelectingRangeMonth(n))return!1;var i=t.props,a=i.day,s=i.endDate,c=i.selectsEnd,l=i.selectsRange,u=w.setMonth(a,n),d=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c||l?yt(u,d):yt(u,s)},t.isInSelectingRangeQuarter=function(n){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Pi(f,d,n,a):c&&u||l&&u&&!d?Pi(u,f,n,a):!1},t.isWeekInMonth=function(n){var o=t.props.day,i=w.addDays(n,6);return yt(n,o)||yt(i,o)},t.isCurrentMonth=function(n,o){return w.getYear(n)===w.getYear(Re())&&o===w.getMonth(Re())},t.isCurrentQuarter=function(n,o){return w.getYear(n)===w.getYear(Re())&&o===w.getQuarter(Re())},t.isSelectedMonth=function(n,o,i){return w.getMonth(i)===o&&w.getYear(n)===w.getYear(i)},t.isSelectMonthInList=function(n,o,i){return i.some(function(a){return t.isSelectedMonth(n,o,a)})},t.isSelectedQuarter=function(n,o,i){return w.getQuarter(n)===o&&w.getYear(n)===w.getYear(i)},t.isMonthSelected=function(){var n=t.props,o=n.day,i=n.selected,a=n.selectedDates,s=n.selectsMultiple,c=w.getMonth(o);return s?a?.some(function(l){return t.isSelectedMonth(o,c,l)}):!!i&&t.isSelectedMonth(o,c,i)},t.renderWeeks=function(){for(var n=[],o=t.props.fixedHeight,i=0,a=!1,s=Rr(br(t.props.day),t.props.locale,t.props.calendarStartDay),c=function(g){return t.props.showWeekPicker?Rr(g,t.props.locale,t.props.calendarStartDay):t.props.preSelection},l=function(g){return t.props.showWeekPicker?Rr(g,t.props.locale,t.props.calendarStartDay):t.props.selected},u=t.props.selected?l(t.props.selected):void 0,d=t.props.preSelection?c(t.props.preSelection):void 0;n.push(x.createElement(Ey,Se({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:i,day:s,month:w.getMonth(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:t.props.showWeekNumbers}))),!a;){i++,s=w.addWeeks(s,1);var f=o&&i>=ky,m=!o&&!t.isWeekInMonth(s);if(f||m)if(t.props.peekNextMonth)a=!0;else break}return n},t.onMonthClick=function(n,o){var i=t.isMonthDisabledForLabelDate(o),a=i.isDisabled,s=i.labelDate;a||t.handleDayClick(br(s),n)},t.onMonthMouseEnter=function(n){var o=t.isMonthDisabledForLabelDate(n),i=o.isDisabled,a=o.labelDate;i||t.handleDayMouseEnter(br(a))},t.handleMonthNavigation=function(n,o){var i,a,s,c;(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.MONTH_REFS[n])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()},t.handleKeyboardNavigation=function(n,o,i){var a,s=t.props,c=s.selected,l=s.preSelection,u=s.setPreSelection,d=s.minDate,f=s.maxDate,m=s.showFourColumnMonthYearPicker,g=s.showTwoColumnMonthYearPicker;if(l){var p=Gu(m,g),y=t.getVerticalOffset(p),S=(a=gs[p])===null||a===void 0?void 0:a.grid,C=function(N,q,Z){var L,K,v=q,I=Z;switch(N){case ie.ArrowRight:v=w.addMonths(q,Ai),I=Z===11?0:Z+Ai;break;case ie.ArrowLeft:v=w.subMonths(q,Ai),I=Z===0?11:Z-Ai;break;case ie.ArrowUp:v=w.subMonths(q,y),I=!((L=S?.[0])===null||L===void 0)&&L.includes(Z)?Z+12-y:Z-y;break;case ie.ArrowDown:v=w.addMonths(q,y),I=!((K=S?.[S.length-1])===null||K===void 0)&&K.includes(Z)?Z-12+y:Z+y;break}return{newCalculatedDate:v,newCalculatedMonth:I}},k=function(N,q,Z){for(var L=40,K=N,v=!1,I=0,A=C(K,q,Z),U=A.newCalculatedDate,H=A.newCalculatedMonth;!v;){if(I>=L){U=q,H=Z;break}if(d&&U<d){K=ie.ArrowRight;var ee=C(K,U,H);U=ee.newCalculatedDate,H=ee.newCalculatedMonth}if(f&&U>f){K=ie.ArrowLeft;var ee=C(K,U,H);U=ee.newCalculatedDate,H=ee.newCalculatedMonth}if(fy(U,t.props)){var ee=C(K,U,H);U=ee.newCalculatedDate,H=ee.newCalculatedMonth}else v=!0;I++}return{newCalculatedDate:U,newCalculatedMonth:H}};if(o===ie.Enter){t.isMonthDisabled(i)||(t.onMonthClick(n,i),u?.(c));return}var E=k(o,l,i),_=E.newCalculatedDate,O=E.newCalculatedMonth;switch(o){case ie.ArrowRight:case ie.ArrowLeft:case ie.ArrowUp:case ie.ArrowDown:t.handleMonthNavigation(O,_);break}}},t.getVerticalOffset=function(n){var o,i;return(i=(o=gs[n])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&i!==void 0?i:0},t.onMonthKeyDown=function(n,o){var i=t.props,a=i.disabledKeyboardNavigation,s=i.handleOnMonthKeyDown,c=n.key;c!==ie.Tab&&n.preventDefault(),a||t.handleKeyboardNavigation(n,c,o),s&&s(n)},t.onQuarterClick=function(n,o){var i=w.setQuarter(t.props.day,o);Ti(i,t.props)||t.handleDayClick(Pu(i),n)},t.onQuarterMouseEnter=function(n){var o=w.setQuarter(t.props.day,n);Ti(o,t.props)||t.handleDayMouseEnter(Pu(o))},t.handleQuarterNavigation=function(n,o){var i,a,s,c;t.isDisabled(o)||t.isExcluded(o)||((a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.QUARTER_REFS[n-1])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus())},t.onQuarterKeyDown=function(n,o){var i,a,s=n.key;if(!t.props.disabledKeyboardNavigation)switch(s){case ie.Enter:t.onQuarterClick(n,o),(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,t.props.selected);break;case ie.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===4?1:o+1,w.addQuarters(t.props.preSelection,1));break;case ie.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===1?4:o-1,w.subQuarters(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(n){var o,i=t.props,a=i.day,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=w.setMonth(a,n);return{isDisabled:(o=(s||c||l||u)&&Nu(d,t.props))!==null&&o!==void 0?o:!1,labelDate:d}},t.isMonthDisabled=function(n){var o=t.isMonthDisabledForLabelDate(n).isDisabled;return o},t.getMonthClassNames=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.preSelection,l=o.monthClassName,u=l?l(w.setMonth(i,n)):void 0,d=t.getSelection();return _e("react-datepicker__month-text","react-datepicker__month-".concat(n),u,{"react-datepicker__month-text--disabled":t.isMonthDisabled(n),"react-datepicker__month-text--selected":d?t.isSelectMonthInList(i,n,d):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&c&&t.isSelectedMonth(i,n,c)&&!t.isMonthSelected()&&!t.isMonthDisabled(n),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(n),"react-datepicker__month-text--in-range":a&&s?Di(a,s,n,i):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(n),"react-datepicker__month-text--range-end":t.isRangeEndMonth(n),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(n),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(n),"react-datepicker__month-text--today":t.isCurrentMonth(i,n)})},t.getTabIndex=function(n){if(t.props.preSelection==null)return"-1";var o=w.getMonth(t.props.preSelection),i=t.isMonthDisabledForLabelDate(o).isDisabled,a=n===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getQuarterTabIndex=function(n){if(t.props.preSelection==null)return"-1";var o=w.getQuarter(t.props.preSelection),i=Ti(t.props.day,t.props),a=n===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getAriaLabel=function(n){var o=t.props,i=o.chooseDayAriaLabelPrefix,a=i===void 0?"Choose":i,s=o.disabledDayAriaLabelPrefix,c=s===void 0?"Not available":s,l=o.day,u=o.locale,d=w.setMonth(l,n),f=t.isDisabled(d)||t.isExcluded(d)?c:a;return"".concat(f," ").concat(Ue(d,"MMMM yyyy",u))},t.getQuarterClassNames=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.selected,l=o.minDate,u=o.maxDate,d=o.excludeDates,f=o.includeDates,m=o.filterDate,g=o.preSelection,p=o.disabledKeyboardNavigation,y=(l||u||d||f||m)&&Ti(w.setQuarter(i,n),t.props);return _e("react-datepicker__quarter-text","react-datepicker__quarter-".concat(n),{"react-datepicker__quarter-text--disabled":y,"react-datepicker__quarter-text--selected":c?t.isSelectedQuarter(i,n,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!p&&g&&t.isSelectedQuarter(i,n,g)&&!y,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(n),"react-datepicker__quarter-text--in-range":a&&s?Pi(a,s,n,i):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(n),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(n),"react-datepicker__quarter-text--today":t.isCurrentQuarter(i,n)})},t.getMonthContent=function(n){var o=t.props,i=o.showFullMonthYearPicker,a=o.renderMonthContent,s=o.locale,c=o.day,l=Ru(n,s),u=ps(n,s);return a?a(n,l,u,c):i?u:l},t.getQuarterContent=function(n){var o,i=t.props,a=i.renderQuarterContent,s=i.locale,c=dy(n,s);return(o=a?.(n,c))!==null&&o!==void 0?o:c},t.renderMonths=function(){var n,o=t.props,i=o.showTwoColumnMonthYearPicker,a=o.showFourColumnMonthYearPicker,s=o.day,c=o.selected,l=(n=gs[Gu(a,i)])===null||n===void 0?void 0:n.grid;return l?.map(function(u,d){return x.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,m){return x.createElement("div",{ref:t.MONTH_REFS[f],key:m,onClick:function(g){t.onMonthClick(g,f)},onKeyDown:function(g){Ku(g)&&(g.preventDefault(),g.key=ie.Enter),t.onMonthKeyDown(g,f)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(f)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(f)}:void 0,tabIndex:Number(t.getTabIndex(f)),className:t.getMonthClassNames(f),"aria-disabled":t.isMonthDisabled(f),role:"option","aria-label":t.getAriaLabel(f),"aria-current":t.isCurrentMonth(s,f)?"date":void 0,"aria-selected":c?t.isSelectedMonth(s,f,c):void 0},t.getMonthContent(f))}))})},t.renderQuarters=function(){var n=t.props,o=n.day,i=n.selected,a=[1,2,3,4];return x.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(s,c){return x.createElement("div",{key:c,ref:t.QUARTER_REFS[c],role:"option",onClick:function(l){t.onQuarterClick(l,s)},onKeyDown:function(l){t.onQuarterKeyDown(l,s)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(s)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(s)}:void 0,className:t.getQuarterClassNames(s),"aria-selected":i?t.isSelectedQuarter(o,s,i):void 0,tabIndex:Number(t.getQuarterTabIndex(s)),"aria-current":t.isCurrentQuarter(o,s)?"date":void 0},t.getQuarterContent(s))}))},t.getClassNames=function(){var n=t.props,o=n.selectingDate,i=n.selectsStart,a=n.selectsEnd,s=n.showMonthYearPicker,c=n.showQuarterYearPicker,l=n.showWeekPicker;return _e("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(i||a)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},t}return r.prototype.getSelection=function(){var t=this.props,n=t.selected,o=t.selectedDates,i=t.selectsMultiple;if(i)return o;if(n)return[n]},r.prototype.render=function(){var t=this.props,n=t.showMonthYearPicker,o=t.showQuarterYearPicker,i=t.day,a=t.ariaLabelPrefix,s=a===void 0?"Month ":a,c=s?s.trim()+" ":"",l=n||o;return l?x.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ue(i,"MMMM, yyyy",this.props.locale)),role:"listbox"},n?this.renderMonths():this.renderQuarters()):x.createElement("div",{role:"table"},this.props.dayNamesHeader&&x.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),x.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ue(i,"MMMM, yyyy",this.props.locale)),role:"rowgroup"},this.renderWeeks()))},r})(x.Component),Ty=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(n){return t.props.month===n},t.handleOptionKeyDown=function(n,o){var i;switch(o.key){case"Enter":o.preventDefault(),t.onChange(n);break;case"Escape":o.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":{o.preventDefault();var a=(n+(o.key==="ArrowUp"?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;(i=t.monthOptionButtonsRef[a])===null||i===void 0||i.focus();break}}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map(function(n,o){return x.createElement("div",{ref:function(i){t.monthOptionButtonsRef[o]=i,t.isSelectedMonth(o)&&i?.focus()},role:"button",tabIndex:0,className:t.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:n,onClick:t.onChange.bind(t,o),onKeyDown:t.handleOptionKeyDown.bind(t,o),"aria-selected":t.isSelectedMonth(o)?"true":void 0},t.isSelectedMonth(o)?x.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",n)})},t.onChange=function(n){return t.props.onChange(n)},t.handleClickOutside=function(){return t.props.onCancel()},t}return r.prototype.render=function(){return x.createElement(Si,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),Oy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(n){return n.map(function(o,i){return x.createElement("option",{key:o,value:i},o)})},t.renderSelectMode=function(n){return x.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(o){return t.onChange(parseInt(o.target.value))}},t.renderSelectOptions(n))},t.renderReadView=function(n,o){return x.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[t.props.month]))},t.renderDropdown=function(n){return x.createElement(Ty,Se({key:"dropdown"},t.props,{monthNames:n,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(n){var o=t.state.dropdownVisible,i=[t.renderReadView(!o,n)];return o&&i.unshift(t.renderDropdown(n)),i},t.onChange=function(n){t.toggleDropdown(),n!==t.props.month&&t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return r.prototype.render=function(){var t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(i){return Ru(i,t.props.locale)}:function(i){return ps(i,t.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(n);break;case"select":o=this.renderSelectMode(n);break}return x.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},r})(x.Component);function My(e,r){for(var t=[],n=br(e),o=br(r);!w.isAfter(n,o);)t.push(Re(n)),n=w.addMonths(n,1);return t}var Py=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(o){var i=w.getTime(o),a=pr(n.props.date,o)&&yt(n.props.date,o);return x.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:i,onClick:n.onChange.bind(n,i),"aria-selected":a?"true":void 0},a?x.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Ue(o,n.props.dateFormat,n.props.locale))})},n.onChange=function(o){return n.props.onChange(o)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:My(n.props.minDate,n.props.maxDate)},n}return r.prototype.render=function(){var t=_e({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return x.createElement(Si,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),Ay=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=br(t.props.minDate),o=br(t.props.maxDate),i=[];!w.isAfter(n,o);){var a=w.getTime(n);i.push(x.createElement("option",{key:a,value:a},Ue(n,t.props.dateFormat,t.props.locale))),n=w.addMonths(n,1)}return i},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return x.createElement("select",{value:w.getTime(br(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){var o=Ue(t.props.date,t.props.dateFormat,t.props.locale);return x.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},t.renderDropdown=function(){return x.createElement(Py,Se({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,o=[t.renderReadView(!n)];return n&&o.unshift(t.renderDropdown()),o},t.onChange=function(n){t.toggleDropdown();var o=Re(n);pr(t.props.date,o)&&yt(t.props.date,o)||t.props.onChange(o)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return r.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return x.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},r})(x.Component),Iy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var n,o,i;t.list&&(t.list.scrollTop=(i=t.centerLi&&r.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((o=(n=t.header)===null||n===void 0?void 0:n.clientHeight)!==null&&o!==void 0?o:0):t.list.clientHeight,t.centerLi))!==null&&i!==void 0?i:0)})},t.handleClick=function(n){var o,i;(t.props.minTime||t.props.maxTime)&&Lu(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&ju(n,t.props)||(i=(o=t.props).onChange)===null||i===void 0||i.call(o,n)},t.isSelectedTime=function(n){return t.props.selected&&_y(t.props.selected,n)},t.isDisabledTime=function(n){return(t.props.minTime||t.props.maxTime)&&Lu(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&ju(n,t.props)},t.liClasses=function(n){var o,i=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(n):void 0];return t.isSelectedTime(n)&&i.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(n)&&i.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(w.getHours(n)*3600+w.getMinutes(n)*60+w.getSeconds(n))%(((o=t.props.intervals)!==null&&o!==void 0?o:r.defaultProps.intervals)*60)!==0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},t.handleOnKeyDown=function(n,o){var i,a;n.key===ie.Space&&(n.preventDefault(),n.key=ie.Enter),(n.key===ie.ArrowUp||n.key===ie.ArrowLeft)&&n.target instanceof HTMLElement&&n.target.previousSibling&&(n.preventDefault(),n.target.previousSibling instanceof HTMLElement&&n.target.previousSibling.focus()),(n.key===ie.ArrowDown||n.key===ie.ArrowRight)&&n.target instanceof HTMLElement&&n.target.nextSibling&&(n.preventDefault(),n.target.nextSibling instanceof HTMLElement&&n.target.nextSibling.focus()),n.key===ie.Enter&&t.handleClick(o),(a=(i=t.props).handleOnKeyDown)===null||a===void 0||a.call(i,n)},t.renderTimes=function(){for(var n,o=[],i=typeof t.props.format=="string"?t.props.format:"p",a=(n=t.props.intervals)!==null&&n!==void 0?n:r.defaultProps.intervals,s=t.props.selected||t.props.openToDate||Re(),c=Ei(s),l=t.props.injectTimes&&t.props.injectTimes.sort(function(y,S){return y.getTime()-S.getTime()}),u=60*wy(s),d=u/a,f=0;f<d;f++){var m=w.addMinutes(c,f*a);if(o.push(m),l){var g=by(c,m,f,a,l);o=o.concat(g)}}var p=o.reduce(function(y,S){return S.getTime()<=s.getTime()?S:y},o[0]);return o.map(function(y){return x.createElement("li",{key:y.valueOf(),onClick:t.handleClick.bind(t,y),className:t.liClasses(y),ref:function(S){y===p&&(t.centerLi=S)},onKeyDown:function(S){t.handleOnKeyDown(S,y)},tabIndex:y===p?0:-1,role:"option","aria-selected":t.isSelectedTime(y)?"true":void 0,"aria-disabled":t.isDisabledTime(y)?"true":void 0},Ue(y,i,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?x.createElement(x.Fragment,null):x.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(n){t.header=n}},x.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},r.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},r.prototype.observeDatePickerHeightChanges=function(){var t=this,n=this.props.monthRef;this.updateContainerHeight(),n&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(n))},r.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},r.prototype.render=function(){var t=this,n,o=this.state.height;return x.createElement("div",{className:"react-datepicker__time-container ".concat(((n=this.props.todayButton)!==null&&n!==void 0?n:r.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),x.createElement("div",{className:"react-datepicker__time"},x.createElement("div",{className:"react-datepicker__time-box"},x.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){t.list=i},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},r.calcCenterPosition=function(t,n){return n.offsetTop-(t/2-n.clientHeight/2)},r})(x.Component),Qu=3,Ry=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.YEAR_REFS=fr([],Array(n.props.yearItemNumber),!0).map(function(){return x.createRef()}),n.isDisabled=function(o){return Yt(o,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(o){return hs(o,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var o;return(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection},n.updateFocusOnPaginate=function(o){var i=function(){var a,s;(s=(a=n.YEAR_REFS[o])===null||a===void 0?void 0:a.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(i)},n.handleYearClick=function(o,i){n.props.onDayClick&&n.props.onDayClick(o,i)},n.handleYearNavigation=function(o,i){var a,s,c,l,u=n.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var m=wr(d,f).startPeriod;n.isDisabled(i)||n.isExcluded(i)||((s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,i),o-m<0?n.updateFocusOnPaginate(f-(m-o)):o-m>=f?n.updateFocusOnPaginate(Math.abs(f-(o-m))):(l=(c=n.YEAR_REFS[o-m])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},n.isSameDay=function(o,i){return Ce(o,i)},n.isCurrentYear=function(o){return o===w.getYear(Re())},n.isRangeStart=function(o){return n.props.startDate&&n.props.endDate&&pr(w.setYear(Re(),o),n.props.startDate)},n.isRangeEnd=function(o){return n.props.startDate&&n.props.endDate&&pr(w.setYear(Re(),o),n.props.endDate)},n.isInRange=function(o){return Oi(o,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(o){var i=n.props,a=i.selectsStart,s=i.selectsEnd,c=i.selectsRange,l=i.startDate,u=i.endDate;return!(a||s||c)||!n.selectingDate()?!1:a&&u?Oi(o,n.selectingDate(),u):s&&l||c&&l&&!u?Oi(o,l,n.selectingDate()):!1},n.isSelectingRangeStart=function(o){var i;if(!n.isInSelectingRange(o))return!1;var a=n.props,s=a.startDate,c=a.selectsStart,l=w.setYear(Re(),o);return c?pr(l,(i=n.selectingDate())!==null&&i!==void 0?i:null):pr(l,s??null)},n.isSelectingRangeEnd=function(o){var i;if(!n.isInSelectingRange(o))return!1;var a=n.props,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=w.setYear(Re(),o);return c||l?pr(u,(i=n.selectingDate())!==null&&i!==void 0?i:null):pr(u,s??null)},n.isKeyboardSelected=function(o){if(!(n.props.disabledKeyboardNavigation||n.props.date===void 0||n.props.preSelection==null)){var i=n.props,a=i.minDate,s=i.maxDate,c=i.excludeDates,l=i.includeDates,u=i.filterDate,d=i.selected,f=ao(w.setYear(n.props.date,o)),m=(a||s||c||l||u)&&Mi(o,n.props),g=!!d&&Ce(f,ao(d)),p=Ce(f,ao(n.props.preSelection));return!n.props.inline&&!g&&p&&!m}},n.isSelectedYear=function(o){var i=n.props,a=i.selectsMultiple,s=i.selected,c=i.selectedDates;return a?c?.some(function(l){return o===w.getYear(l)}):!!s&&o===w.getYear(s)},n.onYearClick=function(o,i){var a=n.props.date;a!==void 0&&n.handleYearClick(ao(w.setYear(a,i)),o)},n.onYearKeyDown=function(o,i){var a,s,c=o.key,l=n.props,u=l.date,d=l.yearItemNumber,f=l.handleOnKeyDown;if(c!==ie.Tab&&o.preventDefault(),!n.props.disabledKeyboardNavigation)switch(c){case ie.Enter:if(n.props.selected==null)break;n.onYearClick(o,i),(s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,n.props.selected);break;case ie.ArrowRight:if(n.props.preSelection==null)break;n.handleYearNavigation(i+1,w.addYears(n.props.preSelection,1));break;case ie.ArrowLeft:if(n.props.preSelection==null)break;n.handleYearNavigation(i-1,w.subYears(n.props.preSelection,1));break;case ie.ArrowUp:{if(u===void 0||d===void 0||n.props.preSelection==null)break;var m=wr(u,d).startPeriod,g=Qu,p=i-g;if(p<m){var y=d%g;i>=m&&i<m+y?g=y:g+=y,p=i-g}n.handleYearNavigation(p,w.subYears(n.props.preSelection,g));break}case ie.ArrowDown:{if(u===void 0||d===void 0||n.props.preSelection==null)break;var S=wr(u,d).endPeriod,g=Qu,p=i+g;if(p>S){var y=d%g;i<=S&&i>S-y?g=y:g+=y,p=i+g}n.handleYearNavigation(p,w.addYears(n.props.preSelection,g));break}}f&&f(o)},n.getYearClassNames=function(o){var i=n.props,a=i.date,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=i.filterDate,f=i.yearClassName;return _e("react-datepicker__year-text","react-datepicker__year-".concat(o),a?f?.(w.setYear(a,o)):void 0,{"react-datepicker__year-text--selected":n.isSelectedYear(o),"react-datepicker__year-text--disabled":(s||c||l||u||d)&&Mi(o,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(o),"react-datepicker__year-text--range-start":n.isRangeStart(o),"react-datepicker__year-text--range-end":n.isRangeEnd(o),"react-datepicker__year-text--in-range":n.isInRange(o),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(o),"react-datepicker__year-text--today":n.isCurrentYear(o)})},n.getYearTabIndex=function(o){if(n.props.disabledKeyboardNavigation||n.props.preSelection==null)return"-1";var i=w.getYear(n.props.preSelection),a=Mi(o,n.props);return o===i&&!a?"0":"-1"},n.getYearContent=function(o){return n.props.renderYearContent?n.props.renderYearContent(o):o},n}return r.prototype.render=function(){var t=this,n=[],o=this.props,i=o.date,a=o.yearItemNumber,s=o.onYearMouseEnter,c=o.onYearMouseLeave;if(i===void 0)return null;for(var l=wr(i,a),u=l.startPeriod,d=l.endPeriod,f=function(p){n.push(x.createElement("div",{ref:m.YEAR_REFS[p-u],onClick:function(y){t.onYearClick(y,p)},onKeyDown:function(y){Ku(y)&&(y.preventDefault(),y.key=ie.Enter),t.onYearKeyDown(y,p)},tabIndex:Number(m.getYearTabIndex(p)),className:m.getYearClassNames(p),onMouseEnter:m.props.usePointerEvent?void 0:function(y){return s(y,p)},onPointerEnter:m.props.usePointerEvent?function(y){return s(y,p)}:void 0,onMouseLeave:m.props.usePointerEvent?void 0:function(y){return c(y,p)},onPointerLeave:m.props.usePointerEvent?function(y){return c(y,p)}:void 0,key:p,"aria-current":m.isCurrentYear(p)?"date":void 0},m.getYearContent(p)))},m=this,g=u;g<=d;g++)f(g);return x.createElement("div",{className:"react-datepicker__year"},x.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},n))},r})(x.Component);function Ny(e,r,t,n){for(var o=[],i=0;i<2*r+1;i++){var a=e+r-i,s=!0;t&&(s=w.getYear(t)<=a),n&&s&&(s=w.getYear(n)>=a),s&&o.push(a)}return o}var $y=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;n.yearOptionButtonsRef={},n.handleOptionKeyDown=function(s,c){var l;switch(c.key){case"Enter":c.preventDefault(),n.onChange(s);break;case"Escape":c.preventDefault(),n.props.onCancel();break;case"ArrowUp":case"ArrowDown":{c.preventDefault();var u=s+(c.key==="ArrowUp"?1:-1);n.yearOptionButtonsRef[u]&&((l=n.yearOptionButtonsRef[u])===null||l===void 0||l.focus());break}}},n.renderOptions=function(){n.yearOptionButtonsRef={};var s=n.props.year,c=n.state.yearsList.map(function(d){return x.createElement("div",{ref:function(f){n.yearOptionButtonsRef[d]=f,d===s&&f?.focus()},role:"button",tabIndex:0,className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:n.onChange.bind(n,d),onKeyDown:n.handleOptionKeyDown.bind(n,d),"aria-selected":s===d?"true":void 0},s===d?x.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=n.props.minDate?w.getYear(n.props.minDate):null,u=n.props.maxDate?w.getYear(n.props.maxDate):null;return(!u||!n.state.yearsList.find(function(d){return d===u}))&&c.unshift(x.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},x.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!n.state.yearsList.find(function(d){return d===l}))&&c.push(x.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},x.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},n.onChange=function(s){n.props.onChange(s)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(s){var c=n.state.yearsList.map(function(l){return l+s});n.setState({yearsList:c})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var o=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,a=o||(i?10:5);return n.state={yearsList:Ny(n.props.year,a,n.props.minDate,n.props.maxDate)},n.dropdownRef=x.createRef(),n}return r.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var n=t.children?Array.from(t.children):null,o=n?n.find(function(i){return i.ariaSelected}):null;t.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},r.prototype.render=function(){var t=_e({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return x.createElement(Si,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),jy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=t.props.minDate?w.getYear(t.props.minDate):1900,o=t.props.maxDate?w.getYear(t.props.maxDate):2100,i=[],a=n;a<=o;a++)i.push(x.createElement("option",{key:a,value:a},a));return i},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return x.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){return x.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return x.createElement($y,Se({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,o=[t.renderReadView(!n)];return n&&o.unshift(t.renderDropdown()),o},t.onChange=function(n){t.toggleDropdown(),n!==t.props.year&&t.props.onChange(n)},t.toggleDropdown=function(n){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,n)})},t.handleYearChange=function(n,o){var i;(i=t.onSelect)===null||i===void 0||i.call(t,n,o),t.setOpen()},t.onSelect=function(n,o){var i,a;(a=(i=t.props).onSelect)===null||a===void 0||a.call(i,n,o)},t.setOpen=function(){var n,o;(o=(n=t.props).setOpen)===null||o===void 0||o.call(n,!0)},t}return r.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return x.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},r})(x.Component),Ly=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Xu="react-datepicker-ignore-onclickoutside",zy=function(e){var r=(e.className||"").split(/\s+/);return Ly.some(function(t){return r.indexOf(t)>=0})},By=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.monthContainer=void 0,n.handleClickOutside=function(o){n.props.onClickOutside(o)},n.setClickOutsideRef=function(){return n.containerRef.current},n.handleDropdownFocus=function(o){var i,a;zy(o.target)&&((a=(i=n.props).onDropdownFocus)===null||a===void 0||a.call(i,o))},n.getDateInView=function(){var o=n.props,i=o.preSelection,a=o.selected,s=o.openToDate,c=Yu(n.props),l=Uu(n.props),u=Re(),d=s||a||i;return d||(c&&w.isBefore(u,c)?c:l&&w.isAfter(u,l)?l:u)},n.increaseMonth=function(){n.setState(function(o){var i=o.date;return{date:w.addMonths(i,1)}},function(){return n.handleMonthChange(n.state.date)})},n.decreaseMonth=function(){n.setState(function(o){var i=o.date;return{date:w.subMonths(i,1)}},function(){return n.handleMonthChange(n.state.date)})},n.handleDayClick=function(o,i,a){n.props.onSelect(o,i,a),n.props.setPreSelection&&n.props.setPreSelection(o)},n.handleDayMouseEnter=function(o){n.setState({selectingDate:o}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(o)},n.handleMonthMouseLeave=function(){n.setState({selectingDate:void 0}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()},n.handleYearMouseEnter=function(o,i){n.setState({selectingDate:w.setYear(Re(),i)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(o,i)},n.handleYearMouseLeave=function(o,i){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(o,i)},n.handleYearChange=function(o){var i,a,s,c;(a=(i=n.props).onYearChange)===null||a===void 0||a.call(i,o),n.setState({isRenderAriaLiveMessage:!0}),n.props.adjustDateOnChange&&(n.props.onSelect(o),(c=(s=n.props).setOpen)===null||c===void 0||c.call(s,!0)),n.props.setPreSelection&&n.props.setPreSelection(o)},n.getEnabledPreSelectionDateForMonth=function(o){if(!Yt(o,n.props))return o;for(var i=br(o),a=sy(o),s=w.differenceInDays(a,i),c=null,l=0;l<=s;l++){var u=w.addDays(i,l);if(!Yt(u,n.props)){c=u;break}}return c},n.handleMonthChange=function(o){var i,a,s,c=(i=n.getEnabledPreSelectionDateForMonth(o))!==null&&i!==void 0?i:o;n.handleCustomMonthChange(c),n.props.adjustDateOnChange&&(n.props.onSelect(c),(s=(a=n.props).setOpen)===null||s===void 0||s.call(a,!0)),n.props.setPreSelection&&n.props.setPreSelection(c)},n.handleCustomMonthChange=function(o){var i,a;(a=(i=n.props).onMonthChange)===null||a===void 0||a.call(i,o),n.setState({isRenderAriaLiveMessage:!0})},n.handleMonthYearChange=function(o){n.handleYearChange(o),n.handleMonthChange(o)},n.changeYear=function(o){n.setState(function(i){var a=i.date;return{date:w.setYear(a,Number(o))}},function(){return n.handleYearChange(n.state.date)})},n.changeMonth=function(o){n.setState(function(i){var a=i.date;return{date:w.setMonth(a,Number(o))}},function(){return n.handleMonthChange(n.state.date)})},n.changeMonthYear=function(o){n.setState(function(i){var a=i.date;return{date:w.setYear(w.setMonth(a,w.getMonth(o)),w.getYear(o))}},function(){return n.handleMonthYearChange(n.state.date)})},n.header=function(o){o===void 0&&(o=n.state.date);var i=Rr(o,n.props.locale,n.props.calendarStartDay),a=[];return n.props.showWeekNumbers&&a.push(x.createElement("div",{key:"W",className:"react-datepicker__day-name",role:"columnheader"},x.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),x.createElement("span",{"aria-hidden":"true"},n.props.weekLabel||"#"))),a.concat([0,1,2,3,4,5,6].map(function(s){var c=w.addDays(i,s),l=n.formatWeekday(c,n.props.locale),u=n.props.weekDayClassName?n.props.weekDayClassName(c):void 0;return x.createElement("div",{key:s,role:"columnheader",className:_e("react-datepicker__day-name",u)},x.createElement("span",{className:"react-datepicker__sr-only"},Ue(c,"EEEE",n.props.locale)),x.createElement("span",{"aria-hidden":"true"},l))}))},n.formatWeekday=function(o,i){return n.props.formatWeekDay?cy(o,n.props.formatWeekDay,i):n.props.useWeekdaysShort?uy(o,i):ly(o,i)},n.decreaseYear=function(){n.setState(function(o){var i,a=o.date;return{date:w.subYears(a,n.props.showYearPicker?(i=n.props.yearItemNumber)!==null&&i!==void 0?i:r.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.clearSelectingDate=function(){n.setState({selectingDate:void 0})},n.renderPreviousButton=function(){var o,i,a;if(!n.props.renderCustomHeader){var s=(o=n.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=n.props.showPreviousMonths?s-1:0,l=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:c,u=w.subMonths(n.state.date,l),d;switch(!0){case n.props.showMonthYearPicker:d=Vu(n.state.date,n.props);break;case n.props.showYearPicker:d=my(n.state.date,n.props);break;case n.props.showQuarterYearPicker:d=py(n.state.date,n.props);break;default:d=zu(u,n.props);break}if(!(!((a=n.props.forceShowMonthNavigation)!==null&&a!==void 0?a:r.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&d||n.props.showTimeSelectOnly)){var f=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],m=["react-datepicker__navigation","react-datepicker__navigation--previous"],g=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(g=n.decreaseYear),d&&n.props.showDisabledMonthNavigation&&(m.push("react-datepicker__navigation--previous--disabled"),g=void 0);var p=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,y=n.props,S=y.previousMonthButtonLabel,C=S===void 0?r.defaultProps.previousMonthButtonLabel:S,k=y.previousYearButtonLabel,E=k===void 0?r.defaultProps.previousYearButtonLabel:k,_=n.props,O=_.previousMonthAriaLabel,N=O===void 0?typeof C=="string"?C:"Previous Month":O,q=_.previousYearAriaLabel,Z=q===void 0?typeof E=="string"?E:"Previous Year":q;return x.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:n.props.handleOnKeyDown,"aria-label":p?Z:N},x.createElement("span",{className:f.join(" ")},p?E:C))}}},n.increaseYear=function(){n.setState(function(o){var i,a=o.date;return{date:w.addYears(a,n.props.showYearPicker?(i=n.props.yearItemNumber)!==null&&i!==void 0?i:r.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.renderNextButton=function(){var o;if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=Fu(n.state.date,n.props);break;case n.props.showYearPicker:i=gy(n.state.date,n.props);break;case n.props.showQuarterYearPicker:i=hy(n.state.date,n.props);break;default:i=Bu(n.state.date,n.props);break}if(!(!((o=n.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&i||n.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];n.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var c=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(c=n.increaseYear),i&&n.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,u=n.props,d=u.nextMonthButtonLabel,f=d===void 0?r.defaultProps.nextMonthButtonLabel:d,m=u.nextYearButtonLabel,g=m===void 0?r.defaultProps.nextYearButtonLabel:m,p=n.props,y=p.nextMonthAriaLabel,S=y===void 0?typeof f=="string"?f:"Next Month":y,C=p.nextYearAriaLabel,k=C===void 0?typeof g=="string"?g:"Next Year":C;return x.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:n.props.handleOnKeyDown,"aria-label":l?k:S},x.createElement("span",{className:s.join(" ")},l?g:f))}}},n.renderCurrentMonth=function(o){o===void 0&&(o=n.state.date);var i=["react-datepicker__current-month"];return n.props.showYearDropdown&&i.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&i.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&i.push("react-datepicker__current-month--hasMonthYearDropdown"),x.createElement("h2",{className:i.join(" ")},Ue(o,n.props.dateFormat,n.props.locale))},n.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showYearDropdown||o))return x.createElement(jy,Se({},r.defaultProps,n.props,{date:n.state.date,onChange:n.changeYear,year:w.getYear(n.state.date)}))},n.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showMonthDropdown||o))return x.createElement(Oy,Se({},r.defaultProps,n.props,{month:w.getMonth(n.state.date),onChange:n.changeMonth}))},n.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showMonthYearDropdown||o))return x.createElement(Ay,Se({},r.defaultProps,n.props,{date:n.state.date,onChange:n.changeMonthYear}))},n.handleTodayButtonClick=function(o){n.props.onSelect(Au(),o),n.props.setPreSelection&&n.props.setPreSelection(Au())},n.renderTodayButton=function(){if(!(!n.props.todayButton||n.props.showTimeSelectOnly))return x.createElement("div",{className:"react-datepicker__today-button",onClick:n.handleTodayButtonClick},n.props.todayButton)},n.renderDayNamesHeader=function(o){return x.createElement("div",{className:"react-datepicker__day-names",role:"row"},n.header(o))},n.renderDefaultHeader=function(o){var i=o.monthDate,a=o.i;return x.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(i),x.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(a!==0),n.renderMonthYearDropdown(a!==0),n.renderYearDropdown(a!==0)))},n.renderCustomHeader=function(o){var i,a,s=o.monthDate,c=o.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var l=n.props,u=l.showYearPicker,d=l.yearItemNumber,f;if(u){var m=wr(s,d),g=m.startPeriod,p=m.endPeriod;f={startYear:g,endYear:p}}var y=zu(n.state.date,n.props),S=Bu(n.state.date,n.props),C=Vu(n.state.date,n.props),k=Fu(n.state.date,n.props);return x.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},(a=(i=n.props).renderCustomHeader)===null||a===void 0?void 0:a.call(i,Se(Se(Se({},n.state),u&&{visibleYearsRange:f}),{customHeaderCount:c,monthDate:s,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:y,nextMonthButtonDisabled:S,prevYearButtonDisabled:C,nextYearButtonDisabled:k})))},n.renderYearHeader=function(o){var i=o.monthDate,a=n.props,s=a.showYearPicker,c=a.yearItemNumber,l=c===void 0?r.defaultProps.yearItemNumber:c,u=wr(i,l),d=u.startPeriod,f=u.endPeriod;return x.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(f):w.getYear(i))},n.renderHeader=function(o){var i=o.monthDate,a=o.i,s=a===void 0?0:a,c={monthDate:i,i:s};switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(c);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(c);default:return n.renderDefaultHeader(c)}},n.renderMonths=function(){var o,i;if(!(n.props.showTimeSelectOnly||n.props.showYearPicker)){for(var a=[],s=(o=n.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=n.props.showPreviousMonths?s-1:0,l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?w.addYears(n.state.date,c):w.subMonths(n.state.date,c),u=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:c,d=0;d<s;++d){var f=d-u+c,m=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?w.addYears(l,f):w.addMonths(l,f),g="month-".concat(d),p=d<s-1,y=d>0;a.push(x.createElement("div",{key:g,ref:function(S){n.monthContainer=S??void 0},className:"react-datepicker__month-container"},n.renderHeader({monthDate:m,i:d}),x.createElement(Dy,Se({},r.defaultProps,n.props,{containerRef:n.containerRef,ariaLabelPrefix:n.props.monthAriaLabelPrefix,day:m,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,handleOnMonthKeyDown:n.props.handleOnKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,orderInDisplay:d,selectingDate:n.state.selectingDate,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:y,dayNamesHeader:n.renderDayNamesHeader(m)}))))}return a}},n.renderYears=function(){if(!n.props.showTimeSelectOnly&&n.props.showYearPicker)return x.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader({monthDate:n.state.date}),x.createElement(Ry,Se({},r.defaultProps,n.props,{selectingDate:n.state.selectingDate,date:n.state.date,onDayClick:n.handleDayClick,clearSelectingDate:n.clearSelectingDate,onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave})))},n.renderTimeSection=function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return x.createElement(Iy,Se({},r.defaultProps,n.props,{onChange:n.props.onTimeChange,format:n.props.timeFormat,intervals:n.props.timeIntervals,monthRef:n.state.monthContainer}))},n.renderInputTimeSection=function(){var o=n.props.selected?new Date(n.props.selected):void 0,i=o&&Ci(o)&&!!n.props.selected,a=i?"".concat(Wu(o.getHours()),":").concat(Wu(o.getMinutes())):"";if(n.props.showTimeInput)return x.createElement(xy,Se({},r.defaultProps,n.props,{date:o,timeString:a,onChange:n.props.onTimeChange}))},n.renderAriaLiveRegion=function(){var o,i=wr(n.state.date,(o=n.props.yearItemNumber)!==null&&o!==void 0?o:r.defaultProps.yearItemNumber),a=i.startPeriod,s=i.endPeriod,c;return n.props.showYearPicker?c="".concat(a," - ").concat(s):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?c=w.getYear(n.state.date):c="".concat(ps(w.getMonth(n.state.date),n.props.locale)," ").concat(w.getYear(n.state.date)),x.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&c)},n.renderChildren=function(){if(n.props.children)return x.createElement("div",{className:"react-datepicker__children-container"},n.props.children)},n.containerRef=x.createRef(),n.state={date:n.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},n}return Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:Xu,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:io}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){t.setState({monthContainer:t.monthContainer})})())},r.prototype.componentDidUpdate=function(t){var n=this;if(this.props.preSelection&&(!Ce(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var o=!yt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&n.handleCustomMonthChange(n.state.date)})}else this.props.openToDate&&!Ce(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},r.prototype.render=function(){var t=this.props.container||ey;return x.createElement(Si,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},x.createElement("div",{style:{display:"contents"},ref:this.containerRef},x.createElement(t,{className:_e("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},r})(x.Component),Vy=function(e){var r=e.icon,t=e.className,n=t===void 0?"":t,o=e.onClick,i="react-datepicker__calendar-icon";if(typeof r=="string")return x.createElement("i",{className:"".concat(i," ").concat(r," ").concat(n),"aria-hidden":"true",onClick:o});if(x.isValidElement(r)){var a=r;return x.cloneElement(a,{className:"".concat(a.props.className||""," ").concat(i," ").concat(n),onClick:function(s){typeof a.props.onClick=="function"&&a.props.onClick(s),typeof o=="function"&&o(s)}})}return x.createElement("svg",{className:"".concat(i," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},x.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Ju=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return r.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},r.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},r.prototype.render=function(){return ln.createPortal(this.props.children,this.el)},r})(x.Component),Fy="[tabindex], a, button, input, select, textarea",Yy=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},ed=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.getTabChildren=function(){var o;return Array.prototype.slice.call((o=n.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(Fy),1,-1).filter(Yy)},n.handleFocusStart=function(){var o=n.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},n.handleFocusEnd=function(){var o=n.getTabChildren();o&&o.length>1&&o[0].focus()},n.tabLoopRef=x.createRef(),n}return r.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:r.defaultProps.enableTabLoop)?x.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},x.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,x.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},r.defaultProps={enableTabLoop:!0},r})(x.Component);function Uy(e){function r(t){var n,o=typeof t.hidePopper=="boolean"?t.hidePopper:!0,i=x.useRef(null),a=Jv(Se({open:!o,whileElementsMounted:Mv,placement:t.popperPlacement,middleware:fr([zv({padding:15}),Lv(10),Bv({element:i})],(n=t.popperModifiers)!==null&&n!==void 0?n:[],!0)},t.popperProps)),s=Se(Se({},t),{hidePopper:o,popperProps:Se(Se({},a),{arrowRef:i})});return x.createElement(e,Se({},s))}return r.displayName="withFloating(".concat(e.displayName||e.name||"Component",")"),r}var Hy=function(e){var r=e.className,t=e.wrapperClassName,n=e.hidePopper,o=n===void 0?!0:n,i=e.popperComponent,a=e.targetComponent,s=e.enableTabLoop,c=e.popperOnKeyDown,l=e.portalId,u=e.portalHost,d=e.popperProps,f=e.showArrow,m=void 0;if(!o){var g=_e("react-datepicker-popper",r);m=x.createElement(ed,{enableTabLoop:s},x.createElement("div",{ref:d.refs.setFloating,style:d.floatingStyles,className:g,"data-placement":d.placement,onKeyDown:c},i,f&&x.createElement(Wv,{ref:d.arrowRef,context:d.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}e.popperContainer&&(m=x.createElement(e.popperContainer,{},m)),l&&!o&&(m=x.createElement(Ju,{portalId:l,portalHost:u},m));var p=_e("react-datepicker-wrapper",t);return x.createElement(x.Fragment,null,x.createElement("div",{ref:d.refs.setReference,className:p},a),m)},Wy=Uy(Hy);function Zy(e,r){return e&&r?w.getMonth(e)!==w.getMonth(r)||w.getYear(e)!==w.getYear(r):e!==r}var vs="Date input not valid.",qy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.calendar=null,n.input=null,n.getPreSelection=function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Re()},n.modifyHolidays=function(){var o;return(o=n.props.holidays)===null||o===void 0?void 0:o.reduce(function(i,a){var s=new Date(a.date);return Ci(s)?fr(fr([],i,!0),[Se(Se({},a),{date:s})],!1):i},[])},n.calcInitialState=function(){var o,i=n.getPreSelection(),a=Yu(n.props),s=Uu(n.props),c=a&&w.isBefore(i,Ei(a))?a:s&&w.isAfter(i,Iu(s))?s:i;return{open:n.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=n.props.selectsRange?n.props.startDate:n.props.selected)!==null&&o!==void 0?o:c,highlightDates:Hu(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},n.getInputValue=function(){var o,i=n.props,a=i.locale,s=i.startDate,c=i.endDate,l=i.rangeSeparator,u=i.selected,d=i.selectedDates,f=i.selectsMultiple,m=i.selectsRange,g=i.value,p=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,y=n.state.inputValue;return typeof g=="string"?g:typeof y=="string"?y:m?ry(s,c,{dateFormat:p,locale:a,rangeSeparator:l}):f?ny(d??[],{dateFormat:p,locale:a}):Ft(u,{dateFormat:p,locale:a})},n.resetHiddenStatus=function(){n.setState(Se(Se({},n.state),{wasHidden:!1}))},n.setHiddenStatus=function(){n.setState(Se(Se({},n.state),{wasHidden:!0}))},n.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&n.setHiddenStatus()},n.clearPreventFocusTimeout=function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)},n.setFocus=function(){var o,i;(i=(o=n.input)===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o,{preventScroll:!0})},n.setBlur=function(){var o,i;(i=(o=n.input)===null||o===void 0?void 0:o.blur)===null||i===void 0||i.call(o),n.cancelFocusInput()},n.deferBlur=function(){requestAnimationFrame(function(){n.setBlur()})},n.setOpen=function(o,i){i===void 0&&(i=!1),n.setState({open:o,preSelection:o&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:ys},function(){o||n.setState(function(a){return{focused:i?a.focused:!1}},function(){!i&&n.deferBlur(),n.setState({inputValue:null})})})},n.inputOk=function(){return w.isDate(n.state.preSelection)},n.isCalendarOpen=function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open},n.handleFocus=function(o){var i,a,s=n.state.wasHidden,c=s?n.state.open:!0;s&&n.resetHiddenStatus(),n.state.preventFocus||((a=(i=n.props).onFocus)===null||a===void 0||a.call(i,o),c&&!n.props.preventOpenOnFocus&&!n.props.readOnly&&n.setOpen(!0)),n.setState({focused:!0})},n.sendFocusBackToInput=function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})},n.cancelFocusInput=function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=void 0},n.deferFocusInput=function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)},n.handleDropdownFocus=function(){n.cancelFocusInput()},n.resetInputValue=function(){n.setState(Se(Se({},n.state),{inputValue:null}))},n.handleBlur=function(o){var i,a;(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&((a=(i=n.props).onBlur)===null||a===void 0||a.call(i,o)),n.resetInputValue(),n.state.open&&n.props.open===!1&&n.setOpen(!1),n.setState({focused:!1})},n.handleCalendarClickOutside=function(o){var i,a;n.props.inline||n.setOpen(!1),(a=(i=n.props).onClickOutside)===null||a===void 0||a.call(i,o),n.props.withPortal&&o.preventDefault()},n.handleChange=function(){for(var o,i,a,s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var d=l[0];if(!(n.props.onChangeRaw&&(n.props.onChangeRaw.apply(n,l),!d||typeof d.isDefaultPrevented!="function"||d.isDefaultPrevented()))){n.setState({inputValue:d?.target instanceof HTMLInputElement?d.target.value:null,lastPreSelectChange:Ky});var f=n.props,m=f.selectsRange,g=f.startDate,p=f.endDate,y=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,S=(i=n.props.strictParsing)!==null&&i!==void 0?i:r.defaultProps.strictParsing,C=d?.target instanceof HTMLInputElement?d.target.value:"";if(m){var k=n.props.rangeSeparator,E=k.trim(),_=C.split(y.includes(E)?k:E,2).map(function(I){return I.trim()}),O=_[0],N=_[1],q=us(O??"",y,n.props.locale,S),Z=q?us(N??"",y,n.props.locale,S):null,L=g?.getTime()!==q?.getTime(),K=p?.getTime()!==Z?.getTime();if(!L&&!K||q&&Yt(q,n.props)||Z&&Yt(Z,n.props))return;(s=(a=n.props).onChange)===null||s===void 0||s.call(a,[q,Z],d)}else{var v=us(C,y,n.props.locale,S,(c=n.props.selected)!==null&&c!==void 0?c:void 0);(v||!C)&&n.setSelected(v,d,!0)}}},n.handleSelect=function(o,i,a){if(!n.props.readOnly){var s=n.props,c=s.selectsRange,l=s.startDate,u=s.endDate,d=s.swapRange,f=!c||l&&!u&&(d||!ms(o,l));n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&f&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(i),n.setSelected(o,i,!1,a),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect?n.setPreSelection(o):f&&n.setOpen(!1)}},n.setSelected=function(o,i,a,s){var c,l,u=o;if(n.props.showYearPicker){if(u!==null&&Mi(w.getYear(u),n.props))return}else if(n.props.showMonthYearPicker){if(u!==null&&Nu(u,n.props))return}else if(u!==null&&Yt(u,n.props))return;var d=n.props,f=d.onChange,m=d.selectsRange,g=d.startDate,p=d.endDate,y=d.selectsMultiple,S=d.selectedDates,C=d.minTime,k=d.swapRange;if(!Zr(n.props.selected,u)||n.props.allowSameDay||m||y)if(u!==null&&(n.props.selected&&(!a||!n.props.showTimeSelect&&!n.props.showTimeSelectOnly&&!n.props.showTimeInput)&&(u=ds(u,{hour:w.getHours(n.props.selected),minute:w.getMinutes(n.props.selected),second:w.getSeconds(n.props.selected)})),!a&&(n.props.showTimeSelect||n.props.showTimeSelectOnly)&&C&&(u=ds(u,{hour:C.getHours(),minute:C.getMinutes(),second:C.getSeconds()})),n.props.inline||n.setState({preSelection:u}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:s})),m){var E=!g&&!p,_=g&&!p,O=!g&&!!p,N=g&&p;E?f?.([u,null],i):_?u===null?f?.([null,null],i):ms(u,g)?f?.(k?[u,g]:[u,null],i):f?.([g,u],i):O&&(u&&ms(u,p)?f?.([u,p],i):f?.([u,null],i)),N&&f?.([u,null],i)}else if(y){if(u!==null)if(!S?.length)f?.([u],i);else{var q=S.some(function(L){return Ce(L,u)});if(q){var Z=S.filter(function(L){return!Ce(L,u)});f?.(Z,i)}else f?.(fr(fr([],S,!0),[u],!1),i)}}else f?.(u,i);a||((l=(c=n.props).onSelect)===null||l===void 0||l.call(c,u,i),n.setState({inputValue:null}))},n.setPreSelection=function(o){if(!n.props.readOnly){var i=w.isDate(n.props.minDate),a=w.isDate(n.props.maxDate),s=!0;if(o){var c=Ei(o);if(i&&a)s=qr(o,n.props.minDate,n.props.maxDate);else if(i){var l=Ei(n.props.minDate);s=w.isAfter(o,l)||Zr(c,l)}else if(a){var u=Iu(n.props.maxDate);s=w.isBefore(o,u)||Zr(c,u)}}s&&n.setState({preSelection:o})}},n.toggleCalendar=function(){n.setOpen(!n.state.open)},n.handleTimeChange=function(o){var i,a;if(!(n.props.selectsRange||n.props.selectsMultiple)){var s=n.props.selected?n.props.selected:n.getPreSelection(),c=n.props.selected?o:ds(s,{hour:w.getHours(o),minute:w.getMinutes(o)});n.setState({preSelection:c}),(a=(i=n.props).onChange)===null||a===void 0||a.call(i,c),n.props.shouldCloseOnSelect&&!n.props.showTimeInput&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}},n.onInputClick=function(){var o,i;!n.props.disabled&&!n.props.readOnly&&n.setOpen(!0),(i=(o=n.props).onInputClick)===null||i===void 0||i.call(o)},n.onInputKeyDown=function(o){var i,a,s,c,l,u;(a=(i=n.props).onKeyDown)===null||a===void 0||a.call(i,o);var d=o.key;if(!n.state.open&&!n.props.inline&&!n.props.preventOpenOnFocus){(d===ie.ArrowDown||d===ie.ArrowUp||d===ie.Enter)&&((s=n.onInputClick)===null||s===void 0||s.call(n));return}if(n.state.open){if(d===ie.ArrowDown||d===ie.ArrowUp){o.preventDefault();var f=n.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':n.props.showFullMonthYearPicker||n.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((c=n.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&n.calendar.containerRef.current.querySelector(f);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var g=Re(n.state.preSelection);d===ie.Enter?(o.preventDefault(),o.target.blur(),n.inputOk()&&n.state.lastPreSelectChange===ys?(n.handleSelect(g,o),!n.props.shouldCloseOnSelect&&n.setPreSelection(g)):n.setOpen(!1)):d===ie.Escape?(o.preventDefault(),o.target.blur(),n.sendFocusBackToInput(),n.setOpen(!1)):d===ie.Tab&&n.setOpen(!1),n.inputOk()||(u=(l=n.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:vs})}},n.onPortalKeyDown=function(o){var i=o.key;i===ie.Escape&&(o.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))},n.onDayKeyDown=function(o){var i,a,s,c,l,u,d=n.props,f=d.minDate,m=d.maxDate,g=d.disabledKeyboardNavigation,p=d.showWeekPicker,y=d.shouldCloseOnSelect,S=d.locale,C=d.calendarStartDay,k=d.adjustDateOnChange,E=d.inline;if((a=(i=n.props).onKeyDown)===null||a===void 0||a.call(i,o),!g){var _=o.key,O=o.shiftKey,N=Re(n.state.preSelection),q=function(U,H){var ee=H;switch(U){case ie.ArrowRight:ee=p?w.addWeeks(H,1):w.addDays(H,1);break;case ie.ArrowLeft:ee=p?w.subWeeks(H,1):w.subDays(H,1);break;case ie.ArrowUp:ee=w.subWeeks(H,1);break;case ie.ArrowDown:ee=w.addWeeks(H,1);break;case ie.PageUp:ee=O?w.subYears(H,1):w.subMonths(H,1);break;case ie.PageDown:ee=O?w.addYears(H,1):w.addMonths(H,1);break;case ie.Home:ee=Rr(H,S,C);break;case ie.End:ee=ay(H);break}return ee},Z=function(U,H){for(var ee=40,re=U,se=!1,V=0,G=q(U,H);!se;){if(V>=ee){G=H;break}f&&G<f&&(re=ie.ArrowRight,G=Yt(f,n.props)?q(re,G):f),m&&G>m&&(re=ie.ArrowLeft,G=Yt(m,n.props)?q(re,G):m),Yt(G,n.props)?((re===ie.PageUp||re===ie.Home)&&(re=ie.ArrowRight),(re===ie.PageDown||re===ie.End)&&(re=ie.ArrowLeft),G=q(re,G)):se=!0,V++}return G};if(_===ie.Enter){o.preventDefault(),n.handleSelect(N,o),!y&&n.setPreSelection(N);return}else if(_===ie.Escape){o.preventDefault(),n.setOpen(!1),n.inputOk()||(c=(s=n.props).onInputError)===null||c===void 0||c.call(s,{code:1,msg:vs});return}var L=null;switch(_){case ie.ArrowLeft:case ie.ArrowRight:case ie.ArrowUp:case ie.ArrowDown:case ie.PageUp:case ie.PageDown:case ie.Home:case ie.End:L=Z(_,N);break}if(!L){(u=(l=n.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:vs});return}if(o.preventDefault(),n.setState({lastPreSelectChange:ys}),k&&n.setSelected(L),n.setPreSelection(L),E){var K=w.getMonth(N),v=w.getMonth(L),I=w.getYear(N),A=w.getYear(L);K!==v||I!==A?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}},n.onPopperKeyDown=function(o){var i=o.key;i===ie.Escape&&(o.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1))},n.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),n.sendFocusBackToInput();var i=n.props,a=i.selectsRange,s=i.onChange;s?.(a?[null,null]:null,o),n.setState({inputValue:null})},n.clear=function(){n.onClearClick()},n.onScroll=function(o){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(o)&&n.setOpen(!1)},n.renderCalendar=function(){var o,i;return!n.props.inline&&!n.isCalendarOpen()?null:x.createElement(By,Se({showMonthYearDropdown:void 0,ref:function(a){n.calendar=a}},n.props,n.state,{setOpen:n.setOpen,dateFormat:(o=n.props.dateFormatCalendar)!==null&&o!==void 0?o:r.defaultProps.dateFormatCalendar,onSelect:n.handleSelect,onClickOutside:n.handleCalendarClickOutside,holidays:yy(n.modifyHolidays()),outsideClickIgnoreClass:n.props.outsideClickIgnoreClass,onDropdownFocus:n.handleDropdownFocus,onTimeChange:n.handleTimeChange,className:n.props.calendarClassName,container:n.props.calendarContainer,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,setPreSelection:n.setPreSelection,dropdownMode:(i=n.props.dropdownMode)!==null&&i!==void 0?i:r.defaultProps.dropdownMode}),n.props.children)},n.renderAriaLiveRegion=function(){var o,i=n.props.locale,a=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,s=n.props.showTimeInput||n.props.showTimeSelect,c=s?"PPPPp":"PPPP",l;return n.props.selectsRange?l="Selected start date: ".concat(Ft(n.props.startDate,{dateFormat:c,locale:i}),". ").concat(n.props.endDate?"End date: "+Ft(n.props.endDate,{dateFormat:c,locale:i}):""):n.props.showTimeSelectOnly?l="Selected time: ".concat(Ft(n.props.selected,{dateFormat:a,locale:i})):n.props.showYearPicker?l="Selected year: ".concat(Ft(n.props.selected,{dateFormat:"yyyy",locale:i})):n.props.showMonthYearPicker?l="Selected month: ".concat(Ft(n.props.selected,{dateFormat:"MMMM yyyy",locale:i})):n.props.showQuarterYearPicker?l="Selected quarter: ".concat(Ft(n.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):l="Selected date: ".concat(Ft(n.props.selected,{dateFormat:c,locale:i})),x.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},l)},n.renderDateInput=function(){var o,i,a=_e(n.props.className,(o={},o[n.props.outsideClickIgnoreClass||r.defaultProps.outsideClickIgnoreClass]=n.state.open,o)),s=n.props.customInput||x.createElement("input",{type:"text"}),c=n.props.customInputRef||"ref";return x.cloneElement(s,(i={},i[c]=function(l){n.input=l},i.value=n.getInputValue(),i.onBlur=n.handleBlur,i.onChange=n.handleChange,i.onClick=n.onInputClick,i.onFocus=n.handleFocus,i.onKeyDown=n.onInputKeyDown,i.id=n.props.id,i.name=n.props.name,i.form=n.props.form,i.autoFocus=n.props.autoFocus,i.placeholder=n.props.placeholderText,i.disabled=n.props.disabled,i.autoComplete=n.props.autoComplete,i.className=_e(s.props.className,a),i.title=n.props.title,i.readOnly=n.props.readOnly,i.required=n.props.required,i.tabIndex=n.props.tabIndex,i["aria-describedby"]=n.props.ariaDescribedBy,i["aria-invalid"]=n.props.ariaInvalid,i["aria-labelledby"]=n.props.ariaLabelledBy,i["aria-required"]=n.props.ariaRequired,i))},n.renderClearButton=function(){var o=n.props,i=o.isClearable,a=o.disabled,s=o.selected,c=o.startDate,l=o.endDate,u=o.clearButtonTitle,d=o.clearButtonClassName,f=d===void 0?"":d,m=o.ariaLabelClose,g=m===void 0?"Close":m,p=o.selectedDates,y=o.readOnly;return i&&!y&&(s!=null||c!=null||l!=null||p?.length)?x.createElement("button",{type:"button",className:_e("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":g,onClick:n.onClearClick,title:u,tabIndex:-1}):null},n.state=n.calcInitialState(),n.preventFocusTimeout=void 0,n}return Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:Xu,readOnly:!1,rangeSeparator:Mu,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:io,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(t,n){var o,i,a,s;t.inline&&Zy(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Hu(this.props.highlightDates)}),!n.focused&&!Zr(t.selected,this.props.selected)&&this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&((i=(o=this.props).onCalendarOpen)===null||i===void 0||i.call(o)),n.open===!0&&this.state.open===!1&&((s=(a=this.props).onCalendarClose)===null||s===void 0||s.call(a)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var t=this.props,n=t.showIcon,o=t.icon,i=t.calendarIconClassname,a=t.calendarIconClassName,s=t.toggleCalendarOnIconClick,c=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),x.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&x.createElement(Vy,Se({icon:o,className:_e(a,!a&&i,c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var n=this.state.open?x.createElement(ed,{enableTabLoop:this.props.enableTabLoop},x.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(n=x.createElement(Ju,Se({portalId:this.props.portalId},this.props),n)),x.createElement("div",null,this.renderInputContainer(),n)}return x.createElement(Wy,Se({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r})(x.Component),Ky="input",ys="navigate";const Gy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M2.999%208.611a1.1%201.1%200%200%201%20.33-.786%201.135%201.135%200%200%201%201.591%200l7.079%206.993%207.079-6.993a1.135%201.135%200%200%201%201.837.36%201.1%201.1%200%200%201-.246%201.215l-7.87%207.775a1.135%201.135%200%200%201-1.591%200L3.328%209.4a1.1%201.1%200%200%201-.329-.789'/%3e%3c/svg%3e",Qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M15.39%2021a1.1%201.1%200%200%200%20.785-.33%201.135%201.135%200%200%200%200-1.591L9.182%2012l6.993-7.08a1.135%201.135%200%200%200-.36-1.835%201.1%201.1%200%200%200-1.21.244L6.824%2011.2a1.135%201.135%200%200%200%200%201.591L14.6%2020.67a1.1%201.1%200%200%200%20.79.33'/%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M8.61%203a1.1%201.1%200%200%200-.785.33%201.135%201.135%200%200%200%200%201.591L14.818%2012l-6.993%207.08a1.135%201.135%200%200%200%20.36%201.835%201.1%201.1%200%200%200%201.21-.244l7.78-7.871a1.135%201.135%200%200%200%200-1.591L9.4%203.33A1.1%201.1%200%200%200%208.61%203'/%3e%3c/svg%3e",Jy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23fff'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.085%207.331a1.096%201.096%200%201%200-2.192%200v9.316a1.096%201.096%200%200%200%202.192%200z'/%3e%3cpath%20d='M16.647%2010.893H7.33a1.096%201.096%200%201%200%200%202.192h9.316a1.096%201.096%200%200%200%200-2.192'/%3e%3cpath%20d='M12%2024C5.38%2024%200%2018.608%200%2012S5.38%200%2012%200s12%205.38%2012%2012-5.38%2012-12%2012m0-21.808c-5.414%200-9.808%204.394-9.808%209.808S6.586%2021.808%2012%2021.808s9.808-4.394%209.808-9.808S17.403%202.192%2012%202.192'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",eb=x.forwardRef(({value:e,onClick:r},t)=>h.jsxs("button",{className:Yr.datePickerButton,onClick:r,ref:t,children:[e,h.jsx("img",{src:Gy,style:{marginLeft:10}})]})),tb=({currentDate:e,onPrevMonth:r,onNextMonth:t,onAddEvent:n,onDateChange:o})=>h.jsxs("div",{className:Yr.headerContainer,children:[h.jsxs("div",{className:Yr.navAndDate,children:[h.jsx("button",{className:Yr.navButton,onClick:r,children:h.jsx("img",{src:Qy,width:15})}),h.jsx("button",{className:Yr.navButton,onClick:t,children:h.jsx("img",{src:Xy,width:15})}),h.jsx(qy,{selected:e,onChange:i=>o(i),dateFormat:"MMMM yyyy",showMonthYearPicker:!0,className:Yr.datePickerInput,locale:"es",customInput:h.jsx(eb,{})})]}),h.jsxs("button",{className:Yr.addEventButton,onClick:n,children:[h.jsx("img",{src:Jy}),"Agregar evento"]})]}),xe={sidebarContainer:"_sidebarContainer_1pgug_1",leadsSection:"_leadsSection_1pgug_17",leadCard:"_leadCard_1pgug_33",leadIcon:"_leadIcon_1pgug_71",leadDays:"_leadDays_1pgug_81",leadCount:"_leadCount_1pgug_91",eventsSection:"_eventsSection_1pgug_105",sidebarTitle:"_sidebarTitle_1pgug_129",eventGroup:"_eventGroup_1pgug_147",eventGroupDate:"_eventGroupDate_1pgug_155",eventItem:"_eventItem_1pgug_167",eventDetails:"_eventDetails_1pgug_201",eventTitle:"_eventTitle_1pgug_215",eventTime:"_eventTime_1pgug_241",calendarsSection:"_calendarsSection_1pgug_263",collapsibleHeader:"_collapsibleHeader_1pgug_271",headerTitle:"_headerTitle_1pgug_299",calendarCount:"_calendarCount_1pgug_313",chevronIcon:"_chevronIcon_1pgug_331",collapsed:"_collapsed_1pgug_339",collapsibleContent:"_collapsibleContent_1pgug_347",hidden:"_hidden_1pgug_363",calendarItem:"_calendarItem_1pgug_373",circularCheckbox:"_circularCheckbox_1pgug_407",checkedIcon:"_checkedIcon_1pgug_425",uncheckedIcon:"_uncheckedIcon_1pgug_433",calendarIcon:"_calendarIcon_1pgug_441",googleIcon:"_googleIcon_1pgug_449",syncButton:"_syncButton_1pgug_457",eventsContainer:"_eventsContainer_1pgug_509"};/**
122
122
  * @license lucide-react v0.540.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const tb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,n)=>n?n.toUpperCase():t.toLowerCase()),Ju=e=>{const r=rb(e);return r.charAt(0).toUpperCase()+r.slice(1)},ed=(...e)=>e.filter((r,t,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===t).join(" ").trim(),nb=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
126
+ */const rb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,n)=>n?n.toUpperCase():t.toLowerCase()),td=e=>{const r=nb(e);return r.charAt(0).toUpperCase()+r.slice(1)},rd=(...e)=>e.filter((r,t,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===t).join(" ").trim(),ob=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
127
127
  * @license lucide-react v0.540.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */var ob={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
131
+ */var ib={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
132
132
  * @license lucide-react v0.540.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const ib=x.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},c)=>x.createElement("svg",{ref:c,...ob,width:r,height:r,stroke:e,strokeWidth:n?Number(t)*24/Number(r):t,className:ed("lucide",o),...!i&&!nb(s)&&{"aria-hidden":"true"},...s},[...a.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
136
+ */const ab=x.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},c)=>x.createElement("svg",{ref:c,...ib,width:r,height:r,stroke:e,strokeWidth:n?Number(t)*24/Number(r):t,className:rd("lucide",o),...!i&&!ob(s)&&{"aria-hidden":"true"},...s},[...a.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
137
137
  * @license lucide-react v0.540.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const co=(e,r)=>{const t=x.forwardRef(({className:n,...o},i)=>x.createElement(ib,{ref:i,iconNode:r,className:ed(`lucide-${tb(Ju(e))}`,`lucide-${e}`,n),...o}));return t.displayName=Ju(e),t};/**
141
+ */const lo=(e,r)=>{const t=x.forwardRef(({className:n,...o},i)=>x.createElement(ab,{ref:i,iconNode:r,className:rd(`lucide-${rb(td(e))}`,`lucide-${e}`,n),...o}));return t.displayName=td(e),t};/**
142
142
  * @license lucide-react v0.540.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const td=co("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
146
+ */const nd=lo("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
147
147
  * @license lucide-react v0.540.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const ab=co("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
151
+ */const sb=lo("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
152
152
  * @license lucide-react v0.540.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const sb=co("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
156
+ */const cb=lo("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
157
157
  * @license lucide-react v0.540.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const cb=co("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
161
+ */const lb=lo("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
162
162
  * @license lucide-react v0.540.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const lb=co("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),rd=Symbol.for("constructDateFrom");function vs(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&rd in e?e[rd](r):e instanceof Date?new e.constructor(r):new Date(r)}function Nr(e,r){return vs(r||e,e)}function nd(e,r,t){const[n,o]=[+Nr(e.start,t?.in),+Nr(e.end,t?.in)].sort((s,c)=>s-c),[i,a]=[+Nr(r.start,t?.in),+Nr(r.end,t?.in)].sort((s,c)=>s-c);return n<a&&i<o}function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pi(e)}var ub=/^\s+/,db=/\s+$/;function de(e,r){if(e=e||"",r=r||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,r);var t=fb(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}de.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),t,n,o,i,a,s;return t=r.r/255,n=r.g/255,o=r.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(r){return this._a=ld(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=id(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=id(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var r=od(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=od(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(r){return ad(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return gb(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(We(this._r,255)*100)+"%",g:Math.round(We(this._g,255)*100)+"%",b:Math.round(We(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%)":"rgba("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Tb[ad(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var t="#"+sd(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(r){var i=de(r);n="#"+sd(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(r){var t=!!r;r=r||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return i?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return de(this.toString())},_applyModification:function(r,t){var n=r.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(wb,arguments)},brighten:function(){return this._applyModification(_b,arguments)},darken:function(){return this._applyModification(xb,arguments)},desaturate:function(){return this._applyModification(vb,arguments)},saturate:function(){return this._applyModification(yb,arguments)},greyscale:function(){return this._applyModification(bb,arguments)},spin:function(){return this._applyModification(Sb,arguments)},_applyCombination:function(r,t){return r.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(kb,arguments)},complement:function(){return this._applyCombination(Cb,arguments)},monochromatic:function(){return this._applyCombination(Db,arguments)},splitcomplement:function(){return this._applyCombination(Eb,arguments)},triad:function(){return this._applyCombination(cd,[3])},tetrad:function(){return this._applyCombination(cd,[4])}},de.fromRatio=function(e,r){if(Pi(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?t[n]=e[n]:t[n]=lo(e[n]));e=t}return de(e,r)};function fb(e){var r={r:0,g:0,b:0},t=1,n=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Ab(e)),Pi(e)=="object"&&(_r(e.r)&&_r(e.g)&&_r(e.b)?(r=pb(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_r(e.h)&&_r(e.s)&&_r(e.v)?(n=lo(e.s),o=lo(e.v),r=mb(e.h,n,o),a=!0,s="hsv"):_r(e.h)&&_r(e.s)&&_r(e.l)&&(n=lo(e.s),i=lo(e.l),r=hb(e.h,n,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=ld(t),{ok:a,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}function pb(e,r,t){return{r:We(e,255)*255,g:We(r,255)*255,b:We(t,255)*255}}function od(e,r,t){e=We(e,255),r=We(r,255),t=We(t,255);var n=Math.max(e,r,t),o=Math.min(e,r,t),i,a,s=(n+o)/2;if(n==o)i=a=0;else{var c=n-o;switch(a=s>.5?c/(2-n-o):c/(n+o),n){case e:i=(r-t)/c+(r<t?6:0);break;case r:i=(t-e)/c+2;break;case t:i=(e-r)/c+4;break}i/=6}return{h:i,s:a,l:s}}function hb(e,r,t){var n,o,i;e=We(e,360),r=We(r,100),t=We(t,100);function a(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(r===0)n=o=i=t;else{var s=t<.5?t*(1+r):t+r-t*r,c=2*t-s;n=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function id(e,r,t){e=We(e,255),r=We(r,255),t=We(t,255);var n=Math.max(e,r,t),o=Math.min(e,r,t),i,a,s=n,c=n-o;if(a=n===0?0:c/n,n==o)i=0;else{switch(n){case e:i=(r-t)/c+(r<t?6:0);break;case r:i=(t-e)/c+2;break;case t:i=(e-r)/c+4;break}i/=6}return{h:i,s:a,v:s}}function mb(e,r,t){e=We(e,360)*6,r=We(r,100),t=We(t,100);var n=Math.floor(e),o=e-n,i=t*(1-r),a=t*(1-o*r),s=t*(1-(1-o)*r),c=n%6,l=[t,a,i,i,s,t][c],u=[s,t,t,a,i,i][c],d=[i,i,s,t,t,a][c];return{r:l*255,g:u*255,b:d*255}}function ad(e,r,t,n){var o=[Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function gb(e,r,t,n,o){var i=[Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16)),Kt(ud(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function sd(e,r,t,n){var o=[Kt(ud(n)),Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16))];return o.join("")}de.equals=function(e,r){return!e||!r?!1:de(e).toRgbString()==de(r).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function vb(e,r){r=r===0?0:r||10;var t=de(e).toHsl();return t.s-=r/100,t.s=Ai(t.s),de(t)}function yb(e,r){r=r===0?0:r||10;var t=de(e).toHsl();return t.s+=r/100,t.s=Ai(t.s),de(t)}function bb(e){return de(e).desaturate(100)}function wb(e,r){r=r===0?0:r||10;var t=de(e).toHsl();return t.l+=r/100,t.l=Ai(t.l),de(t)}function _b(e,r){r=r===0?0:r||10;var t=de(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),de(t)}function xb(e,r){r=r===0?0:r||10;var t=de(e).toHsl();return t.l-=r/100,t.l=Ai(t.l),de(t)}function Sb(e,r){var t=de(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,de(t)}function Cb(e){var r=de(e).toHsl();return r.h=(r.h+180)%360,de(r)}function cd(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=de(e).toHsl(),n=[de(e)],o=360/r,i=1;i<r;i++)n.push(de({h:(t.h+i*o)%360,s:t.s,l:t.l}));return n}function Eb(e){var r=de(e).toHsl(),t=r.h;return[de(e),de({h:(t+72)%360,s:r.s,l:r.l}),de({h:(t+216)%360,s:r.s,l:r.l})]}function kb(e,r,t){r=r||6,t=t||30;var n=de(e).toHsl(),o=360/t,i=[de(e)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,i.push(de(n));return i}function Db(e,r){r=r||6;for(var t=de(e).toHsv(),n=t.h,o=t.s,i=t.v,a=[],s=1/r;r--;)a.push(de({h:n,s:o,v:i})),i=(i+s)%1;return a}de.mix=function(e,r,t){t=t===0?0:t||50;var n=de(e).toRgb(),o=de(r).toRgb(),i=t/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return de(a)},de.readability=function(e,r){var t=de(e),n=de(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},de.isReadable=function(e,r,t){var n=de.readability(e,r),o,i;switch(i=!1,o=Ib(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},de.mostReadable=function(e,r,t){var n=null,o=0,i,a,s,c;t=t||{},a=t.includeFallbackColors,s=t.level,c=t.size;for(var l=0;l<r.length;l++)i=de.readability(e,r[l]),i>o&&(o=i,n=de(r[l]));return de.isReadable(e,n,{level:s,size:c})||!a?n:(t.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],t))};var ys=de.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Tb=de.hexNames=Ob(ys);function Ob(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function ld(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function We(e,r){Mb(e)&&(e="100%");var t=Pb(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function Ai(e){return Math.min(1,Math.max(0,e))}function $t(e){return parseInt(e,16)}function Mb(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Pb(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Kt(e){return e.length==1?"0"+e:""+e}function lo(e){return e<=1&&(e=e*100+"%"),e}function ud(e){return Math.round(parseFloat(e)*255).toString(16)}function dd(e){return $t(e)/255}var Gt=(function(){var e="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",t="(?:"+r+")|(?:"+e+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function _r(e){return!!Gt.CSS_UNIT.exec(e)}function Ab(e){e=e.replace(ub,"").replace(db,"").toLowerCase();var r=!1;if(ys[e])e=ys[e],r=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Gt.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Gt.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Gt.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Gt.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Gt.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Gt.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Gt.hex8.exec(e))?{r:$t(t[1]),g:$t(t[2]),b:$t(t[3]),a:dd(t[4]),format:r?"name":"hex8"}:(t=Gt.hex6.exec(e))?{r:$t(t[1]),g:$t(t[2]),b:$t(t[3]),format:r?"name":"hex"}:(t=Gt.hex4.exec(e))?{r:$t(t[1]+""+t[1]),g:$t(t[2]+""+t[2]),b:$t(t[3]+""+t[3]),a:dd(t[4]+""+t[4]),format:r?"name":"hex8"}:(t=Gt.hex3.exec(e))?{r:$t(t[1]+""+t[1]),g:$t(t[2]+""+t[2]),b:$t(t[3]+""+t[3]),format:r?"name":"hex"}:!1}function Ib(e){var r,t;return e=e||{level:"AA",size:"small"},r=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:r,size:t}}const fd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23C4D9F5'%20d='M36.667%2020c0%209.205-7.462%2016.667-16.667%2016.667S3.333%2029.205%203.333%2020%2010.795%203.333%2020%203.333%2036.667%2010.795%2036.667%2020'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M20%2012.083c.69%200%201.25.56%201.25%201.25v6.15l3.8%203.8a1.25%201.25%200%201%201-1.767%201.767l-4.167-4.166A1.25%201.25%200%200%201%2018.75%2020v-6.667c0-.69.56-1.25%201.25-1.25'%20clip-rule='evenodd'/%3e%3c/svg%3e",Rb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M17.614%202.64h-.5v-.622c0-.566-.443-1.018-.998-1.018s-.998.452-.998%201.018v.622H7.893v-.622C7.894%201.452%207.45%201%206.895%201s-.999.452-.999%201.018v.622h-.5C2.946%202.64.959%204.665.959%207.165v11.31c0%202.5%201.987%204.525%204.439%204.525h12.206c2.452%200%204.439-2.025%204.439-4.524V7.165c0-2.5-1.987-4.525-4.439-4.525zm0%2018.098H5.408c-1.22%200-2.22-1.018-2.22-2.262V10.41h16.646v8.065c0%201.244-1%202.262-2.22%202.262'/%3e%3c/svg%3e",Nb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M12.667%204.667a3%203%200%200%201%203%203v8.667a3%203%200%200%201-3%203H4a3%203%200%200%201-3-3V7.667a3%203%200%200%201%203-3zM21.36%206.237a1%201%200%200%201%201.64.77V17a1%201%200%200%201-1.64.768L17%2014.135V9.867z'/%3e%3c/svg%3e",$b=({onEventClick:e,upcomingEvents:r,onSyncGoogle:t,onSyncOutlook:n,leads30Days:o,leads90Days:i})=>{const a=d=>{const f=new Date,m={start:w.startOfDay(f),end:w.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return nd(m,g)?"Hoy":w.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};r.forEach(d=>{const f=a(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=x.useState(!1),u=()=>{l(!c)};return h.jsxs("div",{className:we.sidebarContainer,children:[h.jsxs("div",{className:we.leadsSection,children:[h.jsxs("div",{className:we.leadCard,children:[h.jsx("div",{className:we.leadIcon,children:h.jsx("img",{src:fd})}),h.jsxs("div",{className:we.leadText,children:[h.jsx("div",{className:we.leadDays,children:"+30 días sin atender"}),h.jsxs("div",{className:we.leadCount,children:[o," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),h.jsxs("div",{className:we.leadCard,children:[h.jsx("div",{className:we.leadIcon,children:h.jsx("img",{src:fd})}),h.jsxs("div",{className:we.leadText,children:[h.jsx("div",{className:we.leadDays,children:"+90 días sin atender"}),h.jsxs("div",{className:we.leadCount,children:[i," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),h.jsxs("div",{className:we.eventsSection,children:[h.jsx("h3",{className:we.sidebarTitle,children:"Próximos eventos"}),h.jsx("div",{className:we.eventsContainer,children:Object.entries(s).map(([d,f])=>h.jsxs("div",{className:`${we.eventGroup}`,children:[h.jsxs("div",{className:we.eventGroupDate,children:[h.jsx("img",{src:Rb,width:15})," ",d]}),f.map(m=>{const g=de(m.color||"#ffcc00"),p=g.toString(),y=g.clone().darken(15).toString();return h.jsxs("div",{className:we.eventItem,style:{backgroundColor:p,borderLeftColor:y},onClick:()=>e(m),children:[h.jsxs("div",{className:we.eventDetails,children:[h.jsx("div",{className:we.eventTitle,children:m.titulo.length>32?`${m.titulo.substring(0,32)}...`:m.titulo}),h.jsx("div",{className:we.eventGroupDate,children:m?.client?m?.client?.length>50?`${m.client.substring(0,32)}...`:m.client:""}),h.jsx("div",{className:we.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&h.jsx("a",{onClick:S=>{S.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:h.jsx("img",{src:Nb,width:15,style:{marginLeft:"3px"}})})]},m.eventoID)})]},d))})]}),h.jsxs("div",{className:we.calendarsSection,hidden:!0,children:[h.jsxs("button",{onClick:u,className:we.collapsibleHeader,children:[h.jsxs("div",{className:we.headerTitle,children:[h.jsx("h3",{children:"Calendarios"}),h.jsx("span",{className:we.calendarCount,children:"1"})]}),h.jsx(ab,{className:`${we.chevronIcon} ${c?we.collapsed:""}`})]}),h.jsxs("div",{className:`${we.collapsibleContent} ${c?we.hidden:""}`,children:[h.jsxs("div",{className:we.calendarItem,children:[h.jsx("div",{className:we.circularCheckbox,children:h.jsx(sb,{size:24,className:we.checkedIcon})}),h.jsx(td,{size:24,className:we.calendarIcon}),h.jsx("span",{children:"Mi calendario"})]}),h.jsxs("div",{className:we.calendarItem,onClick:n,children:[h.jsx("div",{className:we.circularCheckbox,children:h.jsx(cb,{size:24,className:we.uncheckedIcon})}),h.jsx(lb,{size:24,className:we.calendarIcon}),h.jsx("span",{children:"Outlook"})]}),h.jsxs("div",{className:we.syncButton,onClick:t,children:[h.jsx(td,{size:24,className:we.googleIcon}),h.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},Qt={dayCell:"_dayCell_ph891_1",dayCellContainer:"_dayCellContainer_ph891_23",dayNumber:"_dayNumber_ph891_55",dayNumberToday:"_dayNumberToday_ph891_69",notCurrentMonth:"_notCurrentMonth_ph891_91",CurrentDay:"_CurrentDay_ph891_129",eventsList:"_eventsList_ph891_137",eventItem:"_eventItem_ph891_155",eventTitle:"_eventTitle_ph891_187",eventTime:"_eventTime_ph891_217",seeMoreLink:"_seeMoreLink_ph891_245"},pd=25,jb=22,Lb=({dayNumber:e,date:r,events:t,isToday:n,isCurrentMonth:o,onDayClick:i,onEventClick:a,onSeeMoreClick:s})=>{const c=[Qt.dayCell,o?"":Qt.notCurrentMonth,Qt.CurrentDay].join(" ").trim(),l=x.useRef(null),[u,d]=x.useState(t.length),f=()=>{i?.(r)};x.useLayoutEffect(()=>{const p=()=>{if(l.current){const y=l.current.clientHeight;let S=Math.floor(y/pd);if(S<t.length){const C=Math.floor((y-jb)/pd);S=Math.max(0,C)}d(S)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[t.length]);const m=t.slice(0,u==0?1:u),g=t.length-(u==0?1:u);return h.jsxs("div",{className:`${c} ${Qt.dayCellContainer}`,onClick:f,children:[h.jsx("div",{className:n?Qt.dayNumber:Qt.dayNumberToday,children:e}),h.jsxs("div",{className:Qt.eventsList,ref:l,children:[m.map(p=>h.jsxs("div",{className:Qt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:y=>{y.stopPropagation(),a?.(p)},children:[h.jsx("span",{className:Qt.eventTitle,children:p.titulo}),h.jsx("span",{className:Qt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&h.jsxs("div",{className:Qt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(t,r)},children:[g," más..."]})]})]})},hd={weekDaysContainer:"_weekDaysContainer_5h5ol_1",weekDay:"_weekDay_5h5ol_1"},zb=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return h.jsx("div",{className:hd.weekDaysContainer,children:e.map(r=>h.jsx("div",{className:hd.weekDay,children:r},r))})},Ii={calendarGridContainer:"_calendarGridContainer_1expw_1",daysContainer:"_daysContainer_1expw_23",rows5:"_rows5_1expw_37",rows6:"_rows6_1expw_45"};function Bb(e,...r){const t=vs.bind(null,r.find(n=>typeof n=="object"));return r.map(t)}function Vb(e,r){const[t,n]=Bb(e,r.start,r.end);return{start:t,end:n}}function Fb(e,r){const{start:t,end:n}=Vb(r?.in,e);let o=+t>+n;const i=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(vs(t,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function Yb(e,r){const t=r?.weekStartsOn,n=Nr(e,r?.in),o=n.getDay(),i=(o<t?-7:0)+6-(o-t);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Ub(e,r,t){const n=+Nr(e,t?.in),[o,i]=[+Nr(r.start,t?.in),+Nr(r.end,t?.in)].sort((a,s)=>a-s);return n>=o&&n<=i}const Hb=({currentDate:e,events:r,onDayClick:t,onEventClick:n,onSeeMoreClick:o})=>{const i=w.startOfMonth(e),a=w.endOfMonth(e),s=w.startOfWeek(i,{weekStartsOn:1}),c=Yb(a,{weekStartsOn:1}),l=Fb({start:s,end:c}),u={},d=l.length/7,f=`${Ii.daysContainer} ${d===5?Ii.rows5:Ii.rows6}`;return r.forEach(m=>{const g=w.format(m.fechaInicio,"yyyy-MM-dd");u[g]||(u[g]=[]),u[g].push(m)}),h.jsxs("div",{className:Ii.calendarGridContainer,children:[h.jsx(zb,{}),h.jsx("div",{className:f,children:l.map(m=>{const g=r.filter(p=>Ub(m,{start:w.startOfDay(p.fechaInicio),end:w.endOfDay(p.fechaFin)}));return h.jsx(Lb,{dayNumber:m.getDate(),date:m,events:g,isToday:w.isToday(m),isCurrentMonth:w.isSameMonth(m,e),onDayClick:t,onEventClick:n,onSeeMoreClick:o},m.toISOString())})})]})};function md(e,r){return function(){return e.apply(r,arguments)}}const{toString:Wb}=Object.prototype,{getPrototypeOf:bs}=Object,{iterator:Ri,toStringTag:gd}=Symbol,Ni=(e=>r=>{const t=Wb.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),r=>Ni(r)===e),$i=e=>r=>typeof r===e,{isArray:kn}=Array,uo=$i("undefined");function fo(e){return e!==null&&!uo(e)&&e.constructor!==null&&!uo(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vd=Xt("ArrayBuffer");function Zb(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&vd(e.buffer),r}const qb=$i("string"),kt=$i("function"),yd=$i("number"),po=e=>e!==null&&typeof e=="object",Kb=e=>e===!0||e===!1,ji=e=>{if(Ni(e)!=="object")return!1;const r=bs(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(gd in e)&&!(Ri in e)},Gb=e=>{if(!po(e)||fo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Qb=Xt("Date"),Xb=Xt("File"),Jb=Xt("Blob"),e1=Xt("FileList"),t1=e=>po(e)&&kt(e.pipe),r1=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||kt(e.append)&&((r=Ni(e))==="formdata"||r==="object"&&kt(e.toString)&&e.toString()==="[object FormData]"))},n1=Xt("URLSearchParams"),[o1,i1,a1,s1]=["ReadableStream","Request","Response","Headers"].map(Xt),c1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ho(e,r,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),kn(e))for(n=0,o=e.length;n<o;n++)r.call(null,e[n],n,e);else{if(fo(e))return;const i=t?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],r.call(null,e[s],s,e)}}function bd(e,r){if(fo(e))return null;r=r.toLowerCase();const t=Object.keys(e);let n=t.length,o;for(;n-- >0;)if(o=t[n],r===o.toLowerCase())return o;return null}const Kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wd=e=>!uo(e)&&e!==Kr;function ws(){const{caseless:e}=wd(this)&&this||{},r={},t=(n,o)=>{const i=e&&bd(r,o)||o;ji(r[i])&&ji(n)?r[i]=ws(r[i],n):ji(n)?r[i]=ws({},n):kn(n)?r[i]=n.slice():r[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ho(arguments[n],t);return r}const l1=(e,r,t,{allOwnKeys:n}={})=>(ho(r,(o,i)=>{t&&kt(o)?e[i]=md(o,t):e[i]=o},{allOwnKeys:n}),e),u1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),d1=(e,r,t,n)=>{e.prototype=Object.create(r.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),t&&Object.assign(e.prototype,t)},f1=(e,r,t,n)=>{let o,i,a;const s={};if(r=r||{},e==null)return r;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,r))&&!s[a]&&(r[a]=e[a],s[a]=!0);e=t!==!1&&bs(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r},p1=(e,r,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;const n=e.indexOf(r,t);return n!==-1&&n===t},h1=e=>{if(!e)return null;if(kn(e))return e;let r=e.length;if(!yd(r))return null;const t=new Array(r);for(;r-- >0;)t[r]=e[r];return t},m1=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&bs(Uint8Array)),g1=(e,r)=>{const n=(e&&e[Ri]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;r.call(e,i[0],i[1])}},v1=(e,r)=>{let t;const n=[];for(;(t=e.exec(r))!==null;)n.push(t);return n},y1=Xt("HTMLFormElement"),b1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),_d=(({hasOwnProperty:e})=>(r,t)=>e.call(r,t))(Object.prototype),w1=Xt("RegExp"),xd=(e,r)=>{const t=Object.getOwnPropertyDescriptors(e),n={};ho(t,(o,i)=>{let a;(a=r(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},_1=e=>{xd(e,(r,t)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(kt(n)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},x1=(e,r)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return kn(e)?n(e):n(String(e).split(r)),t},S1=()=>{},C1=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r;function E1(e){return!!(e&&kt(e.append)&&e[gd]==="FormData"&&e[Ri])}const k1=e=>{const r=new Array(10),t=(n,o)=>{if(po(n)){if(r.indexOf(n)>=0)return;if(fo(n))return n;if(!("toJSON"in n)){r[o]=n;const i=kn(n)?[]:{};return ho(n,(a,s)=>{const c=t(a,o+1);!uo(c)&&(i[s]=c)}),r[o]=void 0,i}}return n};return t(e,0)},D1=Xt("AsyncFunction"),T1=e=>e&&(po(e)||kt(e))&&kt(e.then)&&kt(e.catch),Sd=((e,r)=>e?setImmediate:r?((t,n)=>(Kr.addEventListener("message",({source:o,data:i})=>{o===Kr&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),Kr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",kt(Kr.postMessage)),O1=typeof queueMicrotask<"u"?queueMicrotask.bind(Kr):typeof process<"u"&&process.nextTick||Sd,z={isArray:kn,isArrayBuffer:vd,isBuffer:fo,isFormData:r1,isArrayBufferView:Zb,isString:qb,isNumber:yd,isBoolean:Kb,isObject:po,isPlainObject:ji,isEmptyObject:Gb,isReadableStream:o1,isRequest:i1,isResponse:a1,isHeaders:s1,isUndefined:uo,isDate:Qb,isFile:Xb,isBlob:Jb,isRegExp:w1,isFunction:kt,isStream:t1,isURLSearchParams:n1,isTypedArray:m1,isFileList:e1,forEach:ho,merge:ws,extend:l1,trim:c1,stripBOM:u1,inherits:d1,toFlatObject:f1,kindOf:Ni,kindOfTest:Xt,endsWith:p1,toArray:h1,forEachEntry:g1,matchAll:v1,isHTMLForm:y1,hasOwnProperty:_d,hasOwnProp:_d,reduceDescriptors:xd,freezeMethods:_1,toObjectSet:x1,toCamelCase:b1,noop:S1,toFiniteNumber:C1,findKey:bd,global:Kr,isContextDefined:wd,isSpecCompliantForm:E1,toJSONObject:k1,isAsyncFn:D1,isThenable:T1,setImmediate:Sd,asap:O1,isIterable:e=>e!=null&&kt(e[Ri])};function ye(e,r,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const Cd=ye.prototype,Ed={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ed[e]={value:e}}),Object.defineProperties(ye,Ed),Object.defineProperty(Cd,"isAxiosError",{value:!0}),ye.from=(e,r,t,n,o,i)=>{const a=Object.create(Cd);return z.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),ye.call(a,e.message,r,t,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const M1=null;function _s(e){return z.isPlainObject(e)||z.isArray(e)}function kd(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Dd(e,r,t){return e?e.concat(r).map(function(o,i){return o=kd(o),!t&&i?"["+o+"]":o}).join(t?".":""):r}function P1(e){return z.isArray(e)&&!e.some(_s)}const A1=z.toFlatObject(z,{},null,function(r){return/^is[A-Z]/.test(r)});function Li(e,r,t){if(!z.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,t=z.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!z.isUndefined(y[p])});const n=t.metaTokens,o=t.visitor||u,i=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(r);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!c&&z.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let S=g;if(g&&!y&&typeof g=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&P1(g)||(z.isFileList(g)||z.endsWith(p,"[]"))&&(S=z.toArray(g)))return p=kd(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&r.append(a===!0?Dd([p],E,i):a===null?p:p+"[]",l(k))}),!1}return _s(g)?!0:(r.append(Dd(y,p,i),l(g)),!1)}const d=[],f=Object.assign(A1,{defaultVisitor:u,convertValue:l,isVisitable:_s});function m(g,p){if(!z.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),z.forEach(g,function(S,C){(!(z.isUndefined(S)||S===null)&&o.call(r,S,z.isString(C)?C.trim():C,p,f))===!0&&m(S,p?p.concat(C):[C])}),d.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),r}function Td(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return r[n]})}function xs(e,r){this._pairs=[],e&&Li(e,this,r)}const Od=xs.prototype;Od.append=function(r,t){this._pairs.push([r,t])},Od.toString=function(r){const t=r?function(n){return r.call(this,n,Td)}:Td;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function I1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Md(e,r,t){if(!r)return e;const n=t&&t.encode||I1;z.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(r,t):i=z.isURLSearchParams(r)?r.toString():new xs(r,t).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Pd{constructor(){this.handlers=[]}use(r,t,n){return this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){z.forEach(this.handlers,function(n){n!==null&&r(n)})}}const Ad={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:xs,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ss=typeof window<"u"&&typeof document<"u",Cs=typeof navigator=="object"&&navigator||void 0,N1=Ss&&(!Cs||["ReactNative","NativeScript","NS"].indexOf(Cs.product)<0),$1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",j1=Ss&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ss,hasStandardBrowserEnv:N1,hasStandardBrowserWebWorkerEnv:$1,navigator:Cs,origin:j1},Symbol.toStringTag,{value:"Module"})),...R1};function L1(e,r){return Li(e,new gt.classes.URLSearchParams,{visitor:function(t,n,o,i){return gt.isNode&&z.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...r})}function z1(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function B1(e){const r={},t=Object.keys(e);let n;const o=t.length;let i;for(n=0;n<o;n++)i=t[n],r[i]=e[i];return r}function Id(e){function r(t,n,o,i){let a=t[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=t.length;return a=!a&&z.isArray(o)?o.length:a,c?(z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!z.isObject(o[a]))&&(o[a]=[]),r(t,n,o[a],i)&&z.isArray(o[a])&&(o[a]=B1(o[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const t={};return z.forEachEntry(e,(n,o)=>{r(z1(n),o,t,0)}),t}return null}function V1(e,r,t){if(z.isString(e))try{return(r||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const mo={transitional:Ad,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=z.isObject(r);if(i&&z.isHTMLForm(r)&&(r=new FormData(r)),z.isFormData(r))return o?JSON.stringify(Id(r)):r;if(z.isArrayBuffer(r)||z.isBuffer(r)||z.isStream(r)||z.isFile(r)||z.isBlob(r)||z.isReadableStream(r))return r;if(z.isArrayBufferView(r))return r.buffer;if(z.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return L1(r,this.formSerializer).toString();if((s=z.isFileList(r))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Li(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),V1(r)):r}],transformResponse:[function(r){const t=this.transitional||mo.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(r)||z.isReadableStream(r))return r;if(r&&z.isString(r)&&(n&&!this.responseType||o)){const a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(s){if(a)throw s.name==="SyntaxError"?ye.from(s,ye.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{mo.headers[e]={}});const F1=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Y1=e=>{const r={};let t,n,o;return e&&e.split(`
167
- `).forEach(function(a){o=a.indexOf(":"),t=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!t||r[t]&&F1[t])&&(t==="set-cookie"?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)}),r},Rd=Symbol("internals");function go(e){return e&&String(e).trim().toLowerCase()}function zi(e){return e===!1||e==null?e:z.isArray(e)?e.map(zi):String(e)}function U1(e){const r=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)r[n[1]]=n[2];return r}const H1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Es(e,r,t,n,o){if(z.isFunction(n))return n.call(this,r,t);if(o&&(r=t),!!z.isString(r)){if(z.isString(n))return r.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(r)}}function W1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,t,n)=>t.toUpperCase()+n)}function Z1(e,r){const t=z.toCamelCase(" "+r);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(o,i,a){return this[n].call(this,r,o,i,a)},configurable:!0})})}let Dt=class{constructor(r){r&&this.set(r)}set(r,t,n){const o=this;function i(s,c,l){const u=go(c);if(!u)throw new Error("header name must be a non-empty string");const d=z.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=zi(s))}const a=(s,c)=>z.forEach(s,(l,u)=>i(l,u,c));if(z.isPlainObject(r)||r instanceof this.constructor)a(r,t);else if(z.isString(r)&&(r=r.trim())&&!H1(r))a(Y1(r),t);else if(z.isObject(r)&&z.isIterable(r)){let s={},c,l;for(const u of r){if(!z.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?z.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(s,t)}else r!=null&&i(t,r,n);return this}get(r,t){if(r=go(r),r){const n=z.findKey(this,r);if(n){const o=this[n];if(!t)return o;if(t===!0)return U1(o);if(z.isFunction(t))return t.call(this,o,n);if(z.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,t){if(r=go(r),r){const n=z.findKey(this,r);return!!(n&&this[n]!==void 0&&(!t||Es(this,this[n],n,t)))}return!1}delete(r,t){const n=this;let o=!1;function i(a){if(a=go(a),a){const s=z.findKey(n,a);s&&(!t||Es(n,n[s],s,t))&&(delete n[s],o=!0)}}return z.isArray(r)?r.forEach(i):i(r),o}clear(r){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];(!r||Es(this,this[i],i,r,!0))&&(delete this[i],o=!0)}return o}normalize(r){const t=this,n={};return z.forEach(this,(o,i)=>{const a=z.findKey(n,i);if(a){t[a]=zi(o),delete t[i];return}const s=r?W1(i):String(i).trim();s!==i&&delete t[i],t[s]=zi(o),n[s]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const t=Object.create(null);return z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=r&&z.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,t])=>r+": "+t).join(`
168
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...t){const n=new this(r);return t.forEach(o=>n.set(o)),n}static accessor(r){const n=(this[Rd]=this[Rd]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=go(a);n[s]||(Z1(o,a),n[s]=!0)}return z.isArray(r)?r.forEach(i):i(r),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Dt.prototype,({value:e},r)=>{let t=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(n){this[t]=n}}}),z.freezeMethods(Dt);function ks(e,r){const t=this||mo,n=r||t,o=Dt.from(n.headers);let i=n.data;return z.forEach(e,function(s){i=s.call(t,i,o.normalize(),r?r.status:void 0)}),o.normalize(),i}function Nd(e){return!!(e&&e.__CANCEL__)}function Dn(e,r,t){ye.call(this,e??"canceled",ye.ERR_CANCELED,r,t),this.name="CanceledError"}z.inherits(Dn,ye,{__CANCEL__:!0});function $d(e,r,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):r(new ye("Request failed with status code "+t.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function q1(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function K1(e,r){e=e||10;const t=new Array(e),n=new Array(e);let o=0,i=0,a;return r=r!==void 0?r:1e3,function(c){const l=Date.now(),u=n[i];a||(a=l),t[o]=c,n[o]=l;let d=i,f=0;for(;d!==o;)f+=t[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<r)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function G1(e,r){let t=0,n=1e3/r,o,i;const a=(l,u=Date.now())=>{t=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=n?a(l,u):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const Bi=(e,r,t=3)=>{let n=0;const o=K1(50,250);return G1(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[r?"download":"upload"]:!0};e(d)},t)},jd=(e,r)=>{const t=e!=null;return[n=>r[0]({lengthComputable:t,total:e,loaded:n}),r[1]]},Ld=e=>(...r)=>z.asap(()=>e(...r)),Q1=gt.hasStandardBrowserEnv?((e,r)=>t=>(t=new URL(t,gt.origin),e.protocol===t.protocol&&e.host===t.host&&(r||e.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,X1=gt.hasStandardBrowserEnv?{write(e,r,t,n,o,i){const a=[e+"="+encodeURIComponent(r)];z.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function J1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function e2(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function zd(e,r,t){let n=!J1(r);return e&&(n||t==!1)?e2(e,r):r}const Bd=e=>e instanceof Dt?{...e}:e;function Gr(e,r){r=r||{};const t={};function n(l,u,d,f){return z.isPlainObject(l)&&z.isPlainObject(u)?z.merge.call({caseless:f},l,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function o(l,u,d,f){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l,d,f)}else return n(l,u,d,f)}function i(l,u){if(!z.isUndefined(u))return n(void 0,u)}function a(l,u){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in r)return n(l,u);if(d in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u,d)=>o(Bd(l),Bd(u),d,!0)};return z.forEach(Object.keys({...e,...r}),function(u){const d=c[u]||o,f=d(e[u],r[u],u);z.isUndefined(f)&&d!==s||(t[u]=f)}),t}const Vd=e=>{const r=Gr({},e);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=r;r.headers=a=Dt.from(a),r.url=Md(zd(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(z.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(r)),n||n!==!1&&Q1(r.url))){const l=o&&i&&X1.read(i);l&&a.set(o,l)}return r},t2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){const o=Vd(e);let i=o.data;const a=Dt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function S(){if(!y)return;const k=Dt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};$d(function(R){t(R),p()},function(R){n(R),p()},_),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(n(new ye("Request aborted",ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new ye("Network Error",ye.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Ad;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new ye(E,_.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&z.forEach(a.toJSON(),function(E,_){y.setRequestHeader(_,E)}),z.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),l&&([f,g]=Bi(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,m]=Bi(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=k=>{y&&(n(!k||k.type?new Dn(null,e,y):k),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=q1(o.url);if(C&&gt.protocols.indexOf(C)===-1){n(new ye("Unsupported protocol "+C+":",ye.ERR_BAD_REQUEST,e));return}y.send(i||null)})},r2=(e,r)=>{const{length:t}=e=e?e.filter(Boolean):[];if(r||t){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof ye?u:new Dn(u instanceof Error?u.message:u))}};let a=r&&setTimeout(()=>{a=null,i(new ye(`timeout ${r} of ms exceeded`,ye.ETIMEDOUT))},r);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>z.asap(s),c}},n2=function*(e,r){let t=e.byteLength;if(t<r){yield e;return}let n=0,o;for(;n<t;)o=n+r,yield e.slice(n,o),n=o},o2=async function*(e,r){for await(const t of i2(e))yield*n2(t,r)},i2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const r=e.getReader();try{for(;;){const{done:t,value:n}=await r.read();if(t)break;yield n}}finally{await r.cancel()}},Fd=(e,r,t,n)=>{const o=o2(e,r);let i=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(t){let f=i+=d;t(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Vi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yd=Vi&&typeof ReadableStream=="function",a2=Vi&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ud=(e,...r)=>{try{return!!e(...r)}catch{return!1}},s2=Yd&&Ud(()=>{let e=!1;const r=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),Hd=64*1024,Ds=Yd&&Ud(()=>z.isReadableStream(new Response("").body)),Fi={stream:Ds&&(e=>e.body)};Vi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Fi[r]&&(Fi[r]=z.isFunction(e[r])?t=>t[r]():(t,n)=>{throw new ye(`Response type '${r}' is not supported`,ye.ERR_NOT_SUPPORT,n)})})})(new Response);const c2=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(gt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await a2(e)).byteLength},l2=async(e,r)=>{const t=z.toFiniteNumber(e.getContentLength());return t??c2(r)},Ts={http:M1,xhr:t2,fetch:Vi&&(async e=>{let{url:r,method:t,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Vd(e);l=l?(l+"").toLowerCase():"text";let m=r2([o,i&&i.toAbortSignal()],a),g;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&s2&&t!=="get"&&t!=="head"&&(y=await l2(u,n))!==0){let _=new Request(r,{method:"POST",body:n,duplex:"half"}),O;if(z.isFormData(n)&&(O=_.headers.get("content-type"))&&u.setContentType(O),_.body){const[R,q]=jd(y,Bi(Ld(c)));n=Fd(_.body,Hd,R,q)}}z.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;g=new Request(r,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let C=await fetch(g,f);const k=Ds&&(l==="stream"||l==="response");if(Ds&&(s||k&&p)){const _={};["status","statusText","headers"].forEach(Z=>{_[Z]=C[Z]});const O=z.toFiniteNumber(C.headers.get("content-length")),[R,q]=s&&jd(O,Bi(Ld(s),!0))||[];C=new Response(Fd(C.body,Hd,R,()=>{q&&q(),p&&p()}),_)}l=l||"text";let E=await Fi[z.findKey(Fi,l)||"text"](C,e);return!k&&p&&p(),await new Promise((_,O)=>{$d(_,O,{data:E,headers:Dt.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(S){throw p&&p(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,g),{cause:S.cause||S}):ye.from(S,S&&S.code,e,g)}})};z.forEach(Ts,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Wd=e=>`- ${e}`,u2=e=>z.isFunction(e)||e===null||e===!1,Zd={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:r}=e;let t,n;const o={};for(let i=0;i<r;i++){t=e[i];let a;if(n=t,!u2(t)&&(n=Ts[(a=String(t)).toLowerCase()],n===void 0))throw new ye(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
169
- `+i.map(Wd).join(`
170
- `):" "+Wd(i[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Ts};function Os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dn(null,e)}function qd(e){return Os(e),e.headers=Dt.from(e.headers),e.data=ks.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zd.getAdapter(e.adapter||mo.adapter)(e).then(function(n){return Os(e),n.data=ks.call(e,e.transformResponse,n),n.headers=Dt.from(n.headers),n},function(n){return Nd(n)||(Os(e),n&&n.response&&(n.response.data=ks.call(e,e.transformResponse,n.response),n.response.headers=Dt.from(n.response.headers))),Promise.reject(n)})}const Kd="1.11.0",Yi={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{Yi[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});const Gd={};Yi.transitional=function(r,t,n){function o(i,a){return"[Axios v"+Kd+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(r===!1)throw new ye(o(a," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!Gd[a]&&(Gd[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(i,a,s):!0}},Yi.spelling=function(r){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${r}`),!0)};function d2(e,r,t){if(typeof e!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=r[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new ye("option "+i+" must be "+c,ye.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}}const Ui={assertOptions:d2,validators:Yi},hr=Ui.validators;let Qr=class{constructor(r){this.defaults=r||{},this.interceptors={request:new Pd,response:new Pd}}async request(r,t){try{return await this._request(r,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
171
- `+i):n.stack=i}catch{}}throw n}}_request(r,t){typeof r=="string"?(t=t||{},t.url=r):t=r||{},t=Gr(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;n!==void 0&&Ui.assertOptions(n,{silentJSONParsing:hr.transitional(hr.boolean),forcedJSONParsing:hr.transitional(hr.boolean),clarifyTimeoutError:hr.transitional(hr.boolean)},!1),o!=null&&(z.isFunction(o)?t.paramsSerializer={serialize:o}:Ui.assertOptions(o,{encode:hr.function,serialize:hr.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ui.assertOptions(t,{baseUrl:hr.spelling("baseURL"),withXsrfToken:hr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[t.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),t.headers=Dt.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[qd.bind(this),void 0];for(g.unshift(...s),g.push(...l),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let m=t;for(d=0;d<f;){const g=s[d++],p=s[d++];try{m=g(m)}catch(y){p.call(this,y);break}}try{u=qd.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(r){r=Gr(this.defaults,r);const t=zd(r.baseURL,r.url,r.allowAbsoluteUrls);return Md(t,r.params,r.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(r){Qr.prototype[r]=function(t,n){return this.request(Gr(n||{},{method:r,url:t,data:(n||{}).data}))}}),z.forEach(["post","put","patch"],function(r){function t(n){return function(i,a,s){return this.request(Gr(s||{},{method:r,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Qr.prototype[r]=t(),Qr.prototype[r+"Form"]=t(!0)});let f2=class ah{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},r(function(i,a,s){n.reason||(n.reason=new Dn(i,a,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const t=this._listeners.indexOf(r);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const r=new AbortController,t=n=>{r.abort(n)};return this.subscribe(t),r.signal.unsubscribe=()=>this.unsubscribe(t),r.signal}static source(){let r;return{token:new ah(function(o){r=o}),cancel:r}}};function p2(e){return function(t){return e.apply(null,t)}}function h2(e){return z.isObject(e)&&e.isAxiosError===!0}const Ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ms).forEach(([e,r])=>{Ms[r]=e});function Qd(e){const r=new Qr(e),t=md(Qr.prototype.request,r);return z.extend(t,Qr.prototype,r,{allOwnKeys:!0}),z.extend(t,r,null,{allOwnKeys:!0}),t.create=function(o){return Qd(Gr(e,o))},t}const rt=Qd(mo);rt.Axios=Qr,rt.CanceledError=Dn,rt.CancelToken=f2,rt.isCancel=Nd,rt.VERSION=Kd,rt.toFormData=Li,rt.AxiosError=ye,rt.Cancel=rt.CanceledError,rt.all=function(r){return Promise.all(r)},rt.spread=p2,rt.isAxiosError=h2,rt.mergeConfig=Gr,rt.AxiosHeaders=Dt,rt.formToJSON=e=>Id(z.isHTMLForm(e)?new FormData(e):e),rt.getAdapter=Zd.getAdapter,rt.HttpStatusCode=Ms,rt.default=rt;const{Axios:RD,AxiosError:ND,CanceledError:$D,isCancel:jD,CancelToken:LD,VERSION:zD,all:BD,Cancel:VD,isAxiosError:FD,spread:YD,toFormData:UD,AxiosHeaders:HD,HttpStatusCode:WD,formToJSON:ZD,getAdapter:qD,mergeConfig:KD}=rt,Xd={token:null},m2=e=>{Xd.token=e},Xr=rt.create({headers:{"Content-Type":"application/json"}});Xr.interceptors.request.use(e=>{const r=Xd.token;return r&&(e.headers.Authorization=`Bearer ${r}`),e},e=>Promise.reject(e));const Jd=x.createContext(void 0),g2=({config:e,children:r})=>(x.useEffect(()=>{e.getToken&&m2(e.getToken)},[e.getToken]),h.jsx(Jd.Provider,{value:e,children:r})),v2=()=>{const e=x.useContext(Jd);if(!e)throw new Error("useApiConfig debe ser usado dentro de un ApiProvider");return e},Ps=()=>{const{calendarApiUrl:e}=v2(),r=async s=>{try{return(await Xr.get(`${e}/ListarEventosXUsuario/${s}`)).data.map(l=>{const u=new Date(l.fechaInicio),d=new Date(l.fechaFin),f=l.solicitudRelacionada?.[0]?.nombreCliente??null;return{...l,fechaInicio:u,fechaFin:d,client:f}})}catch(c){return console.error("Error events:",c),[]}},t=async(s,c)=>{try{const l=await Xr.post(`${e}/InsertarEvento/${c}`,s);return{...l.data,fechaInicio:new Date(l.data.fechaInicio),fechaFin:new Date(l.data.fechaFin)}}catch(l){throw console.log("Error creating event:",l),l}},n=async s=>{try{const c=await Xr.post(`${e}/ActualizarEvento/${s.eventoID}`,s);return{eventoID:c.data.eventoID,titulo:c.data.titulo,descripcion:c.data.descripcion,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),todoElDia:c.data.todoElDia,color:c.data.color,repetir:c.data.repetir,link:c.data.link,solID:c.data.solID,disID:c.data.disID,client:c.data.client}}catch(c){throw console.log("Error updating event:",c),c}},o=async s=>{try{const c=await Xr.get(`${e}/ObtenerEvento/${s}`),l=c.data.solicitudRelacionada?.[0]?.nombreCliente||null;return{...c.data,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),client:l}}catch(c){throw console.error(`Error fetching event with ID ${s}:`,c),c}},i=async s=>{try{await Xr.post(`${e}/EliminarEvento/${s}`)}catch(c){throw console.log(`Error ID ${s}:`,c),c}},a=x.useCallback(async(s,c,l,u)=>{try{const d={masNombreBD:l,usrID:u,disID:c,nombreCliente:s},m=(await Xr.post(`${e}/ConsultaClientesXUsuariologgeado/`,d)).data?.data;return Array.isArray(m)?m.map(g=>({clienteID:g.clienteID,solID:g.solID,marca:g?.marca,modelo:g?.modelo,nombreCliente:g?.nombreCliente})):[]}catch(d){return console.error("Error clientes:",d),[]}},[e]);return{getEventsByUser:r,createEvent:t,updateEvent:n,getEventById:o,deleteEvent:i,getClients:a}},ef=qt([h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var vo=e=>e.type==="checkbox",Jr=e=>e instanceof Date,bt=e=>e==null;const tf=e=>typeof e=="object";var nt=e=>!bt(e)&&!Array.isArray(e)&&tf(e)&&!Jr(e),rf=e=>nt(e)&&e.target?vo(e.target)?e.target.checked:e.target.value:e,y2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,nf=(e,r)=>e.has(y2(r)),b2=e=>{const r=e.constructor&&e.constructor.prototype;return nt(r)&&r.hasOwnProperty("isPrototypeOf")},As=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dt(e){let r;const t=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(As&&(e instanceof Blob||n))&&(t||nt(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!b2(e))r=e;else for(const o in e)e.hasOwnProperty(o)&&(r[o]=dt(e[o]));else return e;return r}var Hi=e=>/^\w*$/.test(e),ot=e=>e===void 0,Is=e=>Array.isArray(e)?e.filter(Boolean):[],Rs=e=>Is(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ne=(e,r,t)=>{if(!r||!nt(e))return t;const n=(Hi(r)?[r]:Rs(r)).reduce((o,i)=>bt(o)?o:o[i],e);return ot(n)||n===e?ot(e[r])?t:e[r]:n},jt=e=>typeof e=="boolean",je=(e,r,t)=>{let n=-1;const o=Hi(r)?[r]:Rs(r),i=o.length,a=i-1;for(;++n<i;){const s=o[n];let c=t;if(n!==a){const l=e[s];c=nt(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const Wi={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Jt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},of=x.createContext(null);of.displayName="HookFormContext";const Ns=()=>x.useContext(of);var af=(e,r,t,n=!0)=>{const o={defaultValues:r._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return r._proxyFormState[a]!==Jt.all&&(r._proxyFormState[a]=!n||Jt.all),t&&(t[a]=!0),e[a]}});return o};const $s=typeof window<"u"?x.useLayoutEffect:x.useEffect;function w2(e){const r=Ns(),{control:t=r.control,disabled:n,name:o,exact:i}=e||{},[a,s]=x.useState(t._formState),c=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return $s(()=>t._subscribe({name:o,formState:c.current,exact:i,callback:l=>{!n&&s({...t._formState,...l})}}),[o,n,i]),x.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),x.useMemo(()=>af(a,t,c.current,!1),[a,t])}var mr=e=>typeof e=="string",sf=(e,r,t,n,o)=>mr(e)?(n&&r.watch.add(e),ne(t,e,o)):Array.isArray(e)?e.map(i=>(n&&r.watch.add(i),ne(t,i))):(n&&(r.watchAll=!0),t),js=e=>bt(e)||!tf(e);function Sr(e,r,t=new WeakSet){if(js(e)||js(r))return e===r;if(Jr(e)&&Jr(r))return e.getTime()===r.getTime();const n=Object.keys(e),o=Object.keys(r);if(n.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const i of n){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=r[i];if(Jr(a)&&Jr(s)||nt(a)&&nt(s)||Array.isArray(a)&&Array.isArray(s)?!Sr(a,s,t):a!==s)return!1}}return!0}function _2(e){const r=Ns(),{control:t=r.control,name:n,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},c=x.useRef(o),l=x.useRef(s),u=x.useRef(void 0);l.current=s;const d=x.useMemo(()=>t._getWatch(n,c.current),[t,n]),[f,m]=x.useState(l.current?l.current(d):d);return $s(()=>t._subscribe({name:n,formState:{values:!0},exact:a,callback:g=>{if(!i){const p=sf(n,t._names,g.values||t._formValues,!1,c.current);if(l.current){const y=l.current(p);Sr(y,u.current)||(m(y),u.current=y)}else m(p)}}}),[t,i,n,a]),x.useEffect(()=>t._removeUnmounted()),f}function x2(e){const r=Ns(),{name:t,disabled:n,control:o=r.control,shouldUnregister:i,defaultValue:a}=e,s=nf(o._names.array,t),c=x.useMemo(()=>ne(o._formValues,t,ne(o._defaultValues,t,a)),[o,t,a]),l=_2({control:o,name:t,defaultValue:c,exact:!0}),u=w2({control:o,name:t,exact:!0}),d=x.useRef(e),f=x.useRef(o.register(t,{...e.rules,value:l,...jt(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const m=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ne(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!ne(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!ne(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!ne(u.validatingFields,t)},error:{enumerable:!0,get:()=>ne(u.errors,t)}}),[u,t]),g=x.useCallback(C=>f.current.onChange({target:{value:rf(C),name:t},type:Wi.CHANGE}),[t]),p=x.useCallback(()=>f.current.onBlur({target:{value:ne(o._formValues,t),name:t},type:Wi.BLUR}),[t,o._formValues]),y=x.useCallback(C=>{const k=ne(o._fields,t);k&&C&&(k._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:E=>C.setCustomValidity(E),reportValidity:()=>C.reportValidity()})},[o._fields,t]),S=x.useMemo(()=>({name:t,value:l,...jt(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:g,onBlur:p,ref:y}),[t,n,u.disabled,g,p,y,l]);return x.useEffect(()=>{const C=o._options.shouldUnregister||i;o.register(t,{...d.current.rules,...jt(d.current.disabled)?{disabled:d.current.disabled}:{}});const k=(E,_)=>{const O=ne(o._fields,E);O&&O._f&&(O._f.mount=_)};if(k(t,!0),C){const E=dt(ne(o._options.defaultValues,t));je(o._defaultValues,t,E),ot(ne(o._formValues,t))&&je(o._formValues,t,E)}return!s&&o.register(t),()=>{(s?C&&!o._state.action:C)?o.unregister(t):k(t,!1)}},[t,o,s,i]),x.useEffect(()=>{o._setDisabledField({disabled:n,name:t})},[n,t,o]),x.useMemo(()=>({field:S,formState:u,fieldState:m}),[S,u,m])}const er=e=>e.render(x2(e));var Ls=(e,r,t,n,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[n]:o||!0}}:{},yo=e=>Array.isArray(e)?e:[e],cf=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Tt=e=>nt(e)&&!Object.keys(e).length,zs=e=>e.type==="file",tr=e=>typeof e=="function",Zi=e=>{if(!As)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},lf=e=>e.type==="select-multiple",Bs=e=>e.type==="radio",S2=e=>Bs(e)||vo(e),Vs=e=>Zi(e)&&e.isConnected;function C2(e,r){const t=r.slice(0,-1).length;let n=0;for(;n<t;)e=ot(e)?n++:e[r[n++]];return e}function E2(e){for(const r in e)if(e.hasOwnProperty(r)&&!ot(e[r]))return!1;return!0}function ct(e,r){const t=Array.isArray(r)?r:Hi(r)?[r]:Rs(r),n=t.length===1?e:C2(e,t),o=t.length-1,i=t[o];return n&&delete n[i],o!==0&&(nt(n)&&Tt(n)||Array.isArray(n)&&E2(n))&&ct(e,t.slice(0,-1)),e}var uf=e=>{for(const r in e)if(tr(e[r]))return!0;return!1};function qi(e,r={}){const t=Array.isArray(e);if(nt(e)||t)for(const n in e)Array.isArray(e[n])||nt(e[n])&&!uf(e[n])?(r[n]=Array.isArray(e[n])?[]:{},qi(e[n],r[n])):bt(e[n])||(r[n]=!0);return r}function df(e,r,t){const n=Array.isArray(e);if(nt(e)||n)for(const o in e)Array.isArray(e[o])||nt(e[o])&&!uf(e[o])?ot(r)||js(t[o])?t[o]=Array.isArray(e[o])?qi(e[o],[]):{...qi(e[o])}:df(e[o],bt(r)?{}:r[o],t[o]):t[o]=!Sr(e[o],r[o]);return t}var bo=(e,r)=>df(e,r,qi(r));const ff={value:!1,isValid:!1},pf={value:!0,isValid:!0};var hf=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ot(e[0].attributes.value)?ot(e[0].value)||e[0].value===""?pf:{value:e[0].value,isValid:!0}:pf:ff}return ff},mf=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:n})=>ot(e)?e:r?e===""?NaN:e&&+e:t&&mr(e)?new Date(e):n?n(e):e;const gf={isValid:!1,value:null};var vf=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,gf):gf;function yf(e){const r=e.ref;return zs(r)?r.files:Bs(r)?vf(e.refs).value:lf(r)?[...r.selectedOptions].map(({value:t})=>t):vo(r)?hf(e.refs).value:mf(ot(r.value)?e.ref.value:r.value,e)}var k2=(e,r,t,n)=>{const o={};for(const i of e){const a=ne(r,i);a&&je(o,i,a._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:n}},Ki=e=>e instanceof RegExp,wo=e=>ot(e)?e:Ki(e)?e.source:nt(e)?Ki(e.value)?e.value.source:e.value:e,bf=e=>({isOnSubmit:!e||e===Jt.onSubmit,isOnBlur:e===Jt.onBlur,isOnChange:e===Jt.onChange,isOnAll:e===Jt.all,isOnTouch:e===Jt.onTouched});const wf="AsyncFunction";var D2=e=>!!e&&!!e.validate&&!!(tr(e.validate)&&e.validate.constructor.name===wf||nt(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===wf)),T2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),_f=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const _o=(e,r,t,n)=>{for(const o of t||Object.keys(e)){const i=ne(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],o)&&!n)return!0;if(a.ref&&r(a.ref,a.name)&&!n)return!0;if(_o(s,r))break}else if(nt(s)&&_o(s,r))break}}};function xf(e,r,t){const n=ne(e,t);if(n||Hi(t))return{error:n,name:t};const o=t.split(".");for(;o.length;){const i=o.join("."),a=ne(r,i),s=ne(e,i);if(a&&!Array.isArray(a)&&t!==i)return{name:t};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:t}}var O2=(e,r,t,n)=>{t(e);const{name:o,...i}=e;return Tt(i)||Object.keys(i).length>=Object.keys(r).length||Object.keys(i).find(a=>r[a]===(!n||Jt.all))},M2=(e,r,t)=>!e||!r||e===r||yo(e).some(n=>n&&(t?n===r:n.startsWith(r)||r.startsWith(n))),P2=(e,r,t,n,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?n.isOnBlur:o.isOnBlur)?!e:(t?n.isOnChange:o.isOnChange)?e:!0,A2=(e,r)=>!Is(ne(e,r)).length&&ct(e,r),I2=(e,r,t)=>{const n=yo(ne(e,t));return je(n,"root",r[t]),je(e,t,n),e},Gi=e=>mr(e);function Sf(e,r,t="validate"){if(Gi(e)||Array.isArray(e)&&e.every(Gi)||jt(e)&&!e)return{type:t,message:Gi(e)?e:"",ref:r}}var Tn=e=>nt(e)&&!Ki(e)?e:{value:e,message:""},Cf=async(e,r,t,n,o,i)=>{const{ref:a,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:m,validate:g,name:p,valueAsNumber:y,mount:S}=e._f,C=ne(t,p);if(!S||r.has(p))return{};const k=s?s[0]:a,E=v=>{o&&k.reportValidity&&(k.setCustomValidity(jt(v)?"":v||""),k.reportValidity())},_={},O=Bs(a),R=vo(a),q=O||R,Z=(y||zs(a))&&ot(a.value)&&ot(C)||Zi(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,j=Ls.bind(null,p,n,_),K=(v,A,P,H=xr.maxLength,W=xr.minLength)=>{const J=v?A:P;_[p]={type:v?H:W,message:J,ref:a,...j(v?H:W,J)}};if(i?!Array.isArray(C)||!C.length:c&&(!q&&(Z||bt(C))||jt(C)&&!C||R&&!hf(s).isValid||O&&!vf(s).isValid)){const{value:v,message:A}=Gi(c)?{value:!!c,message:c}:Tn(c);if(v&&(_[p]={type:xr.required,message:A,ref:k,...j(xr.required,A)},!n))return E(A),_}if(!Z&&(!bt(d)||!bt(f))){let v,A;const P=Tn(f),H=Tn(d);if(!bt(C)&&!isNaN(C)){const W=a.valueAsNumber||C&&+C;bt(P.value)||(v=W>P.value),bt(H.value)||(A=W<H.value)}else{const W=a.valueAsDate||new Date(C),J=L=>new Date(new Date().toDateString()+" "+L),V=a.type=="time",Q=a.type=="week";mr(P.value)&&C&&(v=V?J(C)>J(P.value):Q?C>P.value:W>new Date(P.value)),mr(H.value)&&C&&(A=V?J(C)<J(H.value):Q?C<H.value:W<new Date(H.value))}if((v||A)&&(K(!!v,P.message,H.message,xr.max,xr.min),!n))return E(_[p].message),_}if((l||u)&&!Z&&(mr(C)||i&&Array.isArray(C))){const v=Tn(l),A=Tn(u),P=!bt(v.value)&&C.length>+v.value,H=!bt(A.value)&&C.length<+A.value;if((P||H)&&(K(P,v.message,A.message),!n))return E(_[p].message),_}if(m&&!Z&&mr(C)){const{value:v,message:A}=Tn(m);if(Ki(v)&&!C.match(v)&&(_[p]={type:xr.pattern,message:A,ref:a,...j(xr.pattern,A)},!n))return E(A),_}if(g){if(tr(g)){const v=await g(C,t),A=Sf(v,k);if(A&&(_[p]={...A,...j(xr.validate,A.message)},!n))return E(A.message),_}else if(nt(g)){let v={};for(const A in g){if(!Tt(v)&&!n)break;const P=Sf(await g[A](C,t),k,A);P&&(v={...P,...j(A,P.message)},E(P.message),n&&(_[p]=v))}if(!Tt(v)&&(_[p]={ref:k,...v},!n))return _}}return E(!0),_};const R2={mode:Jt.onSubmit,reValidateMode:Jt.onChange,shouldFocusError:!0};function N2(e={}){let r={...R2,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:tr(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},n={},o=nt(r.defaultValues)||nt(r.values)?dt(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:dt(o),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:cf(),state:cf()},m=r.criteriaMode===Jt.all,g=T=>I=>{clearTimeout(l),l=setTimeout(T,I)},p=async T=>{if(!r.disabled&&(u.isValid||d.isValid||T)){const I=r.resolver?Tt((await R()).errors):await Z(n,!0);I!==t.isValid&&f.state.next({isValid:I})}},y=(T,I)=>{!r.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((T||Array.from(s.mount)).forEach(M=>{M&&(I?je(t.validatingFields,M,I):ct(t.validatingFields,M))}),f.state.next({validatingFields:t.validatingFields,isValidating:!Tt(t.validatingFields)}))},S=(T,I=[],M,ie,re=!0,te=!0)=>{if(ie&&M&&!r.disabled){if(a.action=!0,te&&Array.isArray(ne(n,T))){const fe=M(ne(n,T),ie.argA,ie.argB);re&&je(n,T,fe)}if(te&&Array.isArray(ne(t.errors,T))){const fe=M(ne(t.errors,T),ie.argA,ie.argB);re&&je(t.errors,T,fe),A2(t.errors,T)}if((u.touchedFields||d.touchedFields)&&te&&Array.isArray(ne(t.touchedFields,T))){const fe=M(ne(t.touchedFields,T),ie.argA,ie.argB);re&&je(t.touchedFields,T,fe)}(u.dirtyFields||d.dirtyFields)&&(t.dirtyFields=bo(o,i)),f.state.next({name:T,isDirty:K(T,I),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else je(i,T,I)},C=(T,I)=>{je(t.errors,T,I),f.state.next({errors:t.errors})},k=T=>{t.errors=T,f.state.next({errors:t.errors,isValid:!1})},E=(T,I,M,ie)=>{const re=ne(n,T);if(re){const te=ne(i,T,ot(M)?ne(o,T):M);ot(te)||ie&&ie.defaultChecked||I?je(i,T,I?te:yf(re._f)):P(T,te),a.mount&&p()}},_=(T,I,M,ie,re)=>{let te=!1,fe=!1;const Ee={name:T};if(!r.disabled){if(!M||ie){(u.isDirty||d.isDirty)&&(fe=t.isDirty,t.isDirty=Ee.isDirty=K(),te=fe!==Ee.isDirty);const Be=Sr(ne(o,T),I);fe=!!ne(t.dirtyFields,T),Be?ct(t.dirtyFields,T):je(t.dirtyFields,T,!0),Ee.dirtyFields=t.dirtyFields,te=te||(u.dirtyFields||d.dirtyFields)&&fe!==!Be}if(M){const Be=ne(t.touchedFields,T);Be||(je(t.touchedFields,T,M),Ee.touchedFields=t.touchedFields,te=te||(u.touchedFields||d.touchedFields)&&Be!==M)}te&&re&&f.state.next(Ee)}return te?Ee:{}},O=(T,I,M,ie)=>{const re=ne(t.errors,T),te=(u.isValid||d.isValid)&&jt(I)&&t.isValid!==I;if(r.delayError&&M?(c=g(()=>C(T,M)),c(r.delayError)):(clearTimeout(l),c=null,M?je(t.errors,T,M):ct(t.errors,T)),(M?!Sr(re,M):re)||!Tt(ie)||te){const fe={...ie,...te&&jt(I)?{isValid:I}:{},errors:t.errors,name:T};t={...t,...fe},f.state.next(fe)}},R=async T=>{y(T,!0);const I=await r.resolver(i,r.context,k2(T||s.mount,n,r.criteriaMode,r.shouldUseNativeValidation));return y(T),I},q=async T=>{const{errors:I}=await R(T);if(T)for(const M of T){const ie=ne(I,M);ie?je(t.errors,M,ie):ct(t.errors,M)}else t.errors=I;return I},Z=async(T,I,M={valid:!0})=>{for(const ie in T){const re=T[ie];if(re){const{_f:te,...fe}=re;if(te){const Ee=s.array.has(te.name),Be=re._f&&D2(re._f);Be&&u.validatingFields&&y([ie],!0);const _t=await Cf(re,s.disabled,i,m,r.shouldUseNativeValidation&&!I,Ee);if(Be&&u.validatingFields&&y([ie]),_t[te.name]&&(M.valid=!1,I))break;!I&&(ne(_t,te.name)?Ee?I2(t.errors,_t,te.name):je(t.errors,te.name,_t[te.name]):ct(t.errors,te.name))}!Tt(fe)&&await Z(fe,I,M)}}return M.valid},j=()=>{for(const T of s.unMount){const I=ne(n,T);I&&(I._f.refs?I._f.refs.every(M=>!Vs(M)):!Vs(I._f.ref))&&se(T)}s.unMount=new Set},K=(T,I)=>!r.disabled&&(T&&I&&je(i,T,I),!Sr(L(),o)),v=(T,I,M)=>sf(T,s,{...a.mount?i:ot(I)?o:mr(T)?{[T]:I}:I},M,I),A=T=>Is(ne(a.mount?i:o,T,r.shouldUnregister?ne(o,T,[]):[])),P=(T,I,M={})=>{const ie=ne(n,T);let re=I;if(ie){const te=ie._f;te&&(!te.disabled&&je(i,T,mf(I,te)),re=Zi(te.ref)&&bt(I)?"":I,lf(te.ref)?[...te.ref.options].forEach(fe=>fe.selected=re.includes(fe.value)):te.refs?vo(te.ref)?te.refs.forEach(fe=>{(!fe.defaultChecked||!fe.disabled)&&(Array.isArray(re)?fe.checked=!!re.find(Ee=>Ee===fe.value):fe.checked=re===fe.value||!!re)}):te.refs.forEach(fe=>fe.checked=fe.value===re):zs(te.ref)?te.ref.value="":(te.ref.value=re,te.ref.type||f.state.next({name:T,values:dt(i)})))}(M.shouldDirty||M.shouldTouch)&&_(T,re,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&Q(T)},H=(T,I,M)=>{for(const ie in I){if(!I.hasOwnProperty(ie))return;const re=I[ie],te=T+"."+ie,fe=ne(n,te);(s.array.has(T)||nt(re)||fe&&!fe._f)&&!Jr(re)?H(te,re,M):P(te,re,M)}},W=(T,I,M={})=>{const ie=ne(n,T),re=s.array.has(T),te=dt(I);je(i,T,te),re?(f.array.next({name:T,values:dt(i)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&M.shouldDirty&&f.state.next({name:T,dirtyFields:bo(o,i),isDirty:K(T,te)})):ie&&!ie._f&&!bt(te)?H(T,te,M):P(T,te,M),_f(T,s)&&f.state.next({...t,name:T}),f.state.next({name:a.mount?T:void 0,values:dt(i)})},J=async T=>{a.mount=!0;const I=T.target;let M=I.name,ie=!0;const re=ne(n,M),te=Be=>{ie=Number.isNaN(Be)||Jr(Be)&&isNaN(Be.getTime())||Sr(Be,ne(i,M,Be))},fe=bf(r.mode),Ee=bf(r.reValidateMode);if(re){let Be,_t;const sn=I.type?yf(re._f):rf(T),gr=T.type===Wi.BLUR||T.type===Wi.FOCUS_OUT,wc=!T2(re._f)&&!r.resolver&&!ne(t.errors,M)&&!re._f.deps||P2(gr,ne(t.touchedFields,M),t.isSubmitted,Ee,fe),Do=_f(M,s,gr);je(i,M,sn),gr?(!I||!I.readOnly)&&(re._f.onBlur&&re._f.onBlur(T),c&&c(0)):re._f.onChange&&re._f.onChange(T);const To=_(M,sn,gr),_c=!Tt(To)||Do;if(!gr&&f.state.next({name:M,type:T.type,values:dt(i)}),wc)return(u.isValid||d.isValid)&&(r.mode==="onBlur"?gr&&p():gr||p()),_c&&f.state.next({name:M,...Do?{}:To});if(!gr&&Do&&f.state.next({...t}),r.resolver){const{errors:ma}=await R([M]);if(te(sn),ie){const xc=xf(t.errors,n,M),Nn=xf(ma,n,xc.name||M);Be=Nn.error,M=Nn.name,_t=Tt(ma)}}else y([M],!0),Be=(await Cf(re,s.disabled,i,m,r.shouldUseNativeValidation))[M],y([M]),te(sn),ie&&(Be?_t=!1:(u.isValid||d.isValid)&&(_t=await Z(n,!0)));ie&&(re._f.deps&&Q(re._f.deps),O(M,_t,Be,To))}},V=(T,I)=>{if(ne(t.errors,I)&&T.focus)return T.focus(),1},Q=async(T,I={})=>{let M,ie;const re=yo(T);if(r.resolver){const te=await q(ot(T)?T:re);M=Tt(te),ie=T?!re.some(fe=>ne(te,fe)):M}else T?(ie=(await Promise.all(re.map(async te=>{const fe=ne(n,te);return await Z(fe&&fe._f?{[te]:fe}:fe)}))).every(Boolean),!(!ie&&!t.isValid)&&p()):ie=M=await Z(n);return f.state.next({...!mr(T)||(u.isValid||d.isValid)&&M!==t.isValid?{}:{name:T},...r.resolver||!T?{isValid:M}:{},errors:t.errors}),I.shouldFocus&&!ie&&_o(n,V,T?re:s.mount),ie},L=T=>{const I={...a.mount?i:o};return ot(T)?I:mr(T)?ne(I,T):T.map(M=>ne(I,M))},U=(T,I)=>({invalid:!!ne((I||t).errors,T),isDirty:!!ne((I||t).dirtyFields,T),error:ne((I||t).errors,T),isValidating:!!ne(t.validatingFields,T),isTouched:!!ne((I||t).touchedFields,T)}),ce=T=>{T&&yo(T).forEach(I=>ct(t.errors,I)),f.state.next({errors:T?t.errors:{}})},ge=(T,I,M)=>{const ie=(ne(n,T,{_f:{}})._f||{}).ref,re=ne(t.errors,T)||{},{ref:te,message:fe,type:Ee,...Be}=re;je(t.errors,T,{...Be,...I,ref:ie}),f.state.next({name:T,errors:t.errors,isValid:!1}),M&&M.shouldFocus&&ie&&ie.focus&&ie.focus()},he=(T,I)=>tr(T)?f.state.subscribe({next:M=>"values"in M&&T(v(void 0,I),M)}):v(T,I,!0),ee=T=>f.state.subscribe({next:I=>{M2(T.name,I.name,T.exact)&&O2(I,T.formState||u,Dr,T.reRenderRoot)&&T.callback({values:{...i},...t,...I,defaultValues:o})}}).unsubscribe,G=T=>(a.mount=!0,d={...d,...T.formState},ee({...T,formState:d})),se=(T,I={})=>{for(const M of T?yo(T):s.mount)s.mount.delete(M),s.array.delete(M),I.keepValue||(ct(n,M),ct(i,M)),!I.keepError&&ct(t.errors,M),!I.keepDirty&&ct(t.dirtyFields,M),!I.keepTouched&&ct(t.touchedFields,M),!I.keepIsValidating&&ct(t.validatingFields,M),!r.shouldUnregister&&!I.keepDefaultValue&&ct(o,M);f.state.next({values:dt(i)}),f.state.next({...t,...I.keepDirty?{isDirty:K()}:{}}),!I.keepIsValid&&p()},le=({disabled:T,name:I})=>{(jt(T)&&a.mount||T||s.disabled.has(I))&&(T?s.disabled.add(I):s.disabled.delete(I))},me=(T,I={})=>{let M=ne(n,T);const ie=jt(I.disabled)||jt(r.disabled);return je(n,T,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:T}},name:T,mount:!0,...I}}),s.mount.add(T),M?le({disabled:jt(I.disabled)?I.disabled:r.disabled,name:T}):E(T,!0,I.value),{...ie?{disabled:I.disabled||r.disabled}:{},...r.progressive?{required:!!I.required,min:wo(I.min),max:wo(I.max),minLength:wo(I.minLength),maxLength:wo(I.maxLength),pattern:wo(I.pattern)}:{},name:T,onChange:J,onBlur:J,ref:re=>{if(re){me(T,I),M=ne(n,T);const te=ot(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,fe=S2(te),Ee=M._f.refs||[];if(fe?Ee.find(Be=>Be===te):te===M._f.ref)return;je(n,T,{_f:{...M._f,...fe?{refs:[...Ee.filter(Vs),te,...Array.isArray(ne(o,T))?[{}]:[]],ref:{type:te.type,name:T}}:{ref:te}}}),E(T,!1,void 0,te)}else M=ne(n,T,{}),M._f&&(M._f.mount=!1),(r.shouldUnregister||I.shouldUnregister)&&!(nf(s.array,T)&&a.action)&&s.unMount.add(T)}}},ue=()=>r.shouldFocusError&&_o(n,V,s.mount),Te=T=>{jt(T)&&(f.state.next({disabled:T}),_o(n,(I,M)=>{const ie=ne(n,M);ie&&(I.disabled=ie._f.disabled||T,Array.isArray(ie._f.refs)&&ie._f.refs.forEach(re=>{re.disabled=ie._f.disabled||T}))},0,!1))},B=(T,I)=>async M=>{let ie;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let re=dt(i);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:te,values:fe}=await R();t.errors=te,re=dt(fe)}else await Z(n);if(s.disabled.size)for(const te of s.disabled)ct(re,te);if(ct(t.errors,"root"),Tt(t.errors)){f.state.next({errors:{}});try{await T(re,M)}catch(te){ie=te}}else I&&await I({...t.errors},M),ue(),setTimeout(ue);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Tt(t.errors)&&!ie,submitCount:t.submitCount+1,errors:t.errors}),ie)throw ie},Ve=(T,I={})=>{ne(n,T)&&(ot(I.defaultValue)?W(T,dt(ne(o,T))):(W(T,I.defaultValue),je(o,T,dt(I.defaultValue))),I.keepTouched||ct(t.touchedFields,T),I.keepDirty||(ct(t.dirtyFields,T),t.isDirty=I.defaultValue?K(T,dt(ne(o,T))):K()),I.keepError||(ct(t.errors,T),u.isValid&&p()),f.state.next({...t}))},Qe=(T,I={})=>{const M=T?dt(T):o,ie=dt(M),re=Tt(T),te=re?o:ie;if(I.keepDefaultValues||(o=M),!I.keepValues){if(I.keepDirtyValues){const fe=new Set([...s.mount,...Object.keys(bo(o,i))]);for(const Ee of Array.from(fe))ne(t.dirtyFields,Ee)?je(te,Ee,ne(i,Ee)):W(Ee,ne(te,Ee))}else{if(As&&ot(T))for(const fe of s.mount){const Ee=ne(n,fe);if(Ee&&Ee._f){const Be=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(Zi(Be)){const _t=Be.closest("form");if(_t){_t.reset();break}}}}if(I.keepFieldsRef)for(const fe of s.mount)W(fe,ne(te,fe));else n={}}i=r.shouldUnregister?I.keepDefaultValues?dt(o):{}:dt(te),f.array.next({values:{...te}}),f.state.next({values:{...te}})}s={mount:I.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!I.keepIsValid||!!I.keepDirtyValues,a.watch=!!r.shouldUnregister,f.state.next({submitCount:I.keepSubmitCount?t.submitCount:0,isDirty:re?!1:I.keepDirty?t.isDirty:!!(I.keepDefaultValues&&!Sr(T,o)),isSubmitted:I.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:re?{}:I.keepDirtyValues?I.keepDefaultValues&&i?bo(o,i):t.dirtyFields:I.keepDefaultValues&&T?bo(o,T):I.keepDirty?t.dirtyFields:{},touchedFields:I.keepTouched?t.touchedFields:{},errors:I.keepErrors?t.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},wt=(T,I)=>Qe(tr(T)?T(i):T,I),kr=(T,I={})=>{const M=ne(n,T),ie=M&&M._f;if(ie){const re=ie.refs?ie.refs[0]:ie.ref;re.focus&&(re.focus(),I.shouldSelect&&tr(re.select)&&re.select())}},Dr=T=>{t={...t,...T}},Or={control:{register:me,unregister:se,getFieldState:U,handleSubmit:B,setError:ge,_subscribe:ee,_runSchema:R,_focusError:ue,_getWatch:v,_getDirty:K,_setValid:p,_setFieldArray:S,_setDisabledField:le,_setErrors:k,_getFieldArray:A,_reset:Qe,_resetDefaultValues:()=>tr(r.defaultValues)&&r.defaultValues().then(T=>{wt(T,r.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:j,_disableForm:Te,_subjects:f,_proxyFormState:u,get _fields(){return n},get _formValues(){return i},get _state(){return a},set _state(T){a=T},get _defaultValues(){return o},get _names(){return s},set _names(T){s=T},get _formState(){return t},get _options(){return r},set _options(T){r={...r,...T}}},subscribe:G,trigger:Q,register:me,handleSubmit:B,watch:he,setValue:W,getValues:L,reset:wt,resetField:Ve,clearErrors:ce,unregister:se,setError:ge,setFocus:kr,getFieldState:U};return{...Or,formControl:Or}}function $2(e={}){const r=x.useRef(void 0),t=x.useRef(void 0),[n,o]=x.useState({isDirty:!1,isValidating:!1,isLoading:tr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:tr(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:n},e.defaultValues&&!tr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=N2(e);r.current={...s,formState:n}}const i=r.current.control;return i._options=e,$s(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),x.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),x.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),x.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),x.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),x.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==n.isDirty&&i._subjects.state.next({isDirty:a})}},[i,n.isDirty]),x.useEffect(()=>{e.values&&!Sr(e.values,t.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),t.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),x.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),r.current.formState=af(n,i),r.current}const Ef=(e,r,t)=>{if(e&&"reportValidity"in e){const n=ne(t,r);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Fs=(e,r)=>{for(const t in r.fields){const n=r.fields[t];n&&n.ref&&"reportValidity"in n.ref?Ef(n.ref,t,e):n&&n.refs&&n.refs.forEach(o=>Ef(o,t,e))}},kf=(e,r)=>{r.shouldUseNativeValidation&&Fs(e,r);const t={};for(const n in e){const o=ne(r.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(j2(r.names||Object.keys(e),n)){const a=Object.assign({},ne(t,n));je(a,"root",i),je(t,n,a)}else je(t,n,i)}return t},j2=(e,r)=>{const t=Df(r);return e.some(n=>Df(n).match(`^${t}\\.\\d+`))};function Df(e){return e.replace(/\]|\[/g,"")}function Y(e,r,t){function n(s,c){var l;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),r(s,c);for(const u in a.prototype)u in s||Object.defineProperty(s,u,{value:a.prototype[u].bind(s)});s._zod.constr=a,s._zod.def=c}const o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var c;const l=t?.Parent?new i:this;n(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>t?.Parent&&s instanceof t.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class On extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Tf extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Of={};function en(e){return Of}function L2(e){const r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function Ys(e,r){return typeof r=="bigint"?r.toString():r}function Us(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Hs(e){return e==null}function Ws(e){const r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function z2(e,r){const t=(e.toString().split(".")[1]||"").length,n=r.toString();let o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(r.toFixed(i).replace(".",""));return a%s/10**i}const Mf=Symbol("evaluating");function Ye(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==Mf)return n===void 0&&(n=Mf,n=t()),n},set(o){Object.defineProperty(e,r,{value:o})},configurable:!0})}function B2(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $r(e,r,t){Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Mn(...e){const r={};for(const t of e){const n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n)}return Object.defineProperties({},r)}function Pf(e){return JSON.stringify(e)}const Af="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const V2=Us(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xo(e){if(Qi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const t=r.prototype;return!(Qi(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function If(e){return xo(e)?{...e}:e}const F2=new Set(["string","number","symbol"]);function Pn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jr(e,r,t){const n=new e._zod.constr(r??e._zod.def);return(!r||t?.parent)&&(n._zod.parent=e),n}function pe(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Y2(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const U2={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function H2(e,r){const t=e._zod.def,n=Mn(e._zod.def,{get shape(){const o={};for(const i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i])}return $r(this,"shape",o),o},checks:[]});return jr(e,n)}function W2(e,r){const t=e._zod.def,n=Mn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i]}return $r(this,"shape",o),o},checks:[]});return jr(e,n)}function Z2(e,r){if(!xo(r))throw new Error("Invalid input to extend: expected a plain object");const t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Mn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...r};return $r(this,"shape",i),i},checks:[]});return jr(e,o)}function q2(e,r){if(!xo(r))throw new Error("Invalid input to safeExtend: expected a plain object");const t={...e._zod.def,get shape(){const n={...e._zod.def.shape,...r};return $r(this,"shape",n),n},checks:e._zod.def.checks};return jr(e,t)}function K2(e,r){const t=Mn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...r._zod.def.shape};return $r(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return jr(e,t)}function G2(e,r,t){const n=Mn(r._zod.def,{get shape(){const o=r._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a])}else for(const a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return $r(this,"shape",i),i},checks:[]});return jr(r,n)}function Q2(e,r,t){const n=Mn(r._zod.def,{get shape(){const o=r._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return $r(this,"shape",i),i},checks:[]});return jr(r,n)}function An(e,r=0){if(e.aborted===!0)return!0;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Rf(e,r){return r.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Xi(e){return typeof e=="string"?e:e?.message}function tn(e,r,t){const n={...e,path:e.path??[]};if(!e.message){const o=Xi(e.inst?._zod.def?.error?.(e))??Xi(r?.error?.(e))??Xi(t.customError?.(e))??Xi(t.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function Zs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function So(...e){const[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}const Nf=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Ys,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},qs=Y("$ZodError",Nf),Ji=Y("$ZodError",Nf,{Parent:Error});function X2(e,r=t=>t.message){const t={},n=[];for(const o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return{formErrors:n,fieldErrors:t}}function J2(e,r){const t=r||function(i){return i.message},n={_errors:[]},o=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s}));else if(a.code==="invalid_key")o({issues:a.issues});else if(a.code==="invalid_element")o({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(e),n}const ea=e=>(r,t,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new On;if(a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>tn(c,i,en())));throw Af(s,o?.callee),s}return a.value},ew=ea(Ji),ta=e=>async(r,t,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>tn(c,i,en())));throw Af(s,o?.callee),s}return a.value},tw=ta(Ji),ra=e=>(r,t,n)=>{const o=n?{...n,async:!1}:{async:!1},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new On;return i.issues.length?{success:!1,error:new(e??qs)(i.issues.map(a=>tn(a,o,en())))}:{success:!0,data:i.value}},rw=ra(Ji),na=e=>async(r,t,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>tn(a,o,en())))}:{success:!0,data:i.value}},nw=na(Ji),ow=e=>(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ea(e)(r,t,o)},iw=e=>(r,t,n)=>ea(e)(r,t,n),aw=e=>async(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ta(e)(r,t,o)},sw=e=>async(r,t,n)=>ta(e)(r,t,n),cw=e=>(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ra(e)(r,t,o)},lw=e=>(r,t,n)=>ra(e)(r,t,n),uw=e=>async(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return na(e)(r,t,o)},dw=e=>async(r,t,n)=>na(e)(r,t,n),fw=/^[cC][^\s-]{8,}$/,pw=/^[0-9a-z]+$/,hw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mw=/^[0-9a-vA-V]{20}$/,gw=/^[A-Za-z0-9]{27}$/,vw=/^[a-zA-Z0-9_-]{21}$/,yw=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bw=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$f=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ww=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_w="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xw(){return new RegExp(_w,"u")}const Sw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Cw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Ew=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,kw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,jf=/^[A-Za-z0-9_-]*$/,Tw=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ow=/^\+(?:[0-9]){6,14}[0-9]$/,Lf="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Mw=new RegExp(`^${Lf}$`);function zf(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Pw(e){return new RegExp(`^${zf(e)}$`)}function Aw(e){const r=zf({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${r}(?:${t.join("|")})`;return new RegExp(`^${Lf}T(?:${n})$`)}const Iw=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Rw=/^\d+$/,Nw=/^-?\d+(?:\.\d+)?/i,$w=/true|false/i,jw=/^[^A-Z]*$/,Lw=/^[^a-z]*$/,Ot=Y("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[])}),Bf={number:"number",bigint:"bigint",object:"date"},Vf=Y("$ZodCheckLessThan",(e,r)=>{Ot.init(e,r);const t=Bf[typeof r.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Ff=Y("$ZodCheckGreaterThan",(e,r)=>{Ot.init(e,r);const t=Bf[typeof r.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),zw=Y("$ZodCheckMultipleOf",(e,r)=>{Ot.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value)}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):z2(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort})}}),Bw=Y("$ZodCheckNumberFormat",(e,r)=>{Ot.init(e,r),r.format=r.format||"float64";const t=r.format?.includes("int"),n=t?"int":"number",[o,i]=U2[r.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=r.format,s.minimum=o,s.maximum=i,t&&(s.pattern=Rw)}),e._zod.check=a=>{const s=a.value;if(t){if(!Number.isInteger(s)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}s<o&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),Vw=Y("$ZodCheckMaxLength",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Hs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=r.maximum)return;const a=Zs(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Fw=Y("$ZodCheckMinLength",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Hs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=r.minimum)return;const a=Zs(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Yw=Y("$ZodCheckLengthEquals",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Hs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===r.length)return;const a=Zs(o),s=i>r.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),oa=Y("$ZodCheckStringFormat",(e,r)=>{var t,n;Ot.init(e,r),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(n=e._zod).check??(n.check=()=>{})}),Uw=Y("$ZodCheckRegex",(e,r)=>{oa.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Hw=Y("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=jw),oa.init(e,r)}),Ww=Y("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Lw),oa.init(e,r)}),Zw=Y("$ZodCheckIncludes",(e,r)=>{Ot.init(e,r);const t=Pn(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort})}}),qw=Y("$ZodCheckStartsWith",(e,r)=>{Ot.init(e,r);const t=new RegExp(`^${Pn(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort})}}),Kw=Y("$ZodCheckEndsWith",(e,r)=>{Ot.init(e,r);const t=new RegExp(`.*${Pn(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort})}}),Gw=Y("$ZodCheckOverwrite",(e,r)=>{Ot.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value)}});class Qw{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const n=r.split(`
166
+ */const ub=lo("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),od=Symbol.for("constructDateFrom");function bs(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&od in e?e[od](r):e instanceof Date?new e.constructor(r):new Date(r)}function Nr(e,r){return bs(r||e,e)}function id(e,r,t){const[n,o]=[+Nr(e.start,t?.in),+Nr(e.end,t?.in)].sort((s,c)=>s-c),[i,a]=[+Nr(r.start,t?.in),+Nr(r.end,t?.in)].sort((s,c)=>s-c);return n<a&&i<o}function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ii(e)}var db=/^\s+/,fb=/\s+$/;function fe(e,r){if(e=e||"",r=r||{},e instanceof fe)return e;if(!(this instanceof fe))return new fe(e,r);var t=pb(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}fe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),t,n,o,i,a,s;return t=r.r/255,n=r.g/255,o=r.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(r){return this._a=dd(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=sd(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=sd(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var r=ad(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=ad(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(r){return cd(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return vb(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(We(this._r,255)*100)+"%",g:Math.round(We(this._g,255)*100)+"%",b:Math.round(We(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%)":"rgba("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ob[cd(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var t="#"+ld(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(r){var i=fe(r);n="#"+ld(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(r){var t=!!r;r=r||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return i?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return fe(this.toString())},_applyModification:function(r,t){var n=r.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_b,arguments)},brighten:function(){return this._applyModification(xb,arguments)},darken:function(){return this._applyModification(Sb,arguments)},desaturate:function(){return this._applyModification(yb,arguments)},saturate:function(){return this._applyModification(bb,arguments)},greyscale:function(){return this._applyModification(wb,arguments)},spin:function(){return this._applyModification(Cb,arguments)},_applyCombination:function(r,t){return r.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Db,arguments)},complement:function(){return this._applyCombination(Eb,arguments)},monochromatic:function(){return this._applyCombination(Tb,arguments)},splitcomplement:function(){return this._applyCombination(kb,arguments)},triad:function(){return this._applyCombination(ud,[3])},tetrad:function(){return this._applyCombination(ud,[4])}},fe.fromRatio=function(e,r){if(Ii(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?t[n]=e[n]:t[n]=uo(e[n]));e=t}return fe(e,r)};function pb(e){var r={r:0,g:0,b:0},t=1,n=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Ib(e)),Ii(e)=="object"&&(_r(e.r)&&_r(e.g)&&_r(e.b)?(r=hb(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_r(e.h)&&_r(e.s)&&_r(e.v)?(n=uo(e.s),o=uo(e.v),r=gb(e.h,n,o),a=!0,s="hsv"):_r(e.h)&&_r(e.s)&&_r(e.l)&&(n=uo(e.s),i=uo(e.l),r=mb(e.h,n,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=dd(t),{ok:a,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}function hb(e,r,t){return{r:We(e,255)*255,g:We(r,255)*255,b:We(t,255)*255}}function ad(e,r,t){e=We(e,255),r=We(r,255),t=We(t,255);var n=Math.max(e,r,t),o=Math.min(e,r,t),i,a,s=(n+o)/2;if(n==o)i=a=0;else{var c=n-o;switch(a=s>.5?c/(2-n-o):c/(n+o),n){case e:i=(r-t)/c+(r<t?6:0);break;case r:i=(t-e)/c+2;break;case t:i=(e-r)/c+4;break}i/=6}return{h:i,s:a,l:s}}function mb(e,r,t){var n,o,i;e=We(e,360),r=We(r,100),t=We(t,100);function a(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(r===0)n=o=i=t;else{var s=t<.5?t*(1+r):t+r-t*r,c=2*t-s;n=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function sd(e,r,t){e=We(e,255),r=We(r,255),t=We(t,255);var n=Math.max(e,r,t),o=Math.min(e,r,t),i,a,s=n,c=n-o;if(a=n===0?0:c/n,n==o)i=0;else{switch(n){case e:i=(r-t)/c+(r<t?6:0);break;case r:i=(t-e)/c+2;break;case t:i=(e-r)/c+4;break}i/=6}return{h:i,s:a,v:s}}function gb(e,r,t){e=We(e,360)*6,r=We(r,100),t=We(t,100);var n=Math.floor(e),o=e-n,i=t*(1-r),a=t*(1-o*r),s=t*(1-(1-o)*r),c=n%6,l=[t,a,i,i,s,t][c],u=[s,t,t,a,i,i][c],d=[i,i,s,t,t,a][c];return{r:l*255,g:u*255,b:d*255}}function cd(e,r,t,n){var o=[Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vb(e,r,t,n,o){var i=[Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16)),Kt(fd(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ld(e,r,t,n){var o=[Kt(fd(n)),Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16))];return o.join("")}fe.equals=function(e,r){return!e||!r?!1:fe(e).toRgbString()==fe(r).toRgbString()},fe.random=function(){return fe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function yb(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.s-=r/100,t.s=Ri(t.s),fe(t)}function bb(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.s+=r/100,t.s=Ri(t.s),fe(t)}function wb(e){return fe(e).desaturate(100)}function _b(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.l+=r/100,t.l=Ri(t.l),fe(t)}function xb(e,r){r=r===0?0:r||10;var t=fe(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),fe(t)}function Sb(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.l-=r/100,t.l=Ri(t.l),fe(t)}function Cb(e,r){var t=fe(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,fe(t)}function Eb(e){var r=fe(e).toHsl();return r.h=(r.h+180)%360,fe(r)}function ud(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=fe(e).toHsl(),n=[fe(e)],o=360/r,i=1;i<r;i++)n.push(fe({h:(t.h+i*o)%360,s:t.s,l:t.l}));return n}function kb(e){var r=fe(e).toHsl(),t=r.h;return[fe(e),fe({h:(t+72)%360,s:r.s,l:r.l}),fe({h:(t+216)%360,s:r.s,l:r.l})]}function Db(e,r,t){r=r||6,t=t||30;var n=fe(e).toHsl(),o=360/t,i=[fe(e)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,i.push(fe(n));return i}function Tb(e,r){r=r||6;for(var t=fe(e).toHsv(),n=t.h,o=t.s,i=t.v,a=[],s=1/r;r--;)a.push(fe({h:n,s:o,v:i})),i=(i+s)%1;return a}fe.mix=function(e,r,t){t=t===0?0:t||50;var n=fe(e).toRgb(),o=fe(r).toRgb(),i=t/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return fe(a)},fe.readability=function(e,r){var t=fe(e),n=fe(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},fe.isReadable=function(e,r,t){var n=fe.readability(e,r),o,i;switch(i=!1,o=Rb(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},fe.mostReadable=function(e,r,t){var n=null,o=0,i,a,s,c;t=t||{},a=t.includeFallbackColors,s=t.level,c=t.size;for(var l=0;l<r.length;l++)i=fe.readability(e,r[l]),i>o&&(o=i,n=fe(r[l]));return fe.isReadable(e,n,{level:s,size:c})||!a?n:(t.includeFallbackColors=!1,fe.mostReadable(e,["#fff","#000"],t))};var ws=fe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ob=fe.hexNames=Mb(ws);function Mb(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function dd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function We(e,r){Pb(e)&&(e="100%");var t=Ab(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function Ri(e){return Math.min(1,Math.max(0,e))}function $t(e){return parseInt(e,16)}function Pb(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Ab(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Kt(e){return e.length==1?"0"+e:""+e}function uo(e){return e<=1&&(e=e*100+"%"),e}function fd(e){return Math.round(parseFloat(e)*255).toString(16)}function pd(e){return $t(e)/255}var Gt=(function(){var e="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",t="(?:"+r+")|(?:"+e+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function _r(e){return!!Gt.CSS_UNIT.exec(e)}function Ib(e){e=e.replace(db,"").replace(fb,"").toLowerCase();var r=!1;if(ws[e])e=ws[e],r=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Gt.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Gt.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Gt.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Gt.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Gt.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Gt.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Gt.hex8.exec(e))?{r:$t(t[1]),g:$t(t[2]),b:$t(t[3]),a:pd(t[4]),format:r?"name":"hex8"}:(t=Gt.hex6.exec(e))?{r:$t(t[1]),g:$t(t[2]),b:$t(t[3]),format:r?"name":"hex"}:(t=Gt.hex4.exec(e))?{r:$t(t[1]+""+t[1]),g:$t(t[2]+""+t[2]),b:$t(t[3]+""+t[3]),a:pd(t[4]+""+t[4]),format:r?"name":"hex8"}:(t=Gt.hex3.exec(e))?{r:$t(t[1]+""+t[1]),g:$t(t[2]+""+t[2]),b:$t(t[3]+""+t[3]),format:r?"name":"hex"}:!1}function Rb(e){var r,t;return e=e||{level:"AA",size:"small"},r=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:r,size:t}}const hd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23C4D9F5'%20d='M36.667%2020c0%209.205-7.462%2016.667-16.667%2016.667S3.333%2029.205%203.333%2020%2010.795%203.333%2020%203.333%2036.667%2010.795%2036.667%2020'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M20%2012.083c.69%200%201.25.56%201.25%201.25v6.15l3.8%203.8a1.25%201.25%200%201%201-1.767%201.767l-4.167-4.166A1.25%201.25%200%200%201%2018.75%2020v-6.667c0-.69.56-1.25%201.25-1.25'%20clip-rule='evenodd'/%3e%3c/svg%3e",Nb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M17.614%202.64h-.5v-.622c0-.566-.443-1.018-.998-1.018s-.998.452-.998%201.018v.622H7.893v-.622C7.894%201.452%207.45%201%206.895%201s-.999.452-.999%201.018v.622h-.5C2.946%202.64.959%204.665.959%207.165v11.31c0%202.5%201.987%204.525%204.439%204.525h12.206c2.452%200%204.439-2.025%204.439-4.524V7.165c0-2.5-1.987-4.525-4.439-4.525zm0%2018.098H5.408c-1.22%200-2.22-1.018-2.22-2.262V10.41h16.646v8.065c0%201.244-1%202.262-2.22%202.262'/%3e%3c/svg%3e",$b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M12.667%204.667a3%203%200%200%201%203%203v8.667a3%203%200%200%201-3%203H4a3%203%200%200%201-3-3V7.667a3%203%200%200%201%203-3zM21.36%206.237a1%201%200%200%201%201.64.77V17a1%201%200%200%201-1.64.768L17%2014.135V9.867z'/%3e%3c/svg%3e",jb=({onEventClick:e,upcomingEvents:r,onSyncGoogle:t,onSyncOutlook:n,leads30Days:o,leads90Days:i})=>{const a=d=>{const f=new Date,m={start:w.startOfDay(f),end:w.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return id(m,g)?"Hoy":w.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};r.forEach(d=>{const f=a(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=x.useState(!1),u=()=>{l(!c)};return h.jsxs("div",{className:xe.sidebarContainer,children:[h.jsxs("div",{className:xe.leadsSection,children:[h.jsxs("div",{className:xe.leadCard,children:[h.jsx("div",{className:xe.leadIcon,children:h.jsx("img",{src:hd})}),h.jsxs("div",{className:xe.leadText,children:[h.jsx("div",{className:xe.leadDays,children:"+30 días sin atender"}),h.jsxs("div",{className:xe.leadCount,children:[o," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),h.jsxs("div",{className:xe.leadCard,children:[h.jsx("div",{className:xe.leadIcon,children:h.jsx("img",{src:hd})}),h.jsxs("div",{className:xe.leadText,children:[h.jsx("div",{className:xe.leadDays,children:"+90 días sin atender"}),h.jsxs("div",{className:xe.leadCount,children:[i," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),h.jsxs("div",{className:xe.eventsSection,children:[h.jsx("h3",{className:xe.sidebarTitle,children:"Próximos eventos"}),h.jsx("div",{className:xe.eventsContainer,children:Object.entries(s).map(([d,f])=>h.jsxs("div",{className:`${xe.eventGroup}`,children:[h.jsxs("div",{className:xe.eventGroupDate,children:[h.jsx("img",{src:Nb,width:15})," ",d]}),f.map(m=>{const g=fe(m.color||"#ffcc00"),p=g.toString(),y=g.clone().darken(15).toString();return h.jsxs("div",{className:xe.eventItem,style:{backgroundColor:p,borderLeftColor:y},onClick:()=>e(m),children:[h.jsxs("div",{className:xe.eventDetails,children:[h.jsx("div",{className:xe.eventTitle,children:m.titulo.length>32?`${m.titulo.substring(0,32)}...`:m.titulo}),h.jsx("div",{className:xe.eventGroupDate,children:m?.client?m?.client?.length>50?`${m.client.substring(0,32)}...`:m.client:""}),h.jsx("div",{className:xe.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&h.jsx("a",{onClick:S=>{S.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:h.jsx("img",{src:$b,width:15,style:{marginLeft:"3px"}})})]},m.eventoID)})]},d))})]}),h.jsxs("div",{className:xe.calendarsSection,hidden:!0,children:[h.jsxs("button",{onClick:u,className:xe.collapsibleHeader,children:[h.jsxs("div",{className:xe.headerTitle,children:[h.jsx("h3",{children:"Calendarios"}),h.jsx("span",{className:xe.calendarCount,children:"1"})]}),h.jsx(sb,{className:`${xe.chevronIcon} ${c?xe.collapsed:""}`})]}),h.jsxs("div",{className:`${xe.collapsibleContent} ${c?xe.hidden:""}`,children:[h.jsxs("div",{className:xe.calendarItem,children:[h.jsx("div",{className:xe.circularCheckbox,children:h.jsx(cb,{size:24,className:xe.checkedIcon})}),h.jsx(nd,{size:24,className:xe.calendarIcon}),h.jsx("span",{children:"Mi calendario"})]}),h.jsxs("div",{className:xe.calendarItem,onClick:n,children:[h.jsx("div",{className:xe.circularCheckbox,children:h.jsx(lb,{size:24,className:xe.uncheckedIcon})}),h.jsx(ub,{size:24,className:xe.calendarIcon}),h.jsx("span",{children:"Outlook"})]}),h.jsxs("div",{className:xe.syncButton,onClick:t,children:[h.jsx(nd,{size:24,className:xe.googleIcon}),h.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},Qt={dayCell:"_dayCell_ph891_1",dayCellContainer:"_dayCellContainer_ph891_23",dayNumber:"_dayNumber_ph891_55",dayNumberToday:"_dayNumberToday_ph891_69",notCurrentMonth:"_notCurrentMonth_ph891_91",CurrentDay:"_CurrentDay_ph891_129",eventsList:"_eventsList_ph891_137",eventItem:"_eventItem_ph891_155",eventTitle:"_eventTitle_ph891_187",eventTime:"_eventTime_ph891_217",seeMoreLink:"_seeMoreLink_ph891_245"},md=25,Lb=22,zb=({dayNumber:e,date:r,events:t,isToday:n,isCurrentMonth:o,onDayClick:i,onEventClick:a,onSeeMoreClick:s})=>{const c=[Qt.dayCell,o?"":Qt.notCurrentMonth,Qt.CurrentDay].join(" ").trim(),l=x.useRef(null),[u,d]=x.useState(t.length),f=()=>{i?.(r)};x.useLayoutEffect(()=>{const p=()=>{if(l.current){const y=l.current.clientHeight;let S=Math.floor(y/md);if(S<t.length){const C=Math.floor((y-Lb)/md);S=Math.max(0,C)}d(S)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[t.length]);const m=t.slice(0,u==0?1:u),g=t.length-(u==0?1:u);return h.jsxs("div",{className:`${c} ${Qt.dayCellContainer}`,onClick:f,children:[h.jsx("div",{className:n?Qt.dayNumber:Qt.dayNumberToday,children:e}),h.jsxs("div",{className:Qt.eventsList,ref:l,children:[m.map(p=>h.jsxs("div",{className:Qt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:y=>{y.stopPropagation(),a?.(p)},children:[h.jsx("span",{className:Qt.eventTitle,children:p.titulo}),h.jsx("span",{className:Qt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&h.jsxs("div",{className:Qt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(t,r)},children:[g," más..."]})]})]})},gd={weekDaysContainer:"_weekDaysContainer_5h5ol_1",weekDay:"_weekDay_5h5ol_1"},Bb=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return h.jsx("div",{className:gd.weekDaysContainer,children:e.map(r=>h.jsx("div",{className:gd.weekDay,children:r},r))})},Ni={calendarGridContainer:"_calendarGridContainer_1expw_1",daysContainer:"_daysContainer_1expw_23",rows5:"_rows5_1expw_37",rows6:"_rows6_1expw_45"};function Vb(e,...r){const t=bs.bind(null,r.find(n=>typeof n=="object"));return r.map(t)}function Fb(e,r){const[t,n]=Vb(e,r.start,r.end);return{start:t,end:n}}function Yb(e,r){const{start:t,end:n}=Fb(r?.in,e);let o=+t>+n;const i=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(bs(t,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function Ub(e,r){const t=r?.weekStartsOn,n=Nr(e,r?.in),o=n.getDay(),i=(o<t?-7:0)+6-(o-t);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Hb(e,r,t){const n=+Nr(e,t?.in),[o,i]=[+Nr(r.start,t?.in),+Nr(r.end,t?.in)].sort((a,s)=>a-s);return n>=o&&n<=i}const Wb=({currentDate:e,events:r,onDayClick:t,onEventClick:n,onSeeMoreClick:o})=>{const i=w.startOfMonth(e),a=w.endOfMonth(e),s=w.startOfWeek(i,{weekStartsOn:1}),c=Ub(a,{weekStartsOn:1}),l=Yb({start:s,end:c}),u={},d=l.length/7,f=`${Ni.daysContainer} ${d===5?Ni.rows5:Ni.rows6}`;return r.forEach(m=>{const g=w.format(m.fechaInicio,"yyyy-MM-dd");u[g]||(u[g]=[]),u[g].push(m)}),h.jsxs("div",{className:Ni.calendarGridContainer,children:[h.jsx(Bb,{}),h.jsx("div",{className:f,children:l.map(m=>{const g=r.filter(p=>Hb(m,{start:w.startOfDay(p.fechaInicio),end:w.endOfDay(p.fechaFin)}));return h.jsx(zb,{dayNumber:m.getDate(),date:m,events:g,isToday:w.isToday(m),isCurrentMonth:w.isSameMonth(m,e),onDayClick:t,onEventClick:n,onSeeMoreClick:o},m.toISOString())})})]})};function vd(e,r){return function(){return e.apply(r,arguments)}}const{toString:Zb}=Object.prototype,{getPrototypeOf:_s}=Object,{iterator:$i,toStringTag:yd}=Symbol,ji=(e=>r=>{const t=Zb.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),r=>ji(r)===e),Li=e=>r=>typeof r===e,{isArray:kn}=Array,fo=Li("undefined");function po(e){return e!==null&&!fo(e)&&e.constructor!==null&&!fo(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bd=Xt("ArrayBuffer");function qb(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&bd(e.buffer),r}const Kb=Li("string"),kt=Li("function"),wd=Li("number"),ho=e=>e!==null&&typeof e=="object",Gb=e=>e===!0||e===!1,zi=e=>{if(ji(e)!=="object")return!1;const r=_s(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(yd in e)&&!($i in e)},Qb=e=>{if(!ho(e)||po(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Xb=Xt("Date"),Jb=Xt("File"),e1=Xt("Blob"),t1=Xt("FileList"),r1=e=>ho(e)&&kt(e.pipe),n1=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||kt(e.append)&&((r=ji(e))==="formdata"||r==="object"&&kt(e.toString)&&e.toString()==="[object FormData]"))},o1=Xt("URLSearchParams"),[i1,a1,s1,c1]=["ReadableStream","Request","Response","Headers"].map(Xt),l1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,r,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),kn(e))for(n=0,o=e.length;n<o;n++)r.call(null,e[n],n,e);else{if(po(e))return;const i=t?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],r.call(null,e[s],s,e)}}function _d(e,r){if(po(e))return null;r=r.toLowerCase();const t=Object.keys(e);let n=t.length,o;for(;n-- >0;)if(o=t[n],r===o.toLowerCase())return o;return null}const Kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xd=e=>!fo(e)&&e!==Kr;function xs(){const{caseless:e}=xd(this)&&this||{},r={},t=(n,o)=>{const i=e&&_d(r,o)||o;zi(r[i])&&zi(n)?r[i]=xs(r[i],n):zi(n)?r[i]=xs({},n):kn(n)?r[i]=n.slice():r[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&mo(arguments[n],t);return r}const u1=(e,r,t,{allOwnKeys:n}={})=>(mo(r,(o,i)=>{t&&kt(o)?e[i]=vd(o,t):e[i]=o},{allOwnKeys:n}),e),d1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),f1=(e,r,t,n)=>{e.prototype=Object.create(r.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),t&&Object.assign(e.prototype,t)},p1=(e,r,t,n)=>{let o,i,a;const s={};if(r=r||{},e==null)return r;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,r))&&!s[a]&&(r[a]=e[a],s[a]=!0);e=t!==!1&&_s(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r},h1=(e,r,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;const n=e.indexOf(r,t);return n!==-1&&n===t},m1=e=>{if(!e)return null;if(kn(e))return e;let r=e.length;if(!wd(r))return null;const t=new Array(r);for(;r-- >0;)t[r]=e[r];return t},g1=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&_s(Uint8Array)),v1=(e,r)=>{const n=(e&&e[$i]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;r.call(e,i[0],i[1])}},y1=(e,r)=>{let t;const n=[];for(;(t=e.exec(r))!==null;)n.push(t);return n},b1=Xt("HTMLFormElement"),w1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),Sd=(({hasOwnProperty:e})=>(r,t)=>e.call(r,t))(Object.prototype),_1=Xt("RegExp"),Cd=(e,r)=>{const t=Object.getOwnPropertyDescriptors(e),n={};mo(t,(o,i)=>{let a;(a=r(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},x1=e=>{Cd(e,(r,t)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(kt(n)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},S1=(e,r)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return kn(e)?n(e):n(String(e).split(r)),t},C1=()=>{},E1=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r;function k1(e){return!!(e&&kt(e.append)&&e[yd]==="FormData"&&e[$i])}const D1=e=>{const r=new Array(10),t=(n,o)=>{if(ho(n)){if(r.indexOf(n)>=0)return;if(po(n))return n;if(!("toJSON"in n)){r[o]=n;const i=kn(n)?[]:{};return mo(n,(a,s)=>{const c=t(a,o+1);!fo(c)&&(i[s]=c)}),r[o]=void 0,i}}return n};return t(e,0)},T1=Xt("AsyncFunction"),O1=e=>e&&(ho(e)||kt(e))&&kt(e.then)&&kt(e.catch),Ed=((e,r)=>e?setImmediate:r?((t,n)=>(Kr.addEventListener("message",({source:o,data:i})=>{o===Kr&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),Kr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",kt(Kr.postMessage)),M1=typeof queueMicrotask<"u"?queueMicrotask.bind(Kr):typeof process<"u"&&process.nextTick||Ed,z={isArray:kn,isArrayBuffer:bd,isBuffer:po,isFormData:n1,isArrayBufferView:qb,isString:Kb,isNumber:wd,isBoolean:Gb,isObject:ho,isPlainObject:zi,isEmptyObject:Qb,isReadableStream:i1,isRequest:a1,isResponse:s1,isHeaders:c1,isUndefined:fo,isDate:Xb,isFile:Jb,isBlob:e1,isRegExp:_1,isFunction:kt,isStream:r1,isURLSearchParams:o1,isTypedArray:g1,isFileList:t1,forEach:mo,merge:xs,extend:u1,trim:l1,stripBOM:d1,inherits:f1,toFlatObject:p1,kindOf:ji,kindOfTest:Xt,endsWith:h1,toArray:m1,forEachEntry:v1,matchAll:y1,isHTMLForm:b1,hasOwnProperty:Sd,hasOwnProp:Sd,reduceDescriptors:Cd,freezeMethods:x1,toObjectSet:S1,toCamelCase:w1,noop:C1,toFiniteNumber:E1,findKey:_d,global:Kr,isContextDefined:xd,isSpecCompliantForm:k1,toJSONObject:D1,isAsyncFn:T1,isThenable:O1,setImmediate:Ed,asap:M1,isIterable:e=>e!=null&&kt(e[$i])};function be(e,r,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const kd=be.prototype,Dd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dd[e]={value:e}}),Object.defineProperties(be,Dd),Object.defineProperty(kd,"isAxiosError",{value:!0}),be.from=(e,r,t,n,o,i)=>{const a=Object.create(kd);return z.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),be.call(a,e.message,r,t,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const P1=null;function Ss(e){return z.isPlainObject(e)||z.isArray(e)}function Td(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Od(e,r,t){return e?e.concat(r).map(function(o,i){return o=Td(o),!t&&i?"["+o+"]":o}).join(t?".":""):r}function A1(e){return z.isArray(e)&&!e.some(Ss)}const I1=z.toFlatObject(z,{},null,function(r){return/^is[A-Z]/.test(r)});function Bi(e,r,t){if(!z.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,t=z.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!z.isUndefined(y[p])});const n=t.metaTokens,o=t.visitor||u,i=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(r);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!c&&z.isBlob(g))throw new be("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let S=g;if(g&&!y&&typeof g=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&A1(g)||(z.isFileList(g)||z.endsWith(p,"[]"))&&(S=z.toArray(g)))return p=Td(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&r.append(a===!0?Od([p],E,i):a===null?p:p+"[]",l(k))}),!1}return Ss(g)?!0:(r.append(Od(y,p,i),l(g)),!1)}const d=[],f=Object.assign(I1,{defaultVisitor:u,convertValue:l,isVisitable:Ss});function m(g,p){if(!z.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),z.forEach(g,function(S,C){(!(z.isUndefined(S)||S===null)&&o.call(r,S,z.isString(C)?C.trim():C,p,f))===!0&&m(S,p?p.concat(C):[C])}),d.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),r}function Md(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return r[n]})}function Cs(e,r){this._pairs=[],e&&Bi(e,this,r)}const Pd=Cs.prototype;Pd.append=function(r,t){this._pairs.push([r,t])},Pd.toString=function(r){const t=r?function(n){return r.call(this,n,Md)}:Md;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function R1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ad(e,r,t){if(!r)return e;const n=t&&t.encode||R1;z.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(r,t):i=z.isURLSearchParams(r)?r.toString():new Cs(r,t).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Id{constructor(){this.handlers=[]}use(r,t,n){return this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){z.forEach(this.handlers,function(n){n!==null&&r(n)})}}const Rd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Cs,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Es=typeof window<"u"&&typeof document<"u",ks=typeof navigator=="object"&&navigator||void 0,$1=Es&&(!ks||["ReactNative","NativeScript","NS"].indexOf(ks.product)<0),j1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L1=Es&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Es,hasStandardBrowserEnv:$1,hasStandardBrowserWebWorkerEnv:j1,navigator:ks,origin:L1},Symbol.toStringTag,{value:"Module"})),...N1};function z1(e,r){return Bi(e,new gt.classes.URLSearchParams,{visitor:function(t,n,o,i){return gt.isNode&&z.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...r})}function B1(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function V1(e){const r={},t=Object.keys(e);let n;const o=t.length;let i;for(n=0;n<o;n++)i=t[n],r[i]=e[i];return r}function Nd(e){function r(t,n,o,i){let a=t[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=t.length;return a=!a&&z.isArray(o)?o.length:a,c?(z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!z.isObject(o[a]))&&(o[a]=[]),r(t,n,o[a],i)&&z.isArray(o[a])&&(o[a]=V1(o[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const t={};return z.forEachEntry(e,(n,o)=>{r(B1(n),o,t,0)}),t}return null}function F1(e,r,t){if(z.isString(e))try{return(r||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const go={transitional:Rd,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=z.isObject(r);if(i&&z.isHTMLForm(r)&&(r=new FormData(r)),z.isFormData(r))return o?JSON.stringify(Nd(r)):r;if(z.isArrayBuffer(r)||z.isBuffer(r)||z.isStream(r)||z.isFile(r)||z.isBlob(r)||z.isReadableStream(r))return r;if(z.isArrayBufferView(r))return r.buffer;if(z.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return z1(r,this.formSerializer).toString();if((s=z.isFileList(r))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bi(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),F1(r)):r}],transformResponse:[function(r){const t=this.transitional||go.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(r)||z.isReadableStream(r))return r;if(r&&z.isString(r)&&(n&&!this.responseType||o)){const a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(s){if(a)throw s.name==="SyntaxError"?be.from(s,be.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const Y1=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U1=e=>{const r={};let t,n,o;return e&&e.split(`
167
+ `).forEach(function(a){o=a.indexOf(":"),t=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!t||r[t]&&Y1[t])&&(t==="set-cookie"?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)}),r},$d=Symbol("internals");function vo(e){return e&&String(e).trim().toLowerCase()}function Vi(e){return e===!1||e==null?e:z.isArray(e)?e.map(Vi):String(e)}function H1(e){const r=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)r[n[1]]=n[2];return r}const W1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ds(e,r,t,n,o){if(z.isFunction(n))return n.call(this,r,t);if(o&&(r=t),!!z.isString(r)){if(z.isString(n))return r.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(r)}}function Z1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,t,n)=>t.toUpperCase()+n)}function q1(e,r){const t=z.toCamelCase(" "+r);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(o,i,a){return this[n].call(this,r,o,i,a)},configurable:!0})})}let Dt=class{constructor(r){r&&this.set(r)}set(r,t,n){const o=this;function i(s,c,l){const u=vo(c);if(!u)throw new Error("header name must be a non-empty string");const d=z.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=Vi(s))}const a=(s,c)=>z.forEach(s,(l,u)=>i(l,u,c));if(z.isPlainObject(r)||r instanceof this.constructor)a(r,t);else if(z.isString(r)&&(r=r.trim())&&!W1(r))a(U1(r),t);else if(z.isObject(r)&&z.isIterable(r)){let s={},c,l;for(const u of r){if(!z.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?z.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(s,t)}else r!=null&&i(t,r,n);return this}get(r,t){if(r=vo(r),r){const n=z.findKey(this,r);if(n){const o=this[n];if(!t)return o;if(t===!0)return H1(o);if(z.isFunction(t))return t.call(this,o,n);if(z.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,t){if(r=vo(r),r){const n=z.findKey(this,r);return!!(n&&this[n]!==void 0&&(!t||Ds(this,this[n],n,t)))}return!1}delete(r,t){const n=this;let o=!1;function i(a){if(a=vo(a),a){const s=z.findKey(n,a);s&&(!t||Ds(n,n[s],s,t))&&(delete n[s],o=!0)}}return z.isArray(r)?r.forEach(i):i(r),o}clear(r){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];(!r||Ds(this,this[i],i,r,!0))&&(delete this[i],o=!0)}return o}normalize(r){const t=this,n={};return z.forEach(this,(o,i)=>{const a=z.findKey(n,i);if(a){t[a]=Vi(o),delete t[i];return}const s=r?Z1(i):String(i).trim();s!==i&&delete t[i],t[s]=Vi(o),n[s]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const t=Object.create(null);return z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=r&&z.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,t])=>r+": "+t).join(`
168
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...t){const n=new this(r);return t.forEach(o=>n.set(o)),n}static accessor(r){const n=(this[$d]=this[$d]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=vo(a);n[s]||(q1(o,a),n[s]=!0)}return z.isArray(r)?r.forEach(i):i(r),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Dt.prototype,({value:e},r)=>{let t=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(n){this[t]=n}}}),z.freezeMethods(Dt);function Ts(e,r){const t=this||go,n=r||t,o=Dt.from(n.headers);let i=n.data;return z.forEach(e,function(s){i=s.call(t,i,o.normalize(),r?r.status:void 0)}),o.normalize(),i}function jd(e){return!!(e&&e.__CANCEL__)}function Dn(e,r,t){be.call(this,e??"canceled",be.ERR_CANCELED,r,t),this.name="CanceledError"}z.inherits(Dn,be,{__CANCEL__:!0});function Ld(e,r,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):r(new be("Request failed with status code "+t.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function K1(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function G1(e,r){e=e||10;const t=new Array(e),n=new Array(e);let o=0,i=0,a;return r=r!==void 0?r:1e3,function(c){const l=Date.now(),u=n[i];a||(a=l),t[o]=c,n[o]=l;let d=i,f=0;for(;d!==o;)f+=t[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<r)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function Q1(e,r){let t=0,n=1e3/r,o,i;const a=(l,u=Date.now())=>{t=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=n?a(l,u):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const Fi=(e,r,t=3)=>{let n=0;const o=G1(50,250);return Q1(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[r?"download":"upload"]:!0};e(d)},t)},zd=(e,r)=>{const t=e!=null;return[n=>r[0]({lengthComputable:t,total:e,loaded:n}),r[1]]},Bd=e=>(...r)=>z.asap(()=>e(...r)),X1=gt.hasStandardBrowserEnv?((e,r)=>t=>(t=new URL(t,gt.origin),e.protocol===t.protocol&&e.host===t.host&&(r||e.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,J1=gt.hasStandardBrowserEnv?{write(e,r,t,n,o,i){const a=[e+"="+encodeURIComponent(r)];z.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function e2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t2(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Vd(e,r,t){let n=!e2(r);return e&&(n||t==!1)?t2(e,r):r}const Fd=e=>e instanceof Dt?{...e}:e;function Gr(e,r){r=r||{};const t={};function n(l,u,d,f){return z.isPlainObject(l)&&z.isPlainObject(u)?z.merge.call({caseless:f},l,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function o(l,u,d,f){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l,d,f)}else return n(l,u,d,f)}function i(l,u){if(!z.isUndefined(u))return n(void 0,u)}function a(l,u){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in r)return n(l,u);if(d in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u,d)=>o(Fd(l),Fd(u),d,!0)};return z.forEach(Object.keys({...e,...r}),function(u){const d=c[u]||o,f=d(e[u],r[u],u);z.isUndefined(f)&&d!==s||(t[u]=f)}),t}const Yd=e=>{const r=Gr({},e);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=r;r.headers=a=Dt.from(a),r.url=Ad(Vd(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(z.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(r)),n||n!==!1&&X1(r.url))){const l=o&&i&&J1.read(i);l&&a.set(o,l)}return r},r2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){const o=Yd(e);let i=o.data;const a=Dt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function S(){if(!y)return;const k=Dt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};Ld(function(N){t(N),p()},function(N){n(N),p()},_),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(n(new be("Request aborted",be.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new be("Network Error",be.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Rd;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new be(E,_.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&z.forEach(a.toJSON(),function(E,_){y.setRequestHeader(_,E)}),z.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),l&&([f,g]=Fi(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,m]=Fi(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=k=>{y&&(n(!k||k.type?new Dn(null,e,y):k),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=K1(o.url);if(C&&gt.protocols.indexOf(C)===-1){n(new be("Unsupported protocol "+C+":",be.ERR_BAD_REQUEST,e));return}y.send(i||null)})},n2=(e,r)=>{const{length:t}=e=e?e.filter(Boolean):[];if(r||t){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof be?u:new Dn(u instanceof Error?u.message:u))}};let a=r&&setTimeout(()=>{a=null,i(new be(`timeout ${r} of ms exceeded`,be.ETIMEDOUT))},r);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>z.asap(s),c}},o2=function*(e,r){let t=e.byteLength;if(t<r){yield e;return}let n=0,o;for(;n<t;)o=n+r,yield e.slice(n,o),n=o},i2=async function*(e,r){for await(const t of a2(e))yield*o2(t,r)},a2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const r=e.getReader();try{for(;;){const{done:t,value:n}=await r.read();if(t)break;yield n}}finally{await r.cancel()}},Ud=(e,r,t,n)=>{const o=i2(e,r);let i=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(t){let f=i+=d;t(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Yi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hd=Yi&&typeof ReadableStream=="function",s2=Yi&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wd=(e,...r)=>{try{return!!e(...r)}catch{return!1}},c2=Hd&&Wd(()=>{let e=!1;const r=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),Zd=64*1024,Os=Hd&&Wd(()=>z.isReadableStream(new Response("").body)),Ui={stream:Os&&(e=>e.body)};Yi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Ui[r]&&(Ui[r]=z.isFunction(e[r])?t=>t[r]():(t,n)=>{throw new be(`Response type '${r}' is not supported`,be.ERR_NOT_SUPPORT,n)})})})(new Response);const l2=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(gt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await s2(e)).byteLength},u2=async(e,r)=>{const t=z.toFiniteNumber(e.getContentLength());return t??l2(r)},Ms={http:P1,xhr:r2,fetch:Yi&&(async e=>{let{url:r,method:t,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Yd(e);l=l?(l+"").toLowerCase():"text";let m=n2([o,i&&i.toAbortSignal()],a),g;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&c2&&t!=="get"&&t!=="head"&&(y=await u2(u,n))!==0){let _=new Request(r,{method:"POST",body:n,duplex:"half"}),O;if(z.isFormData(n)&&(O=_.headers.get("content-type"))&&u.setContentType(O),_.body){const[N,q]=zd(y,Fi(Bd(c)));n=Ud(_.body,Zd,N,q)}}z.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;g=new Request(r,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let C=await fetch(g,f);const k=Os&&(l==="stream"||l==="response");if(Os&&(s||k&&p)){const _={};["status","statusText","headers"].forEach(Z=>{_[Z]=C[Z]});const O=z.toFiniteNumber(C.headers.get("content-length")),[N,q]=s&&zd(O,Fi(Bd(s),!0))||[];C=new Response(Ud(C.body,Zd,N,()=>{q&&q(),p&&p()}),_)}l=l||"text";let E=await Ui[z.findKey(Ui,l)||"text"](C,e);return!k&&p&&p(),await new Promise((_,O)=>{Ld(_,O,{data:E,headers:Dt.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(S){throw p&&p(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,e,g),{cause:S.cause||S}):be.from(S,S&&S.code,e,g)}})};z.forEach(Ms,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const qd=e=>`- ${e}`,d2=e=>z.isFunction(e)||e===null||e===!1,Kd={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:r}=e;let t,n;const o={};for(let i=0;i<r;i++){t=e[i];let a;if(n=t,!d2(t)&&(n=Ms[(a=String(t)).toLowerCase()],n===void 0))throw new be(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
169
+ `+i.map(qd).join(`
170
+ `):" "+qd(i[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Ms};function Ps(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dn(null,e)}function Gd(e){return Ps(e),e.headers=Dt.from(e.headers),e.data=Ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Kd.getAdapter(e.adapter||go.adapter)(e).then(function(n){return Ps(e),n.data=Ts.call(e,e.transformResponse,n),n.headers=Dt.from(n.headers),n},function(n){return jd(n)||(Ps(e),n&&n.response&&(n.response.data=Ts.call(e,e.transformResponse,n.response),n.response.headers=Dt.from(n.response.headers))),Promise.reject(n)})}const Qd="1.11.0",Hi={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{Hi[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});const Xd={};Hi.transitional=function(r,t,n){function o(i,a){return"[Axios v"+Qd+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(r===!1)throw new be(o(a," has been removed"+(t?" in "+t:"")),be.ERR_DEPRECATED);return t&&!Xd[a]&&(Xd[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(i,a,s):!0}},Hi.spelling=function(r){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${r}`),!0)};function f2(e,r,t){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=r[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new be("option "+i+" must be "+c,be.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new be("Unknown option "+i,be.ERR_BAD_OPTION)}}const Wi={assertOptions:f2,validators:Hi},hr=Wi.validators;let Qr=class{constructor(r){this.defaults=r||{},this.interceptors={request:new Id,response:new Id}}async request(r,t){try{return await this._request(r,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
171
+ `+i):n.stack=i}catch{}}throw n}}_request(r,t){typeof r=="string"?(t=t||{},t.url=r):t=r||{},t=Gr(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;n!==void 0&&Wi.assertOptions(n,{silentJSONParsing:hr.transitional(hr.boolean),forcedJSONParsing:hr.transitional(hr.boolean),clarifyTimeoutError:hr.transitional(hr.boolean)},!1),o!=null&&(z.isFunction(o)?t.paramsSerializer={serialize:o}:Wi.assertOptions(o,{encode:hr.function,serialize:hr.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Wi.assertOptions(t,{baseUrl:hr.spelling("baseURL"),withXsrfToken:hr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[t.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),t.headers=Dt.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[Gd.bind(this),void 0];for(g.unshift(...s),g.push(...l),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let m=t;for(d=0;d<f;){const g=s[d++],p=s[d++];try{m=g(m)}catch(y){p.call(this,y);break}}try{u=Gd.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(r){r=Gr(this.defaults,r);const t=Vd(r.baseURL,r.url,r.allowAbsoluteUrls);return Ad(t,r.params,r.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(r){Qr.prototype[r]=function(t,n){return this.request(Gr(n||{},{method:r,url:t,data:(n||{}).data}))}}),z.forEach(["post","put","patch"],function(r){function t(n){return function(i,a,s){return this.request(Gr(s||{},{method:r,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Qr.prototype[r]=t(),Qr.prototype[r+"Form"]=t(!0)});let p2=class sh{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},r(function(i,a,s){n.reason||(n.reason=new Dn(i,a,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const t=this._listeners.indexOf(r);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const r=new AbortController,t=n=>{r.abort(n)};return this.subscribe(t),r.signal.unsubscribe=()=>this.unsubscribe(t),r.signal}static source(){let r;return{token:new sh(function(o){r=o}),cancel:r}}};function h2(e){return function(t){return e.apply(null,t)}}function m2(e){return z.isObject(e)&&e.isAxiosError===!0}const As={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(As).forEach(([e,r])=>{As[r]=e});function Jd(e){const r=new Qr(e),t=vd(Qr.prototype.request,r);return z.extend(t,Qr.prototype,r,{allOwnKeys:!0}),z.extend(t,r,null,{allOwnKeys:!0}),t.create=function(o){return Jd(Gr(e,o))},t}const rt=Jd(go);rt.Axios=Qr,rt.CanceledError=Dn,rt.CancelToken=p2,rt.isCancel=jd,rt.VERSION=Qd,rt.toFormData=Bi,rt.AxiosError=be,rt.Cancel=rt.CanceledError,rt.all=function(r){return Promise.all(r)},rt.spread=h2,rt.isAxiosError=m2,rt.mergeConfig=Gr,rt.AxiosHeaders=Dt,rt.formToJSON=e=>Nd(z.isHTMLForm(e)?new FormData(e):e),rt.getAdapter=Kd.getAdapter,rt.HttpStatusCode=As,rt.default=rt;const{Axios:ND,AxiosError:$D,CanceledError:jD,isCancel:LD,CancelToken:zD,VERSION:BD,all:VD,Cancel:FD,isAxiosError:YD,spread:UD,toFormData:HD,AxiosHeaders:WD,HttpStatusCode:ZD,formToJSON:qD,getAdapter:KD,mergeConfig:GD}=rt,ef={token:null},g2=e=>{ef.token=e},Xr=rt.create({headers:{"Content-Type":"application/json"}});Xr.interceptors.request.use(e=>{const r=ef.token;return r&&(e.headers.Authorization=`Bearer ${r}`),e},e=>Promise.reject(e));const tf=x.createContext(void 0),v2=({config:e,children:r})=>(x.useEffect(()=>{e.getToken&&g2(e.getToken)},[e.getToken]),h.jsx(tf.Provider,{value:e,children:r})),y2=()=>{const e=x.useContext(tf);if(!e)throw new Error("useApiConfig debe ser usado dentro de un ApiProvider");return e},Is=()=>{const{calendarApiUrl:e}=y2(),r=async s=>{try{return(await Xr.get(`${e}/ListarEventosXUsuario/${s}`)).data.map(l=>{const u=new Date(l.fechaInicio),d=new Date(l.fechaFin),f=l.solicitudRelacionada?.[0]?.nombreCliente??null;return{...l,fechaInicio:u,fechaFin:d,client:f}})}catch(c){return console.error("Error events:",c),[]}},t=async(s,c)=>{try{const l=await Xr.post(`${e}/InsertarEvento/${c}`,s);return{...l.data,fechaInicio:new Date(l.data.fechaInicio),fechaFin:new Date(l.data.fechaFin)}}catch(l){throw console.log("Error creating event:",l),l}},n=async s=>{try{const c=await Xr.post(`${e}/ActualizarEvento/${s.eventoID}`,s);return{eventoID:c.data.eventoID,titulo:c.data.titulo,descripcion:c.data.descripcion,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),todoElDia:c.data.todoElDia,color:c.data.color,repetir:c.data.repetir,link:c.data.link,solID:c.data.solID,disID:c.data.disID,client:c.data.client}}catch(c){throw console.log("Error updating event:",c),c}},o=async s=>{try{const c=await Xr.get(`${e}/ObtenerEvento/${s}`),l=c.data.solicitudRelacionada?.[0]?.nombreCliente||null;return{...c.data,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),client:l}}catch(c){throw console.error(`Error fetching event with ID ${s}:`,c),c}},i=async s=>{try{await Xr.post(`${e}/EliminarEvento/${s}`)}catch(c){throw console.log(`Error ID ${s}:`,c),c}},a=x.useCallback(async(s,c,l,u)=>{try{const d={masNombreBD:l,usrID:u,disID:c,nombreCliente:s},m=(await Xr.post(`${e}/ConsultaClientesXUsuariologgeado/`,d)).data?.data;return Array.isArray(m)?m.map(g=>({clienteID:g.clienteID,solID:g.solID,marca:g?.marca,modelo:g?.modelo,nombreCliente:g?.nombreCliente})):[]}catch(d){return console.error("Error clientes:",d),[]}},[e]);return{getEventsByUser:r,createEvent:t,updateEvent:n,getEventById:o,deleteEvent:i,getClients:a}},rf=qt([h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var yo=e=>e.type==="checkbox",Jr=e=>e instanceof Date,bt=e=>e==null;const nf=e=>typeof e=="object";var nt=e=>!bt(e)&&!Array.isArray(e)&&nf(e)&&!Jr(e),of=e=>nt(e)&&e.target?yo(e.target)?e.target.checked:e.target.value:e,b2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,af=(e,r)=>e.has(b2(r)),w2=e=>{const r=e.constructor&&e.constructor.prototype;return nt(r)&&r.hasOwnProperty("isPrototypeOf")},Rs=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dt(e){let r;const t=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Rs&&(e instanceof Blob||n))&&(t||nt(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!w2(e))r=e;else for(const o in e)e.hasOwnProperty(o)&&(r[o]=dt(e[o]));else return e;return r}var Zi=e=>/^\w*$/.test(e),ot=e=>e===void 0,Ns=e=>Array.isArray(e)?e.filter(Boolean):[],$s=e=>Ns(e.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(e,r,t)=>{if(!r||!nt(e))return t;const n=(Zi(r)?[r]:$s(r)).reduce((o,i)=>bt(o)?o:o[i],e);return ot(n)||n===e?ot(e[r])?t:e[r]:n},jt=e=>typeof e=="boolean",Le=(e,r,t)=>{let n=-1;const o=Zi(r)?[r]:$s(r),i=o.length,a=i-1;for(;++n<i;){const s=o[n];let c=t;if(n!==a){const l=e[s];c=nt(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const qi={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Jt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},sf=x.createContext(null);sf.displayName="HookFormContext";const js=()=>x.useContext(sf);var cf=(e,r,t,n=!0)=>{const o={defaultValues:r._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return r._proxyFormState[a]!==Jt.all&&(r._proxyFormState[a]=!n||Jt.all),t&&(t[a]=!0),e[a]}});return o};const Ls=typeof window<"u"?x.useLayoutEffect:x.useEffect;function _2(e){const r=js(),{control:t=r.control,disabled:n,name:o,exact:i}=e||{},[a,s]=x.useState(t._formState),c=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ls(()=>t._subscribe({name:o,formState:c.current,exact:i,callback:l=>{!n&&s({...t._formState,...l})}}),[o,n,i]),x.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),x.useMemo(()=>cf(a,t,c.current,!1),[a,t])}var mr=e=>typeof e=="string",lf=(e,r,t,n,o)=>mr(e)?(n&&r.watch.add(e),oe(t,e,o)):Array.isArray(e)?e.map(i=>(n&&r.watch.add(i),oe(t,i))):(n&&(r.watchAll=!0),t),zs=e=>bt(e)||!nf(e);function Sr(e,r,t=new WeakSet){if(zs(e)||zs(r))return e===r;if(Jr(e)&&Jr(r))return e.getTime()===r.getTime();const n=Object.keys(e),o=Object.keys(r);if(n.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const i of n){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=r[i];if(Jr(a)&&Jr(s)||nt(a)&&nt(s)||Array.isArray(a)&&Array.isArray(s)?!Sr(a,s,t):a!==s)return!1}}return!0}function x2(e){const r=js(),{control:t=r.control,name:n,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},c=x.useRef(o),l=x.useRef(s),u=x.useRef(void 0);l.current=s;const d=x.useMemo(()=>t._getWatch(n,c.current),[t,n]),[f,m]=x.useState(l.current?l.current(d):d);return Ls(()=>t._subscribe({name:n,formState:{values:!0},exact:a,callback:g=>{if(!i){const p=lf(n,t._names,g.values||t._formValues,!1,c.current);if(l.current){const y=l.current(p);Sr(y,u.current)||(m(y),u.current=y)}else m(p)}}}),[t,i,n,a]),x.useEffect(()=>t._removeUnmounted()),f}function S2(e){const r=js(),{name:t,disabled:n,control:o=r.control,shouldUnregister:i,defaultValue:a}=e,s=af(o._names.array,t),c=x.useMemo(()=>oe(o._formValues,t,oe(o._defaultValues,t,a)),[o,t,a]),l=x2({control:o,name:t,defaultValue:c,exact:!0}),u=_2({control:o,name:t,exact:!0}),d=x.useRef(e),f=x.useRef(o.register(t,{...e.rules,value:l,...jt(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const m=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!oe(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!oe(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!oe(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!oe(u.validatingFields,t)},error:{enumerable:!0,get:()=>oe(u.errors,t)}}),[u,t]),g=x.useCallback(C=>f.current.onChange({target:{value:of(C),name:t},type:qi.CHANGE}),[t]),p=x.useCallback(()=>f.current.onBlur({target:{value:oe(o._formValues,t),name:t},type:qi.BLUR}),[t,o._formValues]),y=x.useCallback(C=>{const k=oe(o._fields,t);k&&C&&(k._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:E=>C.setCustomValidity(E),reportValidity:()=>C.reportValidity()})},[o._fields,t]),S=x.useMemo(()=>({name:t,value:l,...jt(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:g,onBlur:p,ref:y}),[t,n,u.disabled,g,p,y,l]);return x.useEffect(()=>{const C=o._options.shouldUnregister||i;o.register(t,{...d.current.rules,...jt(d.current.disabled)?{disabled:d.current.disabled}:{}});const k=(E,_)=>{const O=oe(o._fields,E);O&&O._f&&(O._f.mount=_)};if(k(t,!0),C){const E=dt(oe(o._options.defaultValues,t));Le(o._defaultValues,t,E),ot(oe(o._formValues,t))&&Le(o._formValues,t,E)}return!s&&o.register(t),()=>{(s?C&&!o._state.action:C)?o.unregister(t):k(t,!1)}},[t,o,s,i]),x.useEffect(()=>{o._setDisabledField({disabled:n,name:t})},[n,t,o]),x.useMemo(()=>({field:S,formState:u,fieldState:m}),[S,u,m])}const er=e=>e.render(S2(e));var Bs=(e,r,t,n,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[n]:o||!0}}:{},bo=e=>Array.isArray(e)?e:[e],uf=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Tt=e=>nt(e)&&!Object.keys(e).length,Vs=e=>e.type==="file",tr=e=>typeof e=="function",Ki=e=>{if(!Rs)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},df=e=>e.type==="select-multiple",Fs=e=>e.type==="radio",C2=e=>Fs(e)||yo(e),Ys=e=>Ki(e)&&e.isConnected;function E2(e,r){const t=r.slice(0,-1).length;let n=0;for(;n<t;)e=ot(e)?n++:e[r[n++]];return e}function k2(e){for(const r in e)if(e.hasOwnProperty(r)&&!ot(e[r]))return!1;return!0}function ct(e,r){const t=Array.isArray(r)?r:Zi(r)?[r]:$s(r),n=t.length===1?e:E2(e,t),o=t.length-1,i=t[o];return n&&delete n[i],o!==0&&(nt(n)&&Tt(n)||Array.isArray(n)&&k2(n))&&ct(e,t.slice(0,-1)),e}var ff=e=>{for(const r in e)if(tr(e[r]))return!0;return!1};function Gi(e,r={}){const t=Array.isArray(e);if(nt(e)||t)for(const n in e)Array.isArray(e[n])||nt(e[n])&&!ff(e[n])?(r[n]=Array.isArray(e[n])?[]:{},Gi(e[n],r[n])):bt(e[n])||(r[n]=!0);return r}function pf(e,r,t){const n=Array.isArray(e);if(nt(e)||n)for(const o in e)Array.isArray(e[o])||nt(e[o])&&!ff(e[o])?ot(r)||zs(t[o])?t[o]=Array.isArray(e[o])?Gi(e[o],[]):{...Gi(e[o])}:pf(e[o],bt(r)?{}:r[o],t[o]):t[o]=!Sr(e[o],r[o]);return t}var wo=(e,r)=>pf(e,r,Gi(r));const hf={value:!1,isValid:!1},mf={value:!0,isValid:!0};var gf=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ot(e[0].attributes.value)?ot(e[0].value)||e[0].value===""?mf:{value:e[0].value,isValid:!0}:mf:hf}return hf},vf=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:n})=>ot(e)?e:r?e===""?NaN:e&&+e:t&&mr(e)?new Date(e):n?n(e):e;const yf={isValid:!1,value:null};var bf=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,yf):yf;function wf(e){const r=e.ref;return Vs(r)?r.files:Fs(r)?bf(e.refs).value:df(r)?[...r.selectedOptions].map(({value:t})=>t):yo(r)?gf(e.refs).value:vf(ot(r.value)?e.ref.value:r.value,e)}var D2=(e,r,t,n)=>{const o={};for(const i of e){const a=oe(r,i);a&&Le(o,i,a._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:n}},Qi=e=>e instanceof RegExp,_o=e=>ot(e)?e:Qi(e)?e.source:nt(e)?Qi(e.value)?e.value.source:e.value:e,_f=e=>({isOnSubmit:!e||e===Jt.onSubmit,isOnBlur:e===Jt.onBlur,isOnChange:e===Jt.onChange,isOnAll:e===Jt.all,isOnTouch:e===Jt.onTouched});const xf="AsyncFunction";var T2=e=>!!e&&!!e.validate&&!!(tr(e.validate)&&e.validate.constructor.name===xf||nt(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===xf)),O2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Sf=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const xo=(e,r,t,n)=>{for(const o of t||Object.keys(e)){const i=oe(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],o)&&!n)return!0;if(a.ref&&r(a.ref,a.name)&&!n)return!0;if(xo(s,r))break}else if(nt(s)&&xo(s,r))break}}};function Cf(e,r,t){const n=oe(e,t);if(n||Zi(t))return{error:n,name:t};const o=t.split(".");for(;o.length;){const i=o.join("."),a=oe(r,i),s=oe(e,i);if(a&&!Array.isArray(a)&&t!==i)return{name:t};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:t}}var M2=(e,r,t,n)=>{t(e);const{name:o,...i}=e;return Tt(i)||Object.keys(i).length>=Object.keys(r).length||Object.keys(i).find(a=>r[a]===(!n||Jt.all))},P2=(e,r,t)=>!e||!r||e===r||bo(e).some(n=>n&&(t?n===r:n.startsWith(r)||r.startsWith(n))),A2=(e,r,t,n,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?n.isOnBlur:o.isOnBlur)?!e:(t?n.isOnChange:o.isOnChange)?e:!0,I2=(e,r)=>!Ns(oe(e,r)).length&&ct(e,r),R2=(e,r,t)=>{const n=bo(oe(e,t));return Le(n,"root",r[t]),Le(e,t,n),e},Xi=e=>mr(e);function Ef(e,r,t="validate"){if(Xi(e)||Array.isArray(e)&&e.every(Xi)||jt(e)&&!e)return{type:t,message:Xi(e)?e:"",ref:r}}var Tn=e=>nt(e)&&!Qi(e)?e:{value:e,message:""},kf=async(e,r,t,n,o,i)=>{const{ref:a,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:m,validate:g,name:p,valueAsNumber:y,mount:S}=e._f,C=oe(t,p);if(!S||r.has(p))return{};const k=s?s[0]:a,E=v=>{o&&k.reportValidity&&(k.setCustomValidity(jt(v)?"":v||""),k.reportValidity())},_={},O=Fs(a),N=yo(a),q=O||N,Z=(y||Vs(a))&&ot(a.value)&&ot(C)||Ki(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,L=Bs.bind(null,p,n,_),K=(v,I,A,U=xr.maxLength,H=xr.minLength)=>{const ee=v?I:A;_[p]={type:v?U:H,message:ee,ref:a,...L(v?U:H,ee)}};if(i?!Array.isArray(C)||!C.length:c&&(!q&&(Z||bt(C))||jt(C)&&!C||N&&!gf(s).isValid||O&&!bf(s).isValid)){const{value:v,message:I}=Xi(c)?{value:!!c,message:c}:Tn(c);if(v&&(_[p]={type:xr.required,message:I,ref:k,...L(xr.required,I)},!n))return E(I),_}if(!Z&&(!bt(d)||!bt(f))){let v,I;const A=Tn(f),U=Tn(d);if(!bt(C)&&!isNaN(C)){const H=a.valueAsNumber||C&&+C;bt(A.value)||(v=H>A.value),bt(U.value)||(I=H<U.value)}else{const H=a.valueAsDate||new Date(C),ee=V=>new Date(new Date().toDateString()+" "+V),re=a.type=="time",se=a.type=="week";mr(A.value)&&C&&(v=re?ee(C)>ee(A.value):se?C>A.value:H>new Date(A.value)),mr(U.value)&&C&&(I=re?ee(C)<ee(U.value):se?C<U.value:H<new Date(U.value))}if((v||I)&&(K(!!v,A.message,U.message,xr.max,xr.min),!n))return E(_[p].message),_}if((l||u)&&!Z&&(mr(C)||i&&Array.isArray(C))){const v=Tn(l),I=Tn(u),A=!bt(v.value)&&C.length>+v.value,U=!bt(I.value)&&C.length<+I.value;if((A||U)&&(K(A,v.message,I.message),!n))return E(_[p].message),_}if(m&&!Z&&mr(C)){const{value:v,message:I}=Tn(m);if(Qi(v)&&!C.match(v)&&(_[p]={type:xr.pattern,message:I,ref:a,...L(xr.pattern,I)},!n))return E(I),_}if(g){if(tr(g)){const v=await g(C,t),I=Ef(v,k);if(I&&(_[p]={...I,...L(xr.validate,I.message)},!n))return E(I.message),_}else if(nt(g)){let v={};for(const I in g){if(!Tt(v)&&!n)break;const A=Ef(await g[I](C,t),k,I);A&&(v={...A,...L(I,A.message)},E(A.message),n&&(_[p]=v))}if(!Tt(v)&&(_[p]={ref:k,...v},!n))return _}}return E(!0),_};const N2={mode:Jt.onSubmit,reValidateMode:Jt.onChange,shouldFocusError:!0};function $2(e={}){let r={...N2,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:tr(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},n={},o=nt(r.defaultValues)||nt(r.values)?dt(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:dt(o),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:uf(),state:uf()},m=r.criteriaMode===Jt.all,g=T=>R=>{clearTimeout(l),l=setTimeout(T,R)},p=async T=>{if(!r.disabled&&(u.isValid||d.isValid||T)){const R=r.resolver?Tt((await N()).errors):await Z(n,!0);R!==t.isValid&&f.state.next({isValid:R})}},y=(T,R)=>{!r.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((T||Array.from(s.mount)).forEach(M=>{M&&(R?Le(t.validatingFields,M,R):ct(t.validatingFields,M))}),f.state.next({validatingFields:t.validatingFields,isValidating:!Tt(t.validatingFields)}))},S=(T,R=[],M,ae,ne=!0,te=!0)=>{if(ae&&M&&!r.disabled){if(a.action=!0,te&&Array.isArray(oe(n,T))){const pe=M(oe(n,T),ae.argA,ae.argB);ne&&Le(n,T,pe)}if(te&&Array.isArray(oe(t.errors,T))){const pe=M(oe(t.errors,T),ae.argA,ae.argB);ne&&Le(t.errors,T,pe),I2(t.errors,T)}if((u.touchedFields||d.touchedFields)&&te&&Array.isArray(oe(t.touchedFields,T))){const pe=M(oe(t.touchedFields,T),ae.argA,ae.argB);ne&&Le(t.touchedFields,T,pe)}(u.dirtyFields||d.dirtyFields)&&(t.dirtyFields=wo(o,i)),f.state.next({name:T,isDirty:K(T,R),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else Le(i,T,R)},C=(T,R)=>{Le(t.errors,T,R),f.state.next({errors:t.errors})},k=T=>{t.errors=T,f.state.next({errors:t.errors,isValid:!1})},E=(T,R,M,ae)=>{const ne=oe(n,T);if(ne){const te=oe(i,T,ot(M)?oe(o,T):M);ot(te)||ae&&ae.defaultChecked||R?Le(i,T,R?te:wf(ne._f)):A(T,te),a.mount&&p()}},_=(T,R,M,ae,ne)=>{let te=!1,pe=!1;const De={name:T};if(!r.disabled){if(!M||ae){(u.isDirty||d.isDirty)&&(pe=t.isDirty,t.isDirty=De.isDirty=K(),te=pe!==De.isDirty);const Ve=Sr(oe(o,T),R);pe=!!oe(t.dirtyFields,T),Ve?ct(t.dirtyFields,T):Le(t.dirtyFields,T,!0),De.dirtyFields=t.dirtyFields,te=te||(u.dirtyFields||d.dirtyFields)&&pe!==!Ve}if(M){const Ve=oe(t.touchedFields,T);Ve||(Le(t.touchedFields,T,M),De.touchedFields=t.touchedFields,te=te||(u.touchedFields||d.touchedFields)&&Ve!==M)}te&&ne&&f.state.next(De)}return te?De:{}},O=(T,R,M,ae)=>{const ne=oe(t.errors,T),te=(u.isValid||d.isValid)&&jt(R)&&t.isValid!==R;if(r.delayError&&M?(c=g(()=>C(T,M)),c(r.delayError)):(clearTimeout(l),c=null,M?Le(t.errors,T,M):ct(t.errors,T)),(M?!Sr(ne,M):ne)||!Tt(ae)||te){const pe={...ae,...te&&jt(R)?{isValid:R}:{},errors:t.errors,name:T};t={...t,...pe},f.state.next(pe)}},N=async T=>{y(T,!0);const R=await r.resolver(i,r.context,D2(T||s.mount,n,r.criteriaMode,r.shouldUseNativeValidation));return y(T),R},q=async T=>{const{errors:R}=await N(T);if(T)for(const M of T){const ae=oe(R,M);ae?Le(t.errors,M,ae):ct(t.errors,M)}else t.errors=R;return R},Z=async(T,R,M={valid:!0})=>{for(const ae in T){const ne=T[ae];if(ne){const{_f:te,...pe}=ne;if(te){const De=s.array.has(te.name),Ve=ne._f&&T2(ne._f);Ve&&u.validatingFields&&y([ae],!0);const _t=await kf(ne,s.disabled,i,m,r.shouldUseNativeValidation&&!R,De);if(Ve&&u.validatingFields&&y([ae]),_t[te.name]&&(M.valid=!1,R))break;!R&&(oe(_t,te.name)?De?R2(t.errors,_t,te.name):Le(t.errors,te.name,_t[te.name]):ct(t.errors,te.name))}!Tt(pe)&&await Z(pe,R,M)}}return M.valid},L=()=>{for(const T of s.unMount){const R=oe(n,T);R&&(R._f.refs?R._f.refs.every(M=>!Ys(M)):!Ys(R._f.ref))&&ce(T)}s.unMount=new Set},K=(T,R)=>!r.disabled&&(T&&R&&Le(i,T,R),!Sr(V(),o)),v=(T,R,M)=>lf(T,s,{...a.mount?i:ot(R)?o:mr(T)?{[T]:R}:R},M,R),I=T=>Ns(oe(a.mount?i:o,T,r.shouldUnregister?oe(o,T,[]):[])),A=(T,R,M={})=>{const ae=oe(n,T);let ne=R;if(ae){const te=ae._f;te&&(!te.disabled&&Le(i,T,vf(R,te)),ne=Ki(te.ref)&&bt(R)?"":R,df(te.ref)?[...te.ref.options].forEach(pe=>pe.selected=ne.includes(pe.value)):te.refs?yo(te.ref)?te.refs.forEach(pe=>{(!pe.defaultChecked||!pe.disabled)&&(Array.isArray(ne)?pe.checked=!!ne.find(De=>De===pe.value):pe.checked=ne===pe.value||!!ne)}):te.refs.forEach(pe=>pe.checked=pe.value===ne):Vs(te.ref)?te.ref.value="":(te.ref.value=ne,te.ref.type||f.state.next({name:T,values:dt(i)})))}(M.shouldDirty||M.shouldTouch)&&_(T,ne,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&se(T)},U=(T,R,M)=>{for(const ae in R){if(!R.hasOwnProperty(ae))return;const ne=R[ae],te=T+"."+ae,pe=oe(n,te);(s.array.has(T)||nt(ne)||pe&&!pe._f)&&!Jr(ne)?U(te,ne,M):A(te,ne,M)}},H=(T,R,M={})=>{const ae=oe(n,T),ne=s.array.has(T),te=dt(R);Le(i,T,te),ne?(f.array.next({name:T,values:dt(i)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&M.shouldDirty&&f.state.next({name:T,dirtyFields:wo(o,i),isDirty:K(T,te)})):ae&&!ae._f&&!bt(te)?U(T,te,M):A(T,te,M),Sf(T,s)&&f.state.next({...t,name:T}),f.state.next({name:a.mount?T:void 0,values:dt(i)})},ee=async T=>{a.mount=!0;const R=T.target;let M=R.name,ae=!0;const ne=oe(n,M),te=Ve=>{ae=Number.isNaN(Ve)||Jr(Ve)&&isNaN(Ve.getTime())||Sr(Ve,oe(i,M,Ve))},pe=_f(r.mode),De=_f(r.reValidateMode);if(ne){let Ve,_t;const sn=R.type?wf(ne._f):of(T),gr=T.type===qi.BLUR||T.type===qi.FOCUS_OUT,xc=!O2(ne._f)&&!r.resolver&&!oe(t.errors,M)&&!ne._f.deps||A2(gr,oe(t.touchedFields,M),t.isSubmitted,De,pe),Oo=Sf(M,s,gr);Le(i,M,sn),gr?(!R||!R.readOnly)&&(ne._f.onBlur&&ne._f.onBlur(T),c&&c(0)):ne._f.onChange&&ne._f.onChange(T);const Mo=_(M,sn,gr),Sc=!Tt(Mo)||Oo;if(!gr&&f.state.next({name:M,type:T.type,values:dt(i)}),xc)return(u.isValid||d.isValid)&&(r.mode==="onBlur"?gr&&p():gr||p()),Sc&&f.state.next({name:M,...Oo?{}:Mo});if(!gr&&Oo&&f.state.next({...t}),r.resolver){const{errors:va}=await N([M]);if(te(sn),ae){const Cc=Cf(t.errors,n,M),$n=Cf(va,n,Cc.name||M);Ve=$n.error,M=$n.name,_t=Tt(va)}}else y([M],!0),Ve=(await kf(ne,s.disabled,i,m,r.shouldUseNativeValidation))[M],y([M]),te(sn),ae&&(Ve?_t=!1:(u.isValid||d.isValid)&&(_t=await Z(n,!0)));ae&&(ne._f.deps&&se(ne._f.deps),O(M,_t,Ve,Mo))}},re=(T,R)=>{if(oe(t.errors,R)&&T.focus)return T.focus(),1},se=async(T,R={})=>{let M,ae;const ne=bo(T);if(r.resolver){const te=await q(ot(T)?T:ne);M=Tt(te),ae=T?!ne.some(pe=>oe(te,pe)):M}else T?(ae=(await Promise.all(ne.map(async te=>{const pe=oe(n,te);return await Z(pe&&pe._f?{[te]:pe}:pe)}))).every(Boolean),!(!ae&&!t.isValid)&&p()):ae=M=await Z(n);return f.state.next({...!mr(T)||(u.isValid||d.isValid)&&M!==t.isValid?{}:{name:T},...r.resolver||!T?{isValid:M}:{},errors:t.errors}),R.shouldFocus&&!ae&&xo(n,re,T?ne:s.mount),ae},V=T=>{const R={...a.mount?i:o};return ot(T)?R:mr(T)?oe(R,T):T.map(M=>oe(R,M))},G=(T,R)=>({invalid:!!oe((R||t).errors,T),isDirty:!!oe((R||t).dirtyFields,T),error:oe((R||t).errors,T),isValidating:!!oe(t.validatingFields,T),isTouched:!!oe((R||t).touchedFields,T)}),ge=T=>{T&&bo(T).forEach(R=>ct(t.errors,R)),f.state.next({errors:T?t.errors:{}})},ve=(T,R,M)=>{const ae=(oe(n,T,{_f:{}})._f||{}).ref,ne=oe(t.errors,T)||{},{ref:te,message:pe,type:De,...Ve}=ne;Le(t.errors,T,{...Ve,...R,ref:ae}),f.state.next({name:T,errors:t.errors,isValid:!1}),M&&M.shouldFocus&&ae&&ae.focus&&ae.focus()},he=(T,R)=>tr(T)?f.state.subscribe({next:M=>"values"in M&&T(v(void 0,R),M)}):v(T,R,!0),J=T=>f.state.subscribe({next:R=>{P2(T.name,R.name,T.exact)&&M2(R,T.formState||u,Dr,T.reRenderRoot)&&T.callback({values:{...i},...t,...R,defaultValues:o})}}).unsubscribe,Q=T=>(a.mount=!0,d={...d,...T.formState},J({...T,formState:d})),ce=(T,R={})=>{for(const M of T?bo(T):s.mount)s.mount.delete(M),s.array.delete(M),R.keepValue||(ct(n,M),ct(i,M)),!R.keepError&&ct(t.errors,M),!R.keepDirty&&ct(t.dirtyFields,M),!R.keepTouched&&ct(t.touchedFields,M),!R.keepIsValidating&&ct(t.validatingFields,M),!r.shouldUnregister&&!R.keepDefaultValue&&ct(o,M);f.state.next({values:dt(i)}),f.state.next({...t,...R.keepDirty?{isDirty:K()}:{}}),!R.keepIsValid&&p()},ue=({disabled:T,name:R})=>{(jt(T)&&a.mount||T||s.disabled.has(R))&&(T?s.disabled.add(R):s.disabled.delete(R))},F=(T,R={})=>{let M=oe(n,T);const ae=jt(R.disabled)||jt(r.disabled);return Le(n,T,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:T}},name:T,mount:!0,...R}}),s.mount.add(T),M?ue({disabled:jt(R.disabled)?R.disabled:r.disabled,name:T}):E(T,!0,R.value),{...ae?{disabled:R.disabled||r.disabled}:{},...r.progressive?{required:!!R.required,min:_o(R.min),max:_o(R.max),minLength:_o(R.minLength),maxLength:_o(R.maxLength),pattern:_o(R.pattern)}:{},name:T,onChange:ee,onBlur:ee,ref:ne=>{if(ne){F(T,R),M=oe(n,T);const te=ot(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,pe=C2(te),De=M._f.refs||[];if(pe?De.find(Ve=>Ve===te):te===M._f.ref)return;Le(n,T,{_f:{...M._f,...pe?{refs:[...De.filter(Ys),te,...Array.isArray(oe(o,T))?[{}]:[]],ref:{type:te.type,name:T}}:{ref:te}}}),E(T,!1,void 0,te)}else M=oe(n,T,{}),M._f&&(M._f.mount=!1),(r.shouldUnregister||R.shouldUnregister)&&!(af(s.array,T)&&a.action)&&s.unMount.add(T)}}},W=()=>r.shouldFocusError&&xo(n,re,s.mount),de=T=>{jt(T)&&(f.state.next({disabled:T}),xo(n,(R,M)=>{const ae=oe(n,M);ae&&(R.disabled=ae._f.disabled||T,Array.isArray(ae._f.refs)&&ae._f.refs.forEach(ne=>{ne.disabled=ae._f.disabled||T}))},0,!1))},P=(T,R)=>async M=>{let ae;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let ne=dt(i);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:te,values:pe}=await N();t.errors=te,ne=dt(pe)}else await Z(n);if(s.disabled.size)for(const te of s.disabled)ct(ne,te);if(ct(t.errors,"root"),Tt(t.errors)){f.state.next({errors:{}});try{await T(ne,M)}catch(te){ae=te}}else R&&await R({...t.errors},M),W(),setTimeout(W);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Tt(t.errors)&&!ae,submitCount:t.submitCount+1,errors:t.errors}),ae)throw ae},we=(T,R={})=>{oe(n,T)&&(ot(R.defaultValue)?H(T,dt(oe(o,T))):(H(T,R.defaultValue),Le(o,T,dt(R.defaultValue))),R.keepTouched||ct(t.touchedFields,T),R.keepDirty||(ct(t.dirtyFields,T),t.isDirty=R.defaultValue?K(T,dt(oe(o,T))):K()),R.keepError||(ct(t.errors,T),u.isValid&&p()),f.state.next({...t}))},Qe=(T,R={})=>{const M=T?dt(T):o,ae=dt(M),ne=Tt(T),te=ne?o:ae;if(R.keepDefaultValues||(o=M),!R.keepValues){if(R.keepDirtyValues){const pe=new Set([...s.mount,...Object.keys(wo(o,i))]);for(const De of Array.from(pe))oe(t.dirtyFields,De)?Le(te,De,oe(i,De)):H(De,oe(te,De))}else{if(Rs&&ot(T))for(const pe of s.mount){const De=oe(n,pe);if(De&&De._f){const Ve=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(Ki(Ve)){const _t=Ve.closest("form");if(_t){_t.reset();break}}}}if(R.keepFieldsRef)for(const pe of s.mount)H(pe,oe(te,pe));else n={}}i=r.shouldUnregister?R.keepDefaultValues?dt(o):{}:dt(te),f.array.next({values:{...te}}),f.state.next({values:{...te}})}s={mount:R.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!R.keepIsValid||!!R.keepDirtyValues,a.watch=!!r.shouldUnregister,f.state.next({submitCount:R.keepSubmitCount?t.submitCount:0,isDirty:ne?!1:R.keepDirty?t.isDirty:!!(R.keepDefaultValues&&!Sr(T,o)),isSubmitted:R.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:ne?{}:R.keepDirtyValues?R.keepDefaultValues&&i?wo(o,i):t.dirtyFields:R.keepDefaultValues&&T?wo(o,T):R.keepDirty?t.dirtyFields:{},touchedFields:R.keepTouched?t.touchedFields:{},errors:R.keepErrors?t.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},wt=(T,R)=>Qe(tr(T)?T(i):T,R),kr=(T,R={})=>{const M=oe(n,T),ae=M&&M._f;if(ae){const ne=ae.refs?ae.refs[0]:ae.ref;ne.focus&&(ne.focus(),R.shouldSelect&&tr(ne.select)&&ne.select())}},Dr=T=>{t={...t,...T}},Or={control:{register:F,unregister:ce,getFieldState:G,handleSubmit:P,setError:ve,_subscribe:J,_runSchema:N,_focusError:W,_getWatch:v,_getDirty:K,_setValid:p,_setFieldArray:S,_setDisabledField:ue,_setErrors:k,_getFieldArray:I,_reset:Qe,_resetDefaultValues:()=>tr(r.defaultValues)&&r.defaultValues().then(T=>{wt(T,r.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:de,_subjects:f,_proxyFormState:u,get _fields(){return n},get _formValues(){return i},get _state(){return a},set _state(T){a=T},get _defaultValues(){return o},get _names(){return s},set _names(T){s=T},get _formState(){return t},get _options(){return r},set _options(T){r={...r,...T}}},subscribe:Q,trigger:se,register:F,handleSubmit:P,watch:he,setValue:H,getValues:V,reset:wt,resetField:we,clearErrors:ge,unregister:ce,setError:ve,setFocus:kr,getFieldState:G};return{...Or,formControl:Or}}function j2(e={}){const r=x.useRef(void 0),t=x.useRef(void 0),[n,o]=x.useState({isDirty:!1,isValidating:!1,isLoading:tr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:tr(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:n},e.defaultValues&&!tr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=$2(e);r.current={...s,formState:n}}const i=r.current.control;return i._options=e,Ls(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),x.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),x.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),x.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),x.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),x.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==n.isDirty&&i._subjects.state.next({isDirty:a})}},[i,n.isDirty]),x.useEffect(()=>{e.values&&!Sr(e.values,t.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),t.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),x.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),r.current.formState=cf(n,i),r.current}const Df=(e,r,t)=>{if(e&&"reportValidity"in e){const n=oe(t,r);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Us=(e,r)=>{for(const t in r.fields){const n=r.fields[t];n&&n.ref&&"reportValidity"in n.ref?Df(n.ref,t,e):n&&n.refs&&n.refs.forEach(o=>Df(o,t,e))}},Tf=(e,r)=>{r.shouldUseNativeValidation&&Us(e,r);const t={};for(const n in e){const o=oe(r.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(L2(r.names||Object.keys(e),n)){const a=Object.assign({},oe(t,n));Le(a,"root",i),Le(t,n,a)}else Le(t,n,i)}return t},L2=(e,r)=>{const t=Of(r);return e.some(n=>Of(n).match(`^${t}\\.\\d+`))};function Of(e){return e.replace(/\]|\[/g,"")}function Y(e,r,t){function n(s,c){var l;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),r(s,c);for(const u in a.prototype)u in s||Object.defineProperty(s,u,{value:a.prototype[u].bind(s)});s._zod.constr=a,s._zod.def=c}const o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var c;const l=t?.Parent?new i:this;n(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>t?.Parent&&s instanceof t.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class On extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Mf extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Pf={};function en(e){return Pf}function z2(e){const r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function Hs(e,r){return typeof r=="bigint"?r.toString():r}function Ws(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Zs(e){return e==null}function qs(e){const r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function B2(e,r){const t=(e.toString().split(".")[1]||"").length,n=r.toString();let o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(r.toFixed(i).replace(".",""));return a%s/10**i}const Af=Symbol("evaluating");function Ye(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==Af)return n===void 0&&(n=Af,n=t()),n},set(o){Object.defineProperty(e,r,{value:o})},configurable:!0})}function V2(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $r(e,r,t){Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Mn(...e){const r={};for(const t of e){const n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n)}return Object.defineProperties({},r)}function If(e){return JSON.stringify(e)}const Rf="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ji(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const F2=Ws(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function So(e){if(Ji(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const t=r.prototype;return!(Ji(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Nf(e){return So(e)?{...e}:e}const Y2=new Set(["string","number","symbol"]);function Pn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jr(e,r,t){const n=new e._zod.constr(r??e._zod.def);return(!r||t?.parent)&&(n._zod.parent=e),n}function me(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function U2(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const H2={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function W2(e,r){const t=e._zod.def,n=Mn(e._zod.def,{get shape(){const o={};for(const i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i])}return $r(this,"shape",o),o},checks:[]});return jr(e,n)}function Z2(e,r){const t=e._zod.def,n=Mn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i]}return $r(this,"shape",o),o},checks:[]});return jr(e,n)}function q2(e,r){if(!So(r))throw new Error("Invalid input to extend: expected a plain object");const t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Mn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...r};return $r(this,"shape",i),i},checks:[]});return jr(e,o)}function K2(e,r){if(!So(r))throw new Error("Invalid input to safeExtend: expected a plain object");const t={...e._zod.def,get shape(){const n={...e._zod.def.shape,...r};return $r(this,"shape",n),n},checks:e._zod.def.checks};return jr(e,t)}function G2(e,r){const t=Mn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...r._zod.def.shape};return $r(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return jr(e,t)}function Q2(e,r,t){const n=Mn(r._zod.def,{get shape(){const o=r._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a])}else for(const a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return $r(this,"shape",i),i},checks:[]});return jr(r,n)}function X2(e,r,t){const n=Mn(r._zod.def,{get shape(){const o=r._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return $r(this,"shape",i),i},checks:[]});return jr(r,n)}function An(e,r=0){if(e.aborted===!0)return!0;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function $f(e,r){return r.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ea(e){return typeof e=="string"?e:e?.message}function tn(e,r,t){const n={...e,path:e.path??[]};if(!e.message){const o=ea(e.inst?._zod.def?.error?.(e))??ea(r?.error?.(e))??ea(t.customError?.(e))??ea(t.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function Ks(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Co(...e){const[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}const jf=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Hs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Gs=Y("$ZodError",jf),ta=Y("$ZodError",jf,{Parent:Error});function J2(e,r=t=>t.message){const t={},n=[];for(const o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return{formErrors:n,fieldErrors:t}}function ew(e,r){const t=r||function(i){return i.message},n={_errors:[]},o=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s}));else if(a.code==="invalid_key")o({issues:a.issues});else if(a.code==="invalid_element")o({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(e),n}const ra=e=>(r,t,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new On;if(a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>tn(c,i,en())));throw Rf(s,o?.callee),s}return a.value},tw=ra(ta),na=e=>async(r,t,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>tn(c,i,en())));throw Rf(s,o?.callee),s}return a.value},rw=na(ta),oa=e=>(r,t,n)=>{const o=n?{...n,async:!1}:{async:!1},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new On;return i.issues.length?{success:!1,error:new(e??Gs)(i.issues.map(a=>tn(a,o,en())))}:{success:!0,data:i.value}},nw=oa(ta),ia=e=>async(r,t,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>tn(a,o,en())))}:{success:!0,data:i.value}},ow=ia(ta),iw=e=>(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ra(e)(r,t,o)},aw=e=>(r,t,n)=>ra(e)(r,t,n),sw=e=>async(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return na(e)(r,t,o)},cw=e=>async(r,t,n)=>na(e)(r,t,n),lw=e=>(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return oa(e)(r,t,o)},uw=e=>(r,t,n)=>oa(e)(r,t,n),dw=e=>async(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ia(e)(r,t,o)},fw=e=>async(r,t,n)=>ia(e)(r,t,n),pw=/^[cC][^\s-]{8,}$/,hw=/^[0-9a-z]+$/,mw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gw=/^[0-9a-vA-V]{20}$/,vw=/^[A-Za-z0-9]{27}$/,yw=/^[a-zA-Z0-9_-]{21}$/,bw=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ww=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Lf=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_w=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Sw(){return new RegExp(xw,"u")}const Cw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ew=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,kw=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Dw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Tw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zf=/^[A-Za-z0-9_-]*$/,Ow=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Mw=/^\+(?:[0-9]){6,14}[0-9]$/,Bf="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pw=new RegExp(`^${Bf}$`);function Vf(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Aw(e){return new RegExp(`^${Vf(e)}$`)}function Iw(e){const r=Vf({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${r}(?:${t.join("|")})`;return new RegExp(`^${Bf}T(?:${n})$`)}const Rw=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Nw=/^\d+$/,$w=/^-?\d+(?:\.\d+)?/i,jw=/true|false/i,Lw=/^[^A-Z]*$/,zw=/^[^a-z]*$/,Ot=Y("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[])}),Ff={number:"number",bigint:"bigint",object:"date"},Yf=Y("$ZodCheckLessThan",(e,r)=>{Ot.init(e,r);const t=Ff[typeof r.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Uf=Y("$ZodCheckGreaterThan",(e,r)=>{Ot.init(e,r);const t=Ff[typeof r.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Bw=Y("$ZodCheckMultipleOf",(e,r)=>{Ot.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value)}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):B2(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort})}}),Vw=Y("$ZodCheckNumberFormat",(e,r)=>{Ot.init(e,r),r.format=r.format||"float64";const t=r.format?.includes("int"),n=t?"int":"number",[o,i]=H2[r.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=r.format,s.minimum=o,s.maximum=i,t&&(s.pattern=Nw)}),e._zod.check=a=>{const s=a.value;if(t){if(!Number.isInteger(s)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}s<o&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),Fw=Y("$ZodCheckMaxLength",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Zs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=r.maximum)return;const a=Ks(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Yw=Y("$ZodCheckMinLength",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Zs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=r.minimum)return;const a=Ks(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Uw=Y("$ZodCheckLengthEquals",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Zs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===r.length)return;const a=Ks(o),s=i>r.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),aa=Y("$ZodCheckStringFormat",(e,r)=>{var t,n;Ot.init(e,r),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(n=e._zod).check??(n.check=()=>{})}),Hw=Y("$ZodCheckRegex",(e,r)=>{aa.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Ww=Y("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Lw),aa.init(e,r)}),Zw=Y("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=zw),aa.init(e,r)}),qw=Y("$ZodCheckIncludes",(e,r)=>{Ot.init(e,r);const t=Pn(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort})}}),Kw=Y("$ZodCheckStartsWith",(e,r)=>{Ot.init(e,r);const t=new RegExp(`^${Pn(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort})}}),Gw=Y("$ZodCheckEndsWith",(e,r)=>{Ot.init(e,r);const t=new RegExp(`.*${Pn(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort})}}),Qw=Y("$ZodCheckOverwrite",(e,r)=>{Ot.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value)}});class Xw{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const n=r.split(`
172
172
  `).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const r=Function,t=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...t,o.join(`
173
- `))}}const Xw={major:4,minor:1,patch:5},et=Y("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Xw;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,c)=>{let l=An(a),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(l)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new On;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(l||(l=An(a,f)))});else{if(a.issues.length===f)continue;l||(l=An(a,f))}}return u?u.then(()=>a):a},i=(a,s,c)=>{if(An(a))return a.aborted=!0,a;const l=o(s,n,c);if(l instanceof Promise){if(c.async===!1)throw new On;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>i(u,a,s)):i(l,a,s)}const c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new On;return c.then(l=>o(l,n,s))}return o(c,n,s)}}e["~standard"]={validate:o=>{try{const i=rw(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return nw(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Ks=Y("$ZodString",(e,r)=>{et.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Iw(e._zod.bag),e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),Ze=Y("$ZodStringFormat",(e,r)=>{oa.init(e,r),Ks.init(e,r)}),Jw=Y("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=bw),Ze.init(e,r)}),e_=Y("$ZodUUID",(e,r)=>{if(r.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=$f(n))}else r.pattern??(r.pattern=$f());Ze.init(e,r)}),t_=Y("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=ww),Ze.init(e,r)}),r_=Y("$ZodURL",(e,r)=>{Ze.init(e,r),e._zod.check=t=>{try{const n=t.value.trim(),o=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Tw.source,input:t.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:t.value,inst:e,continue:!r.abort})),r.normalize?t.value=o.href:t.value=n;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!r.abort})}}}),n_=Y("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=xw()),Ze.init(e,r)}),o_=Y("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=vw),Ze.init(e,r)}),i_=Y("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=fw),Ze.init(e,r)}),a_=Y("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=pw),Ze.init(e,r)}),s_=Y("$ZodULID",(e,r)=>{r.pattern??(r.pattern=hw),Ze.init(e,r)}),c_=Y("$ZodXID",(e,r)=>{r.pattern??(r.pattern=mw),Ze.init(e,r)}),l_=Y("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=gw),Ze.init(e,r)}),u_=Y("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Aw(r)),Ze.init(e,r)}),d_=Y("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Mw),Ze.init(e,r)}),f_=Y("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Pw(r)),Ze.init(e,r)}),p_=Y("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=yw),Ze.init(e,r)}),h_=Y("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Sw),Ze.init(e,r),e._zod.onattach.push(t=>{const n=t._zod.bag;n.format="ipv4"})}),m_=Y("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Cw),Ze.init(e,r),e._zod.onattach.push(t=>{const n=t._zod.bag;n.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!r.abort})}}}),g_=Y("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Ew),Ze.init(e,r)}),v_=Y("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=kw),Ze.init(e,r),e._zod.check=t=>{const[n,o]=t.value.split("/");try{if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${n}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!r.abort})}}});function Yf(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const y_=Y("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Dw),Ze.init(e,r),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{Yf(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort})}});function b_(e){if(!jf.test(e))return!1;const r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return Yf(t)}const w_=Y("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=jf),Ze.init(e,r),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{b_(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort})}}),__=Y("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Ow),Ze.init(e,r)});function x_(e,r=null){try{const t=e.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))}catch{return!1}}const S_=Y("$ZodJWT",(e,r)=>{Ze.init(e,r),e._zod.check=t=>{x_(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort})}}),Uf=Y("$ZodNumber",(e,r)=>{et.init(e,r),e._zod.pattern=e._zod.bag.pattern??Nw,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=Number(t.value)}catch{}const o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t}}),C_=Y("$ZodNumber",(e,r)=>{Bw.init(e,r),Uf.init(e,r)}),E_=Y("$ZodBoolean",(e,r)=>{et.init(e,r),e._zod.pattern=$w,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=!!t.value}catch{}const o=t.value;return typeof o=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),t}}),k_=Y("$ZodUnknown",(e,r)=>{et.init(e,r),e._zod.parse=t=>t}),D_=Y("$ZodNever",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function Hf(e,r,t){e.issues.length&&r.issues.push(...Rf(t,e.issues)),r.value[t]=e.value}const T_=Y("$ZodArray",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{const o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const s=o[a],c=r.element._zod.run({value:s,issues:[]},n);c instanceof Promise?i.push(c.then(l=>Hf(l,t,a))):Hf(c,t,a)}return i.length?Promise.all(i).then(()=>t):t}});function ia(e,r,t,n){e.issues.length&&r.issues.push(...Rf(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value}function Wf(e){const r=Object.keys(e.shape);for(const n of r)if(!e.shape[n]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const t=Y2(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Zf(e,r,t,n,o,i){const a=[],s=o.keySet,c=o.catchall._zod,l=c.def.type;for(const u of Object.keys(r)){if(s.has(u))continue;if(l==="never"){a.push(u);continue}const d=c.run({value:r[u],issues:[]},n);d instanceof Promise?e.push(d.then(f=>ia(f,t,u,r))):ia(d,t,u,r)}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),e.length?Promise.all(e).then(()=>t):t}const O_=Y("$ZodObject",(e,r)=>{et.init(e,r);const t=Us(()=>Wf(r));Ye(e._zod,"propValues",()=>{const a=r.shape,s={};for(const c in a){const l=a[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const u of l.values)s[c].add(u)}}return s});const n=Qi,o=r.catchall;let i;e._zod.parse=(a,s)=>{i??(i=t.value);const c=a.value;if(!n(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const l=[],u=i.shape;for(const d of i.keys){const m=u[d]._zod.run({value:c[d],issues:[]},s);m instanceof Promise?l.push(m.then(g=>ia(g,a,d,c))):ia(m,a,d,c)}return o?Zf(l,c,a,s,t.value,e):l.length?Promise.all(l).then(()=>a):a}}),M_=Y("$ZodObjectJIT",(e,r)=>{O_.init(e,r);const t=e._zod.parse,n=Us(()=>Wf(r)),o=f=>{const m=new Qw(["shape","payload","ctx"]),g=n.value,p=k=>{const E=Pf(k);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};m.write("const input = payload.value;");const y=Object.create(null);let S=0;for(const k of g.keys)y[k]=`key_${S++}`;m.write("const newResult = {}");for(const k of g.keys){const E=y[k],_=Pf(k);m.write(`const ${E} = ${p(k)};`),m.write(`
173
+ `))}}const Jw={major:4,minor:1,patch:5},et=Y("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Jw;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,c)=>{let l=An(a),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(l)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new On;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(l||(l=An(a,f)))});else{if(a.issues.length===f)continue;l||(l=An(a,f))}}return u?u.then(()=>a):a},i=(a,s,c)=>{if(An(a))return a.aborted=!0,a;const l=o(s,n,c);if(l instanceof Promise){if(c.async===!1)throw new On;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>i(u,a,s)):i(l,a,s)}const c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new On;return c.then(l=>o(l,n,s))}return o(c,n,s)}}e["~standard"]={validate:o=>{try{const i=nw(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ow(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Qs=Y("$ZodString",(e,r)=>{et.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Rw(e._zod.bag),e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),Ze=Y("$ZodStringFormat",(e,r)=>{aa.init(e,r),Qs.init(e,r)}),e_=Y("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=ww),Ze.init(e,r)}),t_=Y("$ZodUUID",(e,r)=>{if(r.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Lf(n))}else r.pattern??(r.pattern=Lf());Ze.init(e,r)}),r_=Y("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=_w),Ze.init(e,r)}),n_=Y("$ZodURL",(e,r)=>{Ze.init(e,r),e._zod.check=t=>{try{const n=t.value.trim(),o=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Ow.source,input:t.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:t.value,inst:e,continue:!r.abort})),r.normalize?t.value=o.href:t.value=n;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!r.abort})}}}),o_=Y("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Sw()),Ze.init(e,r)}),i_=Y("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=yw),Ze.init(e,r)}),a_=Y("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=pw),Ze.init(e,r)}),s_=Y("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=hw),Ze.init(e,r)}),c_=Y("$ZodULID",(e,r)=>{r.pattern??(r.pattern=mw),Ze.init(e,r)}),l_=Y("$ZodXID",(e,r)=>{r.pattern??(r.pattern=gw),Ze.init(e,r)}),u_=Y("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=vw),Ze.init(e,r)}),d_=Y("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Iw(r)),Ze.init(e,r)}),f_=Y("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Pw),Ze.init(e,r)}),p_=Y("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Aw(r)),Ze.init(e,r)}),h_=Y("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=bw),Ze.init(e,r)}),m_=Y("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Cw),Ze.init(e,r),e._zod.onattach.push(t=>{const n=t._zod.bag;n.format="ipv4"})}),g_=Y("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Ew),Ze.init(e,r),e._zod.onattach.push(t=>{const n=t._zod.bag;n.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!r.abort})}}}),v_=Y("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=kw),Ze.init(e,r)}),y_=Y("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Dw),Ze.init(e,r),e._zod.check=t=>{const[n,o]=t.value.split("/");try{if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${n}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!r.abort})}}});function Hf(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const b_=Y("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Tw),Ze.init(e,r),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{Hf(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort})}});function w_(e){if(!zf.test(e))return!1;const r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return Hf(t)}const __=Y("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=zf),Ze.init(e,r),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{w_(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort})}}),x_=Y("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Mw),Ze.init(e,r)});function S_(e,r=null){try{const t=e.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))}catch{return!1}}const C_=Y("$ZodJWT",(e,r)=>{Ze.init(e,r),e._zod.check=t=>{S_(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort})}}),Wf=Y("$ZodNumber",(e,r)=>{et.init(e,r),e._zod.pattern=e._zod.bag.pattern??$w,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=Number(t.value)}catch{}const o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t}}),E_=Y("$ZodNumber",(e,r)=>{Vw.init(e,r),Wf.init(e,r)}),k_=Y("$ZodBoolean",(e,r)=>{et.init(e,r),e._zod.pattern=jw,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=!!t.value}catch{}const o=t.value;return typeof o=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),t}}),D_=Y("$ZodUnknown",(e,r)=>{et.init(e,r),e._zod.parse=t=>t}),T_=Y("$ZodNever",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function Zf(e,r,t){e.issues.length&&r.issues.push(...$f(t,e.issues)),r.value[t]=e.value}const O_=Y("$ZodArray",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{const o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const s=o[a],c=r.element._zod.run({value:s,issues:[]},n);c instanceof Promise?i.push(c.then(l=>Zf(l,t,a))):Zf(c,t,a)}return i.length?Promise.all(i).then(()=>t):t}});function sa(e,r,t,n){e.issues.length&&r.issues.push(...$f(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value}function qf(e){const r=Object.keys(e.shape);for(const n of r)if(!e.shape[n]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const t=U2(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Kf(e,r,t,n,o,i){const a=[],s=o.keySet,c=o.catchall._zod,l=c.def.type;for(const u of Object.keys(r)){if(s.has(u))continue;if(l==="never"){a.push(u);continue}const d=c.run({value:r[u],issues:[]},n);d instanceof Promise?e.push(d.then(f=>sa(f,t,u,r))):sa(d,t,u,r)}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),e.length?Promise.all(e).then(()=>t):t}const M_=Y("$ZodObject",(e,r)=>{et.init(e,r);const t=Ws(()=>qf(r));Ye(e._zod,"propValues",()=>{const a=r.shape,s={};for(const c in a){const l=a[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const u of l.values)s[c].add(u)}}return s});const n=Ji,o=r.catchall;let i;e._zod.parse=(a,s)=>{i??(i=t.value);const c=a.value;if(!n(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const l=[],u=i.shape;for(const d of i.keys){const m=u[d]._zod.run({value:c[d],issues:[]},s);m instanceof Promise?l.push(m.then(g=>sa(g,a,d,c))):sa(m,a,d,c)}return o?Kf(l,c,a,s,t.value,e):l.length?Promise.all(l).then(()=>a):a}}),P_=Y("$ZodObjectJIT",(e,r)=>{M_.init(e,r);const t=e._zod.parse,n=Ws(()=>qf(r)),o=f=>{const m=new Xw(["shape","payload","ctx"]),g=n.value,p=k=>{const E=If(k);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};m.write("const input = payload.value;");const y=Object.create(null);let S=0;for(const k of g.keys)y[k]=`key_${S++}`;m.write("const newResult = {}");for(const k of g.keys){const E=y[k],_=If(k);m.write(`const ${E} = ${p(k)};`),m.write(`
174
174
  if (${E}.issues.length) {
175
175
  payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
176
176
  ...iss,
@@ -185,8 +185,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
185
185
  } else {
186
186
  newResult[${_}] = ${E}.value;
187
187
  }
188
- `)}m.write("payload.value = newResult;"),m.write("return payload;");const C=m.compile();return(k,E)=>C(f,k,E)};let i;const a=Qi,s=!Of.jitless,l=s&&V2.value,u=r.catchall;let d;e._zod.parse=(f,m)=>{d??(d=n.value);const g=f.value;return a(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=o(r.shape)),f=i(f,m),u?Zf([],g,f,m,d,e):f):t(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function qf(e,r,t,n){for(const i of e)if(i.issues.length===0)return r.value=i.value,r;const o=e.filter(i=>!An(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>tn(a,n,en())))}),r)}const P_=Y("$ZodUnion",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),Ye(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){const o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Ws(i.source)).join("|")})$`)}});const t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=!1;const s=[];for(const c of r.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)s.push(l),a=!0;else{if(l.issues.length===0)return l;s.push(l)}}return a?Promise.all(s).then(c=>qf(c,o,e,i)):qf(s,o,e,i)}}),A_=Y("$ZodIntersection",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{const o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Kf(t,c,l)):Kf(t,i,a)}});function Gs(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(xo(e)&&xo(r)){const t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(const i of n){const a=Gs(e[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<e.length;n++){const o=e[n],i=r[n],a=Gs(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function Kf(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),An(e))return e;const n=Gs(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const I_=Y("$ZodEnum",(e,r)=>{et.init(e,r);const t=L2(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>F2.has(typeof o)).map(o=>typeof o=="string"?Pn(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o}}),R_=Y("$ZodLiteral",(e,r)=>{if(et.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(t=>typeof t=="string"?Pn(t):t?Pn(t.toString()):String(t)).join("|")})$`),e._zod.parse=(t,n)=>{const o=t.value;return e._zod.values.has(o)||t.issues.push({code:"invalid_value",values:r.values,input:o,inst:e}),t}}),N_=Y("$ZodTransform",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Tf(e.constructor.name);const o=r.transform(t.value,t);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new On;return t.value=o,t}});function Gf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const $_=Y("$ZodOptional",(e,r)=>{et.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{const t=r.innerType._zod.pattern;return t?new RegExp(`^(${Ws(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Gf(i,t.value)):Gf(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)}}),j_=Y("$ZodNullable",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),Ye(e._zod,"pattern",()=>{const t=r.innerType._zod.pattern;return t?new RegExp(`^(${Ws(t.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n)}),L_=Y("$ZodDefault",(e,r)=>{et.init(e,r),e._zod.optin="optional",Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Qf(i,r)):Qf(o,r)}});function Qf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const z_=Y("$ZodPrefault",(e,r)=>{et.init(e,r),e._zod.optin="optional",Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n))}),B_=Y("$ZodNonOptional",(e,r)=>{et.init(e,r),Ye(e._zod,"values",()=>{const t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Xf(i,e)):Xf(o,e)}});function Xf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const V_=Y("$ZodCatch",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>tn(a,n,en()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>tn(i,n,en()))},input:t.value}),t.issues=[]),t)}}),F_=Y("$ZodPipe",(e,r)=>{et.init(e,r),Ye(e._zod,"values",()=>r.in._zod.values),Ye(e._zod,"optin",()=>r.in._zod.optin),Ye(e._zod,"optout",()=>r.out._zod.optout),Ye(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){const i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>aa(a,r.in,n)):aa(i,r.in,n)}const o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>aa(i,r.out,n)):aa(o,r.out,n)}});function aa(e,r,t){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},t)}const Y_=Y("$ZodReadonly",(e,r)=>{et.init(e,r),Ye(e._zod,"propValues",()=>r.innerType._zod.propValues),Ye(e._zod,"values",()=>r.innerType._zod.values),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(Jf):Jf(o)}});function Jf(e){return e.value=Object.freeze(e.value),e}const U_=Y("$ZodCustom",(e,r)=>{Ot.init(e,r),et.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{const n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>ep(i,t,n,e));ep(o,t,n,e)}});function ep(e,r,t,n){if(!e){const o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(So(o))}}class H_{constructor(){this._map=new Map,this._idmap=new Map}add(r,...t){const n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){const t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){const t=r._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function W_(){return new H_}const sa=W_();function Z_(e,r){return new e({type:"string",...pe(r)})}function q_(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...pe(r)})}function tp(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...pe(r)})}function K_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...pe(r)})}function G_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...pe(r)})}function Q_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...pe(r)})}function X_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...pe(r)})}function J_(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...pe(r)})}function ex(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...pe(r)})}function tx(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...pe(r)})}function rx(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...pe(r)})}function nx(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...pe(r)})}function ox(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...pe(r)})}function ix(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...pe(r)})}function ax(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...pe(r)})}function sx(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...pe(r)})}function cx(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...pe(r)})}function lx(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...pe(r)})}function ux(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...pe(r)})}function dx(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...pe(r)})}function fx(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...pe(r)})}function px(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...pe(r)})}function hx(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...pe(r)})}function mx(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...pe(r)})}function gx(e,r){return new e({type:"string",format:"date",check:"string_format",...pe(r)})}function vx(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...pe(r)})}function yx(e,r){return new e({type:"string",format:"duration",check:"string_format",...pe(r)})}function bx(e,r){return new e({type:"number",checks:[],...pe(r)})}function wx(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...pe(r)})}function _x(e,r){return new e({type:"boolean",...pe(r)})}function xx(e){return new e({type:"unknown"})}function Sx(e,r){return new e({type:"never",...pe(r)})}function rp(e,r){return new Vf({check:"less_than",...pe(r),value:e,inclusive:!1})}function Qs(e,r){return new Vf({check:"less_than",...pe(r),value:e,inclusive:!0})}function np(e,r){return new Ff({check:"greater_than",...pe(r),value:e,inclusive:!1})}function Xs(e,r){return new Ff({check:"greater_than",...pe(r),value:e,inclusive:!0})}function op(e,r){return new zw({check:"multiple_of",...pe(r),value:e})}function ip(e,r){return new Vw({check:"max_length",...pe(r),maximum:e})}function ca(e,r){return new Fw({check:"min_length",...pe(r),minimum:e})}function ap(e,r){return new Yw({check:"length_equals",...pe(r),length:e})}function Cx(e,r){return new Uw({check:"string_format",format:"regex",...pe(r),pattern:e})}function Ex(e){return new Hw({check:"string_format",format:"lowercase",...pe(e)})}function kx(e){return new Ww({check:"string_format",format:"uppercase",...pe(e)})}function Dx(e,r){return new Zw({check:"string_format",format:"includes",...pe(r),includes:e})}function Tx(e,r){return new qw({check:"string_format",format:"starts_with",...pe(r),prefix:e})}function Ox(e,r){return new Kw({check:"string_format",format:"ends_with",...pe(r),suffix:e})}function Co(e){return new Gw({check:"overwrite",tx:e})}function Mx(e){return Co(r=>r.normalize(e))}function Px(){return Co(e=>e.trim())}function Ax(){return Co(e=>e.toLowerCase())}function Ix(){return Co(e=>e.toUpperCase())}function Rx(e,r,t){return new e({type:"array",element:r,...pe(t)})}function Nx(e,r,t){return new e({type:"custom",check:"custom",fn:r,...pe(t)})}function $x(e){const r=jx(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(So(n,t.value,r._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(So(o))}},e(t.value,t)));return r}function jx(e,r){const t=new Ot({check:"custom",...pe(r)});return t._zod.check=e,t}function sp(e,r){try{var t=e()}catch(n){return r(n)}return t&&t.then?t.then(void 0,r):t}function Lx(e,r){for(var t={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!t[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),r){var c=t[a].types,l=c&&c[n.code];t[a]=Ls(a,r,t,o,l?[].concat(l,n.message):n.message)}e.shift()}return t}function zx(e,r){for(var t={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!t[a])if(n.code==="invalid_union"&&n.errors.length>0){var s=n.errors[0][0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),r){var c=t[a].types,l=c&&c[n.code];t[a]=Ls(a,r,t,o,l?[].concat(l,n.message):n.message)}e.shift()}return t}function Bx(e,r,t){if(t===void 0&&(t={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(sp(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](n,r)).then(function(a){return i.shouldUseNativeValidation&&Fs({},i),{errors:{},values:t.raw?Object.assign({},n):a}})},function(a){if((function(s){return Array.isArray(s?.issues)})(a))return{values:{},errors:kf(Lx(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(sp(function(){return Promise.resolve((t.mode==="sync"?ew:tw)(e,n,r)).then(function(a){return i.shouldUseNativeValidation&&Fs({},i),{errors:{},values:t.raw?Object.assign({},n):a}})},function(a){if((function(s){return s instanceof qs})(a))return{values:{},errors:kf(zx(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Vx=Y("ZodISODateTime",(e,r)=>{u_.init(e,r),Ge.init(e,r)});function Fx(e){return mx(Vx,e)}const Yx=Y("ZodISODate",(e,r)=>{d_.init(e,r),Ge.init(e,r)});function Ux(e){return gx(Yx,e)}const Hx=Y("ZodISOTime",(e,r)=>{f_.init(e,r),Ge.init(e,r)});function Wx(e){return vx(Hx,e)}const Zx=Y("ZodISODuration",(e,r)=>{p_.init(e,r),Ge.init(e,r)});function qx(e){return yx(Zx,e)}const Ut=Y("ZodError",(e,r)=>{qs.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>J2(e,t)},flatten:{value:t=>X2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ys,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ys,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Kx=ea(Ut),Gx=ta(Ut),Qx=ra(Ut),Xx=na(Ut),Jx=ow(Ut),eS=iw(Ut),tS=aw(Ut),rS=sw(Ut),nS=cw(Ut),oS=lw(Ut),iS=uw(Ut),aS=dw(Ut),it=Y("ZodType",(e,r)=>(et.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone({...r,checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(t,n)=>jr(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Kx(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Qx(e,t,n),e.parseAsync=async(t,n)=>Gx(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Xx(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Jx(e,t,n),e.decode=(t,n)=>eS(e,t,n),e.encodeAsync=async(t,n)=>tS(e,t,n),e.decodeAsync=async(t,n)=>rS(e,t,n),e.safeEncode=(t,n)=>nS(e,t,n),e.safeDecode=(t,n)=>oS(e,t,n),e.safeEncodeAsync=async(t,n)=>iS(e,t,n),e.safeDecodeAsync=async(t,n)=>aS(e,t,n),e.refine=(t,n)=>e.check(tC(t,n)),e.superRefine=t=>e.check(rC(t)),e.overwrite=t=>e.check(Co(t)),e.optional=()=>mp(e),e.nullable=()=>gp(e),e.nullish=()=>mp(gp(e)),e.nonoptional=t=>qS(e,t),e.array=()=>PS(e),e.or=t=>NS([e,t]),e.and=t=>jS(e,t),e.transform=t=>yp(e,FS(t)),e.default=t=>HS(e,t),e.prefault=t=>ZS(e,t),e.catch=t=>GS(e,t),e.pipe=t=>yp(e,t),e.readonly=()=>JS(e),e.describe=t=>{const n=e.clone();return sa.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return sa.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return sa.get(e);const n=e.clone();return sa.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cp=Y("_ZodString",(e,r)=>{Ks.init(e,r),it.init(e,r);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Cx(...n)),e.includes=(...n)=>e.check(Dx(...n)),e.startsWith=(...n)=>e.check(Tx(...n)),e.endsWith=(...n)=>e.check(Ox(...n)),e.min=(...n)=>e.check(ca(...n)),e.max=(...n)=>e.check(ip(...n)),e.length=(...n)=>e.check(ap(...n)),e.nonempty=(...n)=>e.check(ca(1,...n)),e.lowercase=n=>e.check(Ex(n)),e.uppercase=n=>e.check(kx(n)),e.trim=()=>e.check(Px()),e.normalize=(...n)=>e.check(Mx(...n)),e.toLowerCase=()=>e.check(Ax()),e.toUpperCase=()=>e.check(Ix())}),sS=Y("ZodString",(e,r)=>{Ks.init(e,r),cp.init(e,r),e.email=t=>e.check(q_(cS,t)),e.url=t=>e.check(J_(lS,t)),e.jwt=t=>e.check(hx(CS,t)),e.emoji=t=>e.check(ex(uS,t)),e.guid=t=>e.check(tp(lp,t)),e.uuid=t=>e.check(K_(la,t)),e.uuidv4=t=>e.check(G_(la,t)),e.uuidv6=t=>e.check(Q_(la,t)),e.uuidv7=t=>e.check(X_(la,t)),e.nanoid=t=>e.check(tx(dS,t)),e.guid=t=>e.check(tp(lp,t)),e.cuid=t=>e.check(rx(fS,t)),e.cuid2=t=>e.check(nx(pS,t)),e.ulid=t=>e.check(ox(hS,t)),e.base64=t=>e.check(dx(_S,t)),e.base64url=t=>e.check(fx(xS,t)),e.xid=t=>e.check(ix(mS,t)),e.ksuid=t=>e.check(ax(gS,t)),e.ipv4=t=>e.check(sx(vS,t)),e.ipv6=t=>e.check(cx(yS,t)),e.cidrv4=t=>e.check(lx(bS,t)),e.cidrv6=t=>e.check(ux(wS,t)),e.e164=t=>e.check(px(SS,t)),e.datetime=t=>e.check(Fx(t)),e.date=t=>e.check(Ux(t)),e.time=t=>e.check(Wx(t)),e.duration=t=>e.check(qx(t))});function rr(e){return Z_(sS,e)}const Ge=Y("ZodStringFormat",(e,r)=>{Ze.init(e,r),cp.init(e,r)}),cS=Y("ZodEmail",(e,r)=>{t_.init(e,r),Ge.init(e,r)}),lp=Y("ZodGUID",(e,r)=>{Jw.init(e,r),Ge.init(e,r)}),la=Y("ZodUUID",(e,r)=>{e_.init(e,r),Ge.init(e,r)}),lS=Y("ZodURL",(e,r)=>{r_.init(e,r),Ge.init(e,r)}),uS=Y("ZodEmoji",(e,r)=>{n_.init(e,r),Ge.init(e,r)}),dS=Y("ZodNanoID",(e,r)=>{o_.init(e,r),Ge.init(e,r)}),fS=Y("ZodCUID",(e,r)=>{i_.init(e,r),Ge.init(e,r)}),pS=Y("ZodCUID2",(e,r)=>{a_.init(e,r),Ge.init(e,r)}),hS=Y("ZodULID",(e,r)=>{s_.init(e,r),Ge.init(e,r)}),mS=Y("ZodXID",(e,r)=>{c_.init(e,r),Ge.init(e,r)}),gS=Y("ZodKSUID",(e,r)=>{l_.init(e,r),Ge.init(e,r)}),vS=Y("ZodIPv4",(e,r)=>{h_.init(e,r),Ge.init(e,r)}),yS=Y("ZodIPv6",(e,r)=>{m_.init(e,r),Ge.init(e,r)}),bS=Y("ZodCIDRv4",(e,r)=>{g_.init(e,r),Ge.init(e,r)}),wS=Y("ZodCIDRv6",(e,r)=>{v_.init(e,r),Ge.init(e,r)}),_S=Y("ZodBase64",(e,r)=>{y_.init(e,r),Ge.init(e,r)}),xS=Y("ZodBase64URL",(e,r)=>{w_.init(e,r),Ge.init(e,r)}),SS=Y("ZodE164",(e,r)=>{__.init(e,r),Ge.init(e,r)}),CS=Y("ZodJWT",(e,r)=>{S_.init(e,r),Ge.init(e,r)}),up=Y("ZodNumber",(e,r)=>{Uf.init(e,r),it.init(e,r),e.gt=(n,o)=>e.check(np(n,o)),e.gte=(n,o)=>e.check(Xs(n,o)),e.min=(n,o)=>e.check(Xs(n,o)),e.lt=(n,o)=>e.check(rp(n,o)),e.lte=(n,o)=>e.check(Qs(n,o)),e.max=(n,o)=>e.check(Qs(n,o)),e.int=n=>e.check(fp(n)),e.safe=n=>e.check(fp(n)),e.positive=n=>e.check(np(0,n)),e.nonnegative=n=>e.check(Xs(0,n)),e.negative=n=>e.check(rp(0,n)),e.nonpositive=n=>e.check(Qs(0,n)),e.multipleOf=(n,o)=>e.check(op(n,o)),e.step=(n,o)=>e.check(op(n,o)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function dp(e){return bx(up,e)}const ES=Y("ZodNumberFormat",(e,r)=>{C_.init(e,r),up.init(e,r)});function fp(e){return wx(ES,e)}const kS=Y("ZodBoolean",(e,r)=>{E_.init(e,r),it.init(e,r)});function Js(e){return _x(kS,e)}const DS=Y("ZodUnknown",(e,r)=>{k_.init(e,r),it.init(e,r)});function pp(){return xx(DS)}const TS=Y("ZodNever",(e,r)=>{D_.init(e,r),it.init(e,r)});function OS(e){return Sx(TS,e)}const MS=Y("ZodArray",(e,r)=>{T_.init(e,r),it.init(e,r),e.element=r.element,e.min=(t,n)=>e.check(ca(t,n)),e.nonempty=t=>e.check(ca(1,t)),e.max=(t,n)=>e.check(ip(t,n)),e.length=(t,n)=>e.check(ap(t,n)),e.unwrap=()=>e.element});function PS(e,r){return Rx(MS,e,r)}const AS=Y("ZodObject",(e,r)=>{M_.init(e,r),it.init(e,r),Ye(e,"shape",()=>r.shape),e.keyof=()=>LS(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:pp()}),e.loose=()=>e.clone({...e._zod.def,catchall:pp()}),e.strict=()=>e.clone({...e._zod.def,catchall:OS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Z2(e,t),e.safeExtend=t=>q2(e,t),e.merge=t=>K2(e,t),e.pick=t=>H2(e,t),e.omit=t=>W2(e,t),e.partial=(...t)=>G2(hp,e,t[0]),e.required=(...t)=>Q2(vp,e,t[0])});function IS(e,r){const t={type:"object",get shape(){return $r(this,"shape",e?B2(e):{}),this.shape},...pe(r)};return new AS(t)}const RS=Y("ZodUnion",(e,r)=>{P_.init(e,r),it.init(e,r),e.options=r.options});function NS(e,r){return new RS({type:"union",options:e,...pe(r)})}const $S=Y("ZodIntersection",(e,r)=>{A_.init(e,r),it.init(e,r)});function jS(e,r){return new $S({type:"intersection",left:e,right:r})}const ec=Y("ZodEnum",(e,r)=>{I_.init(e,r),it.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{const i={};for(const a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ec({...r,checks:[],...pe(o),entries:i})},e.exclude=(n,o)=>{const i={...r.entries};for(const a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ec({...r,checks:[],...pe(o),entries:i})}});function LS(e,r){const t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ec({type:"enum",entries:t,...pe(r)})}const zS=Y("ZodLiteral",(e,r)=>{R_.init(e,r),it.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function BS(e,r){return new zS({type:"literal",values:Array.isArray(e)?e:[e],...pe(r)})}const VS=Y("ZodTransform",(e,r)=>{N_.init(e,r),it.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Tf(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(So(i,t.value,r));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(So(a))}};const o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)}});function FS(e){return new VS({type:"transform",transform:e})}const hp=Y("ZodOptional",(e,r)=>{$_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function mp(e){return new hp({type:"optional",innerType:e})}const YS=Y("ZodNullable",(e,r)=>{j_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function gp(e){return new YS({type:"nullable",innerType:e})}const US=Y("ZodDefault",(e,r)=>{L_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function HS(e,r){return new US({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():If(r)}})}const WS=Y("ZodPrefault",(e,r)=>{z_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ZS(e,r){return new WS({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():If(r)}})}const vp=Y("ZodNonOptional",(e,r)=>{B_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qS(e,r){return new vp({type:"nonoptional",innerType:e,...pe(r)})}const KS=Y("ZodCatch",(e,r)=>{V_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function GS(e,r){return new KS({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const QS=Y("ZodPipe",(e,r)=>{F_.init(e,r),it.init(e,r),e.in=r.in,e.out=r.out});function yp(e,r){return new QS({type:"pipe",in:e,out:r})}const XS=Y("ZodReadonly",(e,r)=>{Y_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function JS(e){return new XS({type:"readonly",innerType:e})}const eC=Y("ZodCustom",(e,r)=>{U_.init(e,r),it.init(e,r)});function tC(e,r={}){return Nx(eC,e,r)}function rC(e){return $x(e)}const bp=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,wp=(e,r)=>{if(!e||!r)return null;const t=e.split("-");if(t.length!==3)return null;const n=parseInt(t[0],10),o=parseInt(t[1],10)-1,i=parseInt(t[2],10),a=r.split(":");if(a.length!==2)return null;const s=parseInt(a[0],10),c=parseInt(a[1],10),l=new Date(n,o,i,s,c);return isNaN(l.getTime())||!w.isValid(l)?null:l},nC=IS({titulo:rr().min(1,"El campo Título es requerido."),fechaInicio:rr().min(1,"El campo fecha inicio es requerido."),horaInicio:rr().min(1,"La hora de inicio es requerida.").regex(bp,{message:"Formato inválido"}),horaFin:rr().min(1,"La hora fin es requerida.").regex(bp,{message:"Formato inválido"}),todoElDia:Js(),fechaFin:rr().optional(),showEndDate:Js().optional(),horaInicio2:rr().optional(),TodoElDia2:Js().optional(),client:rr().optional().nullable(),repetir:rr().optional(),link:rr().url("Debe ser una URL válida ejemplo https://www.google.com.").or(BS("")).optional(),descripcion:rr().optional(),color:rr().optional(),solID:dp().optional().nullable(),disID:dp().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}).refine(e=>{if(e.todoElDia||!e.fechaInicio||!e.horaInicio||!e.fechaFin||!e.horaInicio2)return!0;const r=wp(e.fechaInicio,e.horaInicio),t=wp(e.fechaFin,e.horaFin);return!r||!t||!w.isValid(r)||!w.isValid(t)?!0:!(w.isBefore(t,r)&&!w.isSameDay(t,r)||w.isSameDay(r,t)&&w.isBefore(t,r))},{message:"La hora de fin deben ser posterior a la de inicio.",path:["horaFin"]}),_p=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("path",{fill:"#333",d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12"}),$.createElement("path",{fill:"#fff",d:"M16.703 7.275c.52.52.541 1.345.046 1.84l-2.874 2.874 2.874 2.873c.495.496.475 1.32-.046 1.841-.52.52-1.344.54-1.84.045l-2.873-2.873-2.874 2.873c-.496.496-1.32.475-1.84-.045-.521-.521-.541-1.345-.046-1.84l2.874-2.874L7.23 9.116c-.495-.496-.475-1.32.045-1.84.521-.521 1.345-.542 1.841-.046l2.874 2.873 2.873-2.873c.496-.496 1.32-.476 1.84.045"})),oC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M7.288%2022.986h-.147a6.2%206.2%200%200%201-4.28-1.85c-2.404-2.404-2.478-6.24-.16-8.557L4.28%2011a1.228%201.228%200%201%201%201.739%201.739L4.44%2014.317c-1.356%201.357-1.282%203.626.16%205.068a3.82%203.82%200%200%200%202.602%201.135c.95%200%201.825-.32%202.479-.974l1.578-1.579a1.23%201.23%200%200%201%201.739%200c.48.481.48%201.258%200%201.739l-1.579%201.578c-1.097%201.098-2.552%201.69-4.13%201.69zM17.98%2012.998a1.23%201.23%200%200%201%200-1.739l1.578-1.578c.654-.654.986-1.53.974-2.466a3.78%203.78%200%200%200-1.134-2.602c-1.443-1.443-3.712-1.517-5.068-.16L12.75%206.03c-.48.48-1.258.48-1.739%200a1.23%201.23%200%200%201%200-1.739l1.579-1.578c2.318-2.319%206.153-2.245%208.558.16a6.23%206.23%200%200%201%201.85%204.279%205.84%205.84%200%200%201-1.69%204.279l-1.578%201.578c-.481.481-1.258.481-1.74%200z'/%3e%3cpath%20d='M14.172%208.11%208.07%2014.214a1.233%201.233%200%200%200%201.743%201.744l6.104-6.104a1.233%201.233%200%201%200-1.744-1.744'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",iC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("g",{clipPath:"url(#a)"},$.createElement("path",{fill:"#404756",d:"M21.24 5.72a2.98 2.98 0 0 0-2.97-2.96l-5.19-.06c-1.06-.03-2.12.41-2.87 1.17l-7.49 7.49c-.66.66-1.03 1.54-1.03 2.47s.36 1.81 1.03 2.47l4.97 4.97a3.5 3.5 0 0 0 2.47 1.02c.89 0 1.79-.34 2.47-1.02l7.49-7.49c.76-.76 1.18-1.81 1.17-2.88l-.06-5.19zm-4.2 4.43c-.44.44-1.02.66-1.6.66a2.256 2.256 0 1 1 0-4.51 2.256 2.256 0 0 1 1.6 3.85"})),$.createElement("defs",null,$.createElement("clipPath",{id:"a"},$.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),aC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M13.17%2013.68c2.06%200%204%20.8%205.46%202.27a7.7%207.7%200%200%201%202.26%205.47c0%20.79-.64%201.43-1.43%201.43l.01-.01H4.53c-.79%200-1.43-.64-1.43-1.43%200-4.27%203.46-7.73%207.72-7.73zM12%201.9c2.82%200%205.11%202.29%205.11%205.11s-2.29%205.11-5.11%205.11v-.01c-2.82%200-5.11-2.29-5.11-5.11S9.18%201.9%2012%201.9'/%3e%3c/svg%3e",sC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("g",{fill:"#2571D6",clipPath:"url(#a)"},$.createElement("path",{d:"M13.085 7.331a1.096 1.096 0 1 0-2.192 0v9.316a1.096 1.096 0 0 0 2.192 0z"}),$.createElement("path",{d:"M16.647 10.893H7.33a1.096 1.096 0 1 0 0 2.192h9.316a1.096 1.096 0 0 0 0-2.192"}),$.createElement("path",{d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12m0-21.808c-5.414 0-9.808 4.394-9.808 9.808S6.586 21.808 12 21.808s9.808-4.394 9.808-9.808S17.403 2.192 12 2.192"})),$.createElement("defs",null,$.createElement("clipPath",{id:"a"},$.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),cC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.789%2017H3.21C2.542%2017%202%2017.56%202%2018.25s.542%201.25%201.211%201.25H13.79c.669%200%201.211-.56%201.211-1.25S14.458%2017%2013.789%2017M20.718%204H3.282C2.574%204%202%204.56%202%205.25S2.574%206.5%203.282%206.5h17.436C21.426%206.5%2022%205.94%2022%205.25S21.426%204%2020.718%204M20.718%2010.5H3.282C2.574%2010.5%202%2011.06%202%2011.75S2.574%2013%203.282%2013h17.436c.708%200%201.282-.56%201.282-1.25s-.574-1.25-1.282-1.25'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",lC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("path",{fill:"#2571D6",fillRule:"evenodd",d:"M17.333 11a6.34 6.34 0 0 1 6.334 6.333 6.34 6.34 0 0 1-6.334 6.334c-3.493 0-6.333-2.846-6.333-6.334A6.343 6.343 0 0 1 17.333 11m-.005 2.37c-.437 0-.79.338-.79.754v2.412h-2.414c-.416 0-.754.355-.754.792s.338.792.754.792h2.413v2.412c0 .416.354.754.791.754s.792-.338.792-.754V18.12h2.413c.416 0 .754-.355.754-.792s-.338-.792-.754-.792H18.12v-2.412c0-.416-.355-.754-.792-.754",clipRule:"evenodd"}),$.createElement("path",{fill:"#2571D6",d:"M11.12 12.297a7.97 7.97 0 0 0-1.787 5.036c0 1.763.571 3.392 1.537 4.714H3.044c-.84 0-1.523-.682-1.523-1.523 0-4.544 3.683-8.227 8.217-8.227zM10.995.139c2.925 0 5.3 2.376 5.3 5.3s-2.376 5.3-5.3 5.3v-.01a5.303 5.303 0 0 1-5.3-5.3 5.295 5.295 0 0 1 5.3-5.29"})),xp=qt(h.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),tc=qt(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450,md:500},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},rc=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],Sp=(()=>{const e=[];for(let r=0;r<24;r++)for(let t=0;t<60;t+=15){const n=r.toString().padStart(2,"0"),o=t.toString().padStart(2,"0");e.push(`${n}:${o}`)}return e})(),dC=({isVisible:e,onClose:r,onSave:t,onDelete:n,selectedDate:o,initialEvent:i,userId:a,masNombreBD:s,disId:c})=>{const[l,u]=x.useState(!1),[d,f]=x.useState(!1),m=w.format(new Date,"yyyy-MM-dd"),[g,p]=x.useState(""),[y,S]=x.useState([]),[C,k]=x.useState(!1),E=Ps(),[_,O]=x.useState([]),{control:R,handleSubmit:q,reset:Z,formState:{errors:j},watch:K,setValue:v}=$2({resolver:Bx(nC),defaultValues:{titulo:"",fechaInicio:w.format(new Date,"yyyy-MM-dd"),horaInicio:w.format(new Date,"HH:mm"),horaFin:w.format(w.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:rc[5],solID:null}}),A=K("fechaInicio"),P=K("fechaFin"),H=K("todoElDia");x.useEffect(()=>{if(g.trim()===""||!a||!c||!s){S([]);return}k(!0);const V=setTimeout(()=>{E.getClients(g,c,s,a).then(Q=>{k(!1);const L=Array.from(new Map(Q.map(U=>[U.nombreCliente,U])).values());if(L)S(L);else if(i?.client&&i.solID!==null){const U=[{solID:i.solID,nombreCliente:i.client}];S(U)}else S([])}).catch(Q=>{console.error("Error al buscar clientes:",Q),k(!1)})},500);return()=>clearTimeout(V)},[g,a,c,s]),x.useEffect(()=>{if(A&&P){const V=new Date(A),Q=new Date(P);(V===Q||V>Q)&&v("fechaFin",A)}},[A,P,v]),x.useEffect(()=>{A&&v("fechaFin",A)},[A]),x.useEffect(()=>{v("showEndDate",l)},[l,v]),x.useEffect(()=>{if(i){const V=w.format(i.fechaInicio,"yyyy-MM-dd")===w.format(i.fechaFin,"yyyy-MM-dd");u(!V),v("titulo",i?.titulo),v("fechaInicio",w.format(i.fechaInicio,"yyyy-MM-dd")),v("fechaFin",w.format(i.fechaFin,"yyyy-MM-dd")),v("horaInicio",w.format(i.fechaInicio,"HH:mm")),v("horaFin",w.format(i.fechaFin,"HH:mm")),v("horaInicio2",w.format(i.fechaFin,"HH:mm")),v("descripcion",i.descripcion),v("link",i.link),v("repetir","false"),v("color",i.color),v("todoElDia",i.todoElDia),v("solID",i.solID),v("client",i.client),i.solID?f(!0):f(!1)}else{const V=o||new Date,Q=new Date,L=new Date(V.getFullYear(),V.getMonth(),V.getDate(),Q.getHours(),Q.getMinutes()),U=w.addHours(L,1);Z({titulo:"",fechaInicio:w.format(L,"yyyy-MM-dd"),horaInicio:w.format(L,"HH:mm"),fechaFin:w.format(U,"yyyy-MM-dd"),horaFin:w.format(U,"HH:mm"),horaInicio2:w.format(U,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:rc[5],solID:null}),u(!1),f(!1)}},[i,e,o]);const W=q(V=>{t(V,i?.eventoID),r(),Z(),u(!1)},V=>{console.log("Errores de validación:",V)});x.useEffect(()=>{H&&(v("horaInicio","00:00"),v("horaFin","23:59"))},[H,v,K]);const J=()=>{const V=K("fechaInicio");if(V){const Q=new Date(`${V}T00:00:00`),L=w.addDays(Q,1);v("fechaFin",w.format(L,"yyyy-MM-dd"))}u(!0)};return h.jsx(N.Modal,{open:e,onClose:r,children:h.jsxs(N.Box,{sx:uC,children:[h.jsx(N.IconButton,{"aria-label":"close",onClick:r,sx:{position:"absolute",right:8,top:12},children:h.jsx(tc,{})}),h.jsx(N.Typography,{variant:"h6",mb:2,children:i?"Editar evento":"Agregar evento"}),h.jsxs(N.Grid,{container:!0,spacing:1,marginBottom:l?0:1,children:[h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"titulo",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!j.titulo,helperText:j.titulo?.message,FormHelperTextProps:{sx:{fontSize:"0.6rem"}},inputProps:{maxLength:100},sx:{"& .MuiInputLabel-root.Mui-focused":{color:"black"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"fechaInicio",control:R,render:({field:V})=>h.jsx(N.TextField,{fullWidth:!0,...V,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!j.fechaInicio,helperText:j.fechaInicio?.message,FormHelperTextProps:{sx:{fontSize:"0.60rem"}}})})}),l?h.jsxs(h.Fragment,{children:[h.jsx(N.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),h.jsx(N.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"fechaFin",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,type:"date",placeholder:"Fecha de fin",fullWidth:!!l,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:A||m},error:!!j.fechaFin,helperText:j.fechaFin?.message,FormHelperTextProps:{sx:{fontSize:"0.6rem"}}})})}),!i&&h.jsx(N.Grid,{size:{xs:1,md:1},children:h.jsx(N.IconButton,{onClick:()=>u(!1),sx:{fontSize:18},children:h.jsx(_p,{})})})]}):h.jsx(N.Grid,{size:{xs:12,md:7}})]}),l&&h.jsx(h.Fragment,{children:h.jsxs(N.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[h.jsx(N.Grid,{size:{xs:6,md:5}}),h.jsx(N.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:h.jsx(xp,{sx:{color:"#757575",margin:0,padding:0}})})]})}),h.jsxs(N.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaInicio",control:R,render:({field:{onChange:V,value:Q,...L}})=>h.jsx(N.Autocomplete,{freeSolo:!0,options:Sp,value:Q||"",onChange:(U,ce)=>V(ce||""),onInputChange:(U,ce)=>V(ce),renderInput:U=>h.jsx(N.TextField,{...U,...L,size:"small",error:!!j.horaInicio,helperText:j.horaInicio?.message,FormHelperTextProps:{sx:{fontSize:"0.6rem"}},InputProps:{...U.InputProps,endAdornment:h.jsx(N.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(ef,{})})}}),disabled:K("todoElDia")})})}),h.jsx(N.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:j.horaInicio?"start":"center",marginTop:j.horaInicio?"5px":"0px"},children:!l&&h.jsx(xp,{sx:{color:"#757575"}})}),l&&h.jsx(N.Grid,{size:{xs:2,md:2}}),h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaFin",control:R,render:({field:{onChange:V,value:Q,...L}})=>h.jsx(N.Autocomplete,{freeSolo:!0,options:Sp,value:Q||"",onChange:(U,ce)=>V(ce||""),onInputChange:(U,ce)=>V(ce),renderInput:U=>h.jsx(N.TextField,{...U,...L,size:"small",error:!!j.horaFin,helperText:j.horaFin?.message,FormHelperTextProps:{sx:{fontSize:"0.60rem"}},InputProps:{...U.InputProps,endAdornment:h.jsx(N.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(ef,{})})}}),disabled:K("todoElDia")})})}),h.jsx(N.Grid,{size:{xs:12,md:3},hidden:l,children:h.jsx(er,{name:"todoElDia",control:R,render:({field:V})=>h.jsx(N.FormControlLabel,{control:h.jsx(N.Checkbox,{checked:V.value,onChange:Q=>V.onChange(Q.target.checked)}),label:h.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"}),sx:{whiteSpace:"nowrap"}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:!l&&h.jsx(h.Fragment,{children:h.jsxs(N.Button,{onClick:J,size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(sC,{}),"  Agregar fecha final"]})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:!d&&h.jsxs(N.Button,{onClick:()=>f(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(lC,{}),"  Vincular cliente"]})}),d&&h.jsxs(h.Fragment,{children:[h.jsx(N.Grid,{size:{xs:12,md:7},children:h.jsx(er,{name:"client",control:R,render:({field:V})=>h.jsx(N.Autocomplete,{options:y,loading:C,getOptionLabel:Q=>Q.nombreCliente?.trim()||"",value:y.find(Q=>Q.nombreCliente===V.value)||(V.value&&typeof V.value=="string"?{solID:-1,nombreCliente:V.value}:null),noOptionsText:"",onInputChange:(Q,L)=>{p(L)},onChange:(Q,L)=>{if(V.onChange(L?L.nombreCliente:""),v("solID",L?L.solID:null),L&&L.nombreCliente){const U=y.filter(ce=>ce.nombreCliente===L.nombreCliente&&ce.solID).map(ce=>ce.solID);O([...new Set(U)])}else O([])},renderInput:Q=>h.jsx(N.TextField,{...Q,placeholder:"Buscar cliente...",size:"small",InputProps:{...Q.InputProps,startAdornment:h.jsx("img",{src:aC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"5px"}}),endAdornment:h.jsxs(h.Fragment,{children:[C?h.jsx(N.CircularProgress,{color:"inherit",size:20}):null,Q.InputProps.endAdornment]})}})})})}),h.jsx(N.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"solID",control:R,render:({field:V})=>h.jsx(N.Autocomplete,{options:_,getOptionLabel:Q=>Q.toString(),value:V.value??null,onChange:(Q,L)=>V.onChange(L),renderInput:Q=>h.jsx(N.TextField,{...Q,label:"#Registro",variant:"outlined",size:"small",sx:{"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}}),disabled:!y})})}),h.jsx(N.Grid,{size:{xs:1,md:1},children:h.jsx(N.IconButton,{onClick:()=>f(!1),sx:{fontSize:18},children:h.jsx(_p,{})})})]}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"link",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!j.link,helperText:j.link?.message,FormHelperTextProps:{sx:{fontSize:"0.6rem"}},InputProps:{startAdornment:h.jsx("img",{src:oC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"8px"}})}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"descripcion",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,inputProps:{maxLength:500},variant:"outlined",size:"small",InputProps:{startAdornment:h.jsx("img",{src:cC,width:20,style:{alignSelf:"flex-start",marginRight:"8px"}})}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[h.jsx(iC,{}),rc.map(V=>h.jsx(er,{name:"color",control:R,render:({field:Q})=>h.jsx(N.IconButton,{onClick:()=>Q.onChange(V),sx:{width:24,height:24,borderRadius:"50%",bgcolor:V,border:Q.value===V?"2px solid":"none",borderColor:Q.value===V?"primary.main":"transparent"}})},V))]})})]}),h.jsxs(N.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[i&&h.jsx(N.Button,{onClick:n,variant:"outlined",color:"error",children:"Eliminar"}),h.jsx(N.Button,{onClick:r,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),h.jsx(N.Button,{onClick:W,variant:"contained",sx:{textTransform:"none"},children:"Guardar"})]})]})})},fC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='49'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M34.559%2048.077c-7.413%200-13.44-6.039-13.44-13.44s6.027-13.44%2013.44-13.44%2013.44%206.027%2013.44%2013.44c0%207.414-6.027%2013.44-13.44%2013.44'/%3e%3cpath%20fill='%23fff'%20d='M39.827%2029.346c.583.583.605%201.505.05%202.06l-3.218%203.219%203.219%203.218c.555.556.532%201.48-.051%202.062-.584.583-1.506.605-2.062.05l-3.218-3.218-3.218%203.218c-.556.555-1.478.533-2.061-.05s-.606-1.506-.05-2.062l3.217-3.218-3.218-3.218c-.555-.555-.533-1.478.05-2.061.583-.584%201.507-.606%202.063-.05l3.217%203.217%203.218-3.218c.556-.555%201.478-.533%202.062.05'/%3e%3cpath%20fill='%23404756'%20d='M30.367.078c1.112%200%202.001.868%202.001%201.954v1.195h.979c4.913%200%208.892%203.887%208.892%208.686v9.237a15.4%2015.4%200%200%200-4.424-1.691v-1.312H4.468V33.63c0%202.389%202%204.343%204.446%204.343H19.4a15.4%2015.4%200%200%200%201.676%204.343H8.892C3.979%2042.317%200%2038.43%200%2033.631V11.913c0-4.8%203.979-8.686%208.892-8.686h1V2.032c0-1.086.89-1.954%202.002-1.954s2%20.868%202%201.954v1.195h14.473V2.032c0-1.085.889-1.954%202-1.954'/%3e%3c/svg%3e",pC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},hC=({isOpen:e,onClose:r,onConfirm:t,title:n,message:o})=>h.jsx(N.Modal,{open:e,onClose:r,children:h.jsxs(N.Box,{sx:pC,children:[h.jsx("img",{src:fC}),h.jsx(N.Typography,{variant:"h6",component:"h2",sx:{mt:1},children:n}),h.jsx(N.Typography,{sx:{mt:2},children:o}),h.jsxs(N.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[h.jsx(N.Button,{variant:"outlined",onClick:r,sx:{textTransform:"none"},children:"Regresar"}),h.jsxs(N.Button,{variant:"contained",color:"error",onClick:t,sx:{textTransform:"none"},children:[h.jsx("span",{className:"icon-eliminar",children:"  "})," Eliminar"]})]})]})}),mC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:450,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},gC=({isOpen:e,onClose:r,events:t,date:n,onEventClick:o})=>{if(!n)return null;const i=a=>{o(a),r()};return h.jsx(N.Modal,{open:e,onClose:r,children:h.jsxs(N.Box,{sx:mC,children:[h.jsxs(N.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[h.jsxs(N.Typography,{sx:{fontSize:"20px"},component:"h2",children:["Eventos del"," ",n.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),h.jsx(N.IconButton,{onClick:r,children:h.jsx(tc,{})})]}),h.jsx(N.Divider,{}),h.jsx(N.List,{children:t.map(a=>h.jsx(N.ListItem,{disablePadding:!0,children:h.jsxs(N.ListItemButton,{onClick:()=>i(a),sx:{py:.5},children:[h.jsx(N.Box,{sx:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:a.color||"#ccc",mr:2,flexShrink:0,minWidth:"10px"}}),h.jsx(N.ListItemText,{primary:a.titulo,secondary:`${w.format(a.fechaInicio,"HH:mm")} - ${w.format(a.fechaFin,"HH:mm")}`,sx:{my:0,"& .MuiListItemText-primary":{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"& .MuiListItemText-secondary":{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"}}})]})},a.eventoID))})]})})},vC=qt(h.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"),yC=qt(h.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-6h2zm0-8h-2V7h2z"}),"Info"),bC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M20.36%204.14H16c0-1.65-1.35-3-3-3h-2c-1.65%200-3%201.35-3%203H3.64c-.55%200-1%20.45-1%201s.45%201%201%201h1.04l.84%2013.91a3%203%200%200%200%202.99%202.82h6.98c1.58%200%202.9-1.24%203-2.82l.84-13.91h1.04c.55%200%201-.45%201-1s-.45-1-1-1zm-9.36-1h2c.55%200%201%20.45%201%201h-4c0-.55.45-1%201-1m-.39%2014.9c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201zm4.78%200c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201z'/%3e%3c/svg%3e",wC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M19.378%204.405a1.813%201.813%200%201%201%202.565%202.565L9.571%2019.342a1.813%201.813%200%200%201-2.565%200l-4.949-4.949a1.814%201.814%200%200%201%202.428-2.69l.137.126%203.666%203.666z'/%3e%3c/svg%3e",Cp=x.forwardRef(({id:e,message:r,variant:t},n)=>{const{closeSnackbar:o}=ga.useSnackbar(),i={success:{color:"#fff",icon:h.jsx("img",{width:25,src:wC,style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"12px",padding:3}})},error:{color:"#f44336",icon:h.jsx(vC,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:h.jsx(yC,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:h.jsx("img",{src:bC,width:25,style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},a=i[t]||i.info;return h.jsx(ga.SnackbarContent,{ref:n,children:h.jsxs(N.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${a.color}`},children:[h.jsx(N.Box,{sx:{mr:1.5},children:a.icon}),h.jsx(N.Typography,{variant:"body2",sx:{flexGrow:1},children:r}),h.jsx(N.IconButton,{size:"small",onClick:()=>o(e),children:h.jsx(tc,{fontSize:"small"})})]})})}),_C=({userId:e,leads30Days:r,leads90Days:t,disId:n,masNombreBD:o})=>{const[i,a]=x.useState(new Date),[s,c]=x.useState([]),[l,u]=x.useState(!1),[d,f]=x.useState(null),[m,g]=x.useState(!1),[p,y]=x.useState(null),[S,C]=x.useState([]),{enqueueSnackbar:k}=ga.useSnackbar(),E=Ps(),[_,O]=x.useState(!1),[R,q]=x.useState([]),[Z,j]=x.useState(null),K=(ee,G)=>{q(ee),j(G),O(!0)},v=x.useRef(null);x.useEffect(()=>{const ee=async()=>{try{if(e){const G=await E.getEventsByUser(e);c(G)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}finally{console.log("Eventos han sido cargados")}};return ee(),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{console.log("Iniciando recarga programada de eventos (2 segundos después del inicio)..."),ee()},4e3),()=>{v.current&&clearTimeout(v.current)}},[i,e]),x.useEffect(()=>{const ee=new Date,G=w.startOfDay(ee),se=w.endOfDay(w.addDays(G,6)),le={start:G,end:se},me=s.filter(ue=>{const Te={start:ue.fechaInicio,end:ue.fechaFin};return nd(Te,le)}).sort((ue,Te)=>ue.fechaInicio.getTime()-Te.fechaInicio.getTime());C(me)},[s]);const A=async ee=>{try{const G=await E.getEventById(ee.eventoID);f(G),u(!0)}catch(G){console.error(G)}},P=()=>{u(!1),f(null)},H=async(ee,G)=>{let se,le;ee.todoElDia?(se=new Date(`${ee.fechaInicio}T${ee.horaInicio}`),le=new Date(`${ee.fechaInicio}T${ee.horaFin}`)):(se=new Date(`${ee.fechaInicio}T${ee.horaInicio}`),le=ee.fechaFin&&ee.horaInicio2?new Date(`${ee.fechaFin}T${ee.horaInicio2}`):new Date(`${ee.fechaInicio}T${ee.horaInicio2}`));const me=w.format(se,"yyyy-MM-dd HH:mm:ss.SSS"),ue=w.format(le,"yyyy-MM-dd HH:mm:ss.SSS");if(G){const B={...ee,eventoID:G,fechaInicio:me,fechaFin:ue,solID:ee.solID??null,disID:n??null,client:ee.client};try{const Ve=await E.updateEvent(B);var Te=s.map(Qe=>Qe.eventoID===Ve.eventoID?Ve:Qe);c(Te),k("El evento se ha actualizado correctamente.",{variant:"success"}),P()}catch{k("Error al eliactualizar Evento",{variant:"error"})}}else{const B={...ee,fechaInicio:me,fechaFin:ue,todoElDia:ee.todoElDia,solID:ee.solID??null,disID:n??null,client:ee.client};try{const Ve=await E.createEvent(B,e);c(Qe=>[...Qe,Ve]),k("El evento se ha creado con éxito",{variant:"success"}),P()}catch{k("Error al guardar Evento",{variant:"error"})}}if(e){const B=await E.getEventsByUser(e);c(B)}},W=()=>{a(ee=>new Date(ee.getFullYear(),ee.getMonth()-1,1))},J=()=>{a(ee=>new Date(ee.getFullYear(),ee.getMonth()+1,1))},V=()=>{g(!0)},Q=()=>{y(new Date),u(!0)},L=()=>alert("Sincronizar con Google Calendar"),U=()=>alert("Sincronizar con Outlook Calendar"),ce=ee=>{ee&&a(ee)},ge=ee=>{y(ee),u(!0),f(null)},he=async()=>{if(d)try{await E.deleteEvent(d.eventoID),c(s.filter(ee=>ee.eventoID!==d.eventoID)),k("El evento se ha eliminado de tu calendario",{content:(ee,G)=>h.jsx(Cp,{id:ee,message:String(G),variant:"delete"})})}catch{k("Error al eliminar Evento",{variant:"error"})}finally{P(),g(!1)}};return h.jsxs("div",{id:"Agenda",style:{height:"100%",width:"100%"},children:[h.jsx(R0,{header:h.jsx(eb,{currentDate:i,onPrevMonth:W,onNextMonth:J,onAddEvent:Q,onDateChange:ce}),sidebar:h.jsx($b,{onEventClick:A,upcomingEvents:S,onSyncGoogle:L,onSyncOutlook:U,leads30Days:r,leads90Days:t}),mainContent:h.jsx(Hb,{onSeeMoreClick:K,currentDate:i,events:s,onDayClick:ge,onEventClick:A})}),h.jsx(dC,{isVisible:l,onClose:P,onSave:H,onDelete:V,selectedDate:p,initialEvent:d,userId:e,masNombreBD:o,disId:n}),h.jsx(hC,{isOpen:m,onClose:()=>g(!1),onConfirm:he,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),h.jsx(gC,{isOpen:_,onClose:()=>O(!1),events:R,date:Z,onEventClick:A})]})},xC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20fill='%23070c10'%20d='M18.575%203.172A10.829%2010.829%200%200%200%201.564%2016.284l-.028-.051L0%2021.843l5.739-1.506a10.7%2010.7%200%200%200%205.173%201.318%2010.83%2010.83%200%200%200%207.663-18.483m-7.658%2016.655a8.94%208.94%200%200%201-4.62-1.277l.041.023-.329-.194-3.405.894.908-3.321-.214-.34a8.9%208.9%200%200%201-1.376-4.782%209%209%200%201%201%209%209Zm4.935-6.736c-.27-.135-1.6-.789-1.848-.88s-.429-.135-.61.136-.7.879-.856%201.06-.316.2-.586.068a7.5%207.5%200%200%201-2.183-1.349l.007.007a8.2%208.2%200%200%201-1.483-1.842l-.02-.038c-.157-.27-.017-.417.118-.551s.271-.316.406-.473a1.9%201.9%200%200%200%20.267-.44v-.012a.5.5%200%200%200%20.05-.216.5.5%200%200%200-.074-.26c-.068-.135-.609-1.467-.834-2.009s-.444-.455-.609-.464-.338-.009-.519-.009a.99.99%200%200%200-.72.337%203.03%203.03%200%200%200-.947%202.2v.058a5.27%205.27%200%200%200%201.114%202.815v-.011a12.16%2012.16%200%200%200%204.553%204.053l.068.031a14%2014%200%200%200%201.434.539l.109.03a3.6%203.6%200%200%200%201.077.161%203.7%203.7%200%200%200%20.648-.057h-.023a2.8%202.8%200%200%200%201.819-1.274l.007-.012a2.2%202.2%200%200%200%20.19-.9%202.3%202.3%200%200%200-.034-.395v.014c-.067-.113-.248-.18-.519-.316Z'/%3e%3c/svg%3e",SC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25.085'%20height='18.5'%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='none'%20d='M0%200h25.085v18.5H0z'%20data-name='Rectángulo%204598'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23a)'%20data-name='Grupo%207946'%3e%3cpath%20d='M23.12%205.809V3.226a3.2%203.2%200%200%200-.068-.656l-3.141%202.21a7.8%207.8%200%200%201%203.209%201.032'%20data-name='Trazado%2013329'/%3e%3cpath%20d='M11.847%209.791c-.1.009-.2.023-.308.023a3.78%203.78%200%200%201-2.18-.688L.067%202.58A3.2%203.2%200%200%200%200%203.227V13.98a3.23%203.23%200%200%200%203.226%203.226h9.611a7.86%207.86%200%200%201-.99-7.414'%20data-name='Trazado%2013330'/%3e%3cpath%20d='M12.478%207.369%2021.92.737A3.2%203.2%200%200%200%2019.894%200H3.226a3.2%203.2%200%200%200-2.031.74l9.4%206.628a1.64%201.64%200%200%200%201.881%200'%20data-name='Trazado%2013331'/%3e%3cpath%20d='M23.356%208.407a5.914%205.914%200%201%200%200%208.364%205.92%205.92%200%200%200%200-8.364m-1.833%204.842a.54.54%200%200%201-1.081%200v-1.164l-2.513%202.516a.54.54%200%200%201-.765-.763l2.515-2.515h-1.167a.54.54%200%201%201%200-1.081h2.471a.54.54%200%200%201%20.54.54Z'%20data-name='Trazado%2013332'/%3e%3c/g%3e%3c/svg%3e";function nc(e,r,t){return e.accessor?e.accessor(r,t):e.field?r?.[e.field]:r?.[e?.key||""]}function CC(e,r){const t=e??"",n=r??"";return t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():typeof t=="number"&&typeof n=="number"?t-n:typeof t=="boolean"&&typeof n=="boolean"?Number(t)-Number(n):String(t).localeCompare(String(n),void 0,{numeric:!0,sensitivity:"base"})}function oc(e,r,t=!0){return typeof e=="function"?e(r):e??t}function EC(e){return e.replace(/[^\d]/g,"")}function kC(e,r){return r}const Ep=qt(h.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFileOutlined"),DC=qt(h.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),TC=qt(h.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),OC=Et("MuiBox",["root"]),MC=ru(),ic=xg({themeId:Ga,defaultTheme:MC,defaultClassName:OC.root,generateClassName:Pc.generate});process.env.NODE_ENV!=="production"&&(ic.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function kp(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function ac(e,r){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ac(e,r)}function Dp(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,ac(e,r)}const Tp={disabled:!1};var PC=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const ua=x.createContext(null);var AC=function(r){return r.scrollTop},Eo="unmounted",rn="exited",nn="entering",In="entered",sc="exiting",Cr=(function(e){Dp(r,e);function r(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=rn,i.appearStatus=nn):c=In:n.unmountOnExit||n.mountOnEnter?c=Eo:c=rn,i.state={status:c},i.nextCallback=null,i}r.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Eo?{status:rn}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==nn&&a!==In&&(i=nn):(a===nn||a===In)&&(i=sc)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},t.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this);a&&AC(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:Eo})},t.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[ln.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Tp.disabled){this.safeSetState({status:In},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:nn},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(l,u)})})})},t.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:ln.findDOMNode(this);if(!i||Tp.disabled){this.safeSetState({status:rn},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:sc},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rn},function(){o.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},t.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===Eo)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=kp(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(ua.Provider,{value:null},typeof a=="function"?a(o,s):x.cloneElement(x.Children.only(a),s))},r})(x.Component);Cr.contextType=ua,Cr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,r,t,n,o,i){var a=e[r];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,r,t,n,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(r){var t=PC;r.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[r].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function Rn(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rn,onEntering:Rn,onEntered:Rn,onExit:Rn,onExiting:Rn,onExited:Rn},Cr.UNMOUNTED=Eo,Cr.EXITED=rn,Cr.ENTERING=nn,Cr.ENTERED=In,Cr.EXITING=sc;function IC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(e,r){var t=function(i){return r&&x.isValidElement(i)?r(i):i},n=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=t(o)}),n}function RC(e,r){e=e||{},r=r||{};function t(u){return u in r?r[u]:e[u]}var n=Object.create(null),o=[];for(var i in e)i in r?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var c in r){if(n[c])for(a=0;a<n[c].length;a++){var l=n[c][a];s[n[c][a]]=t(l)}s[c]=t(c)}for(a=0;a<o.length;a++)s[o[a]]=t(o[a]);return s}function on(e,r,t){return t[r]!=null?t[r]:e.props[r]}function NC(e,r){return cc(e.children,function(t){return x.cloneElement(t,{onExited:r.bind(null,t),in:!0,appear:on(t,"appear",e),enter:on(t,"enter",e),exit:on(t,"exit",e)})})}function $C(e,r,t){var n=cc(e.children),o=RC(r,n);return Object.keys(o).forEach(function(i){var a=o[i];if(x.isValidElement(a)){var s=i in r,c=i in n,l=r[i],u=x.isValidElement(l)&&!l.props.in;c&&(!s||u)?o[i]=x.cloneElement(a,{onExited:t.bind(null,a),in:!0,exit:on(a,"exit",e),enter:on(a,"enter",e)}):!c&&s&&!u?o[i]=x.cloneElement(a,{in:!1}):c&&s&&x.isValidElement(l)&&(o[i]=x.cloneElement(a,{onExited:t.bind(null,a),in:l.props.in,exit:on(a,"exit",e),enter:on(a,"enter",e)}))}}),o}var jC=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},LC={component:"div",childFactory:function(r){return r}},lc=(function(e){Dp(r,e);function r(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(IC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var t=r.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?NC(o,s):$C(o,a,s),firstRender:!1}},t.handleExited=function(o,i){var a=cc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=Uo({},s.children);return delete c[o.key],{children:c}}))},t.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=kp(o,["component","childFactory"]),c=this.state.contextValue,l=jC(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?x.createElement(ua.Provider,{value:c},l):x.createElement(ua.Provider,{value:c},x.createElement(i,s,l))},r})(x.Component);lc.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{},lc.defaultProps=LC;const Op={};function Mp(e,r){const t=$.useRef(Op);return t.current===Op&&(t.current=e(r)),t}const zC=[];function BC(e){$.useEffect(e,zC)}class uc{static create(){return new uc}currentId=null;start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},r)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Pp(){const e=Mp(uc.create).current;return BC(e.disposeEffect),e}function da(e,r){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||r(...n)}}function VC(e){const{prototype:r={}}=e;return!!r.isReactComponent}function FC(e,r,t,n,o){const i=e[r],a=o||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!VC(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ap=da(b.elementType,FC);function Ip(e,r){const{timeout:t,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof t=="number"?t:t[r.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[r.mode]:n),delay:o.transitionDelay}}function YC(e){return Ct("MuiCollapse",e)}Et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const UC=e=>{const{orientation:r,classes:t}=e,n={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return Lt(n,YC,t)},HC=ut("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.orientation],t.state==="entered"&&r.entered,t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&r.hidden]}})(cr(({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:r})=>r.state==="exited"&&!r.in&&r.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),WC=ut("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ZC=ut("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:y,orientation:S="vertical",style:C,timeout:k=Kl.standard,TransitionComponent:E=Cr,..._}=n,O={...n,orientation:S,collapsedSize:s},R=UC(O),q=ou(),Z=Pp(),j=$.useRef(null),K=$.useRef(),v=typeof s=="number"?`${s}px`:s,A=S==="horizontal",P=A?"width":"height",H=$.useRef(null),W=Qa(t,H),J=G=>se=>{if(G){const le=H.current;se===void 0?G(le):G(le,se)}},V=()=>j.current?j.current[A?"clientWidth":"clientHeight"]:0,Q=J((G,se)=>{j.current&&A&&(j.current.style.position="absolute"),G.style[P]=v,d&&d(G,se)}),L=J((G,se)=>{const le=V();j.current&&A&&(j.current.style.position="");const{duration:me,easing:ue}=Ip({style:C,timeout:k,easing:l},{mode:"enter"});if(k==="auto"){const Te=q.transitions.getAutoHeightDuration(le);G.style.transitionDuration=`${Te}ms`,K.current=Te}else G.style.transitionDuration=typeof me=="string"?me:`${me}ms`;G.style[P]=`${le}px`,G.style.transitionTimingFunction=ue,m&&m(G,se)}),U=J((G,se)=>{G.style[P]="auto",f&&f(G,se)}),ce=J(G=>{G.style[P]=`${V()}px`,g&&g(G)}),ge=J(p),he=J(G=>{const se=V(),{duration:le,easing:me}=Ip({style:C,timeout:k,easing:l},{mode:"exit"});if(k==="auto"){const ue=q.transitions.getAutoHeightDuration(se);G.style.transitionDuration=`${ue}ms`,K.current=ue}else G.style.transitionDuration=typeof le=="string"?le:`${le}ms`;G.style[P]=v,G.style.transitionTimingFunction=me,y&&y(G)}),ee=G=>{k==="auto"&&Z.start(K.current||0,G),o&&o(H.current,G)};return h.jsx(E,{in:u,onEnter:Q,onEntered:U,onEntering:L,onExit:ce,onExited:ge,onExiting:he,addEndListener:ee,nodeRef:H,timeout:k==="auto"?null:k,..._,children:(G,{ownerState:se,...le})=>h.jsx(HC,{as:c,className:be(R.root,a,{entered:R.entered,exited:!u&&v==="0px"&&R.hidden}[G]),style:{[A?"minWidth":"minHeight"]:v,...C},ref:W,ownerState:{...O,state:G},...le,children:h.jsx(WC,{ownerState:{...O,state:G},className:R.wrapper,ref:j,children:h.jsx(ZC,{ownerState:{...O,state:G},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(fa.propTypes={addEndListener:b.func,children:b.node,classes:b.object,className:b.string,collapsedSize:b.oneOfType([b.number,b.string]),component:Ap,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,orientation:b.oneOf(["horizontal","vertical"]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])}),fa&&(fa.muiSupportAuto=!0);function qC(e){return typeof e.main=="string"}function KC(e,r=[]){if(!qC(e))return!1;for(const t of r)if(!e.hasOwnProperty(t)||typeof e[t]!="string")return!1;return!0}function dc(e=[]){return([,r])=>r&&KC(r,e)}const GC=b.oneOfType([b.func,b.object]);function Rp(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
189
- `))}return!1}class pa{static create(){return new pa}static use(){const r=Mp(pa.create).current,[t,n]=$.useState(!1);return r.shouldMount=t,r.setShouldMount=n,$.useEffect(r.mountEffect,[t]),r}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=XC(),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(...r){this.mount().then(()=>this.ref.current?.start(...r))}stop(...r){this.mount().then(()=>this.ref.current?.stop(...r))}pulsate(...r){this.mount().then(()=>this.ref.current?.pulsate(...r))}}function QC(){return pa.use()}function XC(){let e,r;const t=new Promise((n,o)=>{e=n,r=o});return t.resolve=e,t.reject=r,t}function Np(e){const{className:r,classes:t,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:l}=e,[u,d]=$.useState(!1),f=be(r,t.ripple,t.rippleVisible,n&&t.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=be(t.child,u&&t.childLeaving,n&&t.childPulsate);return!s&&!u&&d(!0),$.useEffect(()=>{if(!s&&c!=null){const p=setTimeout(c,l);return()=>{clearTimeout(p)}}},[c,s,l]),h.jsx("span",{className:f,style:m,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Np.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Ht=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fc=550,JC=80,eE=Kn`
188
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");const C=m.compile();return(k,E)=>C(f,k,E)};let i;const a=Ji,s=!Pf.jitless,l=s&&F2.value,u=r.catchall;let d;e._zod.parse=(f,m)=>{d??(d=n.value);const g=f.value;return a(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=o(r.shape)),f=i(f,m),u?Kf([],g,f,m,d,e):f):t(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function Gf(e,r,t,n){for(const i of e)if(i.issues.length===0)return r.value=i.value,r;const o=e.filter(i=>!An(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>tn(a,n,en())))}),r)}const A_=Y("$ZodUnion",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),Ye(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){const o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>qs(i.source)).join("|")})$`)}});const t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=!1;const s=[];for(const c of r.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)s.push(l),a=!0;else{if(l.issues.length===0)return l;s.push(l)}}return a?Promise.all(s).then(c=>Gf(c,o,e,i)):Gf(s,o,e,i)}}),I_=Y("$ZodIntersection",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{const o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Qf(t,c,l)):Qf(t,i,a)}});function Xs(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(So(e)&&So(r)){const t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(const i of n){const a=Xs(e[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<e.length;n++){const o=e[n],i=r[n],a=Xs(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function Qf(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),An(e))return e;const n=Xs(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const R_=Y("$ZodEnum",(e,r)=>{et.init(e,r);const t=z2(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>Y2.has(typeof o)).map(o=>typeof o=="string"?Pn(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o}}),N_=Y("$ZodLiteral",(e,r)=>{if(et.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(t=>typeof t=="string"?Pn(t):t?Pn(t.toString()):String(t)).join("|")})$`),e._zod.parse=(t,n)=>{const o=t.value;return e._zod.values.has(o)||t.issues.push({code:"invalid_value",values:r.values,input:o,inst:e}),t}}),$_=Y("$ZodTransform",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Mf(e.constructor.name);const o=r.transform(t.value,t);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new On;return t.value=o,t}});function Xf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const j_=Y("$ZodOptional",(e,r)=>{et.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{const t=r.innerType._zod.pattern;return t?new RegExp(`^(${qs(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Xf(i,t.value)):Xf(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)}}),L_=Y("$ZodNullable",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),Ye(e._zod,"pattern",()=>{const t=r.innerType._zod.pattern;return t?new RegExp(`^(${qs(t.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n)}),z_=Y("$ZodDefault",(e,r)=>{et.init(e,r),e._zod.optin="optional",Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Jf(i,r)):Jf(o,r)}});function Jf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const B_=Y("$ZodPrefault",(e,r)=>{et.init(e,r),e._zod.optin="optional",Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n))}),V_=Y("$ZodNonOptional",(e,r)=>{et.init(e,r),Ye(e._zod,"values",()=>{const t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>ep(i,e)):ep(o,e)}});function ep(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const F_=Y("$ZodCatch",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>tn(a,n,en()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>tn(i,n,en()))},input:t.value}),t.issues=[]),t)}}),Y_=Y("$ZodPipe",(e,r)=>{et.init(e,r),Ye(e._zod,"values",()=>r.in._zod.values),Ye(e._zod,"optin",()=>r.in._zod.optin),Ye(e._zod,"optout",()=>r.out._zod.optout),Ye(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){const i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>ca(a,r.in,n)):ca(i,r.in,n)}const o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>ca(i,r.out,n)):ca(o,r.out,n)}});function ca(e,r,t){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},t)}const U_=Y("$ZodReadonly",(e,r)=>{et.init(e,r),Ye(e._zod,"propValues",()=>r.innerType._zod.propValues),Ye(e._zod,"values",()=>r.innerType._zod.values),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(tp):tp(o)}});function tp(e){return e.value=Object.freeze(e.value),e}const H_=Y("$ZodCustom",(e,r)=>{Ot.init(e,r),et.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{const n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>rp(i,t,n,e));rp(o,t,n,e)}});function rp(e,r,t,n){if(!e){const o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(Co(o))}}class W_{constructor(){this._map=new Map,this._idmap=new Map}add(r,...t){const n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){const t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){const t=r._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function Z_(){return new W_}const la=Z_();function q_(e,r){return new e({type:"string",...me(r)})}function K_(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...me(r)})}function np(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...me(r)})}function G_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...me(r)})}function Q_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...me(r)})}function X_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...me(r)})}function J_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...me(r)})}function ex(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...me(r)})}function tx(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...me(r)})}function rx(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...me(r)})}function nx(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...me(r)})}function ox(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...me(r)})}function ix(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...me(r)})}function ax(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...me(r)})}function sx(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...me(r)})}function cx(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...me(r)})}function lx(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...me(r)})}function ux(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...me(r)})}function dx(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...me(r)})}function fx(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...me(r)})}function px(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...me(r)})}function hx(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...me(r)})}function mx(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...me(r)})}function gx(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...me(r)})}function vx(e,r){return new e({type:"string",format:"date",check:"string_format",...me(r)})}function yx(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...me(r)})}function bx(e,r){return new e({type:"string",format:"duration",check:"string_format",...me(r)})}function wx(e,r){return new e({type:"number",checks:[],...me(r)})}function _x(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...me(r)})}function xx(e,r){return new e({type:"boolean",...me(r)})}function Sx(e){return new e({type:"unknown"})}function Cx(e,r){return new e({type:"never",...me(r)})}function op(e,r){return new Yf({check:"less_than",...me(r),value:e,inclusive:!1})}function Js(e,r){return new Yf({check:"less_than",...me(r),value:e,inclusive:!0})}function ip(e,r){return new Uf({check:"greater_than",...me(r),value:e,inclusive:!1})}function ec(e,r){return new Uf({check:"greater_than",...me(r),value:e,inclusive:!0})}function ap(e,r){return new Bw({check:"multiple_of",...me(r),value:e})}function sp(e,r){return new Fw({check:"max_length",...me(r),maximum:e})}function ua(e,r){return new Yw({check:"min_length",...me(r),minimum:e})}function cp(e,r){return new Uw({check:"length_equals",...me(r),length:e})}function Ex(e,r){return new Hw({check:"string_format",format:"regex",...me(r),pattern:e})}function kx(e){return new Ww({check:"string_format",format:"lowercase",...me(e)})}function Dx(e){return new Zw({check:"string_format",format:"uppercase",...me(e)})}function Tx(e,r){return new qw({check:"string_format",format:"includes",...me(r),includes:e})}function Ox(e,r){return new Kw({check:"string_format",format:"starts_with",...me(r),prefix:e})}function Mx(e,r){return new Gw({check:"string_format",format:"ends_with",...me(r),suffix:e})}function Eo(e){return new Qw({check:"overwrite",tx:e})}function Px(e){return Eo(r=>r.normalize(e))}function Ax(){return Eo(e=>e.trim())}function Ix(){return Eo(e=>e.toLowerCase())}function Rx(){return Eo(e=>e.toUpperCase())}function Nx(e,r,t){return new e({type:"array",element:r,...me(t)})}function $x(e,r,t){return new e({type:"custom",check:"custom",fn:r,...me(t)})}function jx(e){const r=Lx(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(Co(n,t.value,r._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(Co(o))}},e(t.value,t)));return r}function Lx(e,r){const t=new Ot({check:"custom",...me(r)});return t._zod.check=e,t}function lp(e,r){try{var t=e()}catch(n){return r(n)}return t&&t.then?t.then(void 0,r):t}function zx(e,r){for(var t={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!t[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),r){var c=t[a].types,l=c&&c[n.code];t[a]=Bs(a,r,t,o,l?[].concat(l,n.message):n.message)}e.shift()}return t}function Bx(e,r){for(var t={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!t[a])if(n.code==="invalid_union"&&n.errors.length>0){var s=n.errors[0][0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),r){var c=t[a].types,l=c&&c[n.code];t[a]=Bs(a,r,t,o,l?[].concat(l,n.message):n.message)}e.shift()}return t}function Vx(e,r,t){if(t===void 0&&(t={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(lp(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](n,r)).then(function(a){return i.shouldUseNativeValidation&&Us({},i),{errors:{},values:t.raw?Object.assign({},n):a}})},function(a){if((function(s){return Array.isArray(s?.issues)})(a))return{values:{},errors:Tf(zx(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(lp(function(){return Promise.resolve((t.mode==="sync"?tw:rw)(e,n,r)).then(function(a){return i.shouldUseNativeValidation&&Us({},i),{errors:{},values:t.raw?Object.assign({},n):a}})},function(a){if((function(s){return s instanceof Gs})(a))return{values:{},errors:Tf(Bx(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Fx=Y("ZodISODateTime",(e,r)=>{d_.init(e,r),Ge.init(e,r)});function Yx(e){return gx(Fx,e)}const Ux=Y("ZodISODate",(e,r)=>{f_.init(e,r),Ge.init(e,r)});function Hx(e){return vx(Ux,e)}const Wx=Y("ZodISOTime",(e,r)=>{p_.init(e,r),Ge.init(e,r)});function Zx(e){return yx(Wx,e)}const qx=Y("ZodISODuration",(e,r)=>{h_.init(e,r),Ge.init(e,r)});function Kx(e){return bx(qx,e)}const Ut=Y("ZodError",(e,r)=>{Gs.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ew(e,t)},flatten:{value:t=>J2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Hs,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Hs,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Gx=ra(Ut),Qx=na(Ut),Xx=oa(Ut),Jx=ia(Ut),eS=iw(Ut),tS=aw(Ut),rS=sw(Ut),nS=cw(Ut),oS=lw(Ut),iS=uw(Ut),aS=dw(Ut),sS=fw(Ut),it=Y("ZodType",(e,r)=>(et.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone({...r,checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(t,n)=>jr(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Gx(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Xx(e,t,n),e.parseAsync=async(t,n)=>Qx(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Jx(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eS(e,t,n),e.decode=(t,n)=>tS(e,t,n),e.encodeAsync=async(t,n)=>rS(e,t,n),e.decodeAsync=async(t,n)=>nS(e,t,n),e.safeEncode=(t,n)=>oS(e,t,n),e.safeDecode=(t,n)=>iS(e,t,n),e.safeEncodeAsync=async(t,n)=>aS(e,t,n),e.safeDecodeAsync=async(t,n)=>sS(e,t,n),e.refine=(t,n)=>e.check(rC(t,n)),e.superRefine=t=>e.check(nC(t)),e.overwrite=t=>e.check(Eo(t)),e.optional=()=>vp(e),e.nullable=()=>yp(e),e.nullish=()=>vp(yp(e)),e.nonoptional=t=>KS(e,t),e.array=()=>AS(e),e.or=t=>$S([e,t]),e.and=t=>LS(e,t),e.transform=t=>wp(e,YS(t)),e.default=t=>WS(e,t),e.prefault=t=>qS(e,t),e.catch=t=>QS(e,t),e.pipe=t=>wp(e,t),e.readonly=()=>eC(e),e.describe=t=>{const n=e.clone();return la.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return la.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return la.get(e);const n=e.clone();return la.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),up=Y("_ZodString",(e,r)=>{Qs.init(e,r),it.init(e,r);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Ex(...n)),e.includes=(...n)=>e.check(Tx(...n)),e.startsWith=(...n)=>e.check(Ox(...n)),e.endsWith=(...n)=>e.check(Mx(...n)),e.min=(...n)=>e.check(ua(...n)),e.max=(...n)=>e.check(sp(...n)),e.length=(...n)=>e.check(cp(...n)),e.nonempty=(...n)=>e.check(ua(1,...n)),e.lowercase=n=>e.check(kx(n)),e.uppercase=n=>e.check(Dx(n)),e.trim=()=>e.check(Ax()),e.normalize=(...n)=>e.check(Px(...n)),e.toLowerCase=()=>e.check(Ix()),e.toUpperCase=()=>e.check(Rx())}),cS=Y("ZodString",(e,r)=>{Qs.init(e,r),up.init(e,r),e.email=t=>e.check(K_(lS,t)),e.url=t=>e.check(ex(uS,t)),e.jwt=t=>e.check(mx(ES,t)),e.emoji=t=>e.check(tx(dS,t)),e.guid=t=>e.check(np(dp,t)),e.uuid=t=>e.check(G_(da,t)),e.uuidv4=t=>e.check(Q_(da,t)),e.uuidv6=t=>e.check(X_(da,t)),e.uuidv7=t=>e.check(J_(da,t)),e.nanoid=t=>e.check(rx(fS,t)),e.guid=t=>e.check(np(dp,t)),e.cuid=t=>e.check(nx(pS,t)),e.cuid2=t=>e.check(ox(hS,t)),e.ulid=t=>e.check(ix(mS,t)),e.base64=t=>e.check(fx(xS,t)),e.base64url=t=>e.check(px(SS,t)),e.xid=t=>e.check(ax(gS,t)),e.ksuid=t=>e.check(sx(vS,t)),e.ipv4=t=>e.check(cx(yS,t)),e.ipv6=t=>e.check(lx(bS,t)),e.cidrv4=t=>e.check(ux(wS,t)),e.cidrv6=t=>e.check(dx(_S,t)),e.e164=t=>e.check(hx(CS,t)),e.datetime=t=>e.check(Yx(t)),e.date=t=>e.check(Hx(t)),e.time=t=>e.check(Zx(t)),e.duration=t=>e.check(Kx(t))});function rr(e){return q_(cS,e)}const Ge=Y("ZodStringFormat",(e,r)=>{Ze.init(e,r),up.init(e,r)}),lS=Y("ZodEmail",(e,r)=>{r_.init(e,r),Ge.init(e,r)}),dp=Y("ZodGUID",(e,r)=>{e_.init(e,r),Ge.init(e,r)}),da=Y("ZodUUID",(e,r)=>{t_.init(e,r),Ge.init(e,r)}),uS=Y("ZodURL",(e,r)=>{n_.init(e,r),Ge.init(e,r)}),dS=Y("ZodEmoji",(e,r)=>{o_.init(e,r),Ge.init(e,r)}),fS=Y("ZodNanoID",(e,r)=>{i_.init(e,r),Ge.init(e,r)}),pS=Y("ZodCUID",(e,r)=>{a_.init(e,r),Ge.init(e,r)}),hS=Y("ZodCUID2",(e,r)=>{s_.init(e,r),Ge.init(e,r)}),mS=Y("ZodULID",(e,r)=>{c_.init(e,r),Ge.init(e,r)}),gS=Y("ZodXID",(e,r)=>{l_.init(e,r),Ge.init(e,r)}),vS=Y("ZodKSUID",(e,r)=>{u_.init(e,r),Ge.init(e,r)}),yS=Y("ZodIPv4",(e,r)=>{m_.init(e,r),Ge.init(e,r)}),bS=Y("ZodIPv6",(e,r)=>{g_.init(e,r),Ge.init(e,r)}),wS=Y("ZodCIDRv4",(e,r)=>{v_.init(e,r),Ge.init(e,r)}),_S=Y("ZodCIDRv6",(e,r)=>{y_.init(e,r),Ge.init(e,r)}),xS=Y("ZodBase64",(e,r)=>{b_.init(e,r),Ge.init(e,r)}),SS=Y("ZodBase64URL",(e,r)=>{__.init(e,r),Ge.init(e,r)}),CS=Y("ZodE164",(e,r)=>{x_.init(e,r),Ge.init(e,r)}),ES=Y("ZodJWT",(e,r)=>{C_.init(e,r),Ge.init(e,r)}),fp=Y("ZodNumber",(e,r)=>{Wf.init(e,r),it.init(e,r),e.gt=(n,o)=>e.check(ip(n,o)),e.gte=(n,o)=>e.check(ec(n,o)),e.min=(n,o)=>e.check(ec(n,o)),e.lt=(n,o)=>e.check(op(n,o)),e.lte=(n,o)=>e.check(Js(n,o)),e.max=(n,o)=>e.check(Js(n,o)),e.int=n=>e.check(hp(n)),e.safe=n=>e.check(hp(n)),e.positive=n=>e.check(ip(0,n)),e.nonnegative=n=>e.check(ec(0,n)),e.negative=n=>e.check(op(0,n)),e.nonpositive=n=>e.check(Js(0,n)),e.multipleOf=(n,o)=>e.check(ap(n,o)),e.step=(n,o)=>e.check(ap(n,o)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function pp(e){return wx(fp,e)}const kS=Y("ZodNumberFormat",(e,r)=>{E_.init(e,r),fp.init(e,r)});function hp(e){return _x(kS,e)}const DS=Y("ZodBoolean",(e,r)=>{k_.init(e,r),it.init(e,r)});function tc(e){return xx(DS,e)}const TS=Y("ZodUnknown",(e,r)=>{D_.init(e,r),it.init(e,r)});function mp(){return Sx(TS)}const OS=Y("ZodNever",(e,r)=>{T_.init(e,r),it.init(e,r)});function MS(e){return Cx(OS,e)}const PS=Y("ZodArray",(e,r)=>{O_.init(e,r),it.init(e,r),e.element=r.element,e.min=(t,n)=>e.check(ua(t,n)),e.nonempty=t=>e.check(ua(1,t)),e.max=(t,n)=>e.check(sp(t,n)),e.length=(t,n)=>e.check(cp(t,n)),e.unwrap=()=>e.element});function AS(e,r){return Nx(PS,e,r)}const IS=Y("ZodObject",(e,r)=>{P_.init(e,r),it.init(e,r),Ye(e,"shape",()=>r.shape),e.keyof=()=>zS(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:mp()}),e.loose=()=>e.clone({...e._zod.def,catchall:mp()}),e.strict=()=>e.clone({...e._zod.def,catchall:MS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>q2(e,t),e.safeExtend=t=>K2(e,t),e.merge=t=>G2(e,t),e.pick=t=>W2(e,t),e.omit=t=>Z2(e,t),e.partial=(...t)=>Q2(gp,e,t[0]),e.required=(...t)=>X2(bp,e,t[0])});function RS(e,r){const t={type:"object",get shape(){return $r(this,"shape",e?V2(e):{}),this.shape},...me(r)};return new IS(t)}const NS=Y("ZodUnion",(e,r)=>{A_.init(e,r),it.init(e,r),e.options=r.options});function $S(e,r){return new NS({type:"union",options:e,...me(r)})}const jS=Y("ZodIntersection",(e,r)=>{I_.init(e,r),it.init(e,r)});function LS(e,r){return new jS({type:"intersection",left:e,right:r})}const rc=Y("ZodEnum",(e,r)=>{R_.init(e,r),it.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{const i={};for(const a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new rc({...r,checks:[],...me(o),entries:i})},e.exclude=(n,o)=>{const i={...r.entries};for(const a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new rc({...r,checks:[],...me(o),entries:i})}});function zS(e,r){const t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new rc({type:"enum",entries:t,...me(r)})}const BS=Y("ZodLiteral",(e,r)=>{N_.init(e,r),it.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function VS(e,r){return new BS({type:"literal",values:Array.isArray(e)?e:[e],...me(r)})}const FS=Y("ZodTransform",(e,r)=>{$_.init(e,r),it.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Mf(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(Co(i,t.value,r));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(Co(a))}};const o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)}});function YS(e){return new FS({type:"transform",transform:e})}const gp=Y("ZodOptional",(e,r)=>{j_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function vp(e){return new gp({type:"optional",innerType:e})}const US=Y("ZodNullable",(e,r)=>{L_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function yp(e){return new US({type:"nullable",innerType:e})}const HS=Y("ZodDefault",(e,r)=>{z_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function WS(e,r){return new HS({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Nf(r)}})}const ZS=Y("ZodPrefault",(e,r)=>{B_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qS(e,r){return new ZS({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Nf(r)}})}const bp=Y("ZodNonOptional",(e,r)=>{V_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function KS(e,r){return new bp({type:"nonoptional",innerType:e,...me(r)})}const GS=Y("ZodCatch",(e,r)=>{F_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function QS(e,r){return new GS({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const XS=Y("ZodPipe",(e,r)=>{Y_.init(e,r),it.init(e,r),e.in=r.in,e.out=r.out});function wp(e,r){return new XS({type:"pipe",in:e,out:r})}const JS=Y("ZodReadonly",(e,r)=>{U_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function eC(e){return new JS({type:"readonly",innerType:e})}const tC=Y("ZodCustom",(e,r)=>{H_.init(e,r),it.init(e,r)});function rC(e,r={}){return $x(tC,e,r)}function nC(e){return jx(e)}const _p=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,xp=(e,r)=>{if(!e||!r)return null;const t=e.split("-");if(t.length!==3)return null;const n=parseInt(t[0],10),o=parseInt(t[1],10)-1,i=parseInt(t[2],10),a=r.split(":");if(a.length!==2)return null;const s=parseInt(a[0],10),c=parseInt(a[1],10),l=new Date(n,o,i,s,c);return isNaN(l.getTime())||!w.isValid(l)?null:l},oC=RS({titulo:rr().min(1,"El campo Título es requerido."),fechaInicio:rr().min(1,"El campo fecha inicio es requerido."),horaInicio:rr().min(1,"La hora de inicio es requerida.").regex(_p,{message:"Formato inválido"}),horaFin:rr().min(1,"La hora fin es requerida.").regex(_p,{message:"Formato inválido"}),todoElDia:tc(),fechaFin:rr().optional(),showEndDate:tc().optional(),horaInicio2:rr().optional(),TodoElDia2:tc().optional(),client:rr().optional().nullable(),repetir:rr().optional(),link:rr().url("Debe ser una URL válida ejemplo https://www.google.com.").or(VS("")).optional(),descripcion:rr().optional(),color:rr().optional(),solID:pp().optional().nullable(),disID:pp().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}).refine(e=>{if(e.todoElDia||!e.fechaInicio||!e.horaInicio||!e.fechaFin||!e.horaInicio2)return!0;const r=xp(e.fechaInicio,e.horaInicio),t=xp(e.fechaFin,e.horaFin);return!r||!t||!w.isValid(r)||!w.isValid(t)?!0:!(w.isBefore(t,r)&&!w.isSameDay(t,r)||w.isSameDay(r,t)&&w.isBefore(t,r))},{message:"",path:["horaFin"]}),Sp=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("path",{fill:"#333",d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12"}),j.createElement("path",{fill:"#fff",d:"M16.703 7.275c.52.52.541 1.345.046 1.84l-2.874 2.874 2.874 2.873c.495.496.475 1.32-.046 1.841-.52.52-1.344.54-1.84.045l-2.873-2.873-2.874 2.873c-.496.496-1.32.475-1.84-.045-.521-.521-.541-1.345-.046-1.84l2.874-2.874L7.23 9.116c-.495-.496-.475-1.32.045-1.84.521-.521 1.345-.542 1.841-.046l2.874 2.873 2.873-2.873c.496-.496 1.32-.476 1.84.045"})),iC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M7.288%2022.986h-.147a6.2%206.2%200%200%201-4.28-1.85c-2.404-2.404-2.478-6.24-.16-8.557L4.28%2011a1.228%201.228%200%201%201%201.739%201.739L4.44%2014.317c-1.356%201.357-1.282%203.626.16%205.068a3.82%203.82%200%200%200%202.602%201.135c.95%200%201.825-.32%202.479-.974l1.578-1.579a1.23%201.23%200%200%201%201.739%200c.48.481.48%201.258%200%201.739l-1.579%201.578c-1.097%201.098-2.552%201.69-4.13%201.69zM17.98%2012.998a1.23%201.23%200%200%201%200-1.739l1.578-1.578c.654-.654.986-1.53.974-2.466a3.78%203.78%200%200%200-1.134-2.602c-1.443-1.443-3.712-1.517-5.068-.16L12.75%206.03c-.48.48-1.258.48-1.739%200a1.23%201.23%200%200%201%200-1.739l1.579-1.578c2.318-2.319%206.153-2.245%208.558.16a6.23%206.23%200%200%201%201.85%204.279%205.84%205.84%200%200%201-1.69%204.279l-1.578%201.578c-.481.481-1.258.481-1.74%200z'/%3e%3cpath%20d='M14.172%208.11%208.07%2014.214a1.233%201.233%200%200%200%201.743%201.744l6.104-6.104a1.233%201.233%200%201%200-1.744-1.744'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",aC=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("g",{clipPath:"url(#a)"},j.createElement("path",{fill:"#404756",d:"M21.24 5.72a2.98 2.98 0 0 0-2.97-2.96l-5.19-.06c-1.06-.03-2.12.41-2.87 1.17l-7.49 7.49c-.66.66-1.03 1.54-1.03 2.47s.36 1.81 1.03 2.47l4.97 4.97a3.5 3.5 0 0 0 2.47 1.02c.89 0 1.79-.34 2.47-1.02l7.49-7.49c.76-.76 1.18-1.81 1.17-2.88l-.06-5.19zm-4.2 4.43c-.44.44-1.02.66-1.6.66a2.256 2.256 0 1 1 0-4.51 2.256 2.256 0 0 1 1.6 3.85"})),j.createElement("defs",null,j.createElement("clipPath",{id:"a"},j.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),sC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M13.17%2013.68c2.06%200%204%20.8%205.46%202.27a7.7%207.7%200%200%201%202.26%205.47c0%20.79-.64%201.43-1.43%201.43l.01-.01H4.53c-.79%200-1.43-.64-1.43-1.43%200-4.27%203.46-7.73%207.72-7.73zM12%201.9c2.82%200%205.11%202.29%205.11%205.11s-2.29%205.11-5.11%205.11v-.01c-2.82%200-5.11-2.29-5.11-5.11S9.18%201.9%2012%201.9'/%3e%3c/svg%3e",cC=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("g",{fill:"#2571D6",clipPath:"url(#a)"},j.createElement("path",{d:"M13.085 7.331a1.096 1.096 0 1 0-2.192 0v9.316a1.096 1.096 0 0 0 2.192 0z"}),j.createElement("path",{d:"M16.647 10.893H7.33a1.096 1.096 0 1 0 0 2.192h9.316a1.096 1.096 0 0 0 0-2.192"}),j.createElement("path",{d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12m0-21.808c-5.414 0-9.808 4.394-9.808 9.808S6.586 21.808 12 21.808s9.808-4.394 9.808-9.808S17.403 2.192 12 2.192"})),j.createElement("defs",null,j.createElement("clipPath",{id:"a"},j.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),lC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.789%2017H3.21C2.542%2017%202%2017.56%202%2018.25s.542%201.25%201.211%201.25H13.79c.669%200%201.211-.56%201.211-1.25S14.458%2017%2013.789%2017M20.718%204H3.282C2.574%204%202%204.56%202%205.25S2.574%206.5%203.282%206.5h17.436C21.426%206.5%2022%205.94%2022%205.25S21.426%204%2020.718%204M20.718%2010.5H3.282C2.574%2010.5%202%2011.06%202%2011.75S2.574%2013%203.282%2013h17.436c.708%200%201.282-.56%201.282-1.25s-.574-1.25-1.282-1.25'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",uC=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("path",{fill:"#2571D6",fillRule:"evenodd",d:"M17.333 11a6.34 6.34 0 0 1 6.334 6.333 6.34 6.34 0 0 1-6.334 6.334c-3.493 0-6.333-2.846-6.333-6.334A6.343 6.343 0 0 1 17.333 11m-.005 2.37c-.437 0-.79.338-.79.754v2.412h-2.414c-.416 0-.754.355-.754.792s.338.792.754.792h2.413v2.412c0 .416.354.754.791.754s.792-.338.792-.754V18.12h2.413c.416 0 .754-.355.754-.792s-.338-.792-.754-.792H18.12v-2.412c0-.416-.355-.754-.792-.754",clipRule:"evenodd"}),j.createElement("path",{fill:"#2571D6",d:"M11.12 12.297a7.97 7.97 0 0 0-1.787 5.036c0 1.763.571 3.392 1.537 4.714H3.044c-.84 0-1.523-.682-1.523-1.523 0-4.544 3.683-8.227 8.217-8.227zM10.995.139c2.925 0 5.3 2.376 5.3 5.3s-2.376 5.3-5.3 5.3v-.01a5.303 5.303 0 0 1-5.3-5.3 5.295 5.295 0 0 1 5.3-5.29"})),Cp=qt(h.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),nc=qt(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450,md:500},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},oc=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],In=(()=>{const e=[];for(let r=0;r<24;r++)for(let t=0;t<60;t+=15){const n=r.toString().padStart(2,"0"),o=t.toString().padStart(2,"0");e.push(`${n}:${o}`)}return e})(),ko=(e,r)=>{if(!e||!r)return null;const t=e.split("-");if(t.length!==3)return null;const n=parseInt(t[0],10),o=parseInt(t[1],10)-1,i=parseInt(t[2],10),a=r.split(":");if(a.length!==2)return null;const s=parseInt(a[0],10),c=parseInt(a[1],10),l=new Date(i,o,n,s,c);return isNaN(l.getTime())||!w.isValid(l)?null:l},fC=({isVisible:e,onClose:r,onSave:t,onDelete:n,selectedDate:o,initialEvent:i,userId:a,masNombreBD:s,disId:c})=>{const[l,u]=x.useState(!1),[d,f]=x.useState(!1),m=w.format(new Date,"yyyy-MM-dd"),[g,p]=x.useState(""),[y,S]=x.useState([]),[C,k]=x.useState(!1),E=Is(),[_,O]=x.useState([]),{control:N,handleSubmit:q,reset:Z,formState:{errors:L},watch:K,setValue:v}=j2({resolver:Vx(oC),defaultValues:{titulo:"",fechaInicio:w.format(new Date,"yyyy-MM-dd"),horaInicio:w.format(new Date,"HH:mm"),horaFin:w.format(w.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:oc[5],solID:null}}),I=K("fechaInicio"),A=K("fechaFin"),U=K("todoElDia");x.useEffect(()=>{if(g.trim()===""||!a||!c||!s){S([]);return}k(!0);const F=setTimeout(()=>{E.getClients(g,c,s,a).then(W=>{k(!1);const de=Array.from(new Map(W.map(P=>[P.nombreCliente,P])).values());if(de)S(de);else if(i?.client&&i.solID!==null){const P=[{solID:i.solID,nombreCliente:i.client}];S(P)}else S([])}).catch(W=>{console.error("Error al buscar clientes:",W),k(!1)})},500);return()=>clearTimeout(F)},[g,a,c,s]),x.useEffect(()=>{if(I&&A){const F=new Date(I),W=new Date(A);(F===W||F>W)&&v("fechaFin",I)}},[I,A,v]),x.useEffect(()=>{I&&v("fechaFin",I)},[I]),x.useEffect(()=>{v("showEndDate",l)},[l,v]),x.useEffect(()=>{if(i){const F=w.format(i.fechaInicio,"yyyy-MM-dd")===w.format(i.fechaFin,"yyyy-MM-dd");u(!F),v("titulo",i?.titulo),v("fechaInicio",w.format(i.fechaInicio,"yyyy-MM-dd")),v("fechaFin",w.format(i.fechaFin,"yyyy-MM-dd")),v("horaInicio",w.format(i.fechaInicio,"HH:mm")),v("horaFin",w.format(i.fechaFin,"HH:mm")),v("horaInicio2",w.format(i.fechaFin,"HH:mm")),v("descripcion",i.descripcion),v("link",i.link),v("repetir","false"),v("color",i.color),v("todoElDia",i.todoElDia),v("solID",i.solID),v("client",i.client),i.solID?f(!0):f(!1)}else{const F=o||new Date,W=new Date,de=new Date(F.getFullYear(),F.getMonth(),F.getDate(),W.getHours(),W.getMinutes()),P=w.addHours(de,1);Z({titulo:"",fechaInicio:w.format(de,"yyyy-MM-dd"),horaInicio:w.format(de,"HH:mm"),fechaFin:w.format(P,"yyyy-MM-dd"),horaFin:w.format(P,"HH:mm"),horaInicio2:w.format(P,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:oc[5],solID:null}),u(!1),f(!1)}},[i,e,o]);const H=q(F=>{t(F,i?.eventoID),r(),Z(),u(!1)},F=>{console.log("Errores de validación:",F)});x.useEffect(()=>{U&&(v("horaInicio","00:00"),v("horaFin","23:59"))},[U,v,K]);const ee=()=>{const F=K("fechaInicio");if(F){const W=new Date(`${F}T00:00:00`),de=w.addDays(W,1);v("fechaFin",w.format(de,"yyyy-MM-dd"))}u(!0)},re=K("fechaInicio"),se=K("horaInicio"),V=K("fechaFin"),G=K("horaFin"),[ge,ve]=x.useState(null),[he,J]=x.useState(null);x.useEffect(()=>{(ge===null||ge!==se)&&ve(se)},[se,ge]),x.useEffect(()=>{(he===null||he!==G)&&J(G??"")},[G,he]);const Q=K("todoElDia");x.useEffect(()=>{if(Q||!se||!G||!re||!V)return;const F=ko(re,se),W=ko(V,G);if(!F||!W||!w.isValid(F)||!w.isValid(W))return;const de=w.isSameDay(F,W),P=de&&(w.isAfter(F,W)||F.getTime()===W.getTime()),we=w.isBefore(W,F)&&!de;(P||we)&&(v("horaFin",""),J(""))},[se]);const ce=x.useMemo(()=>{if(!se||!re)return In;const F=ko(re,se),W=ko(V,"00:00");return!F||!W||!w.isValid(F)||!w.isValid(W)||w.isBefore(W,F)&&!w.isSameDay(W,F)?In:w.isSameDay(F,W)?In.filter(de=>{const P=ko(V,de);return P&&w.isAfter(P,F)}):(w.isAfter(W,F),In)},[se,re,V]),ue=x.useMemo(()=>In,[]);return h.jsx($.Modal,{open:e,onClose:r,children:h.jsxs($.Box,{sx:dC,children:[h.jsx($.IconButton,{"aria-label":"close",onClick:r,sx:{position:"absolute",right:8,top:12},children:h.jsx(nc,{})}),h.jsx($.Typography,{variant:"h6",mb:2,children:i?"Editar evento":"Agregar evento"}),h.jsxs($.Grid,{container:!0,spacing:1,marginBottom:l?0:1,children:[h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"titulo",control:N,render:({field:F})=>h.jsx($.TextField,{...F,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!L.titulo,helperText:L.titulo?.message,inputProps:{maxLength:100},sx:{"& .MuiInputLabel-root.Mui-focused":{color:"black"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx($.Divider,{})}),h.jsx($.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"fechaInicio",control:N,render:({field:F})=>h.jsx($.TextField,{fullWidth:!0,...F,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!L.fechaInicio,helperText:L.fechaInicio?.message})})}),l?h.jsxs(h.Fragment,{children:[h.jsx($.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),h.jsx($.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"fechaFin",control:N,render:({field:F})=>h.jsx($.TextField,{...F,type:"date",placeholder:"Fecha de fin",fullWidth:!!l,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:I||m},error:!!L.fechaFin,helperText:L.fechaFin?.message})})}),!i&&h.jsx($.Grid,{size:{xs:1,md:1},children:h.jsx($.IconButton,{onClick:()=>u(!1),sx:{fontSize:18},children:h.jsx(Sp,{})})})]}):h.jsx($.Grid,{size:{xs:12,md:7}})]}),l&&h.jsx(h.Fragment,{children:h.jsxs($.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[h.jsx($.Grid,{size:{xs:6,md:5}}),h.jsx($.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:h.jsx(Cp,{sx:{color:"#757575",margin:0,padding:0}})})]})}),h.jsxs($.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[h.jsx($.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaInicio",control:N,render:({field:{onChange:F,value:W,...de}})=>h.jsx($.Autocomplete,{freeSolo:!0,options:ue,value:W||"",onChange:(P,we)=>F(we||""),onInputChange:(P,we)=>F(we),renderInput:P=>h.jsx($.TextField,{...P,...de,size:"small",error:!!L.horaInicio,helperText:L.horaInicio?.message,InputProps:{...P.InputProps,endAdornment:h.jsx($.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(rf,{})})}}),disabled:K("todoElDia")})})}),h.jsx($.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:L.horaInicio?"start":"center",marginTop:L.horaInicio?"5px":"0px"},children:!l&&h.jsx(Cp,{sx:{color:"#757575"}})}),l&&h.jsx($.Grid,{size:{xs:2,md:2}}),h.jsx($.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaFin",control:N,render:({field:{onChange:F,value:W,...de}})=>h.jsx($.Autocomplete,{freeSolo:!0,options:ce,value:W||"",onChange:(P,we)=>F(we||""),onInputChange:(P,we)=>F(we),renderInput:P=>h.jsx($.TextField,{...P,...de,size:"small",error:!!L.horaFin,helperText:L.horaFin?.message,InputProps:{...P.InputProps,endAdornment:h.jsx($.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(rf,{})})}}),disabled:K("todoElDia")})})}),h.jsx($.Grid,{size:{xs:12,md:3},hidden:l,children:h.jsx(er,{name:"todoElDia",control:N,render:({field:F})=>h.jsx($.FormControlLabel,{control:h.jsx($.Checkbox,{checked:F.value,onChange:W=>F.onChange(W.target.checked)}),label:h.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"}),sx:{whiteSpace:"nowrap"}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:!l&&h.jsx(h.Fragment,{children:h.jsxs($.Button,{onClick:ee,size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(cC,{}),"  Agregar fecha final"]})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx($.Divider,{})}),h.jsx($.Grid,{size:{xs:12,md:12},children:!d&&h.jsxs($.Button,{onClick:()=>f(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(uC,{}),"  Vincular cliente"]})}),d&&h.jsxs(h.Fragment,{children:[h.jsx($.Grid,{size:{xs:12,md:7},children:h.jsx(er,{name:"client",control:N,render:({field:F})=>h.jsx($.Autocomplete,{options:y,loading:C,getOptionLabel:W=>W.nombreCliente?.trim()||"",value:y.find(W=>W.nombreCliente===F.value)||(F.value&&typeof F.value=="string"?{solID:-1,nombreCliente:F.value}:null),noOptionsText:"",onInputChange:(W,de)=>{p(de)},onChange:(W,de)=>{if(F.onChange(de?de.nombreCliente:""),v("solID",de?de.solID:null),de&&de.nombreCliente){const P=y.filter(we=>we.nombreCliente===de.nombreCliente&&we.solID).map(we=>we.solID);O([...new Set(P)])}else O([])},renderInput:W=>h.jsx($.TextField,{...W,placeholder:"Buscar cliente...",size:"small",InputProps:{...W.InputProps,startAdornment:h.jsx("img",{src:sC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"5px"}}),endAdornment:h.jsxs(h.Fragment,{children:[C?h.jsx($.CircularProgress,{color:"inherit",size:20}):null,W.InputProps.endAdornment]})}})})})}),h.jsx($.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"solID",control:N,render:({field:F})=>h.jsx($.Autocomplete,{options:_,getOptionLabel:W=>W.toString(),value:F.value??null,onChange:(W,de)=>F.onChange(de),renderInput:W=>h.jsx($.TextField,{...W,label:"#Registro",variant:"outlined",size:"small",sx:{"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}}),disabled:!y})})}),h.jsx($.Grid,{size:{xs:1,md:1},children:h.jsx($.IconButton,{onClick:()=>f(!1),sx:{fontSize:18},children:h.jsx(Sp,{})})})]}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx($.Divider,{})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"link",control:N,render:({field:F})=>h.jsx($.TextField,{...F,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!L.link,helperText:L.link?.message,InputProps:{startAdornment:h.jsx("img",{src:iC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"8px"}})}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"descripcion",control:N,render:({field:F})=>h.jsx($.TextField,{...F,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,inputProps:{maxLength:500},variant:"outlined",size:"small",InputProps:{startAdornment:h.jsx("img",{src:lC,width:20,style:{alignSelf:"flex-start",marginRight:"8px"}})}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsxs($.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[h.jsx(aC,{}),oc.map(F=>h.jsx(er,{name:"color",control:N,render:({field:W})=>h.jsx($.IconButton,{onClick:()=>W.onChange(F),sx:{width:24,height:24,borderRadius:"50%",bgcolor:F,border:W.value===F?"2px solid":"none",borderColor:W.value===F?"primary.main":"transparent"}})},F))]})})]}),h.jsxs($.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[i&&h.jsx($.Button,{onClick:n,variant:"outlined",color:"error",children:"Eliminar"}),h.jsx($.Button,{onClick:r,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),h.jsx($.Button,{onClick:H,variant:"contained",sx:{textTransform:"none"},children:"Guardar"})]})]})})},pC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='49'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M34.559%2048.077c-7.413%200-13.44-6.039-13.44-13.44s6.027-13.44%2013.44-13.44%2013.44%206.027%2013.44%2013.44c0%207.414-6.027%2013.44-13.44%2013.44'/%3e%3cpath%20fill='%23fff'%20d='M39.827%2029.346c.583.583.605%201.505.05%202.06l-3.218%203.219%203.219%203.218c.555.556.532%201.48-.051%202.062-.584.583-1.506.605-2.062.05l-3.218-3.218-3.218%203.218c-.556.555-1.478.533-2.061-.05s-.606-1.506-.05-2.062l3.217-3.218-3.218-3.218c-.555-.555-.533-1.478.05-2.061.583-.584%201.507-.606%202.063-.05l3.217%203.217%203.218-3.218c.556-.555%201.478-.533%202.062.05'/%3e%3cpath%20fill='%23404756'%20d='M30.367.078c1.112%200%202.001.868%202.001%201.954v1.195h.979c4.913%200%208.892%203.887%208.892%208.686v9.237a15.4%2015.4%200%200%200-4.424-1.691v-1.312H4.468V33.63c0%202.389%202%204.343%204.446%204.343H19.4a15.4%2015.4%200%200%200%201.676%204.343H8.892C3.979%2042.317%200%2038.43%200%2033.631V11.913c0-4.8%203.979-8.686%208.892-8.686h1V2.032c0-1.086.89-1.954%202.002-1.954s2%20.868%202%201.954v1.195h14.473V2.032c0-1.085.889-1.954%202-1.954'/%3e%3c/svg%3e",hC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},mC=({isOpen:e,onClose:r,onConfirm:t,title:n,message:o})=>h.jsx($.Modal,{open:e,onClose:r,children:h.jsxs($.Box,{sx:hC,children:[h.jsx("img",{src:pC}),h.jsx($.Typography,{variant:"h6",component:"h2",sx:{mt:1},children:n}),h.jsx($.Typography,{sx:{mt:2},children:o}),h.jsxs($.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[h.jsx($.Button,{variant:"outlined",onClick:r,sx:{textTransform:"none"},children:"Regresar"}),h.jsxs($.Button,{variant:"contained",color:"error",onClick:t,sx:{textTransform:"none"},children:[h.jsx("span",{className:"icon-eliminar",children:"  "})," Eliminar"]})]})]})}),gC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:450,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},vC=({isOpen:e,onClose:r,events:t,date:n,onEventClick:o})=>{if(!n)return null;const i=a=>{o(a),r()};return h.jsx($.Modal,{open:e,onClose:r,children:h.jsxs($.Box,{sx:gC,children:[h.jsxs($.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[h.jsxs($.Typography,{sx:{fontSize:"20px"},component:"h2",children:["Eventos del"," ",n.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),h.jsx($.IconButton,{onClick:r,children:h.jsx(nc,{})})]}),h.jsx($.Divider,{}),h.jsx($.List,{children:t.map(a=>h.jsx($.ListItem,{disablePadding:!0,children:h.jsxs($.ListItemButton,{onClick:()=>i(a),sx:{py:.5},children:[h.jsx($.Box,{sx:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:a.color||"#ccc",mr:2,flexShrink:0,minWidth:"10px"}}),h.jsx($.ListItemText,{primary:a.titulo,secondary:`${w.format(a.fechaInicio,"HH:mm")} - ${w.format(a.fechaFin,"HH:mm")}`,sx:{my:0,"& .MuiListItemText-primary":{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"& .MuiListItemText-secondary":{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"}}})]})},a.eventoID))})]})})},yC=qt(h.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"),bC=qt(h.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-6h2zm0-8h-2V7h2z"}),"Info"),wC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M20.36%204.14H16c0-1.65-1.35-3-3-3h-2c-1.65%200-3%201.35-3%203H3.64c-.55%200-1%20.45-1%201s.45%201%201%201h1.04l.84%2013.91a3%203%200%200%200%202.99%202.82h6.98c1.58%200%202.9-1.24%203-2.82l.84-13.91h1.04c.55%200%201-.45%201-1s-.45-1-1-1zm-9.36-1h2c.55%200%201%20.45%201%201h-4c0-.55.45-1%201-1m-.39%2014.9c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201zm4.78%200c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201z'/%3e%3c/svg%3e",_C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M19.378%204.405a1.813%201.813%200%201%201%202.565%202.565L9.571%2019.342a1.813%201.813%200%200%201-2.565%200l-4.949-4.949a1.814%201.814%200%200%201%202.428-2.69l.137.126%203.666%203.666z'/%3e%3c/svg%3e",Ep=x.forwardRef(({id:e,message:r,variant:t},n)=>{const{closeSnackbar:o}=ya.useSnackbar(),i={success:{color:"#fff",icon:h.jsx("img",{width:25,src:_C,style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"12px",padding:3}})},error:{color:"#f44336",icon:h.jsx(yC,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:h.jsx(bC,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:h.jsx("img",{src:wC,width:25,style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},a=i[t]||i.info;return h.jsx(ya.SnackbarContent,{ref:n,children:h.jsxs($.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${a.color}`},children:[h.jsx($.Box,{sx:{mr:1.5},children:a.icon}),h.jsx($.Typography,{variant:"body2",sx:{flexGrow:1},children:r}),h.jsx($.IconButton,{size:"small",onClick:()=>o(e),children:h.jsx(nc,{fontSize:"small"})})]})})}),xC=({userId:e,leads30Days:r,leads90Days:t,disId:n,masNombreBD:o})=>{const[i,a]=x.useState(new Date),[s,c]=x.useState([]),[l,u]=x.useState(!1),[d,f]=x.useState(null),[m,g]=x.useState(!1),[p,y]=x.useState(null),[S,C]=x.useState([]),{enqueueSnackbar:k}=ya.useSnackbar(),E=Is(),[_,O]=x.useState(!1),[N,q]=x.useState([]),[Z,L]=x.useState(null),K=(J,Q)=>{q(J),L(Q),O(!0)},v=x.useRef(null);x.useEffect(()=>{const J=async()=>{try{if(e){const Q=await E.getEventsByUser(e);c(Q)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}finally{console.log("Eventos han sido cargados")}};return J(),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{console.log("Iniciando recarga programada de eventos (2 segundos después del inicio)..."),J()},4e3),()=>{v.current&&clearTimeout(v.current)}},[i,e]),x.useEffect(()=>{const J=new Date,Q=w.startOfDay(J),ce=w.endOfDay(w.addDays(Q,6)),ue={start:Q,end:ce},F=s.filter(W=>{const de={start:W.fechaInicio,end:W.fechaFin};return id(de,ue)}).sort((W,de)=>W.fechaInicio.getTime()-de.fechaInicio.getTime());C(F)},[s]);const I=async J=>{try{const Q=await E.getEventById(J.eventoID);f(Q),u(!0)}catch(Q){console.error(Q)}},A=()=>{u(!1),f(null)},U=async(J,Q)=>{let ce,ue;J.todoElDia?(ce=new Date(`${J.fechaInicio}T${J.horaInicio}`),ue=new Date(`${J.fechaInicio}T${J.horaFin}`)):(ce=new Date(`${J.fechaInicio}T${J.horaInicio}`),ue=J.fechaFin&&J.horaInicio2?new Date(`${J.fechaFin}T${J.horaInicio2}`):new Date(`${J.fechaInicio}T${J.horaInicio2}`));const F=w.format(ce,"yyyy-MM-dd HH:mm:ss.SSS"),W=w.format(ue,"yyyy-MM-dd HH:mm:ss.SSS");if(Q){const P={...J,eventoID:Q,fechaInicio:F,fechaFin:W,solID:J.solID??null,disID:n??null,client:J.client};try{const we=await E.updateEvent(P);var de=s.map(Qe=>Qe.eventoID===we.eventoID?we:Qe);c(de),k("El evento se ha actualizado correctamente.",{variant:"success"}),A()}catch{k("Error al eliactualizar Evento",{variant:"error"})}}else{const P={...J,fechaInicio:F,fechaFin:W,todoElDia:J.todoElDia,solID:J.solID??null,disID:n??null,client:J.client};try{const we=await E.createEvent(P,e);c(Qe=>[...Qe,we]),k("El evento se ha creado con éxito",{variant:"success"}),A()}catch{k("Error al guardar Evento",{variant:"error"})}}if(e){const P=await E.getEventsByUser(e);c(P)}},H=()=>{a(J=>new Date(J.getFullYear(),J.getMonth()-1,1))},ee=()=>{a(J=>new Date(J.getFullYear(),J.getMonth()+1,1))},re=()=>{g(!0)},se=()=>{y(new Date),u(!0)},V=()=>alert("Sincronizar con Google Calendar"),G=()=>alert("Sincronizar con Outlook Calendar"),ge=J=>{J&&a(J)},ve=J=>{y(J),u(!0),f(null)},he=async()=>{if(d)try{await E.deleteEvent(d.eventoID),c(s.filter(J=>J.eventoID!==d.eventoID)),k("El evento se ha eliminado de tu calendario",{content:(J,Q)=>h.jsx(Ep,{id:J,message:String(Q),variant:"delete"})})}catch{k("Error al eliminar Evento",{variant:"error"})}finally{A(),g(!1)}};return h.jsxs("div",{id:"Agenda",style:{height:"100%",width:"100%"},children:[h.jsx(N0,{header:h.jsx(tb,{currentDate:i,onPrevMonth:H,onNextMonth:ee,onAddEvent:se,onDateChange:ge}),sidebar:h.jsx(jb,{onEventClick:I,upcomingEvents:S,onSyncGoogle:V,onSyncOutlook:G,leads30Days:r,leads90Days:t}),mainContent:h.jsx(Wb,{onSeeMoreClick:K,currentDate:i,events:s,onDayClick:ve,onEventClick:I})}),h.jsx(fC,{isVisible:l,onClose:A,onSave:U,onDelete:re,selectedDate:p,initialEvent:d,userId:e,masNombreBD:o,disId:n}),h.jsx(mC,{isOpen:m,onClose:()=>g(!1),onConfirm:he,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),h.jsx(vC,{isOpen:_,onClose:()=>O(!1),events:N,date:Z,onEventClick:I})]})},SC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20fill='%23070c10'%20d='M18.575%203.172A10.829%2010.829%200%200%200%201.564%2016.284l-.028-.051L0%2021.843l5.739-1.506a10.7%2010.7%200%200%200%205.173%201.318%2010.83%2010.83%200%200%200%207.663-18.483m-7.658%2016.655a8.94%208.94%200%200%201-4.62-1.277l.041.023-.329-.194-3.405.894.908-3.321-.214-.34a8.9%208.9%200%200%201-1.376-4.782%209%209%200%201%201%209%209Zm4.935-6.736c-.27-.135-1.6-.789-1.848-.88s-.429-.135-.61.136-.7.879-.856%201.06-.316.2-.586.068a7.5%207.5%200%200%201-2.183-1.349l.007.007a8.2%208.2%200%200%201-1.483-1.842l-.02-.038c-.157-.27-.017-.417.118-.551s.271-.316.406-.473a1.9%201.9%200%200%200%20.267-.44v-.012a.5.5%200%200%200%20.05-.216.5.5%200%200%200-.074-.26c-.068-.135-.609-1.467-.834-2.009s-.444-.455-.609-.464-.338-.009-.519-.009a.99.99%200%200%200-.72.337%203.03%203.03%200%200%200-.947%202.2v.058a5.27%205.27%200%200%200%201.114%202.815v-.011a12.16%2012.16%200%200%200%204.553%204.053l.068.031a14%2014%200%200%200%201.434.539l.109.03a3.6%203.6%200%200%200%201.077.161%203.7%203.7%200%200%200%20.648-.057h-.023a2.8%202.8%200%200%200%201.819-1.274l.007-.012a2.2%202.2%200%200%200%20.19-.9%202.3%202.3%200%200%200-.034-.395v.014c-.067-.113-.248-.18-.519-.316Z'/%3e%3c/svg%3e",CC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25.085'%20height='18.5'%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='none'%20d='M0%200h25.085v18.5H0z'%20data-name='Rectángulo%204598'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23a)'%20data-name='Grupo%207946'%3e%3cpath%20d='M23.12%205.809V3.226a3.2%203.2%200%200%200-.068-.656l-3.141%202.21a7.8%207.8%200%200%201%203.209%201.032'%20data-name='Trazado%2013329'/%3e%3cpath%20d='M11.847%209.791c-.1.009-.2.023-.308.023a3.78%203.78%200%200%201-2.18-.688L.067%202.58A3.2%203.2%200%200%200%200%203.227V13.98a3.23%203.23%200%200%200%203.226%203.226h9.611a7.86%207.86%200%200%201-.99-7.414'%20data-name='Trazado%2013330'/%3e%3cpath%20d='M12.478%207.369%2021.92.737A3.2%203.2%200%200%200%2019.894%200H3.226a3.2%203.2%200%200%200-2.031.74l9.4%206.628a1.64%201.64%200%200%200%201.881%200'%20data-name='Trazado%2013331'/%3e%3cpath%20d='M23.356%208.407a5.914%205.914%200%201%200%200%208.364%205.92%205.92%200%200%200%200-8.364m-1.833%204.842a.54.54%200%200%201-1.081%200v-1.164l-2.513%202.516a.54.54%200%200%201-.765-.763l2.515-2.515h-1.167a.54.54%200%201%201%200-1.081h2.471a.54.54%200%200%201%20.54.54Z'%20data-name='Trazado%2013332'/%3e%3c/g%3e%3c/svg%3e";function ic(e,r,t){return e.accessor?e.accessor(r,t):e.field?r?.[e.field]:r?.[e?.key||""]}function EC(e,r){const t=e??"",n=r??"";return t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():typeof t=="number"&&typeof n=="number"?t-n:typeof t=="boolean"&&typeof n=="boolean"?Number(t)-Number(n):String(t).localeCompare(String(n),void 0,{numeric:!0,sensitivity:"base"})}function ac(e,r,t=!0){return typeof e=="function"?e(r):e??t}function kC(e){return e.replace(/[^\d]/g,"")}function DC(e,r){return r}const kp=qt(h.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFileOutlined"),TC=qt(h.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),OC=qt(h.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),MC=Et("MuiBox",["root"]),PC=ou(),sc=Sg({themeId:Xa,defaultTheme:PC,defaultClassName:MC.root,generateClassName:Ic.generate});process.env.NODE_ENV!=="production"&&(sc.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function Dp(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function cc(e,r){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},cc(e,r)}function Tp(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,cc(e,r)}const Op={disabled:!1};var AC=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const fa=x.createContext(null);var IC=function(r){return r.scrollTop},Do="unmounted",rn="exited",nn="entering",Rn="entered",lc="exiting",Cr=(function(e){Tp(r,e);function r(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=rn,i.appearStatus=nn):c=Rn:n.unmountOnExit||n.mountOnEnter?c=Do:c=rn,i.state={status:c},i.nextCallback=null,i}r.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Do?{status:rn}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==nn&&a!==Rn&&(i=nn):(a===nn||a===Rn)&&(i=lc)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},t.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this);a&&IC(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:Do})},t.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[ln.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Op.disabled){this.safeSetState({status:Rn},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:nn},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Rn},function(){i.props.onEntered(l,u)})})})},t.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:ln.findDOMNode(this);if(!i||Op.disabled){this.safeSetState({status:rn},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:lc},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rn},function(){o.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},t.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===Do)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Dp(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(fa.Provider,{value:null},typeof a=="function"?a(o,s):x.cloneElement(x.Children.only(a),s))},r})(x.Component);Cr.contextType=fa,Cr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,r,t,n,o,i){var a=e[r];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,r,t,n,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(r){var t=AC;r.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[r].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function Nn(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nn,onEntering:Nn,onEntered:Nn,onExit:Nn,onExiting:Nn,onExited:Nn},Cr.UNMOUNTED=Do,Cr.EXITED=rn,Cr.ENTERING=nn,Cr.ENTERED=Rn,Cr.EXITING=lc;function RC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uc(e,r){var t=function(i){return r&&x.isValidElement(i)?r(i):i},n=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=t(o)}),n}function NC(e,r){e=e||{},r=r||{};function t(u){return u in r?r[u]:e[u]}var n=Object.create(null),o=[];for(var i in e)i in r?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var c in r){if(n[c])for(a=0;a<n[c].length;a++){var l=n[c][a];s[n[c][a]]=t(l)}s[c]=t(c)}for(a=0;a<o.length;a++)s[o[a]]=t(o[a]);return s}function on(e,r,t){return t[r]!=null?t[r]:e.props[r]}function $C(e,r){return uc(e.children,function(t){return x.cloneElement(t,{onExited:r.bind(null,t),in:!0,appear:on(t,"appear",e),enter:on(t,"enter",e),exit:on(t,"exit",e)})})}function jC(e,r,t){var n=uc(e.children),o=NC(r,n);return Object.keys(o).forEach(function(i){var a=o[i];if(x.isValidElement(a)){var s=i in r,c=i in n,l=r[i],u=x.isValidElement(l)&&!l.props.in;c&&(!s||u)?o[i]=x.cloneElement(a,{onExited:t.bind(null,a),in:!0,exit:on(a,"exit",e),enter:on(a,"enter",e)}):!c&&s&&!u?o[i]=x.cloneElement(a,{in:!1}):c&&s&&x.isValidElement(l)&&(o[i]=x.cloneElement(a,{onExited:t.bind(null,a),in:l.props.in,exit:on(a,"exit",e),enter:on(a,"enter",e)}))}}),o}var LC=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},zC={component:"div",childFactory:function(r){return r}},dc=(function(e){Tp(r,e);function r(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(RC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var t=r.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?$C(o,s):jC(o,a,s),firstRender:!1}},t.handleExited=function(o,i){var a=uc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=Wo({},s.children);return delete c[o.key],{children:c}}))},t.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=Dp(o,["component","childFactory"]),c=this.state.contextValue,l=LC(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?x.createElement(fa.Provider,{value:c},l):x.createElement(fa.Provider,{value:c},x.createElement(i,s,l))},r})(x.Component);dc.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{},dc.defaultProps=zC;const Mp={};function Pp(e,r){const t=j.useRef(Mp);return t.current===Mp&&(t.current=e(r)),t}const BC=[];function VC(e){j.useEffect(e,BC)}class fc{static create(){return new fc}currentId=null;start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},r)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ap(){const e=Pp(fc.create).current;return VC(e.disposeEffect),e}function pa(e,r){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||r(...n)}}function FC(e){const{prototype:r={}}=e;return!!r.isReactComponent}function YC(e,r,t,n,o){const i=e[r],a=o||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!FC(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ip=pa(b.elementType,YC);function Rp(e,r){const{timeout:t,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof t=="number"?t:t[r.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[r.mode]:n),delay:o.transitionDelay}}function UC(e){return Ct("MuiCollapse",e)}Et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const HC=e=>{const{orientation:r,classes:t}=e,n={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return Lt(n,UC,t)},WC=ut("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.orientation],t.state==="entered"&&r.entered,t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&r.hidden]}})(cr(({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:r})=>r.state==="exited"&&!r.in&&r.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ZC=ut("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),qC=ut("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ha=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:y,orientation:S="vertical",style:C,timeout:k=Ql.standard,TransitionComponent:E=Cr,..._}=n,O={...n,orientation:S,collapsedSize:s},N=HC(O),q=au(),Z=Ap(),L=j.useRef(null),K=j.useRef(),v=typeof s=="number"?`${s}px`:s,I=S==="horizontal",A=I?"width":"height",U=j.useRef(null),H=Ja(t,U),ee=Q=>ce=>{if(Q){const ue=U.current;ce===void 0?Q(ue):Q(ue,ce)}},re=()=>L.current?L.current[I?"clientWidth":"clientHeight"]:0,se=ee((Q,ce)=>{L.current&&I&&(L.current.style.position="absolute"),Q.style[A]=v,d&&d(Q,ce)}),V=ee((Q,ce)=>{const ue=re();L.current&&I&&(L.current.style.position="");const{duration:F,easing:W}=Rp({style:C,timeout:k,easing:l},{mode:"enter"});if(k==="auto"){const de=q.transitions.getAutoHeightDuration(ue);Q.style.transitionDuration=`${de}ms`,K.current=de}else Q.style.transitionDuration=typeof F=="string"?F:`${F}ms`;Q.style[A]=`${ue}px`,Q.style.transitionTimingFunction=W,m&&m(Q,ce)}),G=ee((Q,ce)=>{Q.style[A]="auto",f&&f(Q,ce)}),ge=ee(Q=>{Q.style[A]=`${re()}px`,g&&g(Q)}),ve=ee(p),he=ee(Q=>{const ce=re(),{duration:ue,easing:F}=Rp({style:C,timeout:k,easing:l},{mode:"exit"});if(k==="auto"){const W=q.transitions.getAutoHeightDuration(ce);Q.style.transitionDuration=`${W}ms`,K.current=W}else Q.style.transitionDuration=typeof ue=="string"?ue:`${ue}ms`;Q.style[A]=v,Q.style.transitionTimingFunction=F,y&&y(Q)}),J=Q=>{k==="auto"&&Z.start(K.current||0,Q),o&&o(U.current,Q)};return h.jsx(E,{in:u,onEnter:se,onEntered:G,onEntering:V,onExit:ge,onExited:ve,onExiting:he,addEndListener:J,nodeRef:U,timeout:k==="auto"?null:k,..._,children:(Q,{ownerState:ce,...ue})=>h.jsx(WC,{as:c,className:_e(N.root,a,{entered:N.entered,exited:!u&&v==="0px"&&N.hidden}[Q]),style:{[I?"minWidth":"minHeight"]:v,...C},ref:H,ownerState:{...O,state:Q},...ue,children:h.jsx(ZC,{ownerState:{...O,state:Q},className:N.wrapper,ref:L,children:h.jsx(qC,{ownerState:{...O,state:Q},className:N.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(ha.propTypes={addEndListener:b.func,children:b.node,classes:b.object,className:b.string,collapsedSize:b.oneOfType([b.number,b.string]),component:Ip,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,orientation:b.oneOf(["horizontal","vertical"]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])}),ha&&(ha.muiSupportAuto=!0);function KC(e){return typeof e.main=="string"}function GC(e,r=[]){if(!KC(e))return!1;for(const t of r)if(!e.hasOwnProperty(t)||typeof e[t]!="string")return!1;return!0}function pc(e=[]){return([,r])=>r&&GC(r,e)}const QC=b.oneOfType([b.func,b.object]);function Np(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
189
+ `))}return!1}class ma{static create(){return new ma}static use(){const r=Pp(ma.create).current,[t,n]=j.useState(!1);return r.shouldMount=t,r.setShouldMount=n,j.useEffect(r.mountEffect,[t]),r}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=JC(),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(...r){this.mount().then(()=>this.ref.current?.start(...r))}stop(...r){this.mount().then(()=>this.ref.current?.stop(...r))}pulsate(...r){this.mount().then(()=>this.ref.current?.pulsate(...r))}}function XC(){return ma.use()}function JC(){let e,r;const t=new Promise((n,o)=>{e=n,r=o});return t.resolve=e,t.reject=r,t}function $p(e){const{className:r,classes:t,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:l}=e,[u,d]=j.useState(!1),f=_e(r,t.ripple,t.rippleVisible,n&&t.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=_e(t.child,u&&t.childLeaving,n&&t.childPulsate);return!s&&!u&&d(!0),j.useEffect(()=>{if(!s&&c!=null){const p=setTimeout(c,l);return()=>{clearTimeout(p)}}},[c,s,l]),h.jsx("span",{className:f,style:m,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&($p.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Ht=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hc=550,eE=80,tE=Gn`
190
190
  0% {
191
191
  transform: scale(0);
192
192
  opacity: 0.1;
@@ -196,7 +196,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
196
196
  transform: scale(1);
197
197
  opacity: 0.3;
198
198
  }
199
- `,tE=Kn`
199
+ `,rE=Gn`
200
200
  0% {
201
201
  opacity: 1;
202
202
  }
@@ -204,7 +204,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
204
204
  100% {
205
205
  opacity: 0;
206
206
  }
207
- `,rE=Kn`
207
+ `,nE=Gn`
208
208
  0% {
209
209
  transform: scale(1);
210
210
  }
@@ -216,15 +216,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
216
216
  100% {
217
217
  transform: scale(1);
218
218
  }
219
- `,nE=ut("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),oE=ut(Np,{name:"MuiTouchRipple",slot:"Ripple"})`
219
+ `,oE=ut("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iE=ut($p,{name:"MuiTouchRipple",slot:"Ripple"})`
220
220
  opacity: 0;
221
221
  position: absolute;
222
222
 
223
223
  &.${Ht.rippleVisible} {
224
224
  opacity: 0.3;
225
225
  transform: scale(1);
226
- animation-name: ${eE};
227
- animation-duration: ${fc}ms;
226
+ animation-name: ${tE};
227
+ animation-duration: ${hc}ms;
228
228
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
229
229
  }
230
230
 
@@ -243,8 +243,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
243
243
 
244
244
  & .${Ht.childLeaving} {
245
245
  opacity: 0;
246
- animation-name: ${tE};
247
- animation-duration: ${fc}ms;
246
+ animation-name: ${rE};
247
+ animation-duration: ${hc}ms;
248
248
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
249
249
  }
250
250
 
@@ -253,13 +253,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
253
253
  /* @noflip */
254
254
  left: 0px;
255
255
  top: 0;
256
- animation-name: ${rE};
256
+ animation-name: ${nE};
257
257
  animation-duration: 2500ms;
258
258
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
259
259
  animation-iteration-count: infinite;
260
260
  animation-delay: 200ms;
261
261
  }
262
- `,$p=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=n,[c,l]=$.useState([]),u=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[c]);const f=$.useRef(!1),m=Pp(),g=$.useRef(null),p=$.useRef(null),y=$.useCallback(E=>{const{pulsate:_,rippleX:O,rippleY:R,rippleSize:q,cb:Z}=E;l(j=>[...j,h.jsx(oE,{classes:{ripple:be(i.ripple,Ht.ripple),rippleVisible:be(i.rippleVisible,Ht.rippleVisible),ripplePulsate:be(i.ripplePulsate,Ht.ripplePulsate),child:be(i.child,Ht.child),childLeaving:be(i.childLeaving,Ht.childLeaving),childPulsate:be(i.childPulsate,Ht.childPulsate)},timeout:fc,pulsate:_,rippleX:O,rippleY:R,rippleSize:q},u.current)]),u.current+=1,d.current=Z},[i]),S=$.useCallback((E={},_={},O=()=>{})=>{const{pulsate:R=!1,center:q=o||_.pulsate,fakeElement:Z=!1}=_;if(E?.type==="mousedown"&&f.current){f.current=!1;return}E?.type==="touchstart"&&(f.current=!0);const j=Z?null:p.current,K=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,A,P;if(q||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)v=Math.round(K.width/2),A=Math.round(K.height/2);else{const{clientX:H,clientY:W}=E.touches&&E.touches.length>0?E.touches[0]:E;v=Math.round(H-K.left),A=Math.round(W-K.top)}if(q)P=Math.sqrt((2*K.width**2+K.height**2)/3),P%2===0&&(P+=1);else{const H=Math.max(Math.abs((j?j.clientWidth:0)-v),v)*2+2,W=Math.max(Math.abs((j?j.clientHeight:0)-A),A)*2+2;P=Math.sqrt(H**2+W**2)}E?.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:v,rippleY:A,rippleSize:P,cb:O})},m.start(JC,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:R,rippleX:v,rippleY:A,rippleSize:P,cb:O})},[o,y,m]),C=$.useCallback(()=>{S({},{pulsate:!0})},[S]),k=$.useCallback((E,_)=>{if(m.clear(),E?.type==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{k(E,_)});return}g.current=null,l(O=>O.length>0?O.slice(1):O),d.current=_},[m]);return $.useImperativeHandle(t,()=>({pulsate:C,start:S,stop:k}),[C,S,k]),h.jsx(nE,{className:be(Ht.root,i.root,a),ref:p,...s,children:h.jsx(lc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&($p.propTypes={center:b.bool,classes:b.object,className:b.string});function iE(e){return Ct("MuiButtonBase",e)}const aE=Et("MuiButtonBase",["root","disabled","focusVisible"]),sE=e=>{const{disabled:r,focusVisible:t,focusVisibleClassName:n,classes:o}=e,a=Lt({root:["root",r&&"disabled",t&&"focusVisible"]},iE,o);return t&&n&&(a.root+=` ${n}`),a},cE=ut("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"},[`&.${aE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jp=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:p,onClick:y,onContextMenu:S,onDragLeave:C,onFocus:k,onFocusVisible:E,onKeyDown:_,onKeyUp:O,onMouseDown:R,onMouseLeave:q,onMouseUp:Z,onTouchEnd:j,onTouchMove:K,onTouchStart:v,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:H,type:W,...J}=n,V=$.useRef(null),Q=QC(),L=Qa(Q.ref,H),[U,ce]=$.useState(!1);l&&U&&ce(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{ce(!0),V.current.focus()}}),[]);const ge=Q.shouldMount&&!u&&!l;$.useEffect(()=>{U&&f&&!u&&Q.pulsate()},[u,f,U,Q]);const he=Er(Q,"start",R,d),ee=Er(Q,"stop",S,d),G=Er(Q,"stop",C,d),se=Er(Q,"stop",Z,d),le=Er(Q,"stop",M=>{U&&M.preventDefault(),q&&q(M)},d),me=Er(Q,"start",v,d),ue=Er(Q,"stop",j,d),Te=Er(Q,"stop",K,d),B=Er(Q,"stop",M=>{Rp(M.target)||ce(!1),p&&p(M)},!1),Ve=ci(M=>{V.current||(V.current=M.currentTarget),Rp(M.target)&&(ce(!0),E&&E(M)),k&&k(M)}),Qe=()=>{const M=V.current;return c&&c!=="button"&&!(M.tagName==="A"&&M.href)},wt=ci(M=>{f&&!M.repeat&&U&&M.key===" "&&Q.stop(M,()=>{Q.start(M)}),M.target===M.currentTarget&&Qe()&&M.key===" "&&M.preventDefault(),_&&_(M),M.target===M.currentTarget&&Qe()&&M.key==="Enter"&&!l&&(M.preventDefault(),y&&y(M))}),kr=ci(M=>{f&&M.key===" "&&U&&!M.defaultPrevented&&Q.stop(M,()=>{Q.pulsate(M)}),O&&O(M),y&&M.target===M.currentTarget&&Qe()&&M.key===" "&&!M.defaultPrevented&&y(M)});let Dr=c;Dr==="button"&&(J.href||J.to)&&(Dr=g);const Tr={};Dr==="button"?(Tr.type=W===void 0?"button":W,Tr.disabled=l):(!J.href&&!J.to&&(Tr.role="button"),l&&(Tr["aria-disabled"]=l));const Or=Qa(t,V),T={...n,centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:A,focusVisible:U},I=sE(T);return h.jsxs(cE,{as:Dr,className:be(I.root,s),ownerState:T,onBlur:B,onClick:y,onContextMenu:ee,onFocus:Ve,onKeyDown:wt,onKeyUp:kr,onMouseDown:he,onMouseLeave:le,onMouseUp:se,onDragLeave:G,onTouchEnd:ue,onTouchMove:Te,onTouchStart:me,ref:Or,tabIndex:l?-1:A,type:W,...Tr,...J,children:[a,ge?h.jsx($p,{ref:L,center:i,...P}):null]})});function Er(e,r,t,n=!1){return ci(o=>(t&&t(o),n||e[r](o),!0))}process.env.NODE_ENV!=="production"&&(jp.propTypes={action:GC,centerRipple:b.bool,children:b.node,classes:b.object,className:b.string,component:Ap,disabled:b.bool,disableRipple:b.bool,disableTouchRipple:b.bool,focusRipple:b.bool,focusVisibleClassName:b.string,href:b.any,LinkComponent:b.elementType,onBlur:b.func,onClick:b.func,onContextMenu:b.func,onDragLeave:b.func,onFocus:b.func,onFocusVisible:b.func,onKeyDown:b.func,onKeyUp:b.func,onMouseDown:b.func,onMouseLeave:b.func,onMouseUp:b.func,onTouchEnd:b.func,onTouchMove:b.func,onTouchStart:b.func,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,TouchRippleProps:b.object,touchRippleRef:b.oneOfType([b.func,b.shape({current:b.shape({pulsate:b.func.isRequired,start:b.func.isRequired,stop:b.func.isRequired})})]),type:b.oneOfType([b.oneOf(["button","reset","submit"]),b.string])});function lE(e){return Ct("MuiCircularProgress",e)}Et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Lr=44,pc=Kn`
262
+ `,jp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=n,[c,l]=j.useState([]),u=j.useRef(0),d=j.useRef(null);j.useEffect(()=>{d.current&&(d.current(),d.current=null)},[c]);const f=j.useRef(!1),m=Ap(),g=j.useRef(null),p=j.useRef(null),y=j.useCallback(E=>{const{pulsate:_,rippleX:O,rippleY:N,rippleSize:q,cb:Z}=E;l(L=>[...L,h.jsx(iE,{classes:{ripple:_e(i.ripple,Ht.ripple),rippleVisible:_e(i.rippleVisible,Ht.rippleVisible),ripplePulsate:_e(i.ripplePulsate,Ht.ripplePulsate),child:_e(i.child,Ht.child),childLeaving:_e(i.childLeaving,Ht.childLeaving),childPulsate:_e(i.childPulsate,Ht.childPulsate)},timeout:hc,pulsate:_,rippleX:O,rippleY:N,rippleSize:q},u.current)]),u.current+=1,d.current=Z},[i]),S=j.useCallback((E={},_={},O=()=>{})=>{const{pulsate:N=!1,center:q=o||_.pulsate,fakeElement:Z=!1}=_;if(E?.type==="mousedown"&&f.current){f.current=!1;return}E?.type==="touchstart"&&(f.current=!0);const L=Z?null:p.current,K=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,I,A;if(q||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)v=Math.round(K.width/2),I=Math.round(K.height/2);else{const{clientX:U,clientY:H}=E.touches&&E.touches.length>0?E.touches[0]:E;v=Math.round(U-K.left),I=Math.round(H-K.top)}if(q)A=Math.sqrt((2*K.width**2+K.height**2)/3),A%2===0&&(A+=1);else{const U=Math.max(Math.abs((L?L.clientWidth:0)-v),v)*2+2,H=Math.max(Math.abs((L?L.clientHeight:0)-I),I)*2+2;A=Math.sqrt(U**2+H**2)}E?.touches?g.current===null&&(g.current=()=>{y({pulsate:N,rippleX:v,rippleY:I,rippleSize:A,cb:O})},m.start(eE,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:N,rippleX:v,rippleY:I,rippleSize:A,cb:O})},[o,y,m]),C=j.useCallback(()=>{S({},{pulsate:!0})},[S]),k=j.useCallback((E,_)=>{if(m.clear(),E?.type==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{k(E,_)});return}g.current=null,l(O=>O.length>0?O.slice(1):O),d.current=_},[m]);return j.useImperativeHandle(t,()=>({pulsate:C,start:S,stop:k}),[C,S,k]),h.jsx(oE,{className:_e(Ht.root,i.root,a),ref:p,...s,children:h.jsx(dc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(jp.propTypes={center:b.bool,classes:b.object,className:b.string});function aE(e){return Ct("MuiButtonBase",e)}const sE=Et("MuiButtonBase",["root","disabled","focusVisible"]),cE=e=>{const{disabled:r,focusVisible:t,focusVisibleClassName:n,classes:o}=e,a=Lt({root:["root",r&&"disabled",t&&"focusVisible"]},aE,o);return t&&n&&(a.root+=` ${n}`),a},lE=ut("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"},[`&.${sE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:p,onClick:y,onContextMenu:S,onDragLeave:C,onFocus:k,onFocusVisible:E,onKeyDown:_,onKeyUp:O,onMouseDown:N,onMouseLeave:q,onMouseUp:Z,onTouchEnd:L,onTouchMove:K,onTouchStart:v,tabIndex:I=0,TouchRippleProps:A,touchRippleRef:U,type:H,...ee}=n,re=j.useRef(null),se=XC(),V=Ja(se.ref,U),[G,ge]=j.useState(!1);l&&G&&ge(!1),j.useImperativeHandle(o,()=>({focusVisible:()=>{ge(!0),re.current.focus()}}),[]);const ve=se.shouldMount&&!u&&!l;j.useEffect(()=>{G&&f&&!u&&se.pulsate()},[u,f,G,se]);const he=Er(se,"start",N,d),J=Er(se,"stop",S,d),Q=Er(se,"stop",C,d),ce=Er(se,"stop",Z,d),ue=Er(se,"stop",M=>{G&&M.preventDefault(),q&&q(M)},d),F=Er(se,"start",v,d),W=Er(se,"stop",L,d),de=Er(se,"stop",K,d),P=Er(se,"stop",M=>{Np(M.target)||ge(!1),p&&p(M)},!1),we=ui(M=>{re.current||(re.current=M.currentTarget),Np(M.target)&&(ge(!0),E&&E(M)),k&&k(M)}),Qe=()=>{const M=re.current;return c&&c!=="button"&&!(M.tagName==="A"&&M.href)},wt=ui(M=>{f&&!M.repeat&&G&&M.key===" "&&se.stop(M,()=>{se.start(M)}),M.target===M.currentTarget&&Qe()&&M.key===" "&&M.preventDefault(),_&&_(M),M.target===M.currentTarget&&Qe()&&M.key==="Enter"&&!l&&(M.preventDefault(),y&&y(M))}),kr=ui(M=>{f&&M.key===" "&&G&&!M.defaultPrevented&&se.stop(M,()=>{se.pulsate(M)}),O&&O(M),y&&M.target===M.currentTarget&&Qe()&&M.key===" "&&!M.defaultPrevented&&y(M)});let Dr=c;Dr==="button"&&(ee.href||ee.to)&&(Dr=g);const Tr={};Dr==="button"?(Tr.type=H===void 0?"button":H,Tr.disabled=l):(!ee.href&&!ee.to&&(Tr.role="button"),l&&(Tr["aria-disabled"]=l));const Or=Ja(t,re),T={...n,centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:G},R=cE(T);return h.jsxs(lE,{as:Dr,className:_e(R.root,s),ownerState:T,onBlur:P,onClick:y,onContextMenu:J,onFocus:we,onKeyDown:wt,onKeyUp:kr,onMouseDown:he,onMouseLeave:ue,onMouseUp:ce,onDragLeave:Q,onTouchEnd:W,onTouchMove:de,onTouchStart:F,ref:Or,tabIndex:l?-1:I,type:H,...Tr,...ee,children:[a,ve?h.jsx(jp,{ref:V,center:i,...A}):null]})});function Er(e,r,t,n=!1){return ui(o=>(t&&t(o),n||e[r](o),!0))}process.env.NODE_ENV!=="production"&&(Lp.propTypes={action:QC,centerRipple:b.bool,children:b.node,classes:b.object,className:b.string,component:Ip,disabled:b.bool,disableRipple:b.bool,disableTouchRipple:b.bool,focusRipple:b.bool,focusVisibleClassName:b.string,href:b.any,LinkComponent:b.elementType,onBlur:b.func,onClick:b.func,onContextMenu:b.func,onDragLeave:b.func,onFocus:b.func,onFocusVisible:b.func,onKeyDown:b.func,onKeyUp:b.func,onMouseDown:b.func,onMouseLeave:b.func,onMouseUp:b.func,onTouchEnd:b.func,onTouchMove:b.func,onTouchStart:b.func,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,TouchRippleProps:b.object,touchRippleRef:b.oneOfType([b.func,b.shape({current:b.shape({pulsate:b.func.isRequired,start:b.func.isRequired,stop:b.func.isRequired})})]),type:b.oneOfType([b.oneOf(["button","reset","submit"]),b.string])});function uE(e){return Ct("MuiCircularProgress",e)}Et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Lr=44,mc=Gn`
263
263
  0% {
264
264
  transform: rotate(0deg);
265
265
  }
@@ -267,7 +267,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
267
267
  100% {
268
268
  transform: rotate(360deg);
269
269
  }
270
- `,hc=Kn`
270
+ `,gc=Gn`
271
271
  0% {
272
272
  stroke-dasharray: 1px, 200px;
273
273
  stroke-dashoffset: 0;
@@ -282,11 +282,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
282
282
  stroke-dasharray: 1px, 200px;
283
283
  stroke-dashoffset: -126px;
284
284
  }
285
- `,uE=typeof pc!="string"?ja`
286
- animation: ${pc} 1.4s linear infinite;
287
- `:null,dE=typeof hc!="string"?ja`
288
- animation: ${hc} 1.4s ease-in-out infinite;
289
- `:null,fE=e=>{const{classes:r,variant:t,color:n,disableShrink:o}=e,i={root:["root",t,`color${Ke(n)}`],svg:["svg"],circle:["circle",`circle${Ke(t)}`,o&&"circleDisableShrink"]};return Lt(i,lE,r)},pE=ut("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`color${Ke(t.color)}`]]}})(cr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:uE||{animation:`${pc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dc()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}}))]}))),hE=ut("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),mE=ut("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.circle,r[`circle${Ke(t.variant)}`],t.disableShrink&&r.circleDisableShrink]}})(cr(({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:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:dE||{animation:`${hc} 1.4s ease-in-out infinite`}}]}))),Lp=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d="indeterminate",...f}=n,m={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d},g=fE(m),p={},y={},S={};if(d==="determinate"){const C=2*Math.PI*((Lr-l)/2);p.strokeDasharray=C.toFixed(3),S["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,y.transform="rotate(-90deg)"}return h.jsx(pE,{className:be(g.root,o),style:{width:s,height:s,...y,...c},ownerState:m,ref:t,role:"progressbar",...S,...f,children:h.jsx(hE,{className:g.svg,ownerState:m,viewBox:`${Lr/2} ${Lr/2} ${Lr} ${Lr}`,children:h.jsx(mE,{className:g.circle,style:p,ownerState:m,cx:Lr,cy:Lr,r:(Lr-l)/2,fill:"none",strokeWidth:l})})})});process.env.NODE_ENV!=="production"&&(Lp.propTypes={classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","primary","secondary","error","info","success","warning"]),b.string]),disableShrink:da(b.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:b.oneOfType([b.number,b.string]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),thickness:b.number,value:b.number,variant:b.oneOf(["determinate","indeterminate"])});function gE(e){return Ct("MuiIconButton",e)}const zp=Et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),vE=e=>{const{classes:r,disabled:t,color:n,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",t&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Lt(s,gE,r)},yE=ut(jp,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.loading&&r.loading,t.color!=="default"&&r[`color${Ke(t.color)}`],t.edge&&r[`edge${Ke(t.edge)}`],r[`size${Ke(t.size)}`]]}})(cr(({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:r=>!r.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}}]})),cr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dc()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(dc()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[r].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)}}],[`&.${zp.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${zp.loading}`]:{color:"transparent"}}))),bE=ut("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"}}]})),Bp=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium",id:d,loading:f=null,loadingIndicator:m,...g}=n,p=Fg(d),y=m??h.jsx(Lp,{"aria-labelledby":p,color:"inherit",size:16}),S={...n,edge:o,color:s,disabled:c,disableFocusRipple:l,loading:f,loadingIndicator:y,size:u},C=vE(S);return h.jsxs(yE,{id:f?p:d,className:be(C.root,a),centerRipple:!0,focusRipple:!l,disabled:c||f,ref:t,...g,ownerState:S,children:[typeof f=="boolean"&&h.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:h.jsx(bE,{className:C.loadingIndicator,ownerState:S,children:f&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Bp.propTypes={children:da(b.node,e=>$.Children.toArray(e.children).some(t=>$.isValidElement(t)&&t.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(`
290
- `)):null),classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),b.string]),disabled:b.bool,disableFocusRipple:b.bool,disableRipple:b.bool,edge:b.oneOf(["end","start",!1]),id:b.string,loading:b.bool,loadingIndicator:b.node,size:b.oneOfType([b.oneOf(["small","medium","large"]),b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const mc=$.createContext();process.env.NODE_ENV!=="production"&&(mc.displayName="TableContext");function wE(e){return Ct("MuiTable",e)}Et("MuiTable",["root","stickyHeader"]);const _E=e=>{const{classes:r,stickyHeader:t}=e;return Lt({root:["root",t&&"stickyHeader"]},wE,r)},xE=ut("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.stickyHeader&&r.stickyHeader]}})(cr(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:r})=>r.stickyHeader,style:{borderCollapse:"separate"}}]}))),Vp="table",gc=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTable"}),{className:o,component:i=Vp,padding:a="normal",size:s="medium",stickyHeader:c=!1,...l}=n,u={...n,component:i,padding:a,size:s,stickyHeader:c},d=_E(u),f=$.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return h.jsx(mc.Provider,{value:f,children:h.jsx(xE,{as:i,role:i===Vp?null:"table",ref:t,className:be(d.root,o),ownerState:u,...l})})});process.env.NODE_ENV!=="production"&&(gc.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,padding:b.oneOf(["checkbox","none","normal"]),size:b.oneOfType([b.oneOf(["medium","small"]),b.string]),stickyHeader:b.bool,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const ko=$.createContext();process.env.NODE_ENV!=="production"&&(ko.displayName="Tablelvl2Context");function SE(e){return Ct("MuiTableBody",e)}Et("MuiTableBody",["root"]);const CE=e=>{const{classes:r}=e;return Lt({root:["root"]},SE,r)},EE=ut("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),kE={variant:"body"},Fp="tbody",ha=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableBody"}),{className:o,component:i=Fp,...a}=n,s={...n,component:i},c=CE(s);return h.jsx(ko.Provider,{value:kE,children:h.jsx(EE,{className:be(c.root,o),as:i,ref:t,role:i===Fp?null:"rowgroup",ownerState:s,...a})})});process.env.NODE_ENV!=="production"&&(ha.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function DE(e){return Ct("MuiTableCell",e)}const TE=Et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),OE=e=>{const{classes:r,variant:t,align:n,padding:o,size:i,stickyHeader:a}=e,s={root:["root",t,a&&"stickyHeader",n!=="inherit"&&`align${Ke(n)}`,o!=="normal"&&`padding${Ke(o)}`,`size${Ke(i)}`]};return Lt(s,DE,r)},ME=ut("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`size${Ke(t.size)}`],t.padding!=="normal"&&r[`padding${Ke(t.padding)}`],t.align!=="inherit"&&r[`align${Ke(t.align)}`],t.stickyHeader&&r.stickyHeader]}})(cr(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
291
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${TE.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:r})=>r.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),qe=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:c,size:l,sortDirection:u,variant:d,...f}=n,m=$.useContext(mc),g=$.useContext(ko),p=g&&g.variant==="head";let y;a?y=a:y=p?"th":"td";let S=c;y==="td"?S=void 0:!S&&p&&(S="col");const C=d||g&&g.variant,k={...n,align:o,component:y,padding:s||(m&&m.padding?m.padding:"normal"),size:l||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C},E=OE(k);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),h.jsx(ME,{as:y,ref:t,className:be(E.root,i),"aria-sort":_,scope:S,ownerState:k,...f})});process.env.NODE_ENV!=="production"&&(qe.propTypes={align:b.oneOf(["center","inherit","justify","left","right"]),children:b.node,classes:b.object,className:b.string,component:b.elementType,padding:b.oneOf(["checkbox","none","normal"]),scope:b.string,size:b.oneOfType([b.oneOf(["medium","small"]),b.string]),sortDirection:b.oneOf(["asc","desc",!1]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["body","footer","head"]),b.string])});function PE(e){return Ct("MuiTableContainer",e)}Et("MuiTableContainer",["root"]);const AE=e=>{const{classes:r}=e;return Lt({root:["root"]},PE,r)},IE=ut("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Yp=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=n,s={...n,component:i},c=AE(s);return h.jsx(IE,{ref:t,as:i,className:be(c.root,o),ownerState:s,...a})});process.env.NODE_ENV!=="production"&&(Yp.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function RE(e){return Ct("MuiTableHead",e)}Et("MuiTableHead",["root"]);const NE=e=>{const{classes:r}=e;return Lt({root:["root"]},RE,r)},$E=ut("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),jE={variant:"head"},Up="thead",vc=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableHead"}),{className:o,component:i=Up,...a}=n,s={...n,component:i},c=NE(s);return h.jsx(ko.Provider,{value:jE,children:h.jsx($E,{as:i,className:be(c.root,o),ref:t,role:i===Up?null:"rowgroup",ownerState:s,...a})})});process.env.NODE_ENV!=="production"&&(vc.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function LE(e){return Ct("MuiTableRow",e)}const Hp=Et("MuiTableRow",["root","selected","hover","head","footer"]),zE=e=>{const{classes:r,selected:t,hover:n,head:o,footer:i}=e;return Lt({root:["root",t&&"selected",n&&"hover",o&&"head",i&&"footer"]},LE,r)},BE=ut("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.head&&r.head,t.footer&&r.footer]}})(cr(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hp.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hp.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Wp="tr",an=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableRow"}),{className:o,component:i=Wp,hover:a=!1,selected:s=!1,...c}=n,l=$.useContext(ko),u={...n,component:i,hover:a,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=zE(u);return h.jsx(BE,{as:i,ref:t,className:be(d.root,o),role:i===Wp?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,hover:b.bool,selected:b.bool,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function VE(e){const r=typeof e;switch(r){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 r}}function Zp(e,r,t,n){const o=e[r];if(o==null||!Number.isInteger(o)){const i=VE(o);return new RangeError(`Invalid ${n} \`${r}\` of type \`${i}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function qp(e,r,t,n){return e[r]===void 0?null:Zp(e,r,t,n)}function yc(){return null}qp.isRequired=Zp,yc.isRequired=yc;const FE=process.env.NODE_ENV==="production"?yc:qp;function YE(e){return Ct("MuiPaper",e)}Et("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 UE=e=>{const{square:r,elevation:t,variant:n,classes:o}=e,i={root:["root",n,!r&&"rounded",n==="elevation"&&`elevation${t}`]};return Lt(i,YE,o)},HE=ut("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],!t.square&&r.rounded,t.variant==="elevation"&&r[`elevation${t.elevation}`]]}})(cr(({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:r})=>!r.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)"}}]}))),Kp=$.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiPaper"}),o=ou(),{className:i,component:a="div",elevation:s=1,square:c=!1,variant:l="elevation",...u}=n,d={...n,component:a,elevation:s,square:c,variant:l},f=UE(d);return process.env.NODE_ENV!=="production"&&o.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
292
- `)),h.jsx(HE,{as:a,ownerState:d,className:be(f.root,i),ref:t,...u,style:{...l==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ni("#fff",qa(s))}, ${ni("#fff",qa(s))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Kp.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,elevation:da(FE,e=>{const{elevation:r,variant:t}=e;return r>0&&t==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:b.bool,style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["elevation","outlined"]),b.string])});function bc(e,r,t,n,o,i){return{name:e,calories:r,fat:t,carbs:n,history:[{date:"2020-01-05",customerId:"Ford Lobo 2021",amount:"Finalizada",level:"Muy interesado"},{date:"2020-01-02",customerId:"Ford Lobo 2020",amount:"Finalizada con Venta",level:"Venta definitiva"}]}}function WE(e){const{row:r}=e,[t,n]=$.useState(!1);return h.jsxs($.Fragment,{children:[h.jsxs(an,{sx:{"& > *":{borderBottom:"unset"}},children:[h.jsx(qe,{children:h.jsx(Bp,{"aria-label":"expand row",size:"small",onClick:()=>n(!t),children:t?h.jsx(TC,{}):h.jsx(DC,{})})}),h.jsx(qe,{component:"th",scope:"row",children:r.name}),h.jsx(qe,{align:"right",children:r.calories}),h.jsx(qe,{align:"right",children:r.fat}),h.jsx(qe,{align:"right",children:r.carbs})]}),h.jsx(an,{children:h.jsx(qe,{style:{padding:0},colSpan:6,children:h.jsx(fa,{in:t,timeout:"auto",unmountOnExit:!0,children:h.jsx(ic,{sx:{mt:3,mb:3},children:h.jsx(ic,{sx:{px:3},children:h.jsxs(gc,{size:"medium","aria-label":"purchases",children:[h.jsx(vc,{children:h.jsxs(an,{sx:{backgroundColor:"#d8e9fd"},children:[h.jsx(qe,{children:"Fecha"}),h.jsx(qe,{children:"Articulo"}),h.jsx(qe,{align:"right",children:"Estatus"}),h.jsx(qe,{align:"right",children:"Nivel interes"})]})}),h.jsx(ha,{children:r.history.map(o=>h.jsxs(an,{children:[h.jsx(qe,{component:"th",scope:"row",children:o.date}),h.jsx(qe,{children:o.customerId}),h.jsx(qe,{align:"right",children:o.amount}),h.jsx(qe,{align:"right",children:o.level})]},o.date))})]})})})})})})]})}function ZE(e){const{row:r}=e;return h.jsx($.Fragment,{children:h.jsxs(an,{sx:{"& > *":{borderBottom:"unset"}},children:[h.jsx(qe,{component:"th",scope:"row",children:r.name}),h.jsx(qe,{align:"right",children:r.calories}),h.jsx(qe,{align:"right",children:r.fat}),h.jsx(qe,{align:"right",children:r.carbs})]})})}const Gp=[bc("Vehículos Nuevos",9,7,2),bc("Vehículos Seminuevos",3,2,3),bc("Pruebas de Manejo",5,7,3)];function Qp(e){const{name:r,collapses:t}=e;return h.jsx(Yp,{component:Kp,sx:{boxShadow:t?"auto":"none",border:t?"auto":"none"},children:h.jsxs(gc,{"aria-label":"collapsible table",children:[h.jsx(vc,{children:h.jsxs(an,{children:[t&&h.jsx(qe,{}),h.jsx(qe,{children:"Dessert (100g serving)"}),h.jsx(qe,{align:"right",children:"#Solicitudes"}),h.jsx(qe,{align:"right",children:"Finalizadas"}),h.jsx(qe,{align:"right",children:"En proceso"})]})}),t?h.jsx(ha,{children:Gp.map(n=>h.jsx(WE,{row:n},n.name))}):h.jsx(ha,{children:Gp.map(n=>h.jsx(ZE,{row:n},n.name))})]})})}function qE({open:e,onClose:r,customer:t,fields:n=[],vehicles:o=[],vehiclesTitle:i="Vehículos",header:a}){if(!t)return null;const s=a?.title??(l=>l?.Nombre||l?.name||"Sin título"),c=a?.infoItems??[];return h.jsx(N.Dialog,{open:e,onClose:r,maxWidth:"lg",fullWidth:!0,PaperProps:{sx:{height:"90vh",overflow:"hidden",display:"flex",flexDirection:"column"}},children:h.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row",height:"100vh"},children:[h.jsxs(N.Box,{sx:{maxWidth:392,width:"100%",backgroundColor:"#40404024",display:"flex",flexDirection:"column",height:"100%"},children:[h.jsxs(N.Box,{children:[h.jsx(N.Stack,{direction:"row",spacing:2,alignItems:"center",mb:2,sx:{px:2.5,pt:2.5},children:h.jsxs(N.Box,{display:"flex",flexDirection:"column",gap:1,children:[h.jsx(N.Typography,{fontWeight:700,children:s(t)}),c.map((l,u)=>h.jsxs(N.Box,{sx:{display:"flex",gap:1.2,alignItems:"center",cursor:l.onClick?"pointer":"default"},onClick:l.onClick?()=>l.onClick(t):void 0,children:[l.icon,h.jsx(N.Typography,{variant:"body2",sx:{color:l.inLink?"#336BE1":"#070C10"},style:{},children:l.value(t)})]},u))]})}),a?.actions?.length?h.jsx(N.Stack,{direction:"row",spacing:1,mb:2,sx:{px:2.5},children:a.actions.map((l,u)=>h.jsxs(N.Button,{variant:"outlined",sx:{color:"#336BE1",borderColor:"#336BE1",gap:1,textTransform:"none"},onClick:()=>l.onClick(t),children:[l.icon,l.label]},u))}):null,h.jsx(N.Stack,{mb:2,sx:{px:2.5,pt:0,gap:2},children:n.map((l,u)=>h.jsxs(N.Box,{display:"flex",justifyContent:"space-between",children:[h.jsx(N.Box,{sx:{width:"50%"},children:h.jsx(N.Typography,{variant:"body2",color:"text.secondary",sx:{color:"#5C6372"},children:l.label})}),h.jsxs(N.Box,{sx:{width:"50%",display:"flex",alignItems:"center",gap:1},children:[h.jsx("div",{children:l?.avatar?l.avatar(t):null}),h.jsx(N.Typography,{variant:"body2",color:"textPrimary",children:l?.value(t)})]})]},u))}),h.jsx(N.Divider,{sx:{my:2}})]}),h.jsxs(N.Box,{sx:{px:2.5,pt:0,gap:2,flex:1,overflowY:"auto",display:"flex",flexDirection:"column"},children:[h.jsx(N.Stack,{children:h.jsx(N.Typography,{variant:"body1",sx:{color:"#5C6372"},children:"Actividad"})}),h.jsxs(N.Stack,{spacing:1.25,children:[h.jsx(N.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Crear cliente"}),h.jsxs(N.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(N.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(N.Stack,{spacing:0,children:[h.jsx(N.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(N.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsx(N.Divider,{}),h.jsxs(N.Stack,{spacing:1.25,children:[h.jsx(N.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs(N.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs(N.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs(N.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(N.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(N.Stack,{spacing:0,children:[h.jsx(N.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(N.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx(N.Box,{sx:{flex:1}}),h.jsx(N.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(Ep,{fontSize:"small"})})]})]}),h.jsx(N.Divider,{}),h.jsxs(N.Stack,{spacing:1.25,children:[h.jsx(N.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs(N.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs(N.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs(N.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(N.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(N.Stack,{spacing:0,children:[h.jsx(N.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(N.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsxs(N.Stack,{spacing:1.25,children:[h.jsx(N.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs(N.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs(N.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs(N.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(N.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(N.Stack,{spacing:0,children:[h.jsx(N.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(N.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx(N.Box,{sx:{flex:1}}),h.jsx(N.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(Ep,{fontSize:"small"})})]})]})]})]}),h.jsx(N.Box,{sx:{width:"100%",overflowY:"auto"},children:h.jsxs(N.Box,{sx:{mt:3},children:[h.jsxs(N.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:4,padding:"0 20px 0 20px"},children:[h.jsx(N.Typography,{variant:"h6",children:"Solicitudes:"}),h.jsx(Qp,{collapses:!0})]}),h.jsxs(N.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:4},children:[h.jsx(N.Typography,{variant:"h6",sx:{paddingLeft:"20px"},children:"Vehículo:"}),h.jsx(Qp,{collapses:!1})]})]})})]})})}function Xp(e,r,t){const{fields:n,order:o=["nombreCliente","email","acciones"],header:i={},cells:a={},hide:s={},actions:c}=r,l=c??{},u=l.show??{},d=l.handlers??{},f=l.accessors??{},m=l.icons??{},g=l.className??"d-flex flex-row gap-2 align-items-center ",p=l.tooltip??{},y=m.view??h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",style:{fill:"#070c10"},children:[h.jsx("path",{d:"M18.6,6.3c-3.9-3-9.3-3-13.2,0-1.9,1.5-3.2,3.5-3.9,5.7.7,2.3,2,4.3,3.9,5.7,1.9,1.5,4.2,2.3,6.6,2.3,2.4,0,4.7-.8,6.6-2.3,1.9-1.5,3.2-3.5,3.9-5.7-.7-2.3-2-4.3-3.9-5.7ZM17.2,12.1c0,2.9-2.5,5.3-5.4,5.2-2.9,0-5.3-2.5-5.2-5.4,0-2.9,2.5-5.3,5.4-5.2,2.9,0,5.3,2.4,5.2,5.3,0,0,0,0,0,0Z"}),h.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),S={nombreCliente:{key:"nombreCliente",header:i.nombreCliente??"Cliente",accessor:j=>j[n.nombreCliente],cell:a.nombreCliente,width:310},email:{key:"email",header:i.email??"Correo",accessor:j=>j[n.email],cell:a.email??(j=>{const K=String(j[n.email]??"");return K?h.jsx("a",{href:`mailto:${K}`,children:K}):h.jsx("span",{className:"text-muted",children:"—"})}),width:250},acciones:s.acciones?void 0:{key:"acciones",header:"",cell:a.acciones??(j=>{const K=oc(u.whatsapp,j,!0),v=oc(u.email,j,!0),A=oc(u.view,j,!0),P=f.phone?.(j),H=f.email?.(j),W=()=>{if(d.onWhatsApp)return d.onWhatsApp(j);if(!P)return;const Q=f.countryCode??"52",L=EC(String(P));typeof window<"u"&&window.open(`https://wa.me/${Q}${L}`,"_blank")},J=()=>{if(d.onEmail)return d.onEmail(j);H&&typeof window<"u"&&(window.location.href=`mailto:${H}`)},V=()=>{if(d.onView)return d.onView(j);t?.(j)};return h.jsxs("div",{className:g,children:[K&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.whatsapp??"WhatsApp",onClick:W,style:{width:24,height:24},children:h.jsx("img",{src:xC,alt:"WhatsApp"})}),v&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.email??"Email",onClick:J,style:{width:24,height:24},children:h.jsx("img",{src:SC,alt:"Email"})}),A&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.view??"Ver detalle",onClick:V,style:{width:24,height:24},children:y})]})}),width:120}},C=Object.values(S).filter(j=>!!j),k=(e??[]).filter(j=>!!j?.key),E=new Map;for(const j of C)E.set(String(j.key),j);for(const j of k)E.set(String(j.key),j);const _=[...C.map(j=>String(j.key)),...k.map(j=>String(j.key))],O=Array.from(new Set(o.map(j=>String(j)).filter(j=>E.has(j)))),R=_.filter(j=>!O.includes(j)),q=[...O,...R],Z="acciones";if(E.has(Z)){const j=q.filter(K=>K!==Z);q.splice(0,q.length,...j,Z)}return q.map(j=>E.get(j))}function KE(e){const{rows:r,columns:t,clientSort:n=!0,defaultSort:o,minWidth:i=1100,rowKey:a=kC,defaults:s,detailConfig:c}=e,[l,u]=x.useState(o??null),[d,f]=x.useState({open:!1,customer:null}),[m,g]=x.useState([]),p=k=>{f({open:!0,customer:k});const E=c?.vehiclesProvider?.(k)??[];g(Array.isArray(E)?E:[])},y=()=>f({open:!1,customer:null}),S=x.useMemo(()=>s?Xp(t??[],s,p):Xp(t??[],{fields:{},order:[]},p),[t,s]),C=x.useMemo(()=>{if(!n||!l)return r;const k=S.find(_=>_.key===l.key);if(!k)return r;const E=[...r];return E.sort((_,O)=>{const R=nc(k,_,0),q=nc(k,O,0),Z=CC(R,q);return l.direction==="asc"?Z:-Z}),E},[r,S,l,n]);return h.jsxs("div",{className:"",children:[h.jsx("h3",{children:"Ejemplo Componente reutilizable"}),h.jsx("div",{className:"table-clientes back-white rounded-3 shadow-main mt-4 mb-4 ",children:h.jsx("div",{className:"table-responsive",children:h.jsxs("table",{className:"table table-hover align-middle mb-0",style:{minWidth:i},children:[h.jsx("thead",{children:h.jsx("tr",{children:S.map(k=>h.jsx("th",{style:{fontWeight:600,width:k.width},children:k.header},k.key))})}),h.jsx("tbody",{children:C.map((k,E)=>h.jsx("tr",{children:S.map((_,O)=>{const R=_.Component?h.jsx(_.Component,{row:k,index:E}):_.cell?_.cell(k,E):(()=>{const q=nc(_,k,E);return q==null||q===""?"":String(q)})();return h.jsx("td",{children:R},`${String(_.key)}-${O}`)})},a(k,E)))})]})})}),h.jsx(qE,{open:d.open,onClose:y,customer:d.customer,fields:c?.dynamicFields,header:c?.header})]})}vt.ApiProvider=g2,vt.Clientes=KE,vt.CustomSnackbar=Cp,vt.MyCalendar=_C,vt.useEventRepository=Ps,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})}));
285
+ `,dE=typeof mc!="string"?za`
286
+ animation: ${mc} 1.4s linear infinite;
287
+ `:null,fE=typeof gc!="string"?za`
288
+ animation: ${gc} 1.4s ease-in-out infinite;
289
+ `:null,pE=e=>{const{classes:r,variant:t,color:n,disableShrink:o}=e,i={root:["root",t,`color${Ke(n)}`],svg:["svg"],circle:["circle",`circle${Ke(t)}`,o&&"circleDisableShrink"]};return Lt(i,uE,r)},hE=ut("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`color${Ke(t.color)}`]]}})(cr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dE||{animation:`${mc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(pc()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}}))]}))),mE=ut("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),gE=ut("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.circle,r[`circle${Ke(t.variant)}`],t.disableShrink&&r.circleDisableShrink]}})(cr(({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:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:fE||{animation:`${gc} 1.4s ease-in-out infinite`}}]}))),zp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d="indeterminate",...f}=n,m={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d},g=pE(m),p={},y={},S={};if(d==="determinate"){const C=2*Math.PI*((Lr-l)/2);p.strokeDasharray=C.toFixed(3),S["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,y.transform="rotate(-90deg)"}return h.jsx(hE,{className:_e(g.root,o),style:{width:s,height:s,...y,...c},ownerState:m,ref:t,role:"progressbar",...S,...f,children:h.jsx(mE,{className:g.svg,ownerState:m,viewBox:`${Lr/2} ${Lr/2} ${Lr} ${Lr}`,children:h.jsx(gE,{className:g.circle,style:p,ownerState:m,cx:Lr,cy:Lr,r:(Lr-l)/2,fill:"none",strokeWidth:l})})})});process.env.NODE_ENV!=="production"&&(zp.propTypes={classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","primary","secondary","error","info","success","warning"]),b.string]),disableShrink:pa(b.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:b.oneOfType([b.number,b.string]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),thickness:b.number,value:b.number,variant:b.oneOf(["determinate","indeterminate"])});function vE(e){return Ct("MuiIconButton",e)}const Bp=Et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),yE=e=>{const{classes:r,disabled:t,color:n,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",t&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Lt(s,vE,r)},bE=ut(Lp,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.loading&&r.loading,t.color!=="default"&&r[`color${Ke(t.color)}`],t.edge&&r[`edge${Ke(t.edge)}`],r[`size${Ke(t.size)}`]]}})(cr(({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:r=>!r.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}}]})),cr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(pc()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(pc()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[r].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)}}],[`&.${Bp.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Bp.loading}`]:{color:"transparent"}}))),wE=ut("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"}}]})),Vp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium",id:d,loading:f=null,loadingIndicator:m,...g}=n,p=Yg(d),y=m??h.jsx(zp,{"aria-labelledby":p,color:"inherit",size:16}),S={...n,edge:o,color:s,disabled:c,disableFocusRipple:l,loading:f,loadingIndicator:y,size:u},C=yE(S);return h.jsxs(bE,{id:f?p:d,className:_e(C.root,a),centerRipple:!0,focusRipple:!l,disabled:c||f,ref:t,...g,ownerState:S,children:[typeof f=="boolean"&&h.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:h.jsx(wE,{className:C.loadingIndicator,ownerState:S,children:f&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Vp.propTypes={children:pa(b.node,e=>j.Children.toArray(e.children).some(t=>j.isValidElement(t)&&t.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(`
290
+ `)):null),classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),b.string]),disabled:b.bool,disableFocusRipple:b.bool,disableRipple:b.bool,edge:b.oneOf(["end","start",!1]),id:b.string,loading:b.bool,loadingIndicator:b.node,size:b.oneOfType([b.oneOf(["small","medium","large"]),b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const vc=j.createContext();process.env.NODE_ENV!=="production"&&(vc.displayName="TableContext");function _E(e){return Ct("MuiTable",e)}Et("MuiTable",["root","stickyHeader"]);const xE=e=>{const{classes:r,stickyHeader:t}=e;return Lt({root:["root",t&&"stickyHeader"]},_E,r)},SE=ut("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.stickyHeader&&r.stickyHeader]}})(cr(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:r})=>r.stickyHeader,style:{borderCollapse:"separate"}}]}))),Fp="table",yc=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTable"}),{className:o,component:i=Fp,padding:a="normal",size:s="medium",stickyHeader:c=!1,...l}=n,u={...n,component:i,padding:a,size:s,stickyHeader:c},d=xE(u),f=j.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return h.jsx(vc.Provider,{value:f,children:h.jsx(SE,{as:i,role:i===Fp?null:"table",ref:t,className:_e(d.root,o),ownerState:u,...l})})});process.env.NODE_ENV!=="production"&&(yc.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,padding:b.oneOf(["checkbox","none","normal"]),size:b.oneOfType([b.oneOf(["medium","small"]),b.string]),stickyHeader:b.bool,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const To=j.createContext();process.env.NODE_ENV!=="production"&&(To.displayName="Tablelvl2Context");function CE(e){return Ct("MuiTableBody",e)}Et("MuiTableBody",["root"]);const EE=e=>{const{classes:r}=e;return Lt({root:["root"]},CE,r)},kE=ut("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),DE={variant:"body"},Yp="tbody",ga=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableBody"}),{className:o,component:i=Yp,...a}=n,s={...n,component:i},c=EE(s);return h.jsx(To.Provider,{value:DE,children:h.jsx(kE,{className:_e(c.root,o),as:i,ref:t,role:i===Yp?null:"rowgroup",ownerState:s,...a})})});process.env.NODE_ENV!=="production"&&(ga.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function TE(e){return Ct("MuiTableCell",e)}const OE=Et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ME=e=>{const{classes:r,variant:t,align:n,padding:o,size:i,stickyHeader:a}=e,s={root:["root",t,a&&"stickyHeader",n!=="inherit"&&`align${Ke(n)}`,o!=="normal"&&`padding${Ke(o)}`,`size${Ke(i)}`]};return Lt(s,TE,r)},PE=ut("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`size${Ke(t.size)}`],t.padding!=="normal"&&r[`padding${Ke(t.padding)}`],t.align!=="inherit"&&r[`align${Ke(t.align)}`],t.stickyHeader&&r.stickyHeader]}})(cr(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
291
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${OE.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:r})=>r.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),qe=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:c,size:l,sortDirection:u,variant:d,...f}=n,m=j.useContext(vc),g=j.useContext(To),p=g&&g.variant==="head";let y;a?y=a:y=p?"th":"td";let S=c;y==="td"?S=void 0:!S&&p&&(S="col");const C=d||g&&g.variant,k={...n,align:o,component:y,padding:s||(m&&m.padding?m.padding:"normal"),size:l||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C},E=ME(k);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),h.jsx(PE,{as:y,ref:t,className:_e(E.root,i),"aria-sort":_,scope:S,ownerState:k,...f})});process.env.NODE_ENV!=="production"&&(qe.propTypes={align:b.oneOf(["center","inherit","justify","left","right"]),children:b.node,classes:b.object,className:b.string,component:b.elementType,padding:b.oneOf(["checkbox","none","normal"]),scope:b.string,size:b.oneOfType([b.oneOf(["medium","small"]),b.string]),sortDirection:b.oneOf(["asc","desc",!1]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["body","footer","head"]),b.string])});function AE(e){return Ct("MuiTableContainer",e)}Et("MuiTableContainer",["root"]);const IE=e=>{const{classes:r}=e;return Lt({root:["root"]},AE,r)},RE=ut("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Up=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=n,s={...n,component:i},c=IE(s);return h.jsx(RE,{ref:t,as:i,className:_e(c.root,o),ownerState:s,...a})});process.env.NODE_ENV!=="production"&&(Up.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function NE(e){return Ct("MuiTableHead",e)}Et("MuiTableHead",["root"]);const $E=e=>{const{classes:r}=e;return Lt({root:["root"]},NE,r)},jE=ut("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),LE={variant:"head"},Hp="thead",bc=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableHead"}),{className:o,component:i=Hp,...a}=n,s={...n,component:i},c=$E(s);return h.jsx(To.Provider,{value:LE,children:h.jsx(jE,{as:i,className:_e(c.root,o),ref:t,role:i===Hp?null:"rowgroup",ownerState:s,...a})})});process.env.NODE_ENV!=="production"&&(bc.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function zE(e){return Ct("MuiTableRow",e)}const Wp=Et("MuiTableRow",["root","selected","hover","head","footer"]),BE=e=>{const{classes:r,selected:t,hover:n,head:o,footer:i}=e;return Lt({root:["root",t&&"selected",n&&"hover",o&&"head",i&&"footer"]},zE,r)},VE=ut("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.head&&r.head,t.footer&&r.footer]}})(cr(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Wp.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wp.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Zp="tr",an=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableRow"}),{className:o,component:i=Zp,hover:a=!1,selected:s=!1,...c}=n,l=j.useContext(To),u={...n,component:i,hover:a,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=BE(u);return h.jsx(VE,{as:i,ref:t,className:_e(d.root,o),role:i===Zp?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,hover:b.bool,selected:b.bool,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function FE(e){const r=typeof e;switch(r){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 r}}function qp(e,r,t,n){const o=e[r];if(o==null||!Number.isInteger(o)){const i=FE(o);return new RangeError(`Invalid ${n} \`${r}\` of type \`${i}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function Kp(e,r,t,n){return e[r]===void 0?null:qp(e,r,t,n)}function wc(){return null}Kp.isRequired=qp,wc.isRequired=wc;const YE=process.env.NODE_ENV==="production"?wc:Kp;function UE(e){return Ct("MuiPaper",e)}Et("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 HE=e=>{const{square:r,elevation:t,variant:n,classes:o}=e,i={root:["root",n,!r&&"rounded",n==="elevation"&&`elevation${t}`]};return Lt(i,UE,o)},WE=ut("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],!t.square&&r.rounded,t.variant==="elevation"&&r[`elevation${t.elevation}`]]}})(cr(({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:r})=>!r.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)"}}]}))),Gp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiPaper"}),o=au(),{className:i,component:a="div",elevation:s=1,square:c=!1,variant:l="elevation",...u}=n,d={...n,component:a,elevation:s,square:c,variant:l},f=HE(d);return process.env.NODE_ENV!=="production"&&o.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
292
+ `)),h.jsx(WE,{as:a,ownerState:d,className:_e(f.root,i),ref:t,...u,style:{...l==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ii("#fff",Ga(s))}, ${ii("#fff",Ga(s))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Gp.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,elevation:pa(YE,e=>{const{elevation:r,variant:t}=e;return r>0&&t==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:b.bool,style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["elevation","outlined"]),b.string])});function _c(e,r,t,n,o,i){return{name:e,calories:r,fat:t,carbs:n,history:[{date:"2020-01-05",customerId:"Ford Lobo 2021",amount:"Finalizada",level:"Muy interesado"},{date:"2020-01-02",customerId:"Ford Lobo 2020",amount:"Finalizada con Venta",level:"Venta definitiva"}]}}function ZE(e){const{row:r}=e,[t,n]=j.useState(!1);return h.jsxs(j.Fragment,{children:[h.jsxs(an,{sx:{"& > *":{borderBottom:"unset"}},children:[h.jsx(qe,{children:h.jsx(Vp,{"aria-label":"expand row",size:"small",onClick:()=>n(!t),children:t?h.jsx(OC,{}):h.jsx(TC,{})})}),h.jsx(qe,{component:"th",scope:"row",children:r.name}),h.jsx(qe,{align:"right",children:r.calories}),h.jsx(qe,{align:"right",children:r.fat}),h.jsx(qe,{align:"right",children:r.carbs})]}),h.jsx(an,{children:h.jsx(qe,{style:{padding:0},colSpan:6,children:h.jsx(ha,{in:t,timeout:"auto",unmountOnExit:!0,children:h.jsx(sc,{sx:{mt:3,mb:3},children:h.jsx(sc,{sx:{px:3},children:h.jsxs(yc,{size:"medium","aria-label":"purchases",children:[h.jsx(bc,{children:h.jsxs(an,{sx:{backgroundColor:"#d8e9fd"},children:[h.jsx(qe,{children:"Fecha"}),h.jsx(qe,{children:"Articulo"}),h.jsx(qe,{align:"right",children:"Estatus"}),h.jsx(qe,{align:"right",children:"Nivel interes"})]})}),h.jsx(ga,{children:r.history.map(o=>h.jsxs(an,{children:[h.jsx(qe,{component:"th",scope:"row",children:o.date}),h.jsx(qe,{children:o.customerId}),h.jsx(qe,{align:"right",children:o.amount}),h.jsx(qe,{align:"right",children:o.level})]},o.date))})]})})})})})})]})}function qE(e){const{row:r}=e;return h.jsx(j.Fragment,{children:h.jsxs(an,{sx:{"& > *":{borderBottom:"unset"}},children:[h.jsx(qe,{component:"th",scope:"row",children:r.name}),h.jsx(qe,{align:"right",children:r.calories}),h.jsx(qe,{align:"right",children:r.fat}),h.jsx(qe,{align:"right",children:r.carbs})]})})}const Qp=[_c("Vehículos Nuevos",9,7,2),_c("Vehículos Seminuevos",3,2,3),_c("Pruebas de Manejo",5,7,3)];function Xp(e){const{name:r,collapses:t}=e;return h.jsx(Up,{component:Gp,sx:{boxShadow:t?"auto":"none",border:t?"auto":"none"},children:h.jsxs(yc,{"aria-label":"collapsible table",children:[h.jsx(bc,{children:h.jsxs(an,{children:[t&&h.jsx(qe,{}),h.jsx(qe,{children:"Dessert (100g serving)"}),h.jsx(qe,{align:"right",children:"#Solicitudes"}),h.jsx(qe,{align:"right",children:"Finalizadas"}),h.jsx(qe,{align:"right",children:"En proceso"})]})}),t?h.jsx(ga,{children:Qp.map(n=>h.jsx(ZE,{row:n},n.name))}):h.jsx(ga,{children:Qp.map(n=>h.jsx(qE,{row:n},n.name))})]})})}function KE({open:e,onClose:r,customer:t,fields:n=[],vehicles:o=[],vehiclesTitle:i="Vehículos",header:a}){if(!t)return null;const s=a?.title??(l=>l?.Nombre||l?.name||"Sin título"),c=a?.infoItems??[];return h.jsx($.Dialog,{open:e,onClose:r,maxWidth:"lg",fullWidth:!0,PaperProps:{sx:{height:"90vh",overflow:"hidden",display:"flex",flexDirection:"column"}},children:h.jsxs($.Box,{sx:{display:"flex",flexDirection:"row",height:"100vh"},children:[h.jsxs($.Box,{sx:{maxWidth:392,width:"100%",backgroundColor:"#40404024",display:"flex",flexDirection:"column",height:"100%"},children:[h.jsxs($.Box,{children:[h.jsx($.Stack,{direction:"row",spacing:2,alignItems:"center",mb:2,sx:{px:2.5,pt:2.5},children:h.jsxs($.Box,{display:"flex",flexDirection:"column",gap:1,children:[h.jsx($.Typography,{fontWeight:700,children:s(t)}),c.map((l,u)=>h.jsxs($.Box,{sx:{display:"flex",gap:1.2,alignItems:"center",cursor:l.onClick?"pointer":"default"},onClick:l.onClick?()=>l.onClick(t):void 0,children:[l.icon,h.jsx($.Typography,{variant:"body2",sx:{color:l.inLink?"#336BE1":"#070C10"},style:{},children:l.value(t)})]},u))]})}),a?.actions?.length?h.jsx($.Stack,{direction:"row",spacing:1,mb:2,sx:{px:2.5},children:a.actions.map((l,u)=>h.jsxs($.Button,{variant:"outlined",sx:{color:"#336BE1",borderColor:"#336BE1",gap:1,textTransform:"none"},onClick:()=>l.onClick(t),children:[l.icon,l.label]},u))}):null,h.jsx($.Stack,{mb:2,sx:{px:2.5,pt:0,gap:2},children:n.map((l,u)=>h.jsxs($.Box,{display:"flex",justifyContent:"space-between",children:[h.jsx($.Box,{sx:{width:"50%"},children:h.jsx($.Typography,{variant:"body2",color:"text.secondary",sx:{color:"#5C6372"},children:l.label})}),h.jsxs($.Box,{sx:{width:"50%",display:"flex",alignItems:"center",gap:1},children:[h.jsx("div",{children:l?.avatar?l.avatar(t):null}),h.jsx($.Typography,{variant:"body2",color:"textPrimary",children:l?.value(t)})]})]},u))}),h.jsx($.Divider,{sx:{my:2}})]}),h.jsxs($.Box,{sx:{px:2.5,pt:0,gap:2,flex:1,overflowY:"auto",display:"flex",flexDirection:"column"},children:[h.jsx($.Stack,{children:h.jsx($.Typography,{variant:"body1",sx:{color:"#5C6372"},children:"Actividad"})}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Crear cliente"}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsx($.Divider,{}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs($.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs($.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx($.Box,{sx:{flex:1}}),h.jsx($.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(kp,{fontSize:"small"})})]})]}),h.jsx($.Divider,{}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs($.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs($.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs($.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs($.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx($.Box,{sx:{flex:1}}),h.jsx($.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(kp,{fontSize:"small"})})]})]})]})]}),h.jsx($.Box,{sx:{width:"100%",overflowY:"auto"},children:h.jsxs($.Box,{sx:{mt:3},children:[h.jsxs($.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:4,padding:"0 20px 0 20px"},children:[h.jsx($.Typography,{variant:"h6",children:"Solicitudes:"}),h.jsx(Xp,{collapses:!0})]}),h.jsxs($.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:4},children:[h.jsx($.Typography,{variant:"h6",sx:{paddingLeft:"20px"},children:"Vehículo:"}),h.jsx(Xp,{collapses:!1})]})]})})]})})}function Jp(e,r,t){const{fields:n,order:o=["nombreCliente","email","acciones"],header:i={},cells:a={},hide:s={},actions:c}=r,l=c??{},u=l.show??{},d=l.handlers??{},f=l.accessors??{},m=l.icons??{},g=l.className??"d-flex flex-row gap-2 align-items-center ",p=l.tooltip??{},y=m.view??h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",style:{fill:"#070c10"},children:[h.jsx("path",{d:"M18.6,6.3c-3.9-3-9.3-3-13.2,0-1.9,1.5-3.2,3.5-3.9,5.7.7,2.3,2,4.3,3.9,5.7,1.9,1.5,4.2,2.3,6.6,2.3,2.4,0,4.7-.8,6.6-2.3,1.9-1.5,3.2-3.5,3.9-5.7-.7-2.3-2-4.3-3.9-5.7ZM17.2,12.1c0,2.9-2.5,5.3-5.4,5.2-2.9,0-5.3-2.5-5.2-5.4,0-2.9,2.5-5.3,5.4-5.2,2.9,0,5.3,2.4,5.2,5.3,0,0,0,0,0,0Z"}),h.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),S={nombreCliente:{key:"nombreCliente",header:i.nombreCliente??"Cliente",accessor:L=>L[n.nombreCliente],cell:a.nombreCliente,width:310},email:{key:"email",header:i.email??"Correo",accessor:L=>L[n.email],cell:a.email??(L=>{const K=String(L[n.email]??"");return K?h.jsx("a",{href:`mailto:${K}`,children:K}):h.jsx("span",{className:"text-muted",children:"—"})}),width:250},acciones:s.acciones?void 0:{key:"acciones",header:"",cell:a.acciones??(L=>{const K=ac(u.whatsapp,L,!0),v=ac(u.email,L,!0),I=ac(u.view,L,!0),A=f.phone?.(L),U=f.email?.(L),H=()=>{if(d.onWhatsApp)return d.onWhatsApp(L);if(!A)return;const se=f.countryCode??"52",V=kC(String(A));typeof window<"u"&&window.open(`https://wa.me/${se}${V}`,"_blank")},ee=()=>{if(d.onEmail)return d.onEmail(L);U&&typeof window<"u"&&(window.location.href=`mailto:${U}`)},re=()=>{if(d.onView)return d.onView(L);t?.(L)};return h.jsxs("div",{className:g,children:[K&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.whatsapp??"WhatsApp",onClick:H,style:{width:24,height:24},children:h.jsx("img",{src:SC,alt:"WhatsApp"})}),v&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.email??"Email",onClick:ee,style:{width:24,height:24},children:h.jsx("img",{src:CC,alt:"Email"})}),I&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.view??"Ver detalle",onClick:re,style:{width:24,height:24},children:y})]})}),width:120}},C=Object.values(S).filter(L=>!!L),k=(e??[]).filter(L=>!!L?.key),E=new Map;for(const L of C)E.set(String(L.key),L);for(const L of k)E.set(String(L.key),L);const _=[...C.map(L=>String(L.key)),...k.map(L=>String(L.key))],O=Array.from(new Set(o.map(L=>String(L)).filter(L=>E.has(L)))),N=_.filter(L=>!O.includes(L)),q=[...O,...N],Z="acciones";if(E.has(Z)){const L=q.filter(K=>K!==Z);q.splice(0,q.length,...L,Z)}return q.map(L=>E.get(L))}function GE(e){const{rows:r,columns:t,clientSort:n=!0,defaultSort:o,minWidth:i=1100,rowKey:a=DC,defaults:s,detailConfig:c}=e,[l,u]=x.useState(o??null),[d,f]=x.useState({open:!1,customer:null}),[m,g]=x.useState([]),p=k=>{f({open:!0,customer:k});const E=c?.vehiclesProvider?.(k)??[];g(Array.isArray(E)?E:[])},y=()=>f({open:!1,customer:null}),S=x.useMemo(()=>s?Jp(t??[],s,p):Jp(t??[],{fields:{},order:[]},p),[t,s]),C=x.useMemo(()=>{if(!n||!l)return r;const k=S.find(_=>_.key===l.key);if(!k)return r;const E=[...r];return E.sort((_,O)=>{const N=ic(k,_,0),q=ic(k,O,0),Z=EC(N,q);return l.direction==="asc"?Z:-Z}),E},[r,S,l,n]);return h.jsxs("div",{className:"",children:[h.jsx("h3",{children:"Ejemplo Componente reutilizable"}),h.jsx("div",{className:"table-clientes back-white rounded-3 shadow-main mt-4 mb-4 ",children:h.jsx("div",{className:"table-responsive",children:h.jsxs("table",{className:"table table-hover align-middle mb-0",style:{minWidth:i},children:[h.jsx("thead",{children:h.jsx("tr",{children:S.map(k=>h.jsx("th",{style:{fontWeight:600,width:k.width},children:k.header},k.key))})}),h.jsx("tbody",{children:C.map((k,E)=>h.jsx("tr",{children:S.map((_,O)=>{const N=_.Component?h.jsx(_.Component,{row:k,index:E}):_.cell?_.cell(k,E):(()=>{const q=ic(_,k,E);return q==null||q===""?"":String(q)})();return h.jsx("td",{children:N},`${String(_.key)}-${O}`)})},a(k,E)))})]})})}),h.jsx(KE,{open:d.open,onClose:y,customer:d.customer,fields:c?.dynamicFields,header:c?.header})]})}vt.ApiProvider=v2,vt.Clientes=GE,vt.CustomSnackbar=Ep,vt.MyCalendar=xC,vt.useEventRepository=Is,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})}));